why doesnt my mod work?

70ny

Chieftain
Joined
Apr 3, 2011
Messages
9
various changes made to city states (city states declare permanent war more often, more food from maritime, more culture from cultured, more units from militaristic, more influence from gifting/liberation/killing other city state, etc...), im very new to modding (just started today). And this is the first one im stuck on (none of the changes made take place at all). Help pls?


<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 4/2/2011 10:08:07 PM -->
<GameData>
<Defines>
<Update>
<Where Name="QUEST_DISABLED_KILL_CITY_STATE" />
<Set Value="1" />
</Update>
<Update>
<Where Name="MINOR_QUEST_FRIENDSHIP_KILL_CITY_STATE" />
<Set Value="1000" />
</Update>
<Update>
<Where Name="FRIENDSHIP_PER_UNIT_GIFTED" />
<Set Value="15" />
</Update>
<Update>
<Where Name="MINOR_LIBERATION_FRIENDSHIP" />
<Set Value="1000" />
</Update>
<Update>
<Where Name="MINOR_FRIENDSHIP_DROP_PER_TURN_HOSTILE" />
<Set Value="-100" />
</Update>
<Update>
<Where Name="MINOR_FRIENDSHIP_DROP_PER_TURN_AGGRESSOR" />
<Set Value="-100" />
</Update>
<Update>
<Where Name="MINOR_CIV_AGGRESSOR_THRESHOLD" />
<Set Value="1" />
</Update>
<Update>
<Where Name="MINOR_CIV_WARMONGER_THRESHOLD" />
<Set Value="2" />
</Update>
<Update>
<Where Name="PERMANENT_WAR_OTHER_WARMONGER_CHANCE_DISTANT" />
<Set Value="70" />
</Update>
<Update>
<Where Name="PERMANENT_WAR_OTHER_WARMONGER_CHANCE_FAR" />
<Set Value="75" />
</Update>
<Update>
<Where Name="PERMANENT_WAR_OTHER_CHANCE_DISTANT" />
<Set Value="50" />
</Update>
<Update>
<Where Name="PERMANENT_WAR_OTHER_CHANCE_FAR" />
<Set Value="60" />
</Update>
<Update>
<Where Name="PERMANENT_WAR_OTHER_CHANCE_CLOSE" />
<Set Value="85" />
</Update>
<Update>
<Where Name="PERMANENT_WAR_OTHER_CHANCE_NEIGHBORS" />
<Set Value="100" />
</Update>
<Update>
<Where Name="PERMANENT_WAR_OTHER_AT_WAR" />
<Set Value="100" />
</Update>
<Update>
<Where Name="FRIENDS_CULTURE_BONUS_AMOUNT_ANCIENT" />
<Set Value="10" />
</Update>
<Update>
<Where Name="FRIENDS_CULTURE_BONUS_AMOUNT_MEDIEVAL" />
<Set Value="15" />
</Update>
<Update>
<Where Name="FRIENDS_CULTURE_BONUS_AMOUNT_INDUSTRIAL" />
<Set Value="25" />
</Update>
<Update>
<Where Name="ALLIES_CULTURE_BONUS_AMOUNT_ANCIENT" />
<Set Value="10" />
</Update>
<Update>
<Where Name="ALLIES_CULTURE_BONUS_AMOUNT_MEDIEVAL" />
<Set Value="15" />
</Update>
<Update>
<Where Name="ALLIES_CULTURE_BONUS_AMOUNT_INDUSTRIAL" />
<Set Value="25" />
</Update>
<Update>
<Where Name="FRIENDS_CAPITAL_FOOD_BONUS_AMOUNT_PRE_RENAISSANCE" />
<Set Value="300" />
</Update>
<Update>
<Where Name="FRIENDS_CAPITAL_FOOD_BONUS_AMOUNT_POST_RENAISSANCE" />
<Set Value="300" />
</Update>
<Update>
<Where Name="FRIENDS_OTHER_CITIES_FOOD_BONUS_AMOUNT_PRE_RENAISSANCE" />
<Set Value="100" />
</Update>
<Update>
<Where Name="FRIENDS_OTHER_CITIES_FOOD_BONUS_AMOUNT_POST_RENAISSANCE" />
<Set Value="100" />
</Update>
<Update>
<Where Name="ALLIES_CAPITAL_FOOD_BONUS_AMOUNT" />
<Set Value="300" />
</Update>
<Update>
<Where Name="ALLIES_OTHER_CITIES_FOOD_BONUS_AMOUNT" />
<Set Value="100" />
</Update>
<Update>
<Where Name="FRIENDS_BASE_TURNS_UNIT_SPAWN" />
<Set Value="10" />
</Update>
<Update>
<Where Name="FRIENDS_RAND_TURNS_UNIT_SPAWN" />
<Set Value="5" />
</Update>
<Update>
<Where Name="ALLIES_EXTRA_TURNS_UNIT_SPAWN" />
<Set Value="-5" />
</Update>
</Defines>
</GameData>

btw, it is actually indented correctly in the file, its just like that from posting it.

edit: nvm, found the problem...theres nothing wrong with the code but it didnt put UpdateDatabase and stuff in the modinfo file for some reason, even though i put that part in, so it didnt update anything. Fixed now so pls close.
 
And this is the first one im stuck on (none of the changes made take place at all).

Unfortunately, that's how it works. If there's a bug in your XML, the entire XML file will be ignored. The easiest way to debug, then, is to comment out half the file (with the <!-- and --> indicators), and see if it works; if it does, then the problems in the commented half, if not then the problem's in the uncommented half. Split the faulty half in half again, and retry until you've narrowed it down.

Or just have FireTuner running when you're starting up a new game, and it should tell you where the problem is. (It doesn't always do so, though.)

As for the board, use the (code) and (/code) operators (using brackets instead of parentheses), like so:

Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 4/2/2011 10:08:07 PM -->
<GameData>
	<Defines>
		<Update>
			<Where Name="QUEST_DISABLED_KILL_CITY_STATE" />
			<Set Value="1" />
		</Update>
 
Back
Top Bottom