1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

Requesting Help Getting Mods to be Compatible

Discussion in 'Mod Creation Help' started by mauporte, Jun 28, 2020.

  1. mauporte

    mauporte Chieftain

    Joined:
    Mar 7, 2012
    Messages:
    21
    Gender:
    Male
    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?
     
  2. Arstahd

    Arstahd Chieftain

    Joined:
    Apr 20, 2006
    Messages:
    84
    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>
    
     
  3. LeeS

    LeeS Imperator Supporter

    Joined:
    Jul 23, 2013
    Messages:
    7,131
    Location:
    Illinois, USA
    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:
     
  4. mauporte

    mauporte Chieftain

    Joined:
    Mar 7, 2012
    Messages:
    21
    Gender:
    Male
    Location:
    Monterrey, México
    Thanks, I was sure it was something as silly as that; sintax, a usual.
     

Share This Page