Posted by: Nick.B - Monday, September 1, 2014 9:05:51 PM
Okay, I am trying to figure out how to place another command button in lazer generals warfactory again so I can build more units besides the ones already included. Some how When I click on the CommandButton "AdditionalCommands", I cannot get back to the original commands. It just shows nothing and the rally point flag does not show either.
I have asked about this kind of stuff in an earlier post, but I lost all of my work unfortunately, so I have to do it all over again.
Here is the LazerGeneral.ini Warfactory:
[quote] Behavior = CommandSetUpgrade ModuleTag_ComSet01
CommandSet = Lazr_AmericaWarFactoryCommmandSetAdditionalCommands
TriggeredBy = Upgrade_SwitchCommandSet
RemovesUpgrades = Upgrade_SwitchBackCommandSet
End
Behavior = CommandSetUpgrade ModuleTag_ComSet02
CommandSet = Lazr_AmericaWarFactoryCommandSet
TriggeredBy = Upgrade_SwitchBackCommandSet
RemovesUpgrades = Upgrade_SwitchCommandSet Upgrade_SwitchBackCommandSet
End
[/quote]
Command Set INI
[quote] CommandSet Lazr_AmericaWarFactoryCommandSet
1 = Lazr_Command_ConstructAmericaVehiclePitbull
3 = Lazr_Command_ConstructAmericaVehiclePitLas
5 = Lazr_Command_ConstructAmericaVehiclePitMis
7 = Lazr_Command_ConstructAmericaVehiclePitScout
9 = Lazr_Command_ConstructAmericaVehiclePitAven
2 = Lazr_Command_ConstructAmericaVehiclePredator
4 = Lazr_Command_ConstructAmericaVehiclePredator_Part
6 = Lazr_Command_ConstructAmericaVehiclePredator_Plas
8 = Lazr_Command_ConstructAmericaVehiclePredator_Micr
10 = Lazr_Command_ConstructAmericaVehiclePredator_AA
12 = Command_UpgradeAmericaAuxMissiles_UpgradeObject
13 = Command_SetRallyPoint
11 = Command_UpgradeUSABuildingDefense
14 = Command_UpgradeGLAWorkerFakeCommandSet
End
CommandSet Lazr_AmericaWarFactoryCommandSet_AdditionalCommands
14 = Command_UpgradeGLAWorkerRealCommandSet
13 = Command_SetRallyPoint
1 = Lazr_Command_ConstructAmericaVehicleHumvee
End
[/quote]
Is there anything wrong?
Posted by: Gameanater - Monday, September 1, 2014 9:25:55 PM
I haven't experimented much with this kind of work but I'll try and be useful.
----
11 = Command_UpgradeUSABuildingDefense
[b]14 = Command_UpgradeGLAWorkerFakeCommandSet[/b]
End
----
Unless you've changed the FakeCommandSetButton to switch to the AdditionalCommands set of CommandButtons, I would think that it'd switch the War Factory to using the Worker's CommandSets.
Same thing for this:
-----
CommandSet Lazr_AmericaWarFactoryCommandSet_AdditionalCommands
[b] 14 = Command_UpgradeGLAWorkerRealCommandSet[/b]
13 = Command_SetRallyPoint
1 = Lazr_Command_ConstructAmericaVehicleHumvee
End
----
If that happened, the buttons would probably be grayed out for building structures since the War Factory has no code for doing that.
But I don't really know why [i]nothing[/i] is showing up... I would have expected the above to happen and not this... [disappointed]
Also, try putting ["code=plain"] and ["/code] around your code when posting here. It prevents any spaces from being removed in the post. [smile]
[code=plain]
Hi
There
I
Would
Be
Code
[/code]
But be careful when putting more then one of these code boxes in a reply... For at least it tends to get quite messed up when I do that.
Posted by: Nick.B - Monday, September 1, 2014 9:39:26 PM
Sorry about that. I will do that next time. I'm not sure how or why this happened. Maybe I'm overlooking something.
Posted by: qqqqqqqqqp - Tuesday, September 2, 2014 8:10:55 PM
Me and Klingon have done something I don't remember where but it was adding it to the dozer so it could build more buildings
Posted by: Gameanater - Tuesday, September 2, 2014 8:15:04 PM
I've had problems where I am [i]completely stumped[/i] as too what went wrong. Like here: http://www.cnclabs.com/forums/cnc_postst13784_Trouble-Changing-Models.aspx
So I can empathize. Modding can get quite frustrating!
Posted by: qqqqqqqqqp - Tuesday, September 2, 2014 8:40:44 PM
Here is the thread [url]http://www.cnclabs.com/forums/cnc_postst13680_Help-with-Coding.aspx[/url]
Posted by: Nick.B - Tuesday, September 2, 2014 8:56:40 PM
Actually I have asked this same question on how to add a switchback commandset before in this post here: http://www.cnclabs.com/forums/cnc_postst12500_How-to-add-a-new-CommandButton.aspx
I just can't remember how I got everything to work properly for it.
Posted by: Nick.B - Wednesday, December 31, 2014 3:52:41 PM
[b]Update:[/b]
I got the Lazr General War Factory Switch command button to show up on the war factory menu, but when I put my mouse over it, it says conflicting upgrade cannot be purchased. It is also not highlighted either. Any other ideas?
Thank you.
Posted by: klingondragon - Wednesday, December 31, 2014 3:55:59 PM
When you make the upgrade it has a line for conflicting upgrades
Make sure they don't conflict
Posted by: qqqqqqqqqp - Thursday, January 1, 2015 2:58:56 PM
pardon me as i go dig my codes for this.... ill be back sometime
Posted by: Nick.B - Thursday, January 1, 2015 10:10:23 PM
Okay now I am now able to click on the command button for additional commands, but when I do, it just shows nothing and the relay flag is missing when you set it. I can't even go back, so Lazr Generals war factory becomes useless after I click that button.
Posted by: qqqqqqqqqp - Thursday, January 1, 2015 11:25:50 PM
ok I'll i can say look at the gla worker command set model yours after it and make shere it's spelled correct I'll add a more detailed list when i find my codes
Posted by: Nick.B - Friday, January 2, 2015 10:10:42 PM
Everything is spelled correctly. So there is no problem there.
Posted by: Annihilationzh - Friday, January 2, 2015 10:51:32 PM
[quote=Nick.B;135373]Everything is spelled correctly. So there is no problem there.[/quote]
Are you using the same code as in the original post? If so, it's not spelled correctly.
Posted by: Nick.B - Saturday, January 3, 2015 5:42:23 PM