MY Add a Civ Tutorial

IamSid

TheTrueIdiot!
Joined
Nov 12, 2005
Messages
439
Well I did manage to get the flag to work well..:mischief:

I think it looks cool.
 

Attachments

  • Civ4ScreenShot0012.JPG
    Civ4ScreenShot0012.JPG
    141.5 KB · Views: 752

JBG

Prince
Joined
Mar 14, 2004
Messages
533
Location
Cambridge, UK
Help!

I have finished a civilisation, and until recently had a series of error messages when I loaded it. I went through and zapped the errors it came up with - and I don't have any more problems with the XML files. It loads them nice and smoothly, the screen goes black for a moment - and the computer says the Civ4 has encountered an unexpected error and has to close..

This had not happened until I fixed the problems in the XML files. HELP!!!!!
 

Cronon

Chieftain
Joined
Jan 18, 2006
Messages
1
Okay, so I created a Civilization and all, and it all looks nice, pictures work, everything is okay, it even has my unique unit in the civilpedia (although my civilization doesn't appear but I didn't see anything in this that mentioned civilpedia civilization stuff, so I'm going to leave it be).

The Problem!

I choose my Civ to play, start the map, it loads, finishes loading, but before the little "Play Game" button shows up, the game crashes. I cannot for the life of me figure out the problem, but its probably something dumb in my code.

Any ideas?

EDIT!!!

I fixed it! It turned out that my really really early coding wasn't the same as my later coding with one thing. Stupid me. Blah. But YAY!
 

KingCruz

The People are the Heros
Joined
Dec 17, 2005
Messages
149
We all seem to have a pattern of problems.
I managed to have just 1 error, and it was that line 1 was faulty in the GametextInfos_yourciv.xml (as explained earlier)
Theres also an error reading a file ingame...
Something about WordBuild.sav file not being read, but this happened the second time I attempted to launch my mod. However ever since I've been trying to launch my mod i get the same crash and error message.

It seems that when I put custom input in the GametextInfo_yourciv.xml file it gives me the same error.
Invalid input at line 1,1 when I didn't even touch it.

I checked everything else, my input for the country is the same in everyone.

What else could be wrong??? :cry:
 

termitehead

Chieftain
Joined
Jan 16, 2006
Messages
3
Cronon: I had this problem as well and it turned out to be a problem with the CIV4ArtDefines_Civilization.xml. If you have a reference to an arttype in CIV4CivilizationInfos.xml (it will look like <ArtDefineTag>ART_DEF_CIVILIZATION_YOURCIV</ArtDefineTag>) you need to have this defined in the ArtDefines xml file. Otherwise your game WILL crash. Also, when you define the art like so:

<CivilizationArtInfo>
<Type>ART_DEF_CIVILIZATION_YOURCIV</Type>
<Button>,Art/Interface/Buttons/Civilizations/yourciv.dds,Art/Interface/Buttons/Civics_Civilizations_Religions_Atlas.dds,1,5</Button>
<Path>Art/Interface/TeamColor/FlagDECAL_Star.dds</Path>
<bWhiteFlag>0</bWhiteFlag>
</CivilizationArtInfo>

make sure the dds file is located in your mod/assets/art/interface/buttons/civilizations/ folder.

hope this helps!
 

KingCruz

The People are the Heros
Joined
Dec 17, 2005
Messages
149
I got everything (except the flags it comes out as just green and black) to work.
But I wanted something extra...
How do you use custom music in diplo or city closeups? I think I found a source in Audio2Dscripts
<Script2DSound>
<ScriptID>AS2D_DIPLO_WASHINGTON_EARLY_INTRO</ScriptID>
<SoundID>DIPLO_WASHINGTON_EARLY_INTRO</SoundID>
<SoundType>GAME_MUSIC</SoundType>
<iMinVolume>75</iMinVolume>
<iMaxVolume>75</iMaxVolume>
<iPitchChangeDown>0</iPitchChangeDown>
<iPitchChangeUp>0</iPitchChangeUp>
<iMinLeftPan>-1</iMinLeftPan>
<iMaxLeftPan>-1</iMaxLeftPan>
<iMinRightPan>-1</iMinRightPan>
<iMaxRightPan>-1</iMaxRightPan>
<bLooping>0</bLooping>
<iMinTimeDelay>0</iMinTimeDelay>
<iMaxTimeDelay>0</iMaxTimeDelay>
<bTaperForSoundtracks>0</bTaperForSoundtracks>
<iLengthOfSound>0</iLengthOfSound>
<fMinDryLevel>1.0</fMinDryLevel>
<fMaxDryLevel>1.0</fMaxDryLevel>
<fMinWetLevel>0.0</fMinWetLevel>
<fMaxWetLevel>0.0</fMaxWetLevel>
</Script2DSound>

Does anyone have any ideas?
 

BoboftheDead

Chieftain
Joined
Jan 23, 2006
Messages
2
Location
East Sussex, England
EDIT: Just realised I posted the original message in the wrong thread.

Good work on this tutorial! I've been trying to follow it myself, without much success to be honest but nevermind :).
 

dantedelacroix2

Chieftain
Joined
Jan 28, 2006
Messages
1
Location
London England
Can someone please help, i followed the tutorial and my custom unit/leader appears in the game but i can't see my civ anywhere?
I went over the tutorial again and couldn't see any mistakes, anyone experience a problem like this?

edit:fixed it. i put my civ after the </civilizationinfos>. sometimes i can be so stupid
 
Joined
Jun 22, 2005
Messages
774
Thanks for this guide, it is really helpful. However, the XML files we were told to download (esp. the gametext.xml) were corrupted somehow and caused me much aggravation as I got the common "Line 1, 1" Error as many people did here even though I did touch Line 1. I would politely suggest you remove those XML files as I'm pretty sure it will only cause further frustration from players less patient than I! I think the best bet is to tell hopeful modders just to copy-paste everything from the original gametext files or from a mod you know is working.

Just my two cents. Besides that, very helpful mod!
 

mrmarquez

Chieftain
Joined
Jan 23, 2006
Messages
2
Very good tutorial,thanks.

I have three problems with this.

#1 = I made Singapore and made the art style thingy JAPAN.I'm concerned about my decision because it makes the leaderhead Tokugawa's 3D Animation instead of my leader.

#2 = My flag seems as the Japan flag too.:(

#3 = My civ,my leader all seems like TXT_CIV_LEADER_SELLAPAN etc. That's serious man!All my damn cities,leader name and Civ name is like this!
 

G-Unit

Chieftain
Joined
Mar 11, 2006
Messages
42
i start the game, load the mod, and my civ aint there:confused:
help plz
 

KingCruz

The People are the Heros
Joined
Dec 17, 2005
Messages
149
Erm it would help if you described more in detail about what happened
 

G-Unit

Chieftain
Joined
Mar 11, 2006
Messages
42
nvm i got i working, but when i go to Civlopedia to check out my civ, it aint there. everything else works fine. more detail- i click on Civilizations and my civ aint there.
 

G-Unit

Chieftain
Joined
Mar 11, 2006
Messages
42
another problem. lol
went to play it and all of a sudden before game start i get this error message so i cant play :(
checked without mod and it works fine
 

G-Unit

Chieftain
Joined
Mar 11, 2006
Messages
42
gonna have link to MOD hopefully soon.
check back to error correct it.
 

G-Unit

Chieftain
Joined
Mar 11, 2006
Messages
42
link in my sig for MOD
tell me if there anything i can do to fix stupid error.
G-Unit said:
another problem. lol
went to play it and all of a sudden before game start i get this error message so i cant play :(
checked without mod and it works fine
 

G-Unit

Chieftain
Joined
Mar 11, 2006
Messages
42
the error all of a sudden changed.
now instead of an error popping up, the game just exits automatically.


P.S. sorry if it seems like ive been postin a lot lately
 

frenchman

Present is past of future
Joined
Aug 15, 2003
Messages
1,039
Charcoal said:
So, you want to add a Civilisation to the hugely popular game Civilization IV?
..

:goodjob: :thanx: for this tutorial it will help me a lot...
 

G-Unit

Chieftain
Joined
Mar 11, 2006
Messages
42
G-Unit said:
the error all of a sudden changed.
now instead of an error popping up, the game just exits automatically.


P.S. sorry if it seems like ive been postin a lot lately
nvm. got it to work. check out my sig. for link.
 
Top Bottom