Only arts of mod working ?

Folket

Deity
Joined
Jan 7, 2010
Messages
4,027
Location
Sweden
I'm making a mod that will fix some of the things I think is not working optimally. I have two files.

<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 11/1/2010 7:11:19 PM -->
<GameData>
<Defines>
<Update>
<Set Value="25"/>
<Where Name="MAX_HIT_POINTS"/>
</Update>
<Update>
<Set Value="50"/>
<Where Name="MAX_CITY_HIT_POINTS"/>
</Update>
<Update>
<Set Value="2"/>
<Where Name="CITY_HIT_POINTS_HEALED_PER_TURN"/>
</Update>
<Update>
<Set Value="10"/>
<Where Name="NONCOMBAT_UNIT_RANGED_DAMAGE"/>
</Update>
</Defines>
</GameData>

and

-- Insert SQL Rules Here
UPDATE features set Defense = 20 where Defense = -33;

UPDATE Units set Combat = Combat*0.5 where Domain = 'DOMAIN_SEA';

UPDATE features set Defense = 50 where Defense = 25;


For some reason it does not seem to work in any way I can understand. I do not get any errors in my logs.

I have compiled these lines several times and I get different results. Sometimes HP things does not work. I only got the terrain defense thing to work once. And sometimes the boats have 1/4 instead of 1/2 in combat.
 
for the sqls, set and where need to be SET and WHERE I think?. For the xmls I don't know. Did you do the whle OnModActivated stuff, and did you have no typos?
 
UPDATE Units set Combat = Combat*0.5 where Domain = 'DOMAIN_SEA'; is working so it does not seem to be set and where. I have done the OnModActivated thng as otherwise there would have been no changes at all.
 
Hmm... do you have two versions of your mod downloaded (e,g. version 1, version 2)? Do you have any other mods enabled?
 
I have deleted the mod and installed it again and I do not have any other mods running.
 
Well, those lines are perfect, so I honestly don't know what's wrong :/ It's not the actual code, that's for sure.
 
Back
Top Bottom