This is a weird one. In my Space Empires module, I have a series of GKCs that execute in a sequence that ends with a bunch of unneeded pieces being deleted via a selfdestruct command. Here’s where it gets strange: Despite my parameters, the SeflDestruct command does not execute for some pieces like it should. BUT, if I press the UNDO button on the main toolbar and re-execute the GKC, it works on the second attempt – every time. I offer an explanation in my instructional video: https://youtu.be/n2_RuuGCDm8
The module is available here on the site. It’s the latest version. I just thought that developers should know that there’s something weird going on. I’m using VASSAL 3.7.30. \
@Alexander331bc Please put a link to the project you are talking about. Searching the game library for Space Empires yields 3 results, and it may not be clear which one you are talking about.
A way to try to debug this problem could be to save a log and then see if some (Global) property is set between the button press and the UNDO, which could effect the second button press:
Open the module and select board (which one is relevant?)
Start a log file
Open the Exploration Counters panel by pressing the Explore button
Press the Use Variants button
Press the Undo button
Press the Use Variants button again
End the log file
To see what is written in the log file, use the utility vsavdump.py from pywargame.
(note, you can give an explicit time-stamp reference to a youtube video by right-clicking the video and selecting “share link at current time” (or something like that). For example this link takes you to about 2:20 into the above cited video.
Thanks! I shared the whole video for full context (it’s an odd problem that I find not easy to explain). The link to my module is in my original message here in the forum. I tried that pywargame link from your message and all I get is an HTTP 404 error.
When you share a link to a specific timestamp, it is still possible to rewind and see the entire video from start to end. The point of sharing with a timestamp, is to make it easier to find where your specific comments are. If one needs more context, it is easy enough to rewind the video.
Sorry, but I don’t see a link in your original message to the project in question - only the title “Space Empires”, which is ambiguous.
I’d made a typo in the link - it is corrected above, and here again: pywargame.
I tried to dump the log after the procedure outlined above. It seems like you set the Exploration Counters map property Variant to true and the end of the execution of your Use Variants procedure, and that that property isn’t reset when you UNDO. Could it be that that property has an effect on what gets deleted or not? Could it be, that that property isn’t initialised when the module is loaded, and therefore not all pieces are deleted? Just thinking out loud.