View Full Version : HELP! how do you create new units in rulesmd.ini
grapies07
08-17-2007, 09:27 PM
how do you create new units in rulesmd.ini
i thought it would work if i c&p the unit below and chang a few factors, but that diddint work.
if i had the right idea please let me know
Yours sincerely, modding noob.
Tesla
08-18-2007, 01:40 PM
Go to the [Vehicles] (or [Infantry] or [Aircraft]) section in rulesmd.ini, and add this line below the bottom line "numberhigherthanthehighestnumber=newunityoumade".
(where numberhigherthanthehighestnumber is the number higher than the number of the entry above it, and newunityoumade is the name inside the brackets ([]) of the unit you made.)
grapies07
08-19-2007, 08:32 AM
i did what you said and when i look in the vehicles tab my new unit is there but when i build it the game freezes when it is coming out the war factory.
i made the units properties below the mirage tank like this:
;Jebus
[Jebus]
UIName=Name:Jebus
Name=Jebus
Prerequisite=GAWEAP
Primary=Grandcannonweapon
Eliteprimary=Neutronrifle
Strength=1000
Category=AFV
Armor=Heavy
Turret=Yes
TurretCount=4
Weaponcount=1
Weapon1=Grandcannonweapon
Eliteweapon1=NeutronRifle
IsChargeTurret=true
IsTiler=yes
ToobigtofitUnderBridge=true
TechLevel=8
Sight=12
Speed=8
CrateGoodie=no
Crusher=yes
Owner=British,French,Germans,Americans,Alliance
Cost=1200
Soylent=120
Points=500
ROT=5
IsSelectableCombatant=yes
AllowedToStartInMultiplayer=no
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
VoiceSelect=PrismTankSelect
VoiceMove=PrismTankMove
VoiceAttack=PrismTankAttackCommand
VoiceFeedback=
DieSound=GenVehicleDie
MoveSound=PrismTankMoveStart
CrushSound=TankCrush
Maxdebris=3
Locomotor={4A582741-9839-11d1-B709-00A024DDAFD1}
;MovementZone=Normal ;gs FLAW needs to be changed to this when The Flaw is fixed
MovementZone=Destroyer
ThreatPosed=40 ; This value MUST be 0 for all building addons
DamageParticleSystems=SparkSys,SmallGreySSys
DamageSmokeOffset=100, 100, 275
Weight=3.5
VeteranAbilities=STRONGER,FIREPOWER,SIGHT,FASTER
EliteAbilities=SELF_HEAL,STRONGER,FIREPOWER,ROF
Accelerates=false
ZFudgeColumn=8
ZFudgeTunnel=13
Size=3
so is it anything in that which is causing the problem, or do i have to do something else.
Fenring
08-19-2007, 12:27 PM
Several things;
- You most likely forgot to give it an appropriate voxel/HVA to match if its a vehicle.
- You most likely won't have an animated turret so you do not need IsChargeTurret, TurretCount, WeaponCount, Weapon1 or EliteWeapon1.
- The proper tag for elite weapons is ElitePrimary. Casing is important.
- Again, casing is important. This is most evident on weapons and warheads. It must exactly match the existing entries. So it would be GrandCannonWeapon and NeutronRifle.
- A few tags are misspelled. The correct spelling is IsTilter and TooBigToFitUnderBridge.
- As a point of interest, the [VEHICLEID] should be in caps. Match Westwood's original coding and you run into fewer problems.
grapies07
08-20-2007, 02:34 AM
So how would i make a unit that looked like a german tank destroyer, i called it Jebus and gave it a Neutronrifle?
Also i tried to make a new unit, but when i made the unit in barracks it came out invisible.
HelloDave
08-20-2007, 01:55 PM
Image=TNKD
There you go.
w00t! 444th post
apple23
08-20-2007, 08:10 PM
first of all, (i know this isint exactly helpful) why would you want a tank destroyer with a GC weap and a neutron rifle?
Now, to be more helpful:
First, Change Crandgannonweapon to GrandCannonWeapon (yes, CAPS DO count.) and do the same for NeutronRifle.
Secondly, remove TurretCount=4,WeaponCount=1, Weapon1=Grandcannonweapon, adn EliteWeapon1=Neutronrifle, and IsChangeTurret=true
That should do it and your unit should work fine so long as you have a .vxl file and a corresponding .hva file named jebus, OR add the rules entry Image=(the codename of the unit you want to see as defined in the art.ini file (or artmd.ini for YR))
LtMisha
02-21-2008, 03:52 AM
I would download TibEd (for free) and use that. It's much easier, (assuming you haven't sorted the problem.)
apple23
02-21-2008, 06:28 PM
I would download TibEd (for free) and use that. It's much easier, (assuming you haven't sorted the problem.)
Look at the time stamps, dude. This issue was obviously resolved or forgotten, as nobody except you has posted for about half a year. But one thing, TibEd is actually not very good, as I've learned. Only half of the usable rules tags are actually in the editor and you can only edit basic rules files with it. You have much more potential editing the text files.
vBulletin® v3.8.3, Copyright ©2000-2010, Jelsoft Enterprises Ltd.