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

[GS] Broken Mod

Discussion in 'Mod Creation Help' started by Thorn, May 3, 2019.

  1. Thorn

    Thorn Chieftain

    Joined:
    Jan 5, 2002
    Messages:
    816
    Location:
    Project Tic-Toc
    I wrote a very simple mod a while back that would let me change a technology cost on the fly. I could edit the cost to any value in the mod before I started the game and it would change in the game. Now it doesn't. I tried playing with <LoadOrder> but that didn't do anything. Any ideas on what changed? Here's the code:

    .modinfo
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <Mod id="b761r01b-0a6b-421c-b3ac-0b2ced919583">
             <Properties>
                   <Name>Adjust Tech Time</Name>
                   <Description>Adjust Tech Time</Description>
                   <Teaser>Adjust Tech Time</Teaser>
                   <Authors>Thorn</Authors>
                   <CompatibleVersions>1.2,2.0</CompatibleVersions>
             </Properties>
        <Files>
            <File>Rules.sql</File>
        </Files> 
        <Components>
            <UpdateDatabase id="AdjustTechTime">
                <Properties>
                    <Name>Adjust Tech Time</Name>
                </Properties>
                <Items>
                    <File>Rules.sql</File>
                </Items>
            </UpdateDatabase>
        </Components>
    </Mod>
    And the Rules.sql file. (I changed the cost of three techs)
    Code:
    /*
        Tech Cost Mod
        by Thorn
    */
    
    UPDATE Technologies SET Cost = 1 WHERE TechnologyType ='TECH_POTTERY';
    UPDATE Technologies SET Cost = 1 WHERE TechnologyType ='TECH_MINING';
    UPDATE Technologies SET Cost = 9999 WHERE TechnologyType ='TECH_ANIMAL_HUSBANDRY';
     

Share This Page