Modding Aid

Encleadus

Chieftain
Joined
Jul 4, 2012
Messages
40
Location
England
Hi I am trying to add a leader with a new unit, it appears on the mod screen but the new civilization does not appear at all in either the choose leader area nor the civlopedia :mad::mad::mad::mad::mad::mad: I cannot figure out the error! I checked the code, debugged it etc and still no luck! PLEASE HELP!!!!:crazyeye:
 
Post your mod, so we can see what you did wrong. You can also download other mods like new zeland or papal states to see the structure of the mod and compare it to yours.
 
Enable logging and look in the database.log, xml.log and lua.log files - they will provide clues

In your case you will get

Code:
[37505.385] Database::XMLSerializer (XML/Civilization/Civ_Iraq.xml): 'Row' or 'Delete' expected, got 'CivilizationType'.
[37505.385] Database::XMLSerializer (XML/Civilization/GameText.xml): 'Row' or 'Delete' expected, got 'Language_en_US'.
[37505.401] Database::XMLSerializer (XML/Civilization/Traits.xml): 'Row' or 'Delete' expected, got 'TraitType'.
[37505.401] Database::XMLSerializer (XML/Leaders/CIV5Leader_Saddam_Hussein.xml): 'Row' or 'Delete' expected, got 'Leaders'.

which need fixing.

You also need to set "Import into VFS" to true for your graphic files
 
You also have a large number of duplicated TXT_KEY_s and also only appear to have one Unique - the core code expects there to be two and fails if there arn't (at least) two
 
Spoiler :
<Row Tag="TXT_KEY_CITY_NAME_BIBRACTE">
<Text>Baghdad</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_VIENNE">
<Text>Al Kut</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_TOLOSA">
<Text>Al Basrah</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_TOLOSA">
<Text>Karbala</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_TOLOSA">
<Text>Mosul</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_TOLOSA">
<Text>Ar Rutbah</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_TOLOSA">
<Text>Amarah</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_TOLOSA">
<Text>Ar Ramadi</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_TOLOSA">
<Text>An Nasiriyah</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_TOLOSA">
<Text>Kirkuk</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_TOLOSA">
<Text>Samarra
<Row Tag="TXT_KEY_CITY_NAME_TOLOSA">
<Text>Al Sulaymaniyah</Text>
</Row>

<Row Tag="TXT_KEY_CIV_IRAQ_ADJECTIVE">
<Text>Iraqi</Text>
</Row>
<Row Tag="TXT_KEY_CIV_IRAQ_DESC">
<Text>Arab Socialist Iraq</Text>
</Row>
<Row Tag="TXT_KEY_CIV_IRAQ_SHORT_DESC">
<Text>Iraqi</Text>
</Row>
<Row Tag="TXT_KEY_CIV5_IRAQ_HEADING_1">
<Text>History</Text>
</Row>
<Row Tag="TXT_KEY_CIV5_IRAQ_TEXT_1">
<Text>Throughout much of the Cold War, Iraq had been an ally of the Soviet Union, and there was a history of friction between it and the United States. The U.S. was concerned with Iraq's position on Israeli&#8211;Palestinian politics, and its disapproval of the nature of the peace between Israel and Egypt. In 1979, Saddam Hussein took power as Iraqi President after overthrowing his close friend and the leader of his party (Ahmed Hasan Al-Bakr) and disposing his leadership rivals.[NEWLINE][NEWLINE]In 1990, Iraq was faced with economic disaster following the end of the Iran&#8211;Iraq War. Hussein sought to resolve this issue after discovering their neighbour, Kuwait, gained alot of revenues from their oil fields. This in turn resulted in his plan to eradicate Kuwait and In August 1990, Iraq followed this by invading Kuwait. The Iraqi military rapidly occupied the country, and Hussein declared that Kuwait had ceased to exist, becoming Iraq's 19th province. This brought heavy objections from many countries and the United Nations.[NEWLINE][NEWLINE]Hussein, the future of Socialist Iraq rests on your shoulders. You are outnumbered, outgunned and outmaneuvered, the Iraqi army was no match for the advanced weaponry of the coalition forces and the air superiority that the coalition forces provided. But can you resist NATO and the UN's forces? Can you use superior tactics to your advantage?[NEWLINE][NEWLINE]"The great duel, the mother of all battles has begun. The dawn of victory nears as this great showdown begins." - Saddam Hussein</Text>
</Row>
</Language_en_US>


Are you referring to these?
 
Duplicate TXT_KEY_s

(also two <GameData> tags)

[CODE]<GameData>
<GameData>

<Language_en_US>
<Row Tag="TXT_KEY_CITY_NAME_BIBRACTE">
<Text>Baghdad</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_VIENNE">
<Text>Al Kut</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_TOLOSA">
<Text>Al Basrah</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_TOLOSA">
<Text>Karbala</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_TOLOSA">
<Text>Mosul</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_TOLOSA">
<Text>Ar Rutbah</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_TOLOSA">
<Text>Amarah</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_TOLOSA">
<Text>Ar Ramadi</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_TOLOSA">
<Text>An Nasiriyah</Text>
</Row>
[/CODE]

etc

I didn't bother to see if TXT_KEY_CITY_NAME_VIENNE etc are defined by the core game, I just deleted them all to see what else was wrong
 
"Import to VFS" - JFGI - it must be mentioned 100 times by Spatz on these forums
 
Top Bottom