Requesting Help Getting Mods to be Compatible

mauporte

Chieftain
Joined
Mar 7, 2012
Messages
21
Location
Monterrey, México
So I made a mod more than a year ago which represented my thoughts on how a marathon game should really play: https://steamcommunity.com/sharedfiles/filedetails/?id=1577329590. It scales down costs of different concepts with different multipliers, units being the cheapest. So on GameData.sql I have the following line:
UPDATE Units SET Cost = Cost * 0.25 WHERE UnitType <> 'UNIT_SETTLER';​
Curiously, I don't need lines for Units_XP1 or Units_XP2, that one line affects all Units across all DLCs.

Something I noticed, though, is that it doesn't seem to affect units added by other mods, even when adding lines for Units_XP1 and Units_XP2. For example, the Steel and Thunder mod adds 11 units by adding them to the Units Table. So I simply thought of adding a ridiculously high load order to my file, so that the units are first added to the table and then the operation happens:
<InGameActions>
<UpdateDatabase id="Gameplay">
<Properties>
<LoadOrder>9000</LoadOrder>
<File>Data/GameSpeeds.xml</File>
<File>Data/Gameplay.sql</File>
</Properties>
</UpdateDatabase>
But, still it won't work. What am I doing wrong?
 
The LoadOrder needs to be sandwiched between <Properties> </Properties> with the Files coming afterwards.

Code:
<InGameActions>
<UpdateDatabase id="Gameplay">
<Properties>
<LoadOrder>9000</LoadOrder>
</Properties>
<File>Data/GameSpeeds.xml</File>
<File>Data/Gameplay.sql</File>
</UpdateDatabase>
 
Code:
<InGameActions>
   <UpdateDatabase id="Gameplay">
     <Properties>
         <LoadOrder>9000</LoadOrder>
     </Properties>
     <File>Data/GameSpeeds.xml</File>
     <File>Data/Gameplay.sql</File>
   </UpdateDatabase>
</InGameActions>
:ninja: gra'Ninja'd :ninja:
 
Back
Top Bottom