## VASSAL Reference Manual

Home > Tools > Refresh Predefined Setups

### Refresh Counters

When you update the Prototypes in a module, those changes will affect any future games started using that module, but the changes will not—​by default at least—​affect pieces in any ongoing games that you load with the new version of the module. VASSAL saved games include the complete definition of each piece in order to maintain saved game compatibility with older versions of a module: so that replays and saves sent to you by someone with an earlier version of the module will continue to work in the same way they always did with the old version.

But particularly since the Predefined Setups for module scenarios are stored internally as saved games, it is often important to module designers to be able to update an existing game to use the latest prototypes. That way a module designer can often avoid re-doing complex setups simply because prototypes have been updated and improved.

Running the Refresh Predefined Setups tool is equivalent to running the Refresh Counters Tool on each of the predefined setups in a module.

To use the refresher on all the Predefined Setups in a module go to the Editor’s Tools menu and select Refresh Pre-Defined Setups. You will be shown a dialog with several choices affecting the manner in which the operation is to be carried out.

Click the Run button when you are ready to perform the refresh. All Predefined Setups in the module will be updated, which may take some time, especially for complex modules with many pre-defined setups. The chat log will show output and statistics from the operation. Once the operation is finished, pieces in all pre-defined setups will have been updated to use the latest prototypes.

+

Note that you should then save your module to complete the update.

#### Deck Refresher

As of VASSAL 3.6 you can also refresh the Decks in a module. Like Game Pieces, Decks are not normally updated from the module definitions during a game, and so if you have an updated version of the module and load a saved game the deck will still behave according to the original settings. This maintains backward-compatibility with saves and logs made with earlier versions of a module, but it can become awkward when managing modules that use Pre-defined Setups as starting positions. The Deck Refresher lets you update, add, and delete decks in a game, for this reason.

If you select the Refresh decks option when running the Game Refresher, existing decks will be refreshed from the latest settings and positions in the module definition. This will update almost all of the properties of the deck, including key commands, menu text, and the various check-box options that configure a deck. A deck can even be moved from one position to another this way. However, decks are matched by name, so changing the name of a deck will make the deck refresher think that a deck of the old name has been deleted and a new deck has been created.

##### Adding and Deleting Decks

When Refresh decks is selected, two additional options also become available, to add and delete decks.

If you select the Delete decks option, then any deck found in the game being refreshed that does not match (by name and board) a deck in the module definition will be deleted. Any current contents (e.g. cards) in that deck will be left in a stack at the deck’s former location.

If you select the Add decks option, then any new deck found in the module definition that does not exist in the game being refreshed will be added. Note this will not add any contents (e.g. cards) to the deck, it will only add the deck. If you need to add contents you will need to arrange to add them separately, e.g. from a piece palette, or dragged in from some other location.