 |
Forum Info
|
 |
Forum Members: 18,643
Total Threads: 8,744
Posts: 95,520
Administrators:
DeeZire, Redemption
There are currently 21 users online.
|
 |
Partner Links
|
 |
 |
Advertisements
|
 |
|
| Generals & Zero Hour Editing Discuss any modding related issues to do with Generals and Zero Hour here. |
09-09-2004, 08:13 PM
|
#1 (permalink)
|
|
Senior Member
Join Date: May 2004
Posts: 303
|
!!!HELP!!! PLEASE AHHHHA
!!!!PLEASE HELP!!!! im srry for the urgency, but could a great god of coding create a switiching command set for generals and post it here? i will pay, and this i need, and have no clue to do..PLEASE HELP! All i need is one for china...
|
|
|
09-09-2004, 08:39 PM
|
#2 (permalink)
|
|
Senior Member
Join Date: May 2004
Location: My Secret Volcano Lair (USA)
Posts: 702
|
Code:
Behavior = CommandSetUpgrade ModuleTag_14
TriggeredBy = Upgrade_GLAWorkerFakeCommandSet
RemovesUpgrades = Upgrade_GLAWorkerRealCommandSet
CommandSet = GLAWorkerFakeBuildingsCommandSet
End
Behavior = CommandSetUpgrade ModuleTag_15
TriggeredBy = Upgrade_GLAWorkerRealCommandSet
RemovesUpgrades = Upgrade_GLAWorkerFakeCommandSet Upgrade_GLAWorkerRealCommandSet
CommandSet = GLAWorkerCommandSet
End
Code:
;----------------------------
Upgrade Upgrade_GLAWorkerFakeCommandSet
Type = OBJECT
BuildTime = 0.0
BuildCost = 0
ButtonImage = SUFakeToggle
End
;----------------------------
Upgrade Upgrade_GLAWorkerRealCommandSet
Type = OBJECT
BuildTime = 0.0
BuildCost = 0
ButtonImage = SUWorker
End
That's the code from the GLA worker... should work just the same for Gen, it's just a simple removesupgrades module... lol, pay, with what? Credits? lol, I only take cash, stand by for my swiss bank account number 
|
|
|
09-09-2004, 09:37 PM
|
#3 (permalink)
|
|
Senior Member
Join Date: Feb 2004
Location: Glued to the chair in front of my laptop
Posts: 1,158
|
Ok, this has been posted many times, heres a newb guide.
1:Go to the top of the page.
2:Click the search button.
3:Type in switch, or commandset, or both.
4:OH MY GOSH, topics popped up EXACTLY LIKE THIS ONE!
Someone out to sticky those four steps in all the forums  .
|
|
|
09-09-2004, 09:52 PM
|
#4 (permalink)
|
|
Senior Member
Join Date: Aug 2004
Posts: 216
|
lol yea i have read 1 not too long ago. but now i c a code and am happy.
|
|
|
09-10-2004, 08:09 AM
|
#5 (permalink)
|
|
Senior Member
Join Date: Mar 2003
Location: Rep. of Ireland
Posts: 373
|
As far as I know, the removeupgrade feature isn't in Generals anyway, only ZH
|
|
|
09-10-2004, 11:02 PM
|
#6 (permalink)
|
|
Senior Member
Join Date: Feb 2004
Location: Glued to the chair in front of my laptop
Posts: 1,158
|
You don't remove the upgrade, you just do a cycle of upgrades, like Set 1 has a button to upgrade to Set 2, then Set 2 can upgrade to Set 1, and back and forth and back and forth and etc.
|
|
|
09-11-2004, 07:03 AM
|
#7 (permalink)
|
|
Senior Member
Join Date: Jan 2004
Location: Elgin, Scotland, UK
Posts: 168
|
First, remove upgrade is a feature of Generals, as this is how the drones work (I think)-when the drone dies, the upgrade which was used to purchase it is removed, allowing a second drone to be purchased.
Second, you do need to kill the upgrades, 'coz if you don't, you can only upgrade the command set twice, as an upgrade can only be puchased once.
This method definitely works in Generals, 'coz it was used in the Light of Five Stars mod, but they used a lot more code than that. That code should work in both Generals and zero Hour though.
|
|
|
09-11-2004, 08:14 AM
|
#8 (permalink)
|
|
Senior Member
Join Date: May 2004
Posts: 303
|
first off, the search button is sometimes ineffective at showing exactly what u want... and second, im still in the dark, but ill try killas...
|
|
|
09-11-2004, 08:23 AM
|
#9 (permalink)
|
|
Senior Member
Join Date: May 2004
Posts: 303
|
i think gen supports upgrade die, not removes upgrade.... game doesnt start but points to worker code.
|
|
|
09-11-2004, 08:39 AM
|
#10 (permalink)
|
|
Senior Member
Join Date: Jan 2004
Location: Elgin, Scotland, UK
Posts: 168
|
OK, I searched the LOFS code and found this:
Add this to the Unit
;----------------------- Command Set Changes -----------------------
Behavior = CommandSetUpgrade ModuleTag_commandup
CommandSet = AmericaDozerCommandSetTech
TriggeredBy = Upgrade_AmericaDozerUpgrade
End
Behavior = CommandSetUpgrade ModuleTag_commandup2
CommandSet = AmericaDozerCommandSet
TriggeredBy = Upgrade_AmericaDozerUpgradeDefault
End
; releases the upgrade otherwise you cannot switch between them since they've already been purchased
Behavior = ObjectCreationUpgrade ModuleTag_commandup3
UpgradeObject = OCL_AmericaCommandsetupgraderelease
TriggeredBy = Upgrade_AmericaDozerUpgrade Upgrade_AmericaDozerUpgradeDefault
End
;------------------------------------------------------------------
Add this into System.ini (or any other .ini in the Object folder)
;------------------------------------------------------------------------------
Object AmericaDozerCommandSetRelease
; ***DESIGN parameters ***
VisionRange = 0.0
EditorSorting = SYSTEM
KindOf = NO_COLLIDE IMMOBILE UNATTACKABLE INERT
; *** ENGINEERING Parameters ***
Body = InactiveBody ModuleTag_01
;nothing
End
Behavior = UpgradeDie ModuleTag_02
DeathTypes = ALL
UpgradeToRemove = Upgrade_AmericaDozerUpgrade ModuleTag_05
End
Behavior = UpgradeDie ModuleTag_03
DeathTypes = ALL
UpgradeToRemove = Upgrade_AmericaDozerUpgradeDefault ModuleTag_06
End
Behavior = LifetimeUpdate ModuleTag_04
MinLifetime = 50
MaxLifetime = 50
End
End
;--------------------------------------------------------------------------
Add this into ObjectCreationList.ini
; -----------------------------------------------------------------------------
ObjectCreationList OCL_AmericaCommandsetupgraderelease
CreateObject
Offset = X:0 Y:0 Z:50
ObjectNames = AmericaDozerCommandSetRelease
IgnorePrimaryObstacle = Yes
Disposition = LIKE_EXISTING
Count = 1
RequiresLivePlayer = Yes
End
End
; -----------------------------------------------------------------------------
Add this to upgrade .ini
;------------------------------------------------------------------------------
Upgrade Upgrade_AmericaDozerUpgrade
DisplayName = UPGRADE:CommandChange
Type = OBJECT
BuildTime = 0.001
BuildCost = 0
ButtonImage = SCTempDefaultCommand
ResearchSound = CommandSetChangeVoice
End
Upgrade Upgrade_AmericaDozerUpgradeDefault
DisplayName = UPGRADE:CommandChange
Type = OBJECT
BuildTime = 0.001
BuildCost = 0
ButtonImage = SCTempDefaultCommand
ResearchSound = CommandSetChangeVoice
End
;------------------------------------------------------------------------------
Then just add a command button to use each upgrade, and add these buttons to your units command sets.
I may have missed somthing, so tell me if u cant get it to work
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -4. The time now is 07:52 AM.
|