[R&F] Mod enabled but not applying (first mod)

Pir Lan Tota

Warlord
Joined
Jan 28, 2008
Messages
276
Location
Manchester
Hi guys,

I think I am doing something wrong here, I made my first attempt with Modbuddy and it is enabled in my game. But the mod isnt applying, e.g. tried to turn off Cost progression for settler, but costs still go up. Cost progression isnt hard-coded, right, should be overwrittable?

<?xml version="1.0" encoding="utf-8"?>
<!-- GameData1 -->
<!-- Author: PirLanTota -->
<!-- DateCreated: 21-May-18 13:20:14 -->
<GameData>
<!-- Almost all gameplay types should first be added to the types table. -->
<!-- This serves as a central way to reference any type -->
<Types>
<Row Type="UNIT_SETTLER" Kind="KIND_UNIT" />
</Types>

<!-- Define the actual unit. -->
<Units>
<Row>
<UnitType>UNIT_SETTLER</UnitType>>
<Name>LOC_UNIT_SETTLER_NAME</Name>
<Description>LOC_UNIT_SETTLER_DESCRIPTION</Description>
<BaseSightRange>3</BaseSightRange>
<BaseMoves>2</BaseMoves>
<Domain>DOMAIN_LAND</Domain>
<FormationClass>FORMATION_CLASS_CIVILIAN</FormationClass>
<Cost>80</Cost>
<ZoneOfControl>false</ZoneOfControl>
<FoundCity>true</FoundCity>
<PopulationCost>1</PopulationCost>
<PrereqPopulation>2</PrereqPopulation>
<AdvisorType>ADVISOR_GENERIC</AdvisorType>
<CanCapture>False</CanCapture>
<PurchaseYield>YIELD_GOLD</PurchaseYield>
<CostProgressionModel>COST_PROGRESSION_PREVIOUS_COPIES</CostProgressionModel>
<CostProgressionParam1>0</CostProgressionParam1>
</Row>
</Units>






</GameData>
 
I think row is to add data while you want to modify it right? so you should use
<update>
<CostProgressionModel>NO_COST_PROGRESSION</CostProgressionModel>
<CostProgressionParam1>0</CostProgressionParam1>
</update>

and all unit that do not have cost progression have <CostProgressionModel>NO_COST_PROGRESSION</CostProgressionModel>

I never tried xml, I prefer sql (I find it easier) so this sql should do what you want:

UPDATE Units
SET CostProgressionModel = 'NO_COST_PROGRESSION',
CostProgressionParam1 = '0'
WHERE UnitType = 'UNIT_SETTLER'

I hope it will help you and good luck
 
Top Bottom