trying to get my mod to work, need help

Fietstasfabriek

Chieftain
Joined
Aug 5, 2012
Messages
5
Hello, I'm trying to make a mod (for the first time) that alters most of the values in the "CIV5GameSpeeds.xml" (including Gods&kings) for marathon speed. I can get it to load ingame but there doesn't seem to be any effect.

currently this is what I've got, i've also set up an Action "OnModActivated - UpdateDatabase" and at Associations I've set up a dependency for Gods&Kings
Code:
<?xml version="1.0" encoding="utf-8"?>
<GameData>
	<GameSpeeds>
		<Update>
			<Set DealDuriation="45"/>
			<Where Type="GAMESPEED_MARATHON"/>
		</Update>
		<Update>
			<Set GrowthPercent="90"/>
			<Where Type="GAMESPEED_MARATHON"/>
		</Update>
		<Update>
			<Set TrainPercent="50"/>
			<Where Type="GAMESPEED_MARATHON"/>
		</Update>
		<Update>
			<Set ConstructPercent="75"/>
			<Where Type="GAMESPEED_MARATHON"/>
		</Update>
		<Update>
			<Set CreatePercent="100"/>
			<Where Type="GAMESPEED_MARATHON"/>
		</Update>
		<Update>
			<Set ResearchPercent="400"/>
			<Where Type="GAMESPEED_MARATHON"/>
		</Update>
		<Update>
			<Set GoldPercent="100"/>
			<Where Type="GAMESPEED_MARATHON"/>
		</Update>
		<Update>
			<Set GoldGiftMod="100"/>
			<Where Type="GAMESPEED_MARATHON"/>
		</Update>
		<Update>
			<Set BuildPercent="75"/>
			<Where Type="GAMESPEED_MARATHON"/>
		</Update>
		<Update>
			<Set ImprovementPercent="75"/>
			<Where Type="GAMESPEED_MARATHON"/>
		</Update>
		<Update>
			<Set GreatePeoplePercent="150"/>
			<Where Type="GAMESPEED_MARATHON"/>
		</Update>
		<Update>
			<Set CulturePercent="90"/>
			<Where Type="GAMESPEED_MARATHON"/>
		</Update>
		<Update>
			<Set FeatureProductionPercent="75"/>
			<Where Type="GAMESPEED_MARATHON"/>
		</Update>
		<Update>
			<Set UnitDiscoverPercent="50"/>
			<Where Type="GAMESPEED_MARATHON"/>
		</Update>
		<Update>
			<Set UnitHurryPercent="50"/>
			<Where Type="GAMESPEED_MARATHON"/>
		</Update>
		<Update>
			<Set UnitTradePercent="50"/>
			<Where Type="GAMESPEED_MARATHON"/>
		</Update>
		<Update>
			<Set GoldenAgePercent="90"/>
			<Where Type="GAMESPEED_MARATHON"/>
		</Update>
		<Update>
			<Set HurryPercent="75"/>
			<Where Type="GAMESPEED_MARATHON"/>
		</Update>
		<Update>
			<Set InflationPercent="5"/>
			<Where Type="GAMESPEED_MARATHON"/>
		</Update>
		<Update>
			<Set InflationOffset="300"/>
			<Where Type="GAMESPEED_MARATHON"/>
		</Update>
		<Update>
			<Set VictoryDelayPercent="400"/>
			<Where Type="GAMESPEED_MARATHON"/>
		</Update>
		<Update>
			<set FaithPercent="100"/>
			<Where Type="GAMESPEED_MARATHON"/>
		</Update>
		<Update>
			<set ReligiousPressureAdjacentCity="6"/>
			<Where Type="GAMESPEED_MARATHON"/>
		</Update>
		<Update>
			<set MinorCivElectionFreqMod="100"/>
			<Where Type="GAMESPEED_MARATHON"/>
		</Update>
		<Update>
			<set SpyRatePercent="75"/>
			<Where Type="GAMESPEED_MARATHON"/>
		</Update>
		<Update>
			<set OpinionDuriation="125"/>
			<Where Type="GAMESPEED_MARATHON"/>
		</Update>
	</GameSpeeds>
</GameData>


Anyone have an idea what could be wrong?
 
DealDuriation
OpinionDuriation

It should be "Duration". The database.log file should give you a "no such column" error, and when there is an error in a file, the entire file won't have any effect.

(Btw with such mod you'll build Wealth or Research in your cities most of the time :))
 
It should be "Duration". The database.log file should give you a "no such column" error, and when there is an error in a file, the entire file won't have any effect.

(Btw with such mod you'll build Wealth or Research in your cities most of the time :))

okay i fixed the "Duriation" => "Duration" but it still doesn't work, where can I see the database.log file?

balance is probably very bad but what I'm trying is to have the mod set speeds for production/growth/culture/faith/etc (all except golden age length and science) to something between quick/standard and have gold maintenance low, but at the moment it does nothing at all (it should set Production to 50% of standard = 20 :c5production: for a warrior, on marathon its still 300% (120 :c5production:))
 
Capitalize "Set". :)

Also, you can save yourself a little typing and put multiple tags within a single "Set". You can even hit Enter and stack them for easier viewing.

Code:
<?xml version="1.0" encoding="utf-8"?>
<GameData>
	<GameSpeeds>
		<Update>
			<Where Type="GAMESPEED_MARATHON"/>
                        <Set 
			DealDuriation="45"
			GrowthPercent="90"
			TrainPercent="50"
			ConstructPercent="75"
			
			[COLOR="DimGray"](etc.... etc....)[/COLOR]

			/>
		</Update>
	</GameSpeeds>
</GameData>

Also, I try not type-out most things. Usually, I just copy and past from the file in Notepad++ to Modbuddy. Just double-click a word and it'll highlight it all. Even with Update tags and others; I just copy from above and just paste-in new tag names. Personally, I believe it saves me from a lot of trouble. ;)
 
it's already capitalized.

No they're not

Code:
		<Update>
			<[B][COLOR="Red"]set [/COLOR][/B]FaithPercent="100"/>
			<Where Type="GAMESPEED_MARATHON"/>
		</Update>
		<Update>
			<[B][COLOR="red"]set [/COLOR][/B]ReligiousPressureAdjacentCity="6"/>
			<Where Type="GAMESPEED_MARATHON"/>
		</Update>
		<Update>
			<[B][COLOR="red"]set [/COLOR][/B]MinorCivElectionFreqMod="100"/>
			<Where Type="GAMESPEED_MARATHON"/>
		</Update>
		<Update>
			<[B][COLOR="red"]set [/COLOR][/B]SpyRatePercent="75"/>
			<Where Type="GAMESPEED_MARATHON"/>
		</Update>
		<Update>
			<[B][COLOR="red"]set [/COLOR][/B]OpinionDuriation="125"/>
			<Where Type="GAMESPEED_MARATHON"/>
		</Update>
 
No they're not

Code:
		<Update>
			<[B][COLOR="Red"]set [/COLOR][/B]FaithPercent="100"/>
			<Where Type="GAMESPEED_MARATHON"/>
		</Update>
		<Update>
			<[B][COLOR="red"]set [/COLOR][/B]ReligiousPressureAdjacentCity="6"/>
			<Where Type="GAMESPEED_MARATHON"/>
		</Update>
		<Update>
			<[B][COLOR="red"]set [/COLOR][/B]MinorCivElectionFreqMod="100"/>
			<Where Type="GAMESPEED_MARATHON"/>
		</Update>
		<Update>
			<[B][COLOR="red"]set [/COLOR][/B]SpyRatePercent="75"/>
			<Where Type="GAMESPEED_MARATHON"/>
		</Update>
		<Update>
			<[B][COLOR="red"]set [/COLOR][/B]OpinionDuriation="125"/>
			<Where Type="GAMESPEED_MARATHON"/>
		</Update>
ah. fixed that now, but it still doesn't work :(
 
so this is what it looks like now, but the stuff isn't applied at all, any ideas?

Code:
<?xml version="1.0" encoding="utf-8"?>
<GameData>
	<GameSpeeds>
		<Update>
			<Set DealDuration="45"
				 GrowthPercent="90"
				 TrainPercent="50"
				 ConstructPercent="75"
				 CreatePercent="100"
				 ResearchPercent="400"
				 GoldPercent="100"
				 GoldGiftMod="100"
				 BuildPercent="75"
				 ImprovementPercent="75"
				 GreatePeoplePercent="150"
				 CulturePercent="90"
				 FeatureProductionPercent="75"
				 UnitDiscoverPercent="50"
				 UnitHurryPercent="50"
				 UnitTradePercent="50"
				 GoldenAgePercent="90"
				 HurryPercent="75"
				 InflationPercent="5"
				 InflationOffset="300"
				 VictoryDelayPercent="400"
				 FaithPercent="100"
				 ReligiousPressureAdjacentCity="6"
				 MinorCivElectionFreqMod="100"
				 SpyRatePercent="75"
				 OpinionDuration="125"
			<Where Type="GAMESPEED_MARATHON"/set>
		</Update>
	</GameSpeeds>
</GameData>
 
Back
Top Bottom