GeneralManF
13 years ago
Hello! me again.

I'm having problems with making an upgrade change the command set of a building.
i tried to simply copy the china mines script and change it up to work with my command set.
The problem i'm having is what i call,no host for command set error. This happens when there is the game finds a command set, but it has not used in anything, i can tell the difference between this one and script other errors because this one occurs right after the game starts up instead of right before.

command set

CommandSet WarL_GLAPalaceCommandSet
1 = Command_StructureExit
2 = Command_StructureExit
3 = Command_StructureExit
4 = Command_StructureExit
5 = Command_StructureExit
6 = Command_Evacuate
7 = Command_UpgradeGLAFortifiedStructure
8 = Command_UpgradeGLAArmTheMob
9 = Command_UpgradeGLACamouflage
10 = Command_UpgradeGLAToxinShells
11 = Command_UpgradeGLAAnthraxBeta
12 = GC_Slth_Command_UpgradeGLAQuadCannonSnipeGun
13 = Demo_UpgradeSuicideBomb
14 = Command_Sell
End

CommandSet WarL_GLAPalaceCommandSetUpgrade
1 = Command_StructureExit
2 = Command_StructureExit
3 = Command_StructureExit
4 = Command_StructureExit
5 = Command_StructureExit
6 = Command_Evacuate
7 = Command_UpgradeGLAFortifiedStructure
8 = Command_UpgradeGLAArmTheMob
9 = Command_UpgradeGLACamouflage
10 = Command_UpgradeGLAToxinShells
11 = Command_UpgradeGLAAnthraxGamma
12 = GC_Slth_Command_UpgradeGLAQuadCannonSnipeGun
13 = Demo_UpgradeSuicideBomb
14 = Command_Sell
End


change set script

Behavior = CommandSetUpgrade ModuleTag_25
CommandSet = WarL_GLAPalaceCommandSetUpgrade
TriggeredBy = Upgrade_GLAAnthraxBeta
End

what i find strange is that, to my knowledge, this is the exact duplicate for how commandset changing works, yet it crashes the game.
Sponsor
Annihilationzh
13 years ago
There is no such CommandButton as Command_UpgradeGLAAnthraxGamma.

That was a really subtle one. I looked at it yesterday and had no clue.
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
GeneralManF
13 years ago
But I copy-pasted the code from the toxin gen's Palace commandset-
*looks over commandsets*
...
oh!
*facepalm*
forgot the Chem_... Thanks!

ok, i just had a similar problem with a new unit, I tried to give the Marauder and scorpion the demopack upgrade, but the same thing happens.

CommandSet WarL_GLATankScorpionCommandSet
1 = Command_TransportExit
2 = Command_TransportExit
3 = Command_TransportExit
4 = Command_TransportExit
5 = Command_TransportExit
6 = Command_TransportExit
7 = Command_Evacuate
11 = Demo_Command_TertiarySuicide
12 = Command_AttackMove
13 = Command_Guard
14 = Command_Stop

CommandSet WarL_GLATankMarauderCommandSet
11 = Demo_Command_TertiarySuicide
12 = Command_AttackMove
13 = Command_Guard
14 = Command_Stop

and here is all the script i know about for this


Weapon = TERTIARY TerroristSuicideNotARealWeapon
AutoChooseSources = TERTIARY NONE

Behavior = SlowDeathBehavior ModuleTag_Death17
DeathTypes = NONE +SUICIDED +EXPLODED
SinkDelay = 3000
SinkRate = 0.5 ; in Dist/Sec
DestructionDelay = 8000
FX = INITIAL FX_TerroristExplode
FlingForce = 8
FlingForceVariance = 3
FlingPitch = 60
FlingPitchVariance = 10
End

Behavior = FireWeaponWhenDeadBehavior ModuleTag998
DeathWeapon = Demo_SuicideDynamitePackPlusFire
StartsActive = No
TriggeredBy = Demo_Upgrade_SuicideBomb
DeathTypes = NONE +SUICIDED
End

Behavior = FireWeaponWhenDeadBehavior ModuleTag999
DeathWeapon = Demo_DestroyedWeapon
StartsActive = No
TriggeredBy = Demo_Upgrade_SuicideBomb
DeathTypes = ALL -SUICIDED
End

[For scorpion APC]
Behavior = TransportContain ModuleTag_14
PassengersAllowedToFire = Yes
Slots = 6
; EnterSound = GarrisonEnter
; ExitSound = GarrisonExit
DamagePercentToUnits = 100% ;10%
AllowInsideKindOf = INFANTRY
ExitDelay = 250
NumberOfExitPaths = 3 ; Defaults to 1. Set 0 to not use ExitStart/ExitEnd, set higher than 1 to use ExitStart01-nn/ExitEnd01-nn
GoAggressiveOnExit = Yes ; AI Will tell people to set their mood to Aggressive on exiting
End
thebunnybruce
13 years ago
Also noticed the gamma upgrade is missing, could not apply it in my last map, but also noticed that the tank general airfield is not avalible from the tech tree drop down list... I know how to get around this but just though I'd mention it.
I'm not as cute as I look!
I'm still learning!
GeneralManF
13 years ago
that doesn't really have anything to do with this conversation.
Annihilationzh
13 years ago
It's also not true. Tank General's airfield is not missing, it's simply misclassified.

It's official Side is China instead of ChinaTankGeneral.
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.