I just tried creating a mod that changes some of the settings specified in GlobalDefines.xml. Unfortunately, my first attempt had absolutely no effect. The mod installed fine and it was enabled, but none of the changes I specified in the mod took effect.
The mod is very simple, just a single xml file. Here are its contents:
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 8/3/2011 6:39:18 PM -->
<GameData>
<Defines>
<Row Name="START_AREA_HAPPINESS_MULTIPLIER">
<Value>15</Value>
</Row>
<Row Name="HAPPINESS_PER_NATURAL_WONDER">
<Value>3</Value>
</Row>
<Row Name="HAPPINESS_PER_EXTRA_LUXURY">
<Value>0.25</Value>
</Row>
<Row Name="UNHAPPINESS_PER_POPULATION">
<Value>0.25</Value>
</Row>
<Row Name="UNHAPPINESS_PER_OCCUPIED_POPULATION">
<Value>2</Value>
</Row>
<Row Name="UNHAPPINESS_PER_CITY">
<Value>0.2</Value>
</Row>
<Row Name="UNHAPPINESS_PER_CAPTURED_CITY">
<Value>3</Value>
</Row>
<Row Name="UNHAPPY_GROWTH_PENALTY">
<Value>-50</Value>
</Row>
<Row Name="VERY_UNHAPPY_CANT_TRAIN_SETTLERS">
<Value>0</Value>
</Row>
<Row Name="VERY_UNHAPPY_THRESHOLD">
<Value>-30</Value>
</Row>
<Row Name="VERY_UNHAPPY_COMBAT_PENALTY">
<Value>-10</Value>
</Row>
<Row Name="VERY_UNHAPPY_PRODUCTION_PENALTY">
<Value>-15</Value>
</Row>
<Row Name="SUPER_UNHAPPY_THRESHOLD">
<Value>-100</Value>
</Row>
<Row Name="INITIAL_FREE_OUTSIDE_UNITS">
<Value>10</Value>
</Row>
<Row Name="UNIT_MAINTENANCE_GAME_MULTIPLIER">
<Value>16</Value>
</Row>
<Row Name="UNIT_MAINTENANCE_GAME_EXPONENT_DIVISOR">
<Value>15</Value>
</Row>
</Defines>
</GameData>
And before you criticize the settings shown above, please keep in mind that none of these have been tested yet and will probably be tweaked.
Is it possible to change these settings in a mod, and if so, what am I doing wrong? I'm very new to this so I would appreciate any help that can be offered. Thanks!
The mod is very simple, just a single xml file. Here are its contents:
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 8/3/2011 6:39:18 PM -->
<GameData>
<Defines>
<Row Name="START_AREA_HAPPINESS_MULTIPLIER">
<Value>15</Value>
</Row>
<Row Name="HAPPINESS_PER_NATURAL_WONDER">
<Value>3</Value>
</Row>
<Row Name="HAPPINESS_PER_EXTRA_LUXURY">
<Value>0.25</Value>
</Row>
<Row Name="UNHAPPINESS_PER_POPULATION">
<Value>0.25</Value>
</Row>
<Row Name="UNHAPPINESS_PER_OCCUPIED_POPULATION">
<Value>2</Value>
</Row>
<Row Name="UNHAPPINESS_PER_CITY">
<Value>0.2</Value>
</Row>
<Row Name="UNHAPPINESS_PER_CAPTURED_CITY">
<Value>3</Value>
</Row>
<Row Name="UNHAPPY_GROWTH_PENALTY">
<Value>-50</Value>
</Row>
<Row Name="VERY_UNHAPPY_CANT_TRAIN_SETTLERS">
<Value>0</Value>
</Row>
<Row Name="VERY_UNHAPPY_THRESHOLD">
<Value>-30</Value>
</Row>
<Row Name="VERY_UNHAPPY_COMBAT_PENALTY">
<Value>-10</Value>
</Row>
<Row Name="VERY_UNHAPPY_PRODUCTION_PENALTY">
<Value>-15</Value>
</Row>
<Row Name="SUPER_UNHAPPY_THRESHOLD">
<Value>-100</Value>
</Row>
<Row Name="INITIAL_FREE_OUTSIDE_UNITS">
<Value>10</Value>
</Row>
<Row Name="UNIT_MAINTENANCE_GAME_MULTIPLIER">
<Value>16</Value>
</Row>
<Row Name="UNIT_MAINTENANCE_GAME_EXPONENT_DIVISOR">
<Value>15</Value>
</Row>
</Defines>
</GameData>
And before you criticize the settings shown above, please keep in mind that none of these have been tested yet and will probably be tweaked.
Is it possible to change these settings in a mod, and if so, what am I doing wrong? I'm very new to this so I would appreciate any help that can be offered. Thanks!