[FIXED] Remove Side Trigger Failing to Execute?

Post bug reports and ask for game support here.

Moderator: MOD_Command

Post Reply
gpotter511
Posts: 52
Joined: Wed Oct 04, 2017 12:55 pm

[FIXED] Remove Side Trigger Failing to Execute?

Post by gpotter511 »

I wonder if anyone has ever had an issue with ScenEdit_RemoveSide failing to...well, remove the side?

The script I am using is: ScenEdit_RemoveSide({name='Unidentified Forces'}). I have verified that the spelling is correct between the actual side and the script.

I have had this work before, but did some editing on the LUA actions today. The script is now failing - as in, not removing the side - in both the console and when the event is triggering "live". I receive no errors in the console or in the message log. It just refuses to delete the side.

Thanks much,
Geoff
User avatar
michaelm75au
Posts: 12457
Joined: Sat May 05, 2001 8:00 am
Location: Melbourne, Australia

RE: Remove Side Trigger Failing to Execute?

Post by michaelm75au »

Save or scen file so it can be tried??
Michael
gpotter511
Posts: 52
Joined: Wed Oct 04, 2017 12:55 pm

RE: Remove Side Trigger Failing to Execute?

Post by gpotter511 »

FYI, the solution to this problem is to use the script "ScenEdit_RemoveSide({side='NameOfSideToBeRemoved'})"

The Command LUA Github implies that the correct table should be "({name='NameOfSideToBeRemoved})".

While the game will accept this, such a string has no effect.
User avatar
michaelm75au
Posts: 12457
Joined: Sat May 05, 2001 8:00 am
Location: Melbourne, Australia

RE: Remove Side Trigger Failing to Execute?

Post by michaelm75au »

Checked the code and found it was using the 'unit' parser rather than one for 'side'. Corrected for future.
This was fixed for AddSide() but must have missed the RemoveSide()
Michael
gpotter511
Posts: 52
Joined: Wed Oct 04, 2017 12:55 pm

RE: Remove Side Trigger Failing to Execute?

Post by gpotter511 »

Thanks, Michael!
Post Reply

Return to “Tech Support”