Using new Units in the game?

Gwydion62

Warlord
Joined
Apr 25, 2004
Messages
193
Location
Austria
Hi,

I am using some mods - R.E.D as an example. There are a lot new graphics for units...
How can I bring them into the game?

What do I have to add to the XML Unit folder to make a new Unit with RED's graphics?
Example: to make the normal Infantry a german infantry (using the new graphic)?


Would be great if you show an example for a dummy ;)

regards
gwydion
 
Hi,

I am using some mods - R.E.D as an example. There are a lot new graphics for units...
How can I bring them into the game?

What do I have to add to the XML Unit folder to make a new Unit with RED's graphics?
Example: to make the normal Infantry a german infantry (using the new graphic)?


Would be great if you show an example for a dummy ;)

regards
gwydion

I'm a bit unclear on what you want you want to do. If you load R.E.D. last, the German infantry should replace the vanilla infantry if you're playing as Germany. You want the German infantry to be used by all civs? Or used by all civs that would otherwise use the vanilla unit (everyone other than America, China, England, France, Italy, Japan, and Russia)?

If it's the last, you can change the model being used by the vanilla unit. The reference is on line 529 of XML\Civ5ArtDefines_UnitMembers.xml.
Change it from:
Code:
<Granny>Assets/Units/Infantry/Infantry.fxsxml</Granny>
to:
Code:
<Granny>Infantry_German.fxsxml</Granny>

Alternatively, if you want to pick and choose a set of civs to use the German infantry model, see the Units\newunits_infantry.sql file, lines 70 and 71, where the German infantry is made into a unique unit for Germany:
Code:
INSERT INTO "Civilization_UnitClassOverrides" ( 'CivilizationType', 'UnitClassType', 'UnitType' )
VALUES ( 'CIVILIZATION_GERMANY', 'UNITCLASS_INFANTRY', 'UNIT_GERMAN_INFANTRY' );

Make a copy of those two lines, and paste them right under, changing "CIVILIZATION_GERMANY" to e.g., "CIVILIZATION_DENMARK". Germany and Denmark will then both use that model instead of the vanilla one.
 
That gives me ideas how to move on - and u are right, I also found out that RED is changing the icons. But not all...
I learned how to use the new icons by changing the graphicline in the unitfile...

regards
 
Back
Top Bottom