Hi everyone,
Just a very casual modder with an issue I cannot find a solution.
I reused some work from Alpaca around increasing cost for technologies/civics as eras passed by. After some try and test I managed to make it work as I wanted and increased all costs. However, for some reason, I cannot manage to increase the cost for Future Era technologies/civics. I've been trying many options, doing multiple online searches, played around with LoadOrder, but I cannot figure out why it doesn't work for Future Era.
Any insight would be more than appreciated.
Sample below of the part of the mod that has the entries to increase costs for technologies:
UPDATE Technologies SET Cost = Cost*1 WHERE EraType ='ERA_ANCIENT';
UPDATE Technologies SET Cost = Cost*1.1 WHERE EraType ='ERA_CLASSICAL';
UPDATE Technologies SET Cost = Cost*1.2 WHERE EraType ='ERA_MEDIEVAL';
UPDATE Technologies SET Cost = Cost*1.4 WHERE EraType ='ERA_RENAISSANCE';
UPDATE Technologies SET Cost = Cost*1.7 WHERE EraType ='ERA_INDUSTRIAL';
UPDATE Technologies SET Cost = Cost*2.1 WHERE EraType ='ERA_MODERN';
UPDATE Technologies SET Cost = Cost*2.6 WHERE EraType ='ERA_ATOMIC';
UPDATE Technologies SET Cost = Cost*3.1 WHERE EraType ='ERA_INFORMATION';
UPDATE Technologies SET Cost = Cost*3.6 WHERE EraType ='ERA_FUTURE';
The .modinfo is:
<?xml version="1.0" encoding="utf-8"?>
<Mod id="cc58cb64-7dde-4c26-90c1-6af61baadbd6" version="1">
<Properties>
<Name>SlowerByEra</Name>
<Description>This is a brief description of the mod.</Description>
<Created>1589299419</Created>
<Teaser>This is a brief description of the mod.</Teaser>
<Authors>Bucho</Authors>
<CompatibleVersions>1.2,2.0</CompatibleVersions>
</Properties>
<Dependencies>
<Mod id="4873eb62-8ccc-4574-b784-dda455e74e68" title="Expansion: Gathering Storm" />
</Dependencies>
<InGameActions>
<UpdateDatabase id="SLOWER_BY_ERA">
<Properties>
<LoadOrder>-1</LoadOrder>
</Properties>
<File>SlowerByEra.sql</File>
</UpdateDatabase>
</InGameActions>
<Files>
<File>SlowerByEra.sql</File>
</Files>
</Mod>
Help is much appreciated.
Thanks
Just a very casual modder with an issue I cannot find a solution.
I reused some work from Alpaca around increasing cost for technologies/civics as eras passed by. After some try and test I managed to make it work as I wanted and increased all costs. However, for some reason, I cannot manage to increase the cost for Future Era technologies/civics. I've been trying many options, doing multiple online searches, played around with LoadOrder, but I cannot figure out why it doesn't work for Future Era.
Any insight would be more than appreciated.
Sample below of the part of the mod that has the entries to increase costs for technologies:
UPDATE Technologies SET Cost = Cost*1 WHERE EraType ='ERA_ANCIENT';
UPDATE Technologies SET Cost = Cost*1.1 WHERE EraType ='ERA_CLASSICAL';
UPDATE Technologies SET Cost = Cost*1.2 WHERE EraType ='ERA_MEDIEVAL';
UPDATE Technologies SET Cost = Cost*1.4 WHERE EraType ='ERA_RENAISSANCE';
UPDATE Technologies SET Cost = Cost*1.7 WHERE EraType ='ERA_INDUSTRIAL';
UPDATE Technologies SET Cost = Cost*2.1 WHERE EraType ='ERA_MODERN';
UPDATE Technologies SET Cost = Cost*2.6 WHERE EraType ='ERA_ATOMIC';
UPDATE Technologies SET Cost = Cost*3.1 WHERE EraType ='ERA_INFORMATION';
UPDATE Technologies SET Cost = Cost*3.6 WHERE EraType ='ERA_FUTURE';
The .modinfo is:
<?xml version="1.0" encoding="utf-8"?>
<Mod id="cc58cb64-7dde-4c26-90c1-6af61baadbd6" version="1">
<Properties>
<Name>SlowerByEra</Name>
<Description>This is a brief description of the mod.</Description>
<Created>1589299419</Created>
<Teaser>This is a brief description of the mod.</Teaser>
<Authors>Bucho</Authors>
<CompatibleVersions>1.2,2.0</CompatibleVersions>
</Properties>
<Dependencies>
<Mod id="4873eb62-8ccc-4574-b784-dda455e74e68" title="Expansion: Gathering Storm" />
</Dependencies>
<InGameActions>
<UpdateDatabase id="SLOWER_BY_ERA">
<Properties>
<LoadOrder>-1</LoadOrder>
</Properties>
<File>SlowerByEra.sql</File>
</UpdateDatabase>
</InGameActions>
<Files>
<File>SlowerByEra.sql</File>
</Files>
</Mod>
Help is much appreciated.
Thanks