elliesy
  • elliesy
  • 51% (Neutral)
  • Major Topic Starter
Sponsor
AdrianeMapMaker
8 years ago
what do you mean? a new place for commandbutton
A part of ZH worldbuilders map making community
https://discord.gg/tJ6zyGb 

UserPostedImage




mr_hymn_
8 years ago
Have you used up all 12 slots?

If so, then I am sorry because for general 1 you can't unless you can find a mod that provide more than 12 slots.

In ZH it's 14 and can change switch commandset and have 1 mod that increasing commandset from 14 to 18
I am learning how to add those commandset into my game myself....
acidbrain
8 years ago

In ZH it's 14 and can change switch commandset

Originally Posted by: Mr_Hymn_ 


In Vanilla Generals you can also switch commandsets but the code is a bit different...

Greetz

Panem et kirkinses
mr_hymn_
8 years ago

In ZH it's 14 and can change switch commandset

Originally Posted by: acidbrain 


In Vanilla Generals you can also switch commandsets but the code is a bit different...

Greetz

Originally Posted by: Mr_Hymn_ 



I tried so many times to switch commandset in old general and end up with game crash. I think the possible way is in the ZH version. The combat bike logic, worker logic and fake/real building logic.
acidbrain
8 years ago
Vanilla Generals Dozer commandset switch...

;Object code, place in dozer object
  CommandSet = AmericaDozerCommandSet-1

  ;---- Command Set Changes ----
  Behavior = CommandSetUpgrade ModuleTag_commandSet1
    CommandSet = AmericaDozerCommandSet-2
    TriggeredBy   = Upgrade_AmericaDozerCommandSet-2
  End
  Behavior = CommandSetUpgrade ModuleTag_commandSet2
    CommandSet = AmericaDozerCommandSet-1
    TriggeredBy   = Upgrade_AmericaDozerCommandSet-1
  End
  ;releases the object which removes the upgrade otherwise you cannot 
  ;switch between them since they've already been purchased
  Behavior = ObjectCreationUpgrade ModuleTag_commandSet3
    UpgradeObject = OCL_AmericaDozerCommandsetSwitch
    TriggeredBy   = Upgrade_AmericaDozerCommandSet-2 Upgrade_AmericaDozerCommandSet-1
  End

;----------------------------------------------------------------
; ObjectCreationList.ini
ObjectCreationList OCL_AmericaDozerCommandsetSwitch
  CreateObject
    Offset = X:0 Y:0 Z:50 
    ObjectNames = AmericaDozerCommandSetSwitch
    IgnorePrimaryObstacle = Yes
    Disposition = LIKE_EXISTING
    Count = 1
    RequiresLivePlayer = Yes
  End
End

;----------------------------------------------------------------
;Upgrade.ini
Upgrade Upgrade_AmericaDozerCommandSet-1
  DisplayName = UPGRADE:CommandSetSwitch
  Type        = OBJECT
  BuildTime   = 0.001
  BuildCost   = 0
  ButtonImage = CSArrowUp
End

Upgrade Upgrade_AmericaDozerCommandSet-2
  DisplayName = UPGRADE:CommandSetSwitch
  Type        = OBJECT
  BuildTime   = 0.001
  BuildCost   = 0
  ButtonImage = CSArrowDown
End

;----------------------------------------------------------------
;System.ini
Object AmericaDozerCommandSetSwitch

  ; ***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_AmericaDozerCommandSet-2 ModuleTag_05
  End

  Behavior = UpgradeDie  ModuleTag_03
    DeathTypes = ALL
    UpgradeToRemove = Upgrade_AmericaDozerCommandSet-1 ModuleTag_06
  End

  Behavior = LifetimeUpdate ModuleTag_04
    MinLifetime = 1
    MaxLifetime = 1
  End
End

;----------------------------------------------------------------
; CommandSet.ini
CommandSet AmericaDozerCommandSet-1
  blabla
  12 = Command_AmericaDozerCommandSet-2
End

CommandSet AmericaDozerCommandSet-2  
  blabla
  12 = Command_AmericaDozerCommandSet-1
End

;----------------------------------------------------------------
;MappedImages
MappedImage CSArrowUp
  Texture = CSArrowUp.tga
  TextureWidth = 206
  TextureHeight = 187
  Coords = Left:0 Top:0 Right:206 Bottom:187
  Status = NONE
End

MappedImage CSArrowDown
  Texture = CSArrowDown.tga
  TextureWidth = 206
  TextureHeight = 187
  Coords = Left:0 Top:0 Right:206 Bottom:187
  Status = NONE
End

If i made no mistakes this stuff should work...

Greetz   ArrowTextures.rar (30kb) downloaded 6 time(s).
Panem et kirkinses
mr_hymn_
8 years ago
Is this one works with ZH?
acidbrain
8 years ago

Is this one works with ZH?

Originally Posted by: Mr_Hymn_ 


It should work but it is pointless to use it because ZH has a better method...:P

Panem et kirkinses
mr_hymn_
8 years ago
It's true but I am just asking because my unit contained more than 4 switching commandset it's working correctly but sometimes I need to click on the button 4 times to switch the commandset.

The first switching commandset button. needs 1 click, second button needs 2 clicks, third needs 3 clicks, fourth needs 4. so it's frustrated when clicking on 2nd-4th button to switch commandset.


I am not sure about the combatbike logic might work?