How do I add a new unit?

Modeltrainman

Warlord
Joined
Feb 18, 2008
Messages
189
I read the tutorial, and understand XML somewhat, but I don't even know what files I'd need, it's a locomotive from Railroads!, I have that game too, so the files are mine. Please help, is what I'm trying to do even possible?
 
OK do this:

1. Add the art (nifs, dds etc) in assets\art\units

2. Add a button in assets\art\interface\buttons\units

3. Add text-tags in i.e. Civ4GameText.xml for:
TXT_KEY_UNIT_MYLOCO
TXT_KEY_UNIT_MYLOCO_STRATEGY
TXT_KEY_UNIT_MYLOCO_PEDIA

4. Add the art-tag in CIV4ArtDefines_Unit.xml i.e. ART_DEF_UNIT_MYLOCO
Point your art to the files in 1 and 2

5. Add the unit-tag in CIV4UnitClassInfos.xml i.e. UNITCLASS_MYLOCO

6. Add the unit-tag in CIV4UnitInfos.xml i.e. UNITCLASS_MYLOCO

Restart your mod and the unit should be there.
 
I did all that and it doesn't show up or throw out an error. What am(or could I) be doing wrong?
 

Attachments

Still no progress. I guess it can't be done. I thought it would be easy, because Civ4 and Railroads! share the same engine.(I imagine.)
 
Thank you anyway, it is from Firaxis.
 
The only .nif file there is 4_4_0_american_dummies.nif. I guess it can't be done.
 
I tried it with the Consoloidation, no luck there either. Do Railroads! and Civ4 even share the same engine?
 
Back
Top Bottom