Issues Adding Civilization

Maddox911

Chieftain
Joined
Oct 4, 2010
Messages
13
Hello,
Im relatively new to modding and civ overall and I found about this site just recently.
I am currently trying to add some civilizations into the game, for personal enjoyment mostly, if it ends up being decent I might release it to public.
However I came across few issues and kinda got stuck :confused: I have been following Kaels guide, done everything as I was supposed to (I think :P), but when I try to test the mod the civ isnt in the selection screen at all.
Just to figure out whether I have done mistake in the XML files I tried to copy paste the stuff from the default Celt Civ in the guide and it didnt work either for some reason.

There are no errors in the log files and Im pretty sure no spelling errors either, I think the OnModActivates are set properly too.

Here is the Civ and Leader XML file, if someone could take the time to go through it and try to find some errors I would really appreciate it ;)
Spoiler :
CIV_Mongol.xml

<GameData>
<Civilizations>
<Row>
<Type>CIVILIZATION_MONGOL</Type>
<Description>TXT_KEY_CIV_MONGOL_DESC</Description>
<ShortDescription>TXT_KEY_CIV_MONGOL_SHORT_DESC</ShortDescription>
<Adjective>TXT_KEY_CIV_MONGOL_ADJECTIVE</Adjective>
<Civilopedia>TXT_KEY_CIV_MONGOL_PEDIA</Civilopedia>
<CivilopediaTag>TXT_KEY_CIV5_MONGOL</CivilopediaTag>
<DefaultPlayerColor>PLAYERCOLOR_BLACK</DefaultPlayerColor>
<ArtDefineTag>ART_DEF_CIVILIZATION_JAPAN</ArtDefineTag>
<ArtStyleType>ARTSTYLE_ASIAN</ArtStyleType>
<ArtStyleSuffix>_ASIA</ArtStyleSuffix>
<ArtStylePrefix>ASIAN </ArtStylePrefix>
<PortraitIndex>1</PortraitIndex>
<IconAtlas>CIV_COLOR_ATLAS</IconAtlas>
<AlphaIconAtlas>CIV_ALPHA_ATLAS_LEGENDS</AlphaIconAtlas>
<MapImage>MapJapan512.dds</MapImage>
<DawnOfManQuote>TXT_KEY_CIV5_MONGOL_TEXT_2</DawnOfManQuote>
<DawnOfManImage>MongolsDOM.dds</DawnOfManImage>
</Row>
</Civilizations>
<Civilization_CityNames>
<Civilization_CityNames>
<Row>
<CivilizationType>CIVILIZATION_MONGOL</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_ULANBATOR</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_MONGOL</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_ERDENET</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_MONGOL</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_DARKHAN</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_MONGOL</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_CHOIBALSAN</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_MONGOL</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_MORON</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_MONGOL</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_NALAIKH</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_MONGOL</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_KHOVD</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_MONGOL</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_OLGII</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_MONGOL</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_BAYANKHONGOR</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_MONGOL</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_BAGANUUR</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_MONGOL</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_ARVAIKHEER</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_MONGOL</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_ULAANGOM</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_MONGOL</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_SUKHBAATAR</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_MONGOL</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_DALANZADGAD</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_MONGOL</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_TSETSERLEG</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_MONGOL</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_ULIASTAI</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_MONGOL</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_ALTAI</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_MONGOL</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_ZUUNKHARAA</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_MONGOL</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_ONDORKHAAN</CityName>
</Row>
</Civilization_CityNames>
</Civilization_CityNames>
<Civilization_FreeBuildingClasses>
<Row>
<CivilizationType>CIVILIZATION_MONGOL</CivilizationType>
<BuildingClassType>BUILDINGCLASS_PALACE</BuildingClassType>
</Row>
</Civilization_FreeBuildingClasses>
<Civilization_FreeTechs>
<Row>
<CivilizationType>CIVILIZATION_MONGOL</CivilizationType>
<TechType>TECH_AGRICULTURE</TechType>
</Row>
</Civilization_FreeTechs>
<Civilization_FreeUnits>
<Row>
<CivilizationType>CIVILIZATION_MONGOL</CivilizationType>
<UnitClassType>UNITCLASS_SETTLER</UnitClassType>
<Count>1</Count>
<UnitAIType>UNITAI_SETTLE</UnitAIType>
</Row>
</Civilization_FreeUnits>
<Civilization_Leaders>
<Row>
<CivilizationType>CIVILIZATION_MONGOL</CivilizationType>
<LeaderheadType>LEADER_GENGHISKHAN</LeaderheadType>
</Row>
</Civilization_Leaders>
<Civilization_Start_Region_Priority>
<Row>
<CivilizationType>CIVILIZATION_MONGOL</CivilizationType>
<RegionType>REGION_GRASS</RegionType>
</Row>
</Civilization_Start_Region_Priority>
</GameData>

Leader_GenghisKhan.xml

<GameData>
<Leaders>
<Row>
<Type>LEADER_GENGHISKHAN</Type>
<Description>TXT_KEY_LEADER_GENGHISKHAN</Description>
<Civilopedia>TXT_KEY_LEADER_GENGHISKHAN_PEDIA</Civilopedia>
<CivilopediaTag>TXT_KEY_CIVILOPEDIA_LEADERS_GENGHI SKHAN</CivilopediaTag>
<ArtDefineTag>OdaNobunaga_Scene.xml</ArtDefineTag>
<VictoryCompetitiveness>9</VictoryCompetitiveness>
<WonderCompetitiveness>5</WonderCompetitiveness>
<MinorCivCompetitiveness>3</MinorCivCompetitiveness>
<Boldness>10</Boldness>
<DiploBalance>3</DiploBalance>
<WarmongerHate>2</WarmongerHate>
<WorkAgainstWillingness>4</WorkAgainstWillingness>
<WorkWithWillingness>4</WorkWithWillingness>
<PortraitIndex>6</PortraitIndex>
<IconAtlas>LEADER_ATLAS</IconAtlas>
</Row>
</Leaders>
<Leader_MajorCivApproachBiases>
<Row>
<LeaderType>LEADER_GENGHISKHAN</LeaderType>
<MajorCivApproachType>MAJOR_CIV_APPROACH_WAR</MajorCivApproachType>
<Bias>9</Bias>
</Row>
<Row>
<LeaderType>LEADER_GENGHISKHAN</LeaderType>
<MajorCivApproachType>MAJOR_CIV_APPROACH_HOSTILE </MajorCivApproachType>
<Bias>9</Bias>
</Row>
<Row>
<LeaderType>LEADER_GENGHISKHAN</LeaderType>
<MajorCivApproachType>MAJOR_CIV_APPROACH_DECEPTIVE </MajorCivApproachType>
<Bias>5</Bias>
</Row>
<Row>
<LeaderType>LEADER_GENGHISKHAN</LeaderType>
<MajorCivApproachType>MAJOR_CIV_APPROACH_GUARDED </MajorCivApproachType>
<Bias>5</Bias>
</Row>
<Row>
<LeaderType>LEADER_GENGHISKHAN</LeaderType>
<MajorCivApproachType>MAJOR_CIV_APPROACH_AFRAID</MajorCivApproachType>
<Bias>2</Bias>
</Row>
<Row>
<LeaderType>LEADER_GENGHISKHAN</LeaderType>
<MajorCivApproachType>MAJOR_CIV_APPROACH_FRIENDL Y</MajorCivApproachType>
<Bias>3</Bias>
</Row>
<Row>
<LeaderType>LEADER_GENGHISKHAN</LeaderType>
<MajorCivApproachType>MAJOR_CIV_APPROACH_NEUTRAL </MajorCivApproachType>
<Bias>4</Bias>
</Row>
</Leader_MajorCivApproachBiases>
<Leader_MinorCivApproachBiases>
<Row>
<LeaderType>LEADER_GENGHISKHAN</LeaderType>
<MinorCivApproachType>MINOR_CIV_APPROACH_IGNORE</MinorCivApproachType>
<Bias>3</Bias>
</Row>
<Row>
<LeaderType>LEADER_GENGHISKHAN</LeaderType>
<MinorCivApproachType>MINOR_CIV_APPROACH_FRIENDL Y</MinorCivApproachType>
<Bias>3</Bias>
</Row>
<Row>
<LeaderType>LEADER_GENGHISKHAN</LeaderType>
<MinorCivApproachType>MINOR_CIV_APPROACH_PROTECTIV E</MinorCivApproachType>
<Bias>3</Bias>
</Row>
<Row>
<LeaderType>LEADER_GENGHISKHAN</LeaderType>
<MinorCivApproachType>MINOR_CIV_APPROACH_CONQUES T</MinorCivApproachType>
<Bias>9</Bias>
</Row>
</Leader_MinorCivApproachBiases>
<Leader_Flavors>
<Row>
<LeaderType>LEADER_GENGHISKHAN</LeaderType>
<FlavorType>FLAVOR_OFFENSE</FlavorType>
<Flavor>9</Flavor>
</Row>
<Row>
<LeaderType>LEADER_GENGHISKHAN</LeaderType>
<FlavorType>FLAVOR_DEFENSE</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<LeaderType>LEADER_GENGHISKHAN</LeaderType>
<FlavorType>FLAVOR_CITY_DEFENSE</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<LeaderType>LEADER_GENGHISKHAN</LeaderType>
<FlavorType>FLAVOR_MILITARY_TRAINING</FlavorType>
<Flavor>7</Flavor>
</Row>
<Row>
<LeaderType>LEADER_GENGHISKHAN</LeaderType>
<FlavorType>FLAVOR_RECON</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<LeaderType>LEADER_GENGHISKHAN</LeaderType>
<FlavorType>FLAVOR_RANGED</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<LeaderType>LEADER_GENGHISKHAN</LeaderType>
<FlavorType>FLAVOR_MOBILE</FlavorType>
<Flavor>8</Flavor>
</Row>
<Row>
<LeaderType>LEADER_GENGHISKHAN</LeaderType>
<FlavorType>FLAVOR_NAVAL</FlavorType>
<Flavor>4</Flavor>
</Row>
<Row>
<LeaderType>LEADER_GENGHISKHAN</LeaderType>
<FlavorType>FLAVOR_NAVAL_RECON</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<LeaderType>LEADER_GENGHISKHAN</LeaderType>
<FlavorType>FLAVOR_NAVAL_GROWTH</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<LeaderType>LEADER_GENGHISKHAN</LeaderType>
<FlavorType>FLAVOR_NAVAL_TILE_IMPROVEMENT</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<LeaderType>LEADER_GENGHISKHAN</LeaderType>
<FlavorType>FLAVOR_AIR</FlavorType>
<Flavor>4</Flavor>
</Row>
<Row>
<LeaderType>LEADER_GENGHISKHAN</LeaderType>
<FlavorType>FLAVOR_EXPANSION</FlavorType>
<Flavor>4</Flavor>
</Row>
<Row>
<LeaderType>LEADER_GENGHISKHAN</LeaderType>
<FlavorType>FLAVOR_GROWTH</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<LeaderType>LEADER_GENGHISKHAN</LeaderType>
<FlavorType>FLAVOR_TILE_IMPROVEMENT</FlavorType>
<Flavor>4</Flavor>
</Row>
<Row>
<LeaderType>LEADER_GENGHISKHAN</LeaderType>
<FlavorType>FLAVOR_INFRASTRUCTURE</FlavorType>
<Flavor>4</Flavor>
</Row>
<Row>
<LeaderType>LEADER_GENGHISKHAN</LeaderType>
<FlavorType>FLAVOR_PRODUCTION</FlavorType>
<Flavor>7</Flavor>
</Row>
<Row>
<LeaderType>LEADER_GENGHISKHAN</LeaderType>
<FlavorType>FLAVOR_GOLD</FlavorType>
<Flavor>6</Flavor>
</Row>
<Row>
<LeaderType>LEADER_GENGHISKHAN</LeaderType>
<FlavorType>FLAVOR_SCIENCE</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<LeaderType>LEADER_GENGHISKHAN</LeaderType>
<FlavorType>FLAVOR_CULTURE</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<LeaderType>LEADER_GENGHISKHAN</LeaderType>
<FlavorType>FLAVOR_HAPPINESS</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<LeaderType>LEADER_GENGHISKHAN</LeaderType>
<FlavorType>FLAVOR_GREAT_PEOPLE</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<LeaderType>LEADER_GENGHISKHAN</LeaderType>
<FlavorType>FLAVOR_WONDER</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<LeaderType>LEADER_GENGHISKHAN</LeaderType>
<FlavorType>FLAVOR_RELIGION</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<LeaderType>LEADER_GENGHISKHAN</LeaderType>
<FlavorType>FLAVOR_DIPLOMACY</FlavorType>
<Flavor>4</Flavor>
</Row>
<Row>
<LeaderType>LEADER_GENGHISKHAN</LeaderType>
<FlavorType>FLAVOR_SPACESHIP</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<LeaderType>LEADER_GENGHISKHAN</LeaderType>
<FlavorType>FLAVOR_WATER_CONNECTION</FlavorType>
<Flavor>5</Flavor>
</Row>
</Leader_Flavors>
<Leader_Traits>
<Row>
<LeaderType>LEADER_GENGHISKHAN</LeaderType>
<TraitType>TRAIT_FIGHT_WELL_DAMAGED</TraitType>
</Row>
</Leader_Traits>
</GameData>


And if someone can be bothered and try to go through the whole mod I uploaded it to anyhub - http://anyhub.net/file/4civilizations.rar

There isnt much to see other than few XML files and some icons, I plan to add 4 civilizations so there are currently some empty folders and files, however that shouldnt be causing the error as far as Im concerned as I had the issue before even creating those.

Thank you for any help or even for looking into it.
Also try to ignore the typos, English isnt my native language :blush:
 
bump,
I know alot of you probably have better things to do but this is starting to feel like banging my head into the wall :(. Went through the mod like milion times, even redid the whole thing following the tutorial but the damn thing just doesnt seem to work.
 
I am having similar problems and am very frustrated.

I wish there was a positive control mod we could make. A mod that is literally like 6-8 lines long, and then filled with the process of building the mod, etc... and seeing that it does indeed work.
:(
 
Hi Maddox911, like yourself I like modding little things for myself too.

I have also gone through that same guide to add in a new civ for myself, and I noticed that the new civ can disappear from the selection screen seemingly at random. When I was first trying this, the civ was indeed on the screen, and I started a new game with it to see how things were working in-game. I exited back out, had another quick look around at the xml files and without changing a thing I loaded Civ5 again, and the civilization was missing!

I was very frustrated and tried removing the other civs from the game to see if that fixed the issue (it didn't). I ended up re-creating the mod from scratch, only to have the same thing happen again. I did realise in the end though, that I could still select and play the civ from inside the advanced setup.

No idea why it vanishes from the standard game selection screen - I suggest you have a look in the advanced setup too and see if this is the case for you also. Hopefully someone can point out to us why this is happening...?
 
Sooo......I solved my own issue, stupid typo on my part, OnModActivate(Does not work).......Instead of.....OnModActivated(Works).

Ya may want to check over your Actions too...just incase like.

Downloaded your mod...from the link, its got some errors in it:-

! D:\BC Download\4civilizations.rar: Cannot create folder 4Civilizations\4Civilizations\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua
! The system cannot find the path specified.
! D:\BC Download\4civilizations.rar: Cannot create folder 4Civilizations\4Civilizations\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua
! The filename or extension is too long.
! D:\BC Download\4civilizations.rar: Cannot create folder 4Civilizations\4Civilizations\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua
! The filename or extension is too long.
! D:\BC Download\4civilizations.rar: Cannot create folder 4Civilizations\4Civilizations\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua\Lua
! The filename or extension is too long.

From what I can see in your actions....this is wrong:-

UpdateData....Should be UpdateDatabase.
 
Nope, the civ doesnt show in advanced settings either. Its just like the game wasnt reading the mod at all. When I activate it I can notice the longer loading time when trying to set up game so the game is obviously chewing through something. But it just has no effect :/
Sooo......I solved my own issue, stupid typo on my part, OnModActivate(Does not work).......Instead of.....OnModActivated(Works).

Ya may want to check over your Actions too...just incase like.

Downloaded your mod...from the link, its got some errors in it:-



From what I can see in your actions....this is wrong:-

UpdateData....Should be UpdateDatabase.

Thanks for taking look at the project, I think something must have gone horribly wrong when I was packing it as i never had that error with the lua folders. But since they are empty that shouldnt matter at the moment.
As for the UpdateData, I have no idea how did I miss that. However fixing that didnt help :O
I dont have the typo in the second attempt that on the civ I have tried to create over night so I think the error must be somewhere else:cry:

Edit: For some really strange reason the one that I have created over night now seems to work even tho I didnt make any changes to it.
Might have something to do with this ?
I have also gone through that same guide to add in a new civ for myself, and I noticed that the new civ can disappear from the selection screen seemingly at random. When I was first trying this, the civ was indeed on the screen, and I started a new game with it to see how things were working in-game. I exited back out, had another quick look around at the xml files and without changing a thing I loaded Civ5 again, and the civilization was missing!
 
Is the latest version uploaded? (And under what file name?). By the way.. why do you have Civilization_CityNames listed twice?
 
Nope, not yet. Its hardly complete as I was stuck trying to figure out where the issue is instead of adding new stuff. Now that It finaly works, altho I have a feeling it wont work for long :P I can get to working on some stuff and will upload it for testing when its somewhat done ;)
 
I'm confused. How did you solve your problem?
I am kinda confused too, I was reworking the whole thing over night at 5 am, and when I finaly got it done It didnt seem to work. Hovewer when I tried this afternoon as mentioned above -
For some really strange reason the one that I have created over night now seems to work even tho I didnt make any changes to it.
Might have something to do with this ? -
I have also gone through that same guide to add in a new civ for myself, and I noticed that the new civ can disappear from the selection screen seemingly at random. When I was first trying this, the civ was indeed on the screen, and I started a new game with it to see how things were working in-game. I exited back out, had another quick look around at the xml files and without changing a thing I loaded Civ5 again, and the civilization was missing!

Either that or I was really tired and didnt manage to run the mod because of that. But basicaly I scrapped everything and started again :P
I could post the reworked project if anyone is interested in finding the issue, but Id bet it probably has something to do with my idiocy and it was just some typo or something messed up with the Activates as Horem pointed out:crazyeye: Anyway, Id like to thank again to everyone who spent their time trying to figure it out ;)
 
I had a similar problem for a while. It was all a matter of finding that one little typo where the XML tags didn't sync. <Buildingss> doesn't match </Buildings>, who knew? ;-)
 
Yeah I had problems getting it to appear in game myself (it seems everyone who is having problems is trying to make the Mongol civ lol).

For me it was messing around with the Actions. They were written correctly (I believe), but I reentered them a few times and then it worked. My guess was that it was a file path mistake or something.
 
Back
Top Bottom