Refresh Counters command

The GamePiece refresher was not working properly when trying to refresh a game where the pieces have no GamePieceId’s allocated. This can happen where the game was create from a predefined setup that was created before GPId’s where introduced and many modules built prior to 3.1 will have this issue.

I have done several things

  1. Fixed the bug that caused pieces with no gpid to be deleted.
  2. Added additional information in the report generated to indicate how many counters where refreshed and how many could not be refreshed.
  3. Added a dialog that allows the user to do a test refresh and see the report without updating the counters
  4. Added an option to search for a matching slot based on the unit name when a counter is found with no gpid. [Note this may not find the correct counter to use for the refresh if there are duplicate counter names, or the names have been changed since the save game was first created]
  5. Write names of counters that cannot be refreshed to the Error Log.

Committed to Brent-3.2-Server@8649

I’d like to get some feedback on this one once it is in a development build.

Brent.

Apologies if this is going to sound really dense–I can only loosely follow all the programming talk.

Is it accurate to say that the Refresh Counters tool will ignore pieces which were never in a palette to begin with? My modules are mostly card-driven games, so the cards start in Decks. During design I never had them as palette items at all. Ditto for many of my pieces–I make heavy use of At-Start Stacks (for fixed size force pools, items which should never be deleted or have duplicates created, etc).

I know that taking the longer view, this is all going to go away in VASSAL 4, so I’m not really sweating it.

Hi Joel,
No need to worry. I take Decks, At-Start Stacks and Place Marker/Replace With Other definitions into account as well as Game Palette items.
Brent.

Thus spake Brent Easton:

The GamePiece refresher was not working properly when trying to refresh
a game where the pieces have no GamePieceId’s allocated. This can happen
where the game was create from a predefined setup that was created
before GPId’s where introduced and many modules built prior to 3.1 will
have this issue.

I have done several things

  1. Fixed the bug that caused pieces with no gpid to be deleted.
  2. Added additional information in the report generated to indicate how
    many counters where refreshed and how many could not be refreshed.
  3. Added a dialog that allows the user to do a test refresh and see the
    report without updating the counters
  4. Added an option to search for a matching slot based on the unit name
    when a counter is found with no gpid. [Note this may not find the
    correct counter to use for the refresh if there are duplicate counter
    names, or the names have been changed since the save game was first
    created]
  5. Write names of counters that cannot be refreshed to the Error Log.

Committed to Brent-3.2-Server@8649

I’d like to get some feedback on this one once it is in a development
build.

Merged to trunk@8653. Try 3.2.5-svn8654 or later:

vassalengine.sourceforge.net/builds/


J.