How do i copy units?

rawrkitty2

Chieftain
Joined
Oct 23, 2014
Messages
50
Got it - thanks for the help guys :)


So ive been able to figure out how to create new units entirely (using their OWN graphic files and such) and ive been able to figure out how to modify existing units stats...

But how do i COPY units?

specifically, im trying to copy colonizers to create a second alternative colonizer unit which ill give my own set of abilities - can somone help me figure out where the heck im supposed to access unit's files and information?

There's no documentation for this in civ5 or be... I'm pretty confused - i've spent 5 hours reading tutorials and none of them are relavent to this :(


i am guessing what i need to do is add a new unit and extract resources as per http://forums.civfanatics.com/showthread.php?t=536900 and do it that way?
 
If I'm understanding you correctly, you want to make a new unit using the same graphics as an existing unit? If that is the case you can just make the new unit's XML refer to the artdefines for the old unit.
 
Aye, that's exactly what im trying to do - but how can i make it refer to the original unit if i have no idea where the original unit is located?

I'm completley new to moding and theres no library per se - with out the graphic files infront of me how can i refer to them? do i need to manually go through every file in the civ directory, looking for it? and the only examples i can find are for civ5 which refer to things like strat view and other stuff that isn't in BE.

i guess i just have to wait for more experienced people to figure it out - im in way over my head

So basically i'm trying to clone a settler, and create some custom stats for it, have it have a custom active ability, rename it and add a tech prereq (survey), i figured it'd be super simple but im way wrong lol
 
Go to the install directory, where CIV is installed,
mine is just E:\Program Files (x86)\Steam\steamapps\common\Sid Meier's Civilization Beyond Earth\
then go into assets, the rest is explains itself
 
Go to the install directory, where CIV is installed,
mine is just E:\Program Files (x86)\Steam\steamapps\common\Sid Meier's Civilization Beyond Earth\
then go into assets, the rest is explains itself

That was my first inclination - the only container for units are in assets\Gameplay\XML\Units as far as i can tell

Spoiler :
<ID>0</ID>
<Type>UNIT_SETTLER</Type>
<Class>UNITCLASS_SETTLER</Class>
<Cost>80</Cost>
<NoMaintenance>true</NoMaintenance>
<PrereqTech>TECH_PIONEERING</PrereqTech>
<Description>TXT_KEY_UNIT_SETTLER</Description>
<Civilopedia>TXT_KEY_UNIT_SETTLER_PEDIA</Civilopedia>
<Help>TXT_KEY_UNIT_SETTLER_HELP</Help>
<Moves>2</Moves>
<Capture>UNITCLASS_WORKER</Capture>
<CivilianAttackPriority>CIVILIAN_ATTACK_PRIORITY_HIGH</CivilianAttackPriority>
<Domain>DOMAIN_LAND</Domain>
<DefaultUnitAI>UNITAI_SETTLE</DefaultUnitAI>
<Requirements>TXT_KEY_NO_ACTION_SETTLER_SIZE_LIMIT_HARDCODED</Requirements>
<Food>true</Food>
<CombatLimit>0</CombatLimit>
<Found>true</Found>
<UnitArtInfo>ART_DEF_UNIT_COLONIST</UnitArtInfo>
<MoveRate>WHEELED</MoveRate>
<UnitArtInfoCulturalVariation>true</UnitArtInfoCulturalVariation>


This is the unit itself - but how do i get a mod to refer to it?
and how do i refer to it in a SQL format?
obviously im missing something or just being dumb, so for that i'm sorry :P
 
For the basics, go to the Civ5 tutorial section. This is a good place to start.

EDIT: In answer to your question, once you get things figured out:

You'll make a new XML file, set it to OnModActivated > UpdateDatabase.
You'll paste the above between "<GameData><Units><Row>" and "</Row></Units></GameData>" (but removing the <ID>0</ID> tag and making the appropriate changes). You'll also want to add a new UnitClass in a similar way. Your job gets a bit harder when it comes to remodeling and making new art defines, so for the time being you can stick to ART_DEF_UNIT_COLONIST. That reference will allow your unit to re-use the same models and animations.
 
Allright i got the unit in the game, now im on to the more of the part, adding culture bomb, is it possible to use Civ5 unit abilities? (such as culture bomb?) - and yeah i've been looking through that tutorial, thanks :P

Too bad the unit section looks like

HOW TO CREATE A NEW UNIQUE UNIT (UU)
Add text here.

:p
 
Unique units aren't used in this game, but they would work. You would use it if you wanted to give a unit only to a specific sponsor.

Most of the Civ5 stuff works; I don't know about culture bombs specifically.
 
Yeah i dont mean unique units, i mean unit abilities - I'm basically trying to recreate culture bomb or the great general's border expansion unit, but i have no idea how and there are no tutorial that cover unit abilities specifically :(

Could you possibly point me to the direction as to where i need to refer to abilities?

When i try adding something like

<Column name="CultureBombRadius" type="integer" default="0"/>

under a units table, the mod won't load, leading me to believe im missing some kind of dependancy
 
They're called "TacticalMoves" or something like that, i'm looking through the game DB to try to find what im looking for but to no avail, i think i have to make one from scratch - does anyone have any experience with this?

Thanks for the help guys!
 
Back
Top Bottom