[TUT] Adding newly created units to Civ4 in 6 "easy" steps

  • Thread starter Thread starter Rabbit, White
  • Start date Start date
Sorry I didnt mention this in my last reply but I did add the normal xml files first. I just copied the battlecruiser infos so you wouldn't have to go searching through all the files to find them. Im just about out of information at this point but thanks for all your help so far.
 
I guess the problem was the UnitArtStyle since I redid the mod and left that file out. And it worked!:)
Thanks for all your help!:goodjob:

I checked out your Mars mod, looks way cool and I'll probably download it after I blow something somethig up with my battlecruiser.
 
I have a problem/bug when i try to replace a standart-unit with a FfH-Unit in my mod.

I changed the Civ4ArtDefines_Unit.xml and Civ4UnitInfos.xml. Everything should be fine, like a lot of other units i managed to insert into my mod....

BUT in game: The unit has the look of the KFM-ArtDefines_Unit-Entry. Only if a mark the unit and do some action the unit gets the look of the NIF-ArtDefines_Unit-Entry. After marking another unit, the graphic change again back to the look of the KFM-ArtDefines_Unit-Entry?????????

Can someone help me please?
 
@The_J
That it is! Thank you for the promt answer. Sorry fot this simple question. I would never get the solution by my self!
 
Heres a problem I have; I have an A10 and SR71 blackbird custom unit in game I even added custom sounds they all work fine. To test these units I went into worldbuilder. Everything worked great. So then I play a game when it came time to actually build these units; (click on the icon to put them in the build que) my game freezes/ locks up.

Again I tested them in world builder by just adding these units to a city to see if they work and everything is fine but when I click on the icon to put it in build que to actually build the unit my game locks up.

Any help or hints where my problem may be?
 
What's the path for the button of these units?
 
Thanks for the help guys. You got me thinking to look at the button info. Found I had a typo in the XML art defines button info line. Problem solved. thanks for the quick response.
 
Not to sound daft, but these procedures also apply to variable designs (e.g. ethnic diverse designs) for currently existing units too right?
 
Is there a tutorial for that elsewhere, or is the procedure relatively the same?
 
@JaeChunDaeSung: Just look in the CIV4UnitArtStyleTypeInfos.xml (in the Assets/xml/Civilizations folder).

1. See <Type>UNIT_ARTSTYLE_Sung empire</Type>

this leads to the CIV4CivilizationInfos.xml file, there

<UnitArtStyleType>UNIT_ARTSTYLE_Sung empire</UnitArtStyleType>

2. Back to CIV4UnitArtStyleTypeInfos.xml, find <UnitType>UNIT_Sung Raider</UnitType>

leads to the CIV4UnitInfos.xml, find
<Type>UNIT_Sung Raider</Type>
(give him <iCombat>99</iCombat>)

3. Again at CIV4UnitArtStyleTypeInfos.xml, there comes <EarlyArtDefineTag>ART_DEF_UNIT_Sung Raider</EarlyArtDefineTag>

The Art-Definition is in the CIV4ArtDefines_Unit.xml
<Type>ART_DEF_UNIT_Sung Raider</Type>

Mostly important are
<NIF>Art/Units/Sung Raider/xxxxx.nif</NIF>
<KFM>Art/Units/Sung Raider/xxxx.kfm</KFM>
<SHADERNIF>Art/Units/Sung Raider/xxxx_FX.nif</SHADERNIF>

Find the xxxx.nif, xxxx.kfm and xxxx_fx.nif in Assets/art/units/sungraider folder

4. Thats it.
 
I am standing behind closed gates! Here is my problem:

I try the water_lizard-Unit from the Animal_Empire-Mod. But now i see, that the unit jams the Civilopedia and has no InterfaceScale????

...<fInterfaceScale>1.0</fInterfaceScale>...

It must be as simple as my other silly question. Please look at the sreenshots.
 
Ensure the kfm (animation file) is pointing to an existing kfm, and that there is a nif with the same name as the kfm file in the same folder as the kfm.
 
They named different:( But i cant easy rename one of this files, can i?

On the other hand, i see a lot of newly created units, where the names are different!?
 
Back
Top Bottom