Mod Help

I am trying to modify the sensor mass/sensor power in the ship components def xml file in the base game, but every time I tried to mod it, the game would crash, I did mod the star-base file, but all that did was seem to duplicate the options for star-base modules, which didn't crash the game, but otherwise didn't really work. I am using the latest hotfix, and the GRM mod. also, why is the most modded credits you can have 2147483?

11,001 views 7 replies
Reply #1 Top

1) What DLC do you have?

2) Which copy of Ship Components file did you copy over to your mod directory?

3) Did you rename said file?

4) Are you trying to add new components or modify an existing component? 

5) In said file, what values are you changing and to what?

 

Dunno about credits.

Reply #2 Top

The only dlc I don't have is the heroes of the star controll, Mech parts, altarian prophecy, rise of the terrans, revenge of the snathi,

The file that I renamed was from the C:\SteamLibrary\steamapps\common\Galactic Civilizations III\data\Game ShipComponentDefs.xml

I did rename the xml, i added _sensorpowerto the end of the defs

I was not adding any components, I was modifying

<EffectType>SensorPower</EffectType>
      <Target>
        <TargetType>Ship</TargetType>
      </Target>
      <BonusType>Flat</BonusType>
      <Value>2</Value> <----I was changing this value

I changed it numerous times, from 4 to 12 to 20, it didn't matter, I even tried it unedited, still crashed, everytime.

 

Thank you for your help, also, thank you for making your awesome mod, it has been inspiring

Reply #3 Top

Ah, there therein lies the problem, this time.

When you are only editing values, like you are, the name of the file must remain the same, otherwise the game sees a bunch of components with the same internal name and the game crashes.

Haven't tried changing the value of credits that much, but the most likely answer is a hard-coded cap in the game code itself.

Hope this helps :)

 

Reply #4 Top

Yup! As I suspected your game doesn't know which entry to read because they are the same entry in two different files.

Just rename it back to it's original name and you should at least be able to load a game.

 

 

Reply #5 Top

I got it, thanks to you two, it worked, and it's awesome, the only snag I ran into is that it breaks the admin requirements for colony, survey etc... and ideas why that is, I just added more sensor power and brought down some mass cost, I couldn't find anything about the admin costs in there, or at least that I understood. Is there a file association?

Reply #6 Top

You are editing the wrong file.  You need to use the one in  Galactic Civilizations III\DLC\EXP2_Crusade\Game

Reply #7 Top

Thank you sir, that has corrected the problem. Woot!