Originally posted by Zed1515:

--------------------------------------------------------------------------------------------------------------

Hello, this tutorial is here to help those people who just don't get the stuff in the Rules.ini file.

Now, making your own units is easy. This prosses used to do this is usually called cloning

Cloning: Is copying another item (unit, structure etc...) in order to make another one. To clone a unit and/or building there are 4 steps you need to follow.

1) Copy and paste from the unit/building you wish to clone. In this tutorial I will use the Nod powerplant. Now remember it is easier to place the copy at the end of the unit's/building's code section so that you don't lose track of your code.

2) Next, change the bracketed name

EG. Nod powerplant is [NAPOWR], we are going to change it to [NUKEPLANT].

3) Above the units code is is a list of all the units referenced by their bracketed name.

EG.
; ******* Building Type List *******
; This lists all the buildings types in the game. Each of these
; types will have a specific section in this file that gives the
; particulars about that building type.
[BuildingTypes]
1=GAPOWR
2=PROC
149=GASILO
4=GAPILE
5=GAPLUG
6=GACTWR
150=GAVULC
..............
..............
239=GAOLDCC5
240=GAOLDCC6
241=GAARTY
242=TSTLAMP
243=NAHPAD
244=GAKODK
245=NAMNTK
246=UFO
247=AMMOCRAT
248=GAPAVE
249=GAGREEN
250=NUKEPLANT <----this is where aour new unit goes remember to use the next available #

4) Lastly, change the settings of the powerplant to your liking;

EG.
; Nod power plant
[NUKEPLANT] ;changed for cloning puposes
Name=Nuclear Reactor ;this can be anything you would like
Image=NAPOWR ;Change this to change what the structure looks like.
Strength=750
Armor=wood
TechLevel=1
Sight=4
Adjacent=2
Owner=Nod
Cost=300
Points=40
Power=100
Capturable=true
Crewed=yes
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
MaxDebris=6
ThreatPosed=0 ; This value MUST be 0 for all building addons
DamageParticleSystems=SparkSys,SmallGreySSys,BigGreySmokeSys
DamageSmokeOffset=450, 200, 300
TogglePower=no
----------------------------------------------------------------------------------------------------

Next is the changing of the attributes.
If you do this incorrectly it could cause errors in your game.

To find all of the things that can be added to a unit you must look above the hover MLRS code, there is a huge list of all the different settings that are in TS.
Some are needed for a unit to work, others are just addons that can make the unit do all kinds of things. This is the easy part.

Here I will post all the stuff that is absolutly needed for a unit to work and look nice.

-Armor = the armor type of this object [none,wood,light,heavy,concrete] (def=none)
-Cost = cost to build object (in credits)
-Category = category of object [used by AI systems--"Soldier", "Civilian", "VIP", "Ship",
"Recon", "AFV", "IFV", "LRFS", "Support", "Transport", "AirPower", "AirLift"]
-Name = specifies the given name (displayed) for the object
-Owner = who can build this [GDI or Nod] (def=none)
-Points = point value for scoring purposes (def=0)
-Prerequisite = list of buildings needed before this can be manufactured (def=no requirement)
-Primary = primary weapon equipped with. primary is only needed if you want a weapon
-Secondary = secondary weapon equipped with. secondary is only used for a second weapon after the Primary is attached.
-Strength = strength (hit points) of this object
-TechLevel = tech level required to build this [-1 means can't build] (def=-1)
-Locomotor = CLSID of the object handling movement for this object. always use a copy from the unit/buildings that best represents the unit/building you have.
-Adjacent = distance allowed to place from other buildings. used only with buildings.
Image = the artwork that the unit/building should use ingame. Refers to the bracketed name in art.ini.

I can't answer everything but for those of you who want to make your own mod this is a good start. Please if you have any other questions on Rules.ini settings post here and I will reply as soon as possible.

Good luck.

Zed1515

{Corrected spelling, punctuation and the nonsensical sentences, now it's actually readable} - Tratos
{Edited to include the Image= tag} - Tratos