Fulqrum Publishing Home   |   Register   |   Today Posts   |   Members   |   UserCP   |   Calendar   |   Search   |   FAQ

Go Back   Official Fulqrum Publishing forum > Fulqrum Publishing > Star Wolves

Star Wolves 3D space RPG with deep strategy and tactical elements

Reply
 
Thread Tools Display Modes
  #1  
Old 09-06-2010, 01:01 AM
Skyeraven Skyeraven is offline
Approved Member
 
Join Date: Sep 2010
Posts: 24
Default

Quote:
Originally Posted by Demourge View Post
Well, I've been playing around with the data files a bit, I've succesfully edited a couple of items, but not been able to add any new ones using existing templates.

For example:

My Shield Prototype gives an additional 700 Shield + 6 SP/s

How?

Go to X:\Program Files\1C Company\Star Wolves 3 - Civil War\Data\Game (Or where you have your game installed)
Open up Modules.xml with notepad (or any text editor)
Now search for "ShAmp5"
Once found, search for the string called: <shield_energy>
You see it is set to 500 .. Simply changing this to 700 will give you 700 additional shield
Changing the string <shield_restore> will change whatever shield you want SP/s.

Now that you have edited the game info, you naturally want it to be displayed properly in the game aswell, otherwise it will still show up 500 SP and 4 SP/s in the description.

Alright, now lets go to: X:\Program Files\1C Company\Star Wolves 3 - Civil War\Data\LocData\English (Or any other language you have)

You will notice a file called: m_modules.loc
Open up that with notepad.
Now search for "ShAmp5"
You will see the description of the file, simply changing 500 to 700 and 4 to 6 is all that needs to be done.
Save and you're ready to go!

NOTICE: ALWAYS BACKUP FILES YOU EDIT .. (Even though this editing is quite harmless, it beats reinstalling when you break your game)

Now, as for my personal problem, adding new items.
With my previous method I showed how I edited the properties of the items .. So I figured, if I copy one part of the .xml file and edit it with new settings, it should add a new item while using an existing image, no? I wanted to make a Shield Prototype Mk 2, so I added this under "ShAmp5":

<ShieldModule name="ShAmp6">
<short_name>#M_Name_ShAmp6</short_name>
<hint>#M_Hint_ShAmp6</hint>
<short_desc>#M_SDesc_ShAmp6</short_desc>
<long_desc>#M_LDesc_ShAmp6</long_desc>
<mesh_name>systembox</mesh_name>
<flat_image>Phantom_Shield</flat_image>
<hit_points>10000</hit_points>
<mass>10</mass>
<disable_trade>false</disable_trade>
<cost>300000</cost>
<technology/>
<attach_type>ONLY_FIGHTER</attach_type>
<shield_energy>700</shield_energy>
<shield_restore>6</shield_restore>
</ShieldModule>

And added this to m_modules.loc:
#M_Name_ShAmp6 = Shield Prototype Mk 2
#M_Hint_ShAmp6 = Shield Prototype|Shield booster
#M_SDesc_ShAmp6 = A shield prototype.
#M_LDesc_ShAmp6 = A shield booster that increases shield energy by 700 SP and shield regeneration by 6 SP/s.|A shield booster prototype of the new generation. It's still early to speak about its commercialization.

Now I naturally figured that it won't just show up in tradestation and had to be "added" to the inventory, so I opened up InitTradeSystem.script and figured that this line: -- Sh,Eng,Man would stand for Shields, Engines, Maneuverability and the numbers displayed in their generation: Bastion, Citadel, Stronghold, Granite, Shield Prototype .. so I figured, if I had another number behind the number that stands for Shield Prototype, it would add my Shield Prototype Mk 2, right? Wrong.
It doesn't show up in the shops unfortunately. And as of yet I can't figure out why. So anyone more experienced with modding this game, can you tell me what I'm doing wrong?

As for your cheaters out there:

To enable console open Main.ini file located in the game folder.
Under section [GAME] is entry "DEBUGMODE = 0". Change value to "1" (without quotes). Save the file.

Now you can open console in-game by pressing [Shift]+[~] keys.

To enable cheats open the console and type in "g_cheats 1". Now you have enabled cheats.

Cheats:

I - God Mode (No damage to you your mothership or your fighters unless its part of a mission)
So now first close console then push Shift and i to get the BIG I

I tried the god mode cheat i cant get the console up it keeps selecting the mother ship. i did every exactly as told what am i doing wrong?
Reply With Quote
  #2  
Old 09-15-2010, 01:23 AM
Seige911 Seige911 is offline
Registered Member
 
Join Date: Sep 2010
Posts: 4
Default

I am also new to modding, think from this thread I have figured out how to add ships and items but how do you add skills? Right now wanting to give hero a few more engineering skills (give premade ones not create them) and give Ternie the skill that allows you to use alien and precurser tech. Any examples would be nice.

Thanks.
Reply With Quote
  #3  
Old 09-15-2010, 06:01 AM
Goblin Wizard Goblin Wizard is offline
Approved Member
 
Join Date: Oct 2008
Posts: 508
Default

Path ..\Data\Scripts\Include\PilotProperties.script
example:
Code:
F_Weapon_HC = 	{30,{"Gunnery_1"},{"F_Weapon_Laser","F_Weapon_AC"}},
F_Weapon_HC => perk name
30 => skill points cost
{"Gunnery_1"} => requirements
{"F_Weapon_Laser","F_Weapon_AC"} => alternative choice. If you choose F_Weapon_HC perk then F_Weapon_Laser and F_Weapon_AC will be unavailable.

Any changes to this file take effect only before you get this pilot. If you want to change your hero you need to start a new game.

If you want to change during a game you have to put line like below into proper quest script.
Code:
pilot_Hero:SetPerk("F_Weapon_HC");
Reply With Quote
  #4  
Old 09-19-2010, 01:41 AM
Seige911 Seige911 is offline
Registered Member
 
Join Date: Sep 2010
Posts: 4
Default

Thanks Goblin,

It works but does not work. I am able to modify *most* of the skills cost (Moding the gunner tree), a few seem resistant (expert tactician, and hard to kill). Additionally, it appears that I am unable to add any further skills to the tree.

Essentially I copied the two additional system skills from the systems path and appended them after the System_2 skill. When I start a new game they do not show. Figure I will use Hero as a test case before I start trying to add Skills to Lastochka.. I mean Terni.

Few other unrelated questions:

If I want to create my own system and populate it with beserkers, aliens or precursor ships and frigates (to make getting their stuff easier) how would I go about this?

If I want to remove items from the black market (so that only top tier items are available how do I do this? How would I add a completely new item? What about adding precurser turrets and guns?

If I want to create a new ship (using the mesh of another), how what script files do I need to modify? How would I switch the missile slots to heavy cannons and add additional system slots?

If I want to remove all the go here and die conditions how would I do that? (that way after I get the final mothership I still can fly around and do stuff without going through the wrong portal and going boom!)

Thanks

Last edited by Seige911; 09-19-2010 at 01:54 AM.
Reply With Quote
  #5  
Old 09-19-2010, 07:35 AM
Goblin Wizard Goblin Wizard is offline
Approved Member
 
Join Date: Oct 2008
Posts: 508
Default

Ufff, a lot of questions here.

Quote:
Originally Posted by Seige911 View Post
Thanks Goblin,

It works but does not work. I am able to modify *most* of the skills cost (Moding the gunner tree), a few seem resistant (expert tactician, and hard to kill). Additionally, it appears that I am unable to add any further skills to the tree.

Essentially I copied the two additional system skills from the systems path and appended them after the System_2 skill. When I start a new game they do not show. Figure I will use Hero as a test case before I start trying to add Skills to Lastochka.. I mean Terni.
Skills don't show automatically. You have to add them to GUI.
..\Data\Game\Pilots.xml - check mapping_name then
..\Data\TEXTURE\Interface\Pilot\PerkTree - two files here. Eg. Lastochka_perk.dds - background image, Lastochka_perk.ini - coordinates for perks on the image.

Quote:
Originally Posted by Seige911 View Post
If I want to create my own system and populate it with beserkers, aliens or precursor ships and frigates (to make getting their stuff easier) how would I go about this?
Probably the easiest way is to add them in the location script. Check how it's done in ..\Data\Scripts\Locations. You have to analyze functions like Flight, NewFlight, NewBerserkFlight and similar (generally with a word "flight").

Quote:
Originally Posted by Seige911 View Post
If I want to remove all the go here and die conditions how would I do that? (that way after I get the final mothership I still can fly around and do stuff without going through the wrong portal and going boom!)
These conditions are done by many different triggers. Just check the quest scripts for the word "trigger".

Your other questions was already explained in this forum so use search. If you want detailed information read two manuals below. The second is in german but is rather self-explaining. If not, google translate is there for you

StarWolves-LUA_Manual_v1 English.zip

StarWolves2ModdingHandbuch.zip
Reply With Quote
  #6  
Old 09-19-2010, 09:24 AM
Trucidation
Guest
 
Posts: n/a
Default

The German Modding Handbuch is quite useful with regards to creating the alien and precursor flights you want but not much else (the icon change section is self-explanatory, doesn't need a manual). There's plenty of berserks in the Border systems imho, but you can add them to your custom systems if you wish. It's not just flights, don't forget the portals connecting it with other systems

For ship stuff look at Carcasses.xml and ShipDescriptions.xml. Adding stuff to trade is likely in IniTradeSystem.xml.

Edit:
On an unrelated note, was just digging through the perkDispatcher script since there were a few things bugging me. Turns out I was right, the values and descriptions don't match. Meh.

Missile skills damage:
- Base, Missiles_Rockets, Missiles_2, Missiles_3, Missiles_4, Missiles_5, Elite, Lone Wolf (huh wtf):
base = 0.95
Missiles_Rockets += 0.05 = 100% (i.e. the stated damage)
Missiles_2 += 0.05 = 105%
Missiles_3 += 0.1 = 115%
Missiles_4 += 0.15 = 130%
Missiles_5 += 0.15 = 145%
Elite += 0.2 = +20%
Lone Wolf += 0.1 = +10%

However, descriptions (from m_perks.loc) tell a different story:
Missiles_2 = 5% (correct)
Missiles_3 = 25% (incorrect, script shows it is 15%)
Missiles_4 = 50% (incorrect, script shows it is 30%)
Missiles_5 = 45% (ironically correct, presumably bonus is lower to compensate for anti-jamming bonus - except script proves this is false)
Elite = 25% (incorrect, script shows it is +20%).
Lone Wolf = 0% (incorrect, script gives 10% bonus even though description says no bonus)

Not a huge deal since missile damage is quite overpowered already (hello massive blast damage) but I'd just like to point out that the values are described wrong.

Another gotcha: if you design a new skill tree and skip the lower skills and jump straight to the higher skills, e.g. base then straight to Missiles_4, and not giving Missiles_2 and Missiles_3, you get different values:
  • Missile_4 gives 30% damage bonus due to: base (0.95) + (Missiles_Rockets, 0.05) + (Missiles_2, 0.05) + (Missiles_3, 0.1) + (Missiles_4, 0.15)
    = 0.95 + 0.05 + 0.05 + 0.1 + 0.15
    = 130% modifier (aka 100% @ full base damage + 30% bonus)
  • But skipping the low level skills only gives you: base (0.95) + (Missiles_Rockets, 0.05) + (Missiles_4, 0.15)
    = 0.95 + 0.05 + 0.15
    = 115% modifier (aka 100% @ full base damage + 15% bonus)

How to fix this is simple, edit the script to give a straight assignment to the modifier value (amplifier = xx) instead of an increment bonus (amplifier += xx). Do this for the "chained" skills, i.e. Missiles_2 to Missiles_5. Elite is fine as an incremental bonus - it makes sense, a missile-specialist Elite pilot will still be better with missiles compared to a piloting-specialist Elite pilot. Note that you should do checks that give assignment modifiers first before checks for increments, e.g. check for Missiles_3 first before checking for Elite. Otherwise the increment from Elite would be overridden by the assignment from Missiles_3.

Haven't exactly decided how I should fix this but I'm in favour of a more linear percentage increase, e.g. Missiles_2 to Missiles_5 each granting an additional +15% increase. So I'd simply hardcode them as 115%, 130%, 145%, 160%. Yeah, it means pilots with Missiles_5 for example will have no use of Missiles_2 since the higher value overrides it (assignment instead of increment) but that's how the skill tree works anyway: a pilot can't get Missiles_5 without Missiles_2.

And if you rearrange the trees to give some pilots the higher skills while skipping the lower skills, a straight-up assignment works better anyway as the calculation I showed above shows - i.e. any pilot who has Missiles_4 will be guaranteed to get a 30% bonus instead of losing 15% due to skipping Missiles_2 and Missiles_3. That way you don't need to clutter the skill trees with the previous skills.

-
I think the anti-ECM bonuses are similarly screwed up, and I need to take a look at the unguided missiles ("rockets") as well.

Last edited by Trucidation; 09-27-2010 at 09:59 AM.
Reply With Quote
  #7  
Old 10-14-2010, 03:13 PM
Szpaku Szpaku is offline
Registered Member
 
Join Date: Aug 2010
Posts: 7
Default

Can someone tell me how i can add turrets and docking bay to stone arrow or something else?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:50 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.