Hiyas, I need to add a option on to the dozers for they be able to have more then 14 options, i mean i press on a button and apear the other options menu then when i press again it would apear the previous, i know this is possible and have been done a lot already, but i ben having some troubles on, all i did was, make them as upgrades, so i decided folow the logic of a mod wich the .big file is 0x47zh.big (don't know mod name, i only downloaded it for try folow it's upgrade menus logic since my own wasn't working) so i edited my own commandbuttons.ini commandset.ini, upgrades.ini, objectcreationlist.ini and chinavehicles.ini, using this mod upgrade menus logic, and i'm FULLY sure i skiped something stupid lol, as my usual porbs must be sucha stupidthink i skiped that i wouldn't remember what is =P, anyways heres the code:
------------------------------------------------------------------
commandset.ini
CommandSet ChinaDozerCommandSet
1 = Command_ConstructChinaPowerPlant
2 = Command_ConstructChinaBarracks
3 = Command_ConstructChinaSupplyCenter
4 = Command_ConstructChinaInternetCenter
5 = Command_ConstructChinaAirfield
6 = Command_ConstructChinaGattlingCannon
7 = Command_ConstructChinaBunker
8 = Command_ConstructChinaSpeakerTower
9 = Command_ConstructChinaWarFactory
10 = Command_ConstructCommandandControl
11 = Command_ConstructChinaPropagandaCenter
12 = Command_ConstructChinaNuclearMissileLauncher
13 = Command_ChinaChangetoTechSet
14 = Command_ConstructChinaCommandCenter
End
CommandSet ChinaDozerCommandSetTech
13 = Command_DisarmMinesAtPosition
14 = Command_ChinaChangetoDefaultSet
End
commandbutton.ini
CommandButton Command_ChinaChangetoTechSet
Command = OBJECT_UPGRADE
Upgrade = Upgrade_ChinaDozerUpgrade
TextLabel = CONTROLBAR:TechList
ButtonImage = Down
ButtonBorderType = ACTION
DescriptLabel = CONTROLBAR:TooltipChangeCommandList
End
CommandButton Command_ChinaChangetoDefaultSet
Command = OBJECT_UPGRADE
Upgrade = Upgrade_ChinaDozerUpgradeDefault
TextLabel = CONTROLBAR:TechList
ButtonImage = Up
ButtonBorderType = ACTION
DescriptLabel = CONTROLBAR:TooltipChangeCommandList
End
Upgrades.ini
Upgrade Upgrade_ChinaDozerUpgrade
DisplayName = UPGRADE:CommandChange
Type = OBJECT
BuildTime = 0.001
BuildCost = 0
ButtonImage = Down
ResearchSound = NoSound
End
Upgrade Upgrade_ChinaDozerUpgradeDefault
DisplayName = UPGRADE:CommandChange
Type = OBJECT
BuildTime = 0.001
BuildCost = 0
ButtonImage = Up
ResearchSound = NoSound
End
chinavehicles.ini
;------------------------------------------------------------------------------
;China Construction Dozer
Object ChinaVehicleDozer
; *** ART Parameters ***
SelectPortrait = SNDozer_L
ButtonImage = SNDozer
;UpgradeCameo1 = NONE
;UpgradeCameo2 = NONE
;UpgradeCameo3 = NONE
;UpgradeCameo4 = NONE
;UpgradeCameo5 = NONE
Draw = W3DTankDraw ModuleTag_01
OkToChangeModelColor = Yes
DefaultConditionState
Model = NVCONSTDOZ_A
ParticleSysBone = EXHAUST01 DozerSmokeLight
End
ConditionState = MOVING
ParticleSysBone = EXHAUST01 DozerSmokeHeavy
End
ConditionState = FIRING_A MOVING PREATTACK_A
Model = NVCONSTDOZ_A
Animation = NVCONSTDOZ_A.NVCONSTDOZ_A
AnimationMode = ONCE
ParticleSysBone = EXHAUST01 DozerSmokeHeavy
ParticleSysBone = DIRTFX01 DozerDirtFall
End
AliasConditionState = ATTACKING FIRING_A MOVING
ConditionState = REALLYDAMAGED RUBBLE
Model = NVCONSTDOZ_AD
End
ConditionState = MOVING REALLYDAMAGED RUBBLE
Model = NVCONSTDOZ_AD
ParticleSysBone = EXHAUST01 DozerSmokeHeavy
End
ConditionState = FIRING_A MOVING PREATTACK_A REALLYDAMAGED RUBBLE
Model = NVCONSTDOZ_AD
Animation = NVCONSTDOZ_AD.NVCONSTDOZ_AD
AnimationMode = ONCE
ParticleSysBone = EXHAUST01 DozerSmokeHeavy
ParticleSysBone = DIRTFX01 DozerDirtFall
End
AliasConditionState = ATTACKING FIRING_A MOVING REALLYDAMAGED RUBBLE
TrackMarks = EXTnkTrack.tga
TreadAnimationRate = 2.0 ; amount of tread texture to move per second
End
; ***DESIGN parameters ***
DisplayName = OBJECT

ozer
Side = China
EditorSorting = VEHICLE
TransportSlotCount = 5 ;how many "slots" we take in a transport (0 == not transportable)
BuildCost = 1000
BuildTime = 5.0 ;in seconds
VisionRange = 150
ShroudClearingRange = 300
WeaponSet
Conditions = None
Weapon = PRIMARY None
End
WeaponSet
Conditions = MINE_CLEARING_DETAIL
Weapon = PRIMARY DozerMineDisarmingWeapon
End
ArmorSet
Conditions = None
Armor = DozerArmor ;Special Explosion-Proof Armor
DamageFX = TankDamageFX
End
CrusherLevel = 2 ;What can I crush?: 1 = infantry, 2 = trees, 3 = vehicles
CrushableLevel = 2 ;What am I?: 0 = for infantry, 1 = for trees, 2 = general vehicles
CommandSet = ChinaDozerCommandSet
; *** AUDIO Parameters ***
VoiceSelect = DozerChinaVoiceSelect
VoiceMove = DozerChinaVoiceMove
VoiceEnter = DozerChinaVoiceMove
VoiceTaskComplete = DozerChinaVoiceBuildComplete
SoundMoveStart = DozerChinaMoveStart
SoundMoveStartDamaged = DozerChinaMoveStart
UnitSpecificSounds
VoiceCreate = DozerChinaVoiceCreate
VoiceCrush = DozerChinaVoiceCrush
VoiceNoBuild = DozerChinaVoiceBuildNot
VoiceRepair = DozerChinaVoiceRepair
VoiceDisarm = DozerChinaVoiceClearMine
VoiceEnter = DozerChinaVoiceMove
VoiceBuildResponse = DozerChinaVoiceBuild
End
; *** ENGINEERING Parameters ***
RadarPriority = UNIT
KindOf = PRELOAD VEHICLE SCORE SELECTABLE CAN_CAST_REFLECTIONS DOZER
Body = ActiveBody ModuleTag_02
MaxHealth = 250.0
InitialHealth = 250.0
; Subdual damage "Subdues" you (reaction defined by BodyModule) when it passes your max health.
; The cap limits how extra-subdued you can be, and the other numbers detemine how fast it drains away on its own.
SubdualDamageCap = 500
SubdualDamageHealRate = 500
SubdualDamageHealAmount = 50
End
Behavior = DozerAIUpdate ModuleTag_03
RepairHealthPercentPerSecond = 2% ; % of max health to repair each second
BoredTime = 5000 ; in milliseconds
BoredRange = 150 ; when bored, we look this far away to do something
; the only "enemies" that workers can acquire are mines, to be disarmed...
AutoAcquireEnemiesWhenIdle = Yes
End
Locomotor = SET_NORMAL ChinaVehicleDozerLocomotor
Behavior = PhysicsBehavior ModuleTag_04
Mass = 75.0
End
Behavior = StealthDetectorUpdate ModuleTag_05
DetectionRate = 500 ; how often to rescan for stealthed things in my sight (msec)
;DetectionRange = ??? ;Dustin, enable this for independant balancing!
CanDetectWhileGarrisoned = No ;Garrisoned means being in a structure that you units can shoot out of.
CanDetectWhileContained = No ;Contained means being in a transport or tunnel network.
ExtraRequiredKindOf = MINE ; we can only detect MINES, not other stealthed things
End
Behavior = TransitionDamageFX ModuleTag_06
ReallyDamagedParticleSystem1 = Bone:Smoke RandomBone:Yes PSys:SmallLightSmokeColumn
ReallyDamagedFXList1 = Loc: X:0 Y:0 Z:0 FXList:FX_BattleMasterDamageTransition
End
; Catch fire, and explode death
Behavior = SlowDeathBehavior ModuleTag_07
DeathTypes = ALL -CRUSHED -SPLATTED
ProbabilityModifier = 100
DestructionDelay = 1500
DestructionDelayVariance = 600
FX = INITIAL FX_CrusaderCatchFire
OCL = FINAL OCL_ChinaDozerExplode
FX = FINAL FX_BattleMasterExplosionOneFinal
End
Behavior = CreateCrateDie ModuleTag_09
CrateData = SalvageCrateData
End
Behavior = FlammableUpdate ModuleTag_21
AflameDuration = 5000 ; If I catch fire, I'll burn for this long...
AflameDamageAmount = 3 ; taking this much damage...
AflameDamageDelay = 500 ; this often.
End
Behavior = FXListDie ModuleTag_22
DeathTypes = NONE +CRUSHED +SPLATTED
DeathFX = FX_CarCrush
End
Behavior = DestroyDie ModuleTag_23
DeathTypes = NONE +CRUSHED +SPLATTED
End
;----------------------- Command Set Changes -----------------------
Behavior = CommandSetUpgrade ModuleTag_commandup
CommandSet = ChinaDozerCommandSetTech
TriggeredBy = Upgrade_ChinaDozerUpgrade
End
Behavior = CommandSetUpgrade ModuleTag_commandup2
CommandSet = ChinaDozerCommandSet
TriggeredBy = Upgrade_ChinaDozerUpgradeDefault
End
; releases the upgrade otherwise you cannot switch between them since they've already been purchased
Behavior = ObjectCreationUpgrade ModuleTag_commandup3
UpgradeObject = OCL_ChinaCommandsetupgraderelease
TriggeredBy = Upgrade_ChinaDozerUpgrade Upgrade_ChinaDozerUpgradeDefault
End
;------------------------------------------------------------------
Behavior = ProductionUpdate ModuleTag_25
;MaxQueueEntries = 1
End
Geometry = BOX
GeometryMajorRadius = 17.0;new radius to align mine sweeping position
;GeometryMajorRadius = 21.0;old radius
GeometryMinorRadius = 10.0
GeometryHeight = 15.0
GeometryIsSmall = NO
Shadow = SHADOW_VOLUME
ShadowSizeX = 45 ; minimum elevation angle above horizon. Used to limit shadow length
End
objectscreationlist.ini
;---------------------------
ObjectCreationList OCL_ChinaCommandsetupgraderelease
CreateObject
Offset = X:0 Y:0 Z:50
ObjectNames = ChinaDozerCommandSetRelease
IgnorePrimaryObstacle = Yes
Disposition = LIKE_EXISTING
Count = 1
RequiresLivePlayer = Yes
End
End
and the error i get is
Release Crash at Wed Sep 01 20:03:05 2004
; Reason Error parsing INI file 'Data\INI\Upgrade.ini' (Line: 'Upgrade Upgrade_ChinaDozerUpgradeDefault ')
Last error:
Current stack:
---------------------------------------------------------------------
if any1 can help me out, i would apreciate, and once again the note, I WON'T publish mymod, i only will use it for play on single player and on LAN, so you can have my word as i won't publish it in NO WHERE, i don't like online command conquer, only like it as single player or LAN