Weird coding issue.

Carl_Bar

Chieftain
Joined
Nov 15, 2014
Messages
49
I'm probably missing something really simple here but the following is the error message i'm getting, (this was the only pertinent message i could find btw):

Code:
Database::XMLSerializer (XML/CivBEImprovements.xml): 'Row' or 'Delete' expected, got 'update'.

On it's own it seems a simple to understand error, except i don't understand why i'm getting this error. The only edited code in the mod is below, i'm guessing i've missed or forgotten something, just no idea what.

Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- edited with XMLSPY v2004 rel. 2 U (http://www.xmlspy.com) by Anton Strenger (Firaxis Games) -->
<GameData>
	<Improvements>
		<update>
			<Where Type="IMPROVEMENT_ACADEMY"/>
			<Set EnergyMaintenance="0"/>			
		</update>
		<update>
			<Where Type="IMPROVEMENT_DOME"/>
			<Set EnergyMaintenance="0"/>
		</update>
		<update>
			<Where Type="IMPROVEMENT_BIOWELL"/>
			<Set EnergyMaintenance="0"/>
		</update>
		<update>
			<Where Type="IMPROVEMENT_MANUFACTORY"/>
			<Set EnergyMaintenance="0"/>
		</update>
		<update>
			<Where Type="IMPROVEMENT_MANUFACTORY"/>
			<Set Unhealth="0"/>
		</update>
	</Improvements>
	<Improvement_Yields>
		<!-- These refer to what the improvement yields regardless of the terrain it is built on. Only NON-Resource-Dependent improvements should be represented here. Resource-based improvement yields are reflected in the Improvement_ResourceType_Yields table (below)-->
		<Row>
			<ImprovementType>IMPROVEMENT_FARM</ImprovementType>
			<YieldType>YIELD_ENERGY</YieldType>
			<Yield>1</Yield>
		</Row>
	</Improvement_Yields>
	<!-- These refer to what a plot with the resource will yield once it has been improved with the specific improvement. Note that different improvements can render different yields -->
	<Improvement_ResourceType_Yields>
	</Improvement_ResourceType_Yields>
	<!-- These refer to changes to the improvement's yield after a given Tech is researched-->
	<Improvement_TechYieldChanges>
		<update>
			<where ImprovementType="IMPROVEMENT_PLANTATION"/>
			<set TechType="TECH_ORGANICS"/>
		</update>
		<update>
			<where ImprovementType="IMPROVEMENT_GENERATOR"/>
			<set TechType="TECH_PHOTOSYSTEMS"/>
		</update>
	</Improvement_TechYieldChanges>
	<Improvement_ValidTerrains>
	</Improvement_ValidTerrains>
	<Improvement_ValidFeatures>
	</Improvement_ValidFeatures>
	<Improvement_ResourceTypes>
	</Improvement_ResourceTypes>
</GameData>

I know your probably all going to look at me like I've missed some basic idiot stuff, so sorry in advance for what is probably a really nooby mistake in there. And thanks for any help:).
 
Xml is case-sensitive, so it's "<Update>" not "<update>", "<Where>" not "<where>" and "<Set>" not "<set>"
 
Ahh thank you, i hadn't realized it was cases sensitive, the stuff i read didn't mention it, or if it did it was buried as a minor note somewhere. I feel like a total dumbass now.

Thanks though.
 
Back
Top Bottom