Page 1 of 1

[FIXED] Remove Side Trigger Failing to Execute?

Posted: Tue Jan 22, 2019 5:38 am
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

RE: Remove Side Trigger Failing to Execute?

Posted: Tue Jan 22, 2019 7:40 am
by michaelm75au
Save or scen file so it can be tried??

RE: Remove Side Trigger Failing to Execute?

Posted: Wed Jan 23, 2019 12:16 am
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.

RE: Remove Side Trigger Failing to Execute?

Posted: Wed Jan 23, 2019 7:19 am
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()

RE: Remove Side Trigger Failing to Execute?

Posted: Wed Jan 23, 2019 3:55 pm
by gpotter511
Thanks, Michael!