logfile/sync issues

Model: Gateway GT5648E
OS: Vista SP2
CPU: AMD Athlon 64 X2 Dual Core 6000+3.00GHz
Memory: 3GB
Video: GeForce 8600 GT
VASSAL: 3.1.14
Java: 1.6.0_20
Module: Battle Above the Clouds 1.4 (available in the Modules section)

This module uses a trigger sequence to recover all units at the end of a turn. Problem is, opponents playing live or exchanging logfiles do not see the same thing once the reovery process is complete. Take the following steps to see the problem:

  1. Open Scenario 7 - Ringgold Gap - and sign in as any side. Start a logfile.
  2. Click on the leftmost Recover button (the one with the sun on it) in the toolbar.
  3. You will see most of the units on the map sprout a Breastworks X2 counter. End the logfile and save here.
  4. Now load the logfile but sign in as a different side. Step through the logfile. At the end, you will see that those Breastworks X2 counters display as Breastworks Build instead. Breastworks Build is one level below Breastworks X2 in that layer.

I can’t figure out why this happening. It happens in all the scenarios, not just 7.

Definitely weird. If I save the game state after ending the log, Start
module again, change sides and load the save it’s ok, but the logfile is not
as surmised.

Tried using a clean new game as well instead of the pre defined scenario to
make sure there aren’t any oddities in the pre defined file for whatever
reason - same result. Looks like a bug

-----Original Message-----
From: messages-bounces@vassalengine.org
[mailto:messages-bounces@vassalengine.org] On Behalf Of rfdoane
Sent: Wednesday, September 08, 2010 7:35 PM
To: messages@vassalengine.org
Subject: [messages] Edit: [Technical Support & Bugs] logfile/sync issues

[This message has been edited.]

Model: Gateway GT5648E
OS: Vista SP2
CPU: AMD Athlon 64 X2 Dual Core 6000+3.00GHz
Memory: 3GB
Video: GeForce 8600 GT
VASSAL: 3.1.14
Java: 1.6.0_20
Module: Battle Above the Clouds 1.4 (available in the Modules section)

This module uses a trigger sequence to recover all units at the end of a
turn. Problem is, opponents playing live or exchanging logfiles do not
see the same thing once the reovery process is complete. Take the
following steps to see the problem:

  1. Open Scenario 7 - Ringgold Gap - and sign in as any side. Start a
    logfile.
  2. Click on the leftmost Recover button (the one with the sun on it) in
    the toolbar.
  3. You will see most of the units on the map sprout a Breastworks X2
    counter. End the logfile and save here.
  4. Now load the logfile but sign in as a different side. Step through
    the logfile. At the end, you will see that those Breastworks X2 counters
    display as Breastworks Build instead. Breastworks Build is one level
    below Breastworks X2 in that layer.

I can’t figure out why this happening. It happens in all the scenarios,
not just 7.


Read this topic online here:
https://forum.vassalengine.org/t/logfile-sync-issues/3255/1

Weird indeed. The player who alerted me to the problem confirmed that it happens during live play too. Whoever hits the recovery button sees the correct sequence on his screen, but the opponent who is synced with him sees the incorrect markers.

Do I need to report this as a bug? If so, I’m not sure how to do that.

The bug is in Global Key Command. It logs its changes separately rather than adding to the other changes going on. Since this module uses a global key to fire off actions which trigger other keys which fire global keys etc etc this logging causes events to be done in a different order when playing the log file back.

Adjusting the code to add its log to the other changes corrects the problem.

Reported as bug 2979