Modding Units

Macmatt

Modder
Joined
Aug 29, 2006
Messages
204
Location
GREAT BRITAIN
I wanted to make a fusion tank following a guide on this forum, but when I loaded my mod and went into the civlopedia, all that came up when I clicked on the entry for 'fusion tank' was a blank page. I modelled the fusion tank on the modern armor, but intended to use the tank model. I eventually made it so the fusion tank replaced the modern armor, and that worked fine. I'm guessing the problem was that unitclassinfos.xml didn't link to unitinfos.xml correctly, but don't know what to do about it.

Thanks to anyone that responds, your help is greatly appreciated by this novice civ4 modder.
 
Macmatt said:
I wanted to make a fusion tank following a guide on this forum, but when I loaded my mod and went into the civlopedia, all that came up when I clicked on the entry for 'fusion tank' was a blank page. I modelled the fusion tank on the modern armor, but intended to use the tank model. I eventually made it so the fusion tank replaced the modern armor, and that worked fine. I'm guessing the problem was that unitclassinfos.xml didn't link to unitinfos.xml correctly, but don't know what to do about it.

Thanks to anyone that responds, your help is greatly appreciated by this novice civ4 modder.

Did you complete the xml edits by adding enteries to the civilopedia in the text folder? Unit edits go into unitinfos, unitclass, and the xml file resposible for displaying text in te civilopedia, the CIV4GameText_Civilopedia_Units.xml for vanilla (better make a new file for the mod and not touch the original game file) and CIV4GameText_Warlords_Civilopedia.xml for warlords.

Finally, the all important cache cleanup and you should be good to go.

Btw, been to the railway station you sig mentions, and yes it is quite a mouthful. And the Ll's are pronounced 'Kl'

Edit: You may be interesting in this
 
Yeah, you should edit the text files aswell, If you want a full update of the unit you'll need to edit UnitInfos, UnitClassInfos, Civilopedia_Units (Or just civilopedia for warlords), GameText_Objects, and GameText_Stratagy.

Then you should have a nice looking unit in your game :D
If there is somthing wrong with your art and the model isn't showing up make sure to check that your .nif file and your .dds file are in the same folder :D

Happy Modding
 
Thanks for your help guys. I'm afraid there's still a problem though.

I tried starting from scratch and got my uniot to appear, but the texture is strange. I've copied and pasted the unpacked art0.fpk units/modernarmor folder and kept the defaults in the CIV4ArtDefines_unit.xml but this texture still appears. I have a screenshot:

unitmodyf0.jpg
 
yeah ok, your going to have to make some new folders.. ok go into your mod directory and then click the assets folder, once inside make a new folder called Art. In the art folder now make another one called Units. Once inside 'Units' make another folder and call it whatever you like, FusionTank Might be the most appropriate.

Ok now once inside that folder you should have your .nif file (The model) and then you should have your .dds file(s) [The Textures]. The reason that red semi-sphere is poping up is because you don't have your files with the appropriate name linked to the Civ4ArtDefines_Unit entry.

Ok, so you should now have your .dds file and your .nif file in your Art/FusionTank folder.

Copy the Civ4ArtDefines_Unit into your mod and then make a new entry for your tank. Linking that entry to your art folder you just created.

Hopefully this should work.
 
Sorry, I still get the semi-sphere. Also, if I try changing the files in my 'fusiontank' folder to those used by the tank and edit the xmls accordingly, I get the same error that I started with: nothing in the civlopedia screen.
 
Ok, well I had that same problem where my model just looked like a red semi-sphere and the problem with my was my folder name was slightly (There was a space in my folder name and in my artdefines_unit there wasn't a space.)

Maybe this is your problem. Just double check you have all the right entries and double check your spelling and all your paths.
 
Back
Top Bottom