logo   login
right
Home Forums Downloads Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Forum Info
Forum Members: 18,613
Total Threads: 8,704
Posts: 94,969

Administrators:
DeeZire, Redemption

There are currently 53 users online.
Partner Links

Free Credit Repair

Learn the Ticket Broker Secrets
Advertisements


Generals & Zero Hour Editing Discuss any modding related issues to do with Generals and Zero Hour here.

Reply
 
LinkBack Thread Tools
Old 09-01-2004, 03:11 PM   #1 (permalink)
Member
 
Join Date: Aug 2004
Location: Portugal
Posts: 82
Send a message via MSN to S0L0
Default changes build options

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 = OBJECTozer
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
S0L0 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-01-2004, 03:14 PM   #2 (permalink)
Senior Member
 
Join Date: May 2004
Posts: 303
Send a message via MSN to RedLeader
Default

doesnt look like u have an upgrade....
RedLeader is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-01-2004, 03:21 PM   #3 (permalink)
Senior Member
 
Join Date: Feb 2004
Location: Glued to the chair in front of my laptop
Posts: 1,158
Default

What you need to do is make an upgrade that changes the dozers command set, than give them an upgrade in their 2nd commandset that switches them back, simple .ini coding, and sorry if i said it already, but, WELCOME TO THE FORUMS!
GametagAeonFlux is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-01-2004, 03:48 PM   #4 (permalink)
Member
 
Join Date: Aug 2004
Location: Portugal
Posts: 82
Send a message via MSN to S0L0
Default

thx =)

sorry man, but i alreayd reviwd the code andi stil didn't understanded whats the upgrade required..., i might be skiping something, but for what i see it got the upgrade on dozer that will open on the upgrade.ini and it will redirect to commandsets.ini for what i understand was suposebe all right, but as it don't work it isn't right lol, so you ming explain me a lil better what and why is need make the other upgrade, i like understand the stuff logic so for no longer make same mistake

thanks for the help
S0L0 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-01-2004, 04:00 PM   #5 (permalink)
Member
 
Join Date: Aug 2004
Posts: 37
Default

Look at the GLA worker.
NVShacker is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-01-2004, 04:14 PM   #6 (permalink)
Member
 
Join Date: Aug 2004
Location: Portugal
Posts: 82
Send a message via MSN to S0L0
Default

well i did, and stil dind't saw the prob..., each time i get more sure is a stupid thing i'ts skiping me, i already reviewd whole code dozens of times, and stil dind't UNDERSTANDED whats wrong..., if it says error on the chinavehicles.ini coulld be the upgrade code was wrnog set there, but now say error on upgrades.ini hmmm can't see whats wrong


thanks for the help
S0L0 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-01-2004, 04:46 PM   #7 (permalink)
Senior Member
 
Join Date: Feb 2004
Location: Glued to the chair in front of my laptop
Posts: 1,158
Default

I don't see whats wrong, does the game crash, or just plain out does the button not work? If it crashes, go to the Worldbuilder and it should point out your problems down to the exact code line.
GametagAeonFlux is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-01-2004, 05:10 PM   #8 (permalink)
Member
 
Join Date: Aug 2004
Location: Portugal
Posts: 82
Send a message via MSN to S0L0
Default

well i can't start the game cuz each time i open the shortcut it start load then crash and says an exeption thing when i read the releasecrashinfo it says

"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: "

and u mind explain me betetr about world builder, cuz i open it and got no message...
S0L0 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-01-2004, 05:27 PM   #9 (permalink)
Senior Member
 
Join Date: Feb 2004
Location: Glued to the chair in front of my laptop
Posts: 1,158
Default

Ummmmm, if it didn't give you an error, than i don't know what to say. Have you asked around www.sleipnirstuff.com ? Some of the people there are ini geniuses.
GametagAeonFlux is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-01-2004, 05:54 PM   #10 (permalink)
Member
 
Join Date: Aug 2004
Location: Portugal
Posts: 82
Send a message via MSN to S0L0
Default

well i already posted there, so waitingfor more help thereand here

thanks to you all who keep trying help me
S0L0 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Build Time and Build Cost problem Tesla-Chrono LOTR: Battle For Middle Earth I & II Editing 23 12-18-2004 09:51 AM
Behaviors and Options Telekin Generals & Zero Hour Editing 18 10-18-2003 01:13 PM
NEW CONSTRUCTION OPTIONS!!!!! Master_Fenring Red Alert 2 & Yuri's Revenge Editing 12 04-27-2003 07:21 AM
More than 12 options in the toolbar guyee Generals & Zero Hour Editing 8 04-17-2003 10:51 AM
building options bug shane Red Alert 2 & Yuri's Revenge Editing 9 02-25-2003 03:00 PM


All times are GMT -4. The time now is 07:14 PM.


Design By: Miner Skinz.com
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.