Help: Modding the Balance Mod |
I am trying to modify the Balanced Mod 1.12 in so far that I want to chabge the XiChung into a kind of "Ueber-Race" with threatens the whole galaxy. For this, I wanted to make two changes:
1) Introduce a new racial trait "Bug Traits", which combines several other racial traits and all in all gives a huge advantage. I give this trait a cost of zero, as no other AI will take this.
2) Modify the xichung_main_script.csf and xichung_setup_script.csf to make the XiChung choose "bug traits" during setup and make some minor adjustmnts to gam play
Neither 1) nor 2) seem to work and here is where I need your help.
1)In the balance mod/data folder, I open "RacialTraits.txt" and add another trait "Bug Traits" with nine abilities which I paste over from other parts of the file. I checked, my numbering seems to be correct. the cost of this trait is zero. When I compile xichung_setup_script.csf, I add a line "call Add_Racial_Trait("Bug Traits")"
However, playtesting shows that the AI does not choose this trait. Worse, when I try to choose this trait as a human player, i cannot find it at all. It seems that gam does not add it to the list of racial traits to choose from, i.e. the modified txt file in the balanced Mod folder seems to be ignored or at least my entry seems to be ignored.
Any tips/ideas?
2) In order to modify the scripts, I open the Scriptparser, select "open", go to a folder where i have extracted Captain Kwoks uncompiled scripts and open xichung_setup_script.csf. I make my small changes and save. Then I press "compile". The script gets compiled and there are no error messages. I then copy the script and paste it into the data/empires/XiChung folder of the balance mod. Procedure is then epeated for the xichung_main_script.csf.
However, here playtesting gives a very strange result. The ship designs of the modified XiChung only mount bridges, life support and crew quarters. No engines, no weapons etc.
Again, any tips/ideas? Do I have to place some additional text files in the folder where I have extracted Captain Kwoks uncompiled scripts (because I realize that the main script reads in additional text files)
Thanks a lot in advance
Jörg

Re: Help: Modding the Balance Mod
The Bug Traits entry itself looks fine. I think it doesn't show up if you place a new racial trait entry before the end and load an existing empire file from before the change.
If you're just using 2000 racial points, you need to call Bug Traits before Organic Manipulation. The function will exit once there is 0 racial points to spend and therefore wouldn't add as it stands now.
You only need to compile the Xi'Chung main and setup scripts for your changes to take effect.
Not exactly sure what would cause no engines to be added to a design - did you make any changes to the design creation script file?




Re: Help: Modding the Balance Mod
If you could post the text of the Bug Traits entry that might help flush out the problem.
Space Empires Depot | SE:V Balance Mod