GUIDE: Adding new units

well it has helped so far
 
Hey guys!

First i wanna say that great guide. :) I was able to put Terry to game, but only think i cant do is how can i write in to civilopedia?

copy and edit these files:

(remember to edit the copies not originals... just in case you make a mistake)

CIV4GameText_Civilopedia_CivLeaders.xml file = Civ and Leaders info

CIV4GameText_Civilopedia_BuildingsProjects.xml file = building info

CIV4GameText_Civilopedia_Units.xml file = units

CIV4GameText_Civilopedia_Techs.xml file = tech info

however the text file is unique where the info can be placed in any file within that folder and be used

for example if you didnt want to edit all those files you can make a new one using this template:

http://vic.australis.com.au/charcoal/newciv.zip

all you have to do is make sure you use the correct tagline info

and then put this xml file in its' respective mod or customassets folder (path being the text folder)

Note: this template only has one civ format... but if you copy and paste it again (in the same file) you can enter in numerous civs in this one file


REMEMBER: This only works in the TEXT folder and files... you CANNOT DO THIS in the other xml files (like the civ4buildingsinfos.xml) because the game reads the text folder without any preference as long as the text tagline names match their respective info


Use this tutorial for better info:

http://forums.civfanatics.com/showthread.php?t=148507

hope that helps ;)
 
well i got everything running except my skin dosent work. when i staart the mod, it says an error "sibling not found" and the unit has the same name and such. baiscially a duplicate.
 
well i got everything running except my skin dosent work. when i staart the mod, it says an error "sibling not found" and the unit has the same name and such. baiscially a duplicate.

I have no idea what that error message means

did you place the art files in the correct folder (Remember you may have to make new folders to match the default folders
 
Well i had to make it a mod because the ...Documents and Settings/ application data/firaxis games/civ4/customassets wasent there
 
Man!!!! This is so frustrating! everybody but me gets this to work!!!!!:cry: :cry: :cry: :cry: :cry:
 
Well i had to make it a mod because the ...Documents and Settings/ application data/firaxis games/civ4/customassets wasent there

well there should be a shortcut called '_Civ4CustomAssets' in your main civ4 folder if you need to find the customassets folder (shortcut is named differently than the actual folder) and that should give you the correct path of the folder

as for the mod.. you need to create a mod folder and put that in the Mods folder

for example if you name the mod ' ckmcruel'

then your path should look like this:

C:\civ4\Mods\ckmcruel folder (Creating a new folder called 'mkmcruel')

then you put all your item within the ckmcruel folder...

for example:
if you need to change the CIV4UnitInfos.xml file.. you need to put this edited file in this path:

C:\civ4\Mods\ckmcruel\Assets\XML\units Folder

(creating new folders as necessary)

this goes the same with other files, just make sure the path is correct and the files are named correctly

remember to load up the mod to get it to work

if your skins arent working... then the files are problably in the wrong folder... use the art folders you unpacked as reference to the correct path

also make sure the xml art files (taglines) point to the correct file and correct path


what unit are you changing with the skin?

where are you putting this unit art files? (path/folder)

what are the exact names of each art file?

more likely or than not, you either:

1) put the files in the wrong folder

2) renamed the art files incorrectly

3) syntax in the xml files may be wrong

4) used the wrong skins for the wrong unit

5) didnt use the correct animations for the skin

6) combo of all of the above

remember certain skins use different animations (usually the modder tells you this)

please explain in detail what you changed/edited/modded so I can help you better....
 
i unpacked it into the main customassets folder because there was no other. i made my own skin, made sure all file names, animations were correct, chected the XML files for errors, made sure i had the right skin,
 
but first, i unpacked the Art0.fpk folder to the Main coutomassets folder because there was nowhere else to putit. then i made a duplicate of the warrior folder and renamed it warrior_ii. then i unpacked the .dds file and edited it up, that worked, i checked with one of my programs, then i added the XMLfiles listed in the guid to the mod, (did i mention i put the whole art0 folder in as the mod?) edited them and checked them for errors, then i did the thimg with the button. does thr guid say to creat a new (terry).dds folder or copy over the existing one warrior_128.dds? if that, what do i put on it? aug!!!! i am just so frustrated!!!!!!
 
but first, i unpacked the Art0.fpk folder to the Main coutomassets folder because there was nowhere else to putit. then i made a duplicate of the warrior folder and renamed it warrior_ii. then i unpacked the .dds file and edited it up, that worked, i checked with one of my programs, then i added the XMLfiles listed in the guid to the mod, (did i mention i put the whole art0 folder in as the mod?) edited them and checked them for errors, then i did the thimg with the button. does thr guid say to creat a new (terry).dds folder or copy over the existing one warrior_128.dds? if that, what do i put on it? aug!!!! i am just so frustrated!!!!!!

um I say this again:

DO NOT UNPACK THE ART FILES INTO YOUR CIV4 FOLDERS (NOT THE CUSTOMASSETS/MODS/ANYTHING!!!!!!!!!

MAKE A NEW FOLDER THAT IS SEPARATE FROM YOUR CIV4 FOLDERS AND USE THEM AS A REFERENCE!

sorry but I said that repeatedly but you didnt listen....


ONLY put the modified/edited art files in the correct folders either in your mod or your custom assets folders

(PLEASE read my previous posts for details on how to do that correctly)

but first, i unpacked the Art0.fpk folder....

NOTE: I think you are using the wrong the patched version since the art files should be called:
Assets0.fpk
Assets1.fpk
Assets2.fpk
Assets3.fpk



...edited them and checked them for errors, then i did the thimg with the button. does thr guid say to creat a new (terry).dds folder or copy over the existing one warrior_128.dds?


YES AS I SAID BEFORE YOU NEED TO MAKE NEW FOLDERS TO MATCH THE ONCE THE ORIGINALS ARE IN (As I posted before)

... does thr guid say to creat a new (terry).dds folder or copy over the existing one warrior_128.dds? if that, what do i put on it? aug!!!! i am just so frustrated!!!!!!

YOU ARE REPLACING THE FILES SO TECHNICALLY YOU ARE COPYING OVER THE FILES

(AS I SAID BEFORE)

when you run CIV4 game it AUTOMATICALLY UNPACKS THOSE FILES
THE ORDER OF IMPORTANCE IS THIS:

1) Custom Assets
2) Mod Files
3) Default/original Files

THEREFORE if you dont put anything in #1 or #2 (of above) it will use the default files

IF you put anything in #1 or #2 then #1 files will get used and after that #2 files will get used (if it is the same file edited in #1 or #2.... #1 gets preference)


SO YOU DONT HAVE TO ADD ALL THE UNPACKED FILES INTO THE CUSTOM ASSETS OR MOD FOLDERS.... ONLY THE ONES YOU ARE CHANGING!!!!!


YOU MUST FOLLOW THE PATH OF FOLDERS IN ORDER FOR THE GAME TO FIND THE CORRECT MOD/EDIT FILES

(As I posted before)


I am sorry for posting like this but HOPEFULLY you will actually read my answers and the previous posts... for your answers because I have ALREADY answered most questions IN PREVIOUS Posts...


I am tired of repeating myself... when the answers are already there....



I think you are putting the art files in the wrong path folder

I can explain how to make your xml files point to new art files like your "warrior_ii", but since the other tutorials (I linked to previously) explain it better... and you are not quite grasping the art files and mod/custom assets replacement and editing.. I do not want to confuse you more about XML modding....


PLEASE PLEASE PLEASE make sure you put those edited art files you made in the correct folder path....

AGAIN to find out the folder path.... When you unpack the art files (IN A DIFFERENT FOLDER than your CIV4 directory...possibly CREATING A NEW FOLDER FOR IT).... find your original file... and follow the path of folders in to where that file is found.... then in your mod or your custom assets folders.... create (or if it exists already) folders to MATCH that folder path....


I dont know how clearer can I explain that....


if that is not the problem... then either your files are bad, some xml file tagline is not pointing to the right art file, or you didnt load up the correct mod (if you put it in a mod folder - again see previous posts on how to do it)

check also to make sure you are using the correct patch version

ALSO this is not for Warlords... but I think art files should not be affected (but XML files will be different where there are more taglines added)

is this art skin a new Unique Unit for a civ? then XML changes need to be done also...


if it still doesnt work.... explain IN DETAIL what you did and what exactly is not working........
 
I got weird bug, some of units what i added works fine when i put them from world builder but when i try to built them in city my game crash. Anyidea why?

if you made a new button or it replaces a original button...

usually in the CIV4UnitInfos.xml file

you see this:

Code:
<Button>,Art/Interface/Buttons/Units/Warrior.dds,Art/Interface/Buttons/Unit_Resource_Atlas.dds,2,1</Button>

if you made a custom button (.dds file) it should look something like this:

Code:
<Button>Art/Interface/Buttons/Units/Warrior.dds</Button>

notice the commas and second part (resources) are deleted

this can work for custom button just change the Warrior.dds to whatever you named your custom button too (also put that custom button file in the correct path)


check all your units buttons you changed/added and make sure they follow this example

also custom buttons must be 64x64 in size or it will crash too

hope that helps ;)
 
Hehe i just solved the problem, omg, the problem was:

This is with problem:
<Button>,Art/Interface/Buttons/Units/HeavyArtillery.dds</Button>


This is working one:
<Button>Art/Interface/Buttons/Units/HeavyArtillery.dds</Button>


As you can see i just deleted ,

And i try to solve this more than 2 hours :)


PS. Thanks for help Officer Reene!

By the way Officer Reene, you seem to know lot of modding civ, have you got anyidea how to change that starting screen in civ, background of it. I would like to put my own picture there for my mod.
http://img338.imageshack.us/my.php?image=civ4screenshot0004ee4.jpg
 
Hehe i just solved the problem, omg, the problem was:

This is with problem:
<Button>,Art/Interface/Buttons/Units/HeavyArtillery.dds</Button>


This is working one:
<Button>Art/Interface/Buttons/Units/HeavyArtillery.dds</Button>


As you can see i just deleted ,

And i try to solve this more than 2 hours :)


PS. Thanks for help Officer Reene!

hehehe didnt I just say that is the last post :p

your welcome ;)

By the way Officer Reene, you seem to know lot of modding civ, have you got anyidea how to change that starting screen in civ, background of it. I would like to put my own picture there for my mod.
http://img338.imageshack.us/my.php?image=civ4screenshot0004ee4.jpg

here's the link your looking for:

http://forums.civfanatics.com/showthread.php?t=195264

personally I have not done that ...but I kept it as a bookmark just in case....

... someone asks me about it :lol:

you can make both static and animated versions :goodjob:
 
Thanks again!

i got it working. :)

Here is beta version:
my.php
 
Back
Top Bottom