Dynamic Property fails to change first time, succeeds second

When I set off a string of commands to set, and then reset a Dynamic Property on a piece, starting from a turn activated gkc, the key to reset the Dynamic Property will trigger, but the reset itself will fail. However when I UNDO the entire process and try again it succeeds, or If I simply start the process a second time it succeeds. This odd behavior doesn’t seem to happen if the entire process is triggered any other way outside of a gkc activated by a turn change.

It appears to be an odd and very situational bug, I’ve attached the module so it may be looked at.

Replicating the problem in the module:
Choose any side.
Take a Crawler piece and place it anywhere on the board, it should turn invisible.
Take a Nurser piece and place it near by (preferably next to) the Crawler piece.
THEN
Turn the turn counter once, and nothing will happen (the Crawler piece should have become visible).
Turn the turn counter again, and the Crawler will become visible.
OR
Turn the turn counter once, and nothing will happen (the Crawler piece should have become visible).
Then UNDO twice, and turn the counter once, the Crawler becomes visible.

It should have became visible the first time, without the need to turn the counter a second time, or the need to undo the first attempt and redo it. In my debugging I’ve found the keys that fire off to make the whole thing work are in fact firing, but the Dynamic Property fails to acknowledge the first attempted time for reasons unknown.

Forgot to post system specs.

  • Custom Model Computer
  • Windows XP Operating System
  • Intel Core 2 Duo CPU 2.93 GHz
  • 2 GB Memory
  • Nvidia GeFore GTS 250 Video Card
  • Vassal version 3.1.20
  • Java version 1.7.0_07

Side note: An edit button that is available for more then a few minutes would be nice.

I haven’t looked at the module but I’ve found in the past that Dynamic Properties work best if listed at the top of the trait list. I don’t know why this should be as you’d expect them to work in execution order like everything else. You might try that and see if it changes.

I tried it and nothing changed at all, it still continued the odd behavior with no differences what so ever.

Thanks for the suggestion though.

Thus spake reddeblu:

When I set off a string of commands to set, and then reset a Dynamic
Property on a piece, starting from a turn activated gkc, the key to
reset the Dynamic Property will trigger, but the reset itself will fail.
However when I UNDO the entire process and try again it succeeds, or If
I simply start the process a second time it succeeds. This odd behavior
doesn’t seem to happen if the entire process is triggered any other way
outside of a gkc activated by a turn change.

It appears to be an odd and very situational bug, I’ve attached the
module so it may be looked at.

Replicating the problem in the module:
Choose any side.
Take a Crawler piece and place it anywhere on the board, it should turn
invisible.
Take a Nurser piece and place it near by (preferably next to) the
Crawler piece.
THEN
Turn the turn counter once, and nothing will happen (the Crawler piece
should have become visible).
Turn the turn counter again, and the Crawler will become visible.
OR
Turn the turn counter once, and nothing will happen (the Crawler piece
should have become visible).
Then UNDO twice, and turn the counter once, the Crawler becomes visible.

It should have became visible the first time, without the need to turn
the counter a second time, or the need to undo the first attempt and
redo it. In my debugging I’ve found the keys that fire off to make the
whole thing work are in fact firing, but the Dynamic Property fails to
acknowledge the first attempted time for reasons unknown.

Is this still happening with the current version of VASSAL, 3.2.6?


J.