Thorn
King
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
And the Rules.sql file. (I changed the cost of three techs)
.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';