GUIDE: Adding new units

omg can u JUST SAY U NEED A CONVERTER FROM DSS TO BMP geez is that hard...i just did convert everything
 
omg can u JUST SAY U NEED A CONVERTER FROM DSS TO BMP geez is that hard...i just did convert everything

well let me highlight it for you from my previous post:

go here to find out:

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

this is for flags and pics but can apply to dds files

however basically if you want to change colors of an existing unit/building

follow the unpak tut here:

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

1) find the unit/building folder

2) find the dds file

3) convert it (using the civ tut above for coverter programs) to bmp

4) recolor the bmp to your preference

5) covert it back to a dds file

6) put it back in that folder (REMEMBER to back up files/folders)

7) follow this tut or the other ones to put files in respective folders (either your custom assets or your mod - use my previous posts for reference)

and that's it
...
...


so yeah I did say that... you needed a converter and to use the one provided in that link...

so good luck cause if ya gonna be rude about it... have fun getting any other info from someone else :goodjob:


:D :D :D :D :D :D :D :D
 
Hii guys!
Im new at thos so i need some help!
I use'd samo program to made new units from this forum... I think its Civ editor v0.3... So i made the unit and i have make it unique for my civ, but the problem is that any other civ can build it!
So i wanna know how to make my unit unique so 1 civ can only bild that unit??
Thx...
 
Hii guys!
Im new at thos so i need some help!
I use'd samo program to made new units from this forum... I think its Civ editor v0.3... So i made the unit and i have make it unique for my civ, but the problem is that any other civ can build it!
So i wanna know how to make my unit unique so 1 civ can only bild that unit??
Thx...

you have to add it to your custom civ in the CIV4CivilizationInfos.xml file

using the Navy Seal UU for America:


Code:
			<Type>CIVILIZATION_AMERICA</Type>
			<Description>TXT_KEY_CIV_AMERICA_DESC</Description>
...
...
...
			<bAIPlayable>1</bAIPlayable>
			<Cities>
				<City>TXT_KEY_CITY_NAME_WASHINGTON</City>
				<City>TXT_KEY_CITY_NAME_NEW_YORK</City>
				<City>TXT_KEY_CITY_NAME_BOSTON</City>
...
...
...
			<Buildings/>
			<Units>
[COLOR="Navy"]				<Unit>
					<UnitClassType>UNITCLASS_MARINE</UnitClassType>
					<UnitType>UNIT_AMERICAN_NAVY_SEAL</UnitType>
				</Unit>[/COLOR]
			</Units>

add your UU tagline info your your civ following the example above...

Hope that helps ;)
 
Reene You up for a big challenge?

Been working on this one for about 8 hours and no luck

First of all I am using the CCCP mod which allows for plug and play ability
Secondly I have completely seperated all the info for each of the Original Civs into their own folder ( this should be a treat for those wanting to start with an original Mod). So now as it stands I have America In a folder by itself with all supporting files etc. and all the other civs are also in their own folders... when I pull one out that civ disappears from the game (pretty cool huh).

NOW! I am adding in all the Civ Gold 4.0 (soon to be released) Civilizations. and I got an error someone else had gotten before in this thread. It mentions that "invalid at top level of document" error that I saw in a previous post. So I went into all the files I could think of to resolve this issue.

I'm going to upload some XML would you take a look at it?

***NOTE*** the schema's are Labelled correctly for the Plug and Play to work proper as well as they are pointing to the correct file
***NOTE***CanadaCorps as you probally guessed is a UU
 
Reene You up for a big challenge?

Been working on this one for about 8 hours and no luck

First of all I am using the CCCP mod which allows for plug and play ability
Secondly I have completely seperated all the info for each of the Original Civs into their own folder ( this should be a treat for those wanting to start with an original Mod). So now as it stands I have America In a folder by itself with all supporting files etc. and all the other civs are also in their own folders... when I pull one out that civ disappears from the game (pretty cool huh).

NOW! I am adding in all the Civ Gold 4.0 (soon to be released) Civilizations. and I got an error someone else had gotten before in this thread. It mentions that "invalid at top level of document" error that I saw in a previous post. So I went into all the files I could think of to resolve this issue.

I'm going to upload some XML would you take a look at it?

***NOTE*** the schema's are Labelled correctly for the Plug and Play to work proper as well as they are pointing to the correct file
***NOTE***CanadaCorps as you probally guessed is a UU



the error is usually the file is saved wrong format


I had this problem before and all I did was take an original xml file (that came with the game) copy that file... now erase all the info BESIDES the top format info

use that "blank" template to more all your other XML files with that error (copy and pasting - then saving under new name) to that template (only the data not the heading)

usually that fixes it up :D


At this time I am in the process of moving so I cant review your files at this time :( :( :(


hope that helps ;)


PS Im not familiar with plug and play... havent been modding in a while (moving and all) so I dont know if that interferes with it or not :(
 
Okay I figured out the Error to my Problem....

During the switch to Notepad ++... I was encoding in UTF-8
The Files are supposed to be Encoded in ANSI

After recreating the file it was working perfectly
 
Okay I figured out the Error to my Problem....

During the switch to Notepad ++... I was encoding in UTF-8
The Files are supposed to be Encoded in ANSI

After recreating the file it was working perfectly

glad you got it working :goodjob:

(less work for me) :p
 
How to add your own custom units

Beware that at the moment no one can create an actual new model but only new units with their own unique skins and/or stats. This can be added in very easily. This guide also doesn't cover changing unit stats, for that go to : http://civ4wiki.com/wiki/index.php/CIV4UnitInfos for a list of tags and what they mean.

In our example we will be creating a new unit using the Warrior model with a new skin. This unit will be called Terry. Use common sense where applicable and tell me if something is wrong/missing or you just plain can't understand it.

To prepare, go to your customs assets folder or create a new mod. All files in the following guide will use the assets folder as the root. So if i say create a new folder, this folder will be created in the assets folder.

PART 1 - Getting ready

First of all you must unpak the Art0.fpk file using the PakBuild Utility to get the unit. Since new models can't be created you will have to use an existing one. Copy the whole ...arts/units/warrior folder from the unpaked .fpk file and paste it in your assets folder (either of your mod or the custom one) keeping the file structure.

Rename the folder to Terry but keep all the files inside intact i.e. do not touch them otherwise your game will crash and do funny stuff with you RAM. Get the new skin if you have one and replace it over the warrior_128.dds. The new skin has to take this name (in this example).

Next copy over your .../assets/xml/units/CIV4UnitClassInfos.xml and CIV4UnitInfos.xml to your assets folder using the same file structure.
Copy the .../assets/xml/text/CIV4GameText_Strategy.xml, CIV4GameTextInfos_Objects.xml and CIV4GameText_Civililopedia_Units.xml to your new assets folder - again keeping the file structure.
Copy the .../assets/xml/art/CIV4ArtDefines_Unit.xml over.

Now you should be ready.

I want to add a cruiser that uses destroyer animations. I have the skin, where do I get the model for destroyer in warlords? I can't find it anywhere.

Help is appreciated,
Bigben34
 
for your mod?

for warlords?

for vanilla civ?


can you be more specific?:confused:


it says to copy the art\units\warrior folder but when i go into assets the only folder their is Mods.
i tried reinstalling b4 bcuz there was a units folder but no warrior but now there is less.
 
it says to copy the art\units\warrior folder but when i go into assets the only folder their is Mods.
i tried reinstalling b4 bcuz there was a units folder but no warrior but now there is less.

you must add those folders to your mod

basically civ4 unpacks those art files on start up

you can unpak your art files manually and edit them in your mod or custom assets folder(s)

the program for that is here:

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



please read this thread carefully,

I already answered this (with instructions! :p )


go here:

http://forums.civfanatics.com/showthread.php?t=139721&page=8&highlight=unpak


post #144 and #145

and here (in this thread):


http://forums.civfanatics.com/showthread.php?p=4858252&highlight=unpak#post4858252


post #161, #165 (Step by step Instructions :goodjob: for unpaking)


the other posts explain what is unpaking and how to use it in your custom assets/ mod folder(s)

hope this helps ;)
 
My anti tank infantry has a blank window, no fortify, no wake up, no go to... And i can't promote it.
 
My units can only be built with world builder! Does anyone know the solution to this? Thanks in advance.
 
Also, how do you make it require a certain tech to be built.:confused:
 
My anti tank infantry has a blank window, no fortify, no wake up, no go to... And i can't promote it.

sounds like your missing tagline info

check your units info in the CIV4UnitInfos.xml file and see if its all correct

and it matches in this file CIV4UnitClassInfos.xml file

(follow the examples in those files)


I know this problem occurred somewhere else and it was fix.... but I dont remember how to do it ...sorry :sad:


try to use the search engine here to search for a post similar to your problem...

I know it's in here somewhere
 
My units can only be built with world builder! Does anyone know the solution to this? Thanks in advance.


I think this is related to this problem:

Also, how do you make it require a certain tech to be built.:confused:


for example you can define this as:


Code:
		<UnitInfo>
			<Class>UNITCLASS_AXEMAN</Class>
			<Type>UNIT_AXEMAN</Type>
			<UniqueNames/>
			<Special>NONE</Special>
			<Capture>NONE</Capture>
			<Combat>UNITCOMBAT_MELEE</Combat>
			<Domain>DOMAIN_LAND</Domain>
			<DefaultUnitAI>UNITAI_COUNTER</DefaultUnitAI>
...
...
...
			<HolyCity>NONE</HolyCity>
			<ReligionType>NONE</ReligionType>
			<StateReligion>NONE</StateReligion>
			<PrereqReligion>NONE</PrereqReligion>
			<PrereqBuilding>NONE</PrereqBuilding>
[COLOR="RoyalBlue"]			<PrereqTech>TECH_BRONZE_WORKING</PrereqTech>[/COLOR]
			<TechTypes/>
			<BonusType>NONE</BonusType>
			<PrereqBonuses>
				<BonusType>BONUS_COPPER</BonusType>
				<BonusType>BONUS_IRON</BonusType>
				<BonusType>NONE</BonusType>
				<BonusType>NONE</BonusType>
			</PrereqBonuses>
			<ProductionTraits/>
....
....
....



hope that helps ;)
 
I am trying to replace a Maceman in the VANILLA game for a Norman Swordsman I have downloaded. Most of these tutorials mention that I need to create an Assets forlder in MY MOD folder or CUSTOM folder. Is it possible to just add this new unit to the Assets folder of the Warlords main directory? I don't want the new unit in mods or editor, I actually trying to get him inside the real game. Can someone help me with this one please?
 
Back
Top Bottom