VASSAL 3.5 Release Notes

This article will give you a quick tour of the new features in VASSAL 3.5, as well as listing some significant player-facing bug fixes.

= New Features =

Flare Command
A "Flare" command has been added, allowing you to draw an opponent's attention to a particular location on the map. By default this is by Alt + Left Click but it can be reconfigured by the module designer. A pulsing circle will appear at the target location on the maps of all other players.

This feature works both in online play and PBEM games being replayed from the log.



Performance Improvements for Global Key Commands


Global Key Commands now include "Fast Match" options which can be used to improve the performance of "slow" Global Key Commands by pre-matching the location and/or a single property value of the target piece. Essentially these run limited but much faster comparisons, to screen out some of the potentially hundreds of pieces needing to be checked for each Global Key Command. Fast Match expressions are optional in that the same comparisons can always be run in the standard "Additional matching expression" field. Judicious use of them, however, can improve the performance of a Global Key Command by 25-33%.

There is some necessary complexity involved with Fast Match, in order to achieve performance optimization. Any expressions supplied in Fast Match fields are immediately evaluated against the source (issuing) piece, but the results of those expressions are then matched to the target piece. For example if a Fast Match "by Property" is selected with the property name field filled with {"Status"} and the property value field is filled with {Rank + 1}, then the Rank property of the source piece will be read immediately, and a number one higher than it will be the value which is then compared to the value of the "Status" property in all potential target pieces. If instead of {"Status"} the property name field were filled with {"Status" + Type}, then the value of Type from the ``source`` piece would be used, and if it contained for example "Infantry" then the value of the property StatusInfantry would be checked on the target piece.





MouseoverStackViewer HTML Support and Additional Options
Many new features have been added to the configuration for Mouseover Stack Viewers:
 * A description field so that multiple Mouseover components are more easy to distinguish
 * HTML support and Quick Colors can now be turned on for text portions
 * More control provided over relative positioning, padding and centering of elements.
 * The Viewer can be set up to show more than one card from a deck (e.g. to show the entire discard pile)
 * The Viewer can be set up to show all pieces overlapping the mouse location (rather than only pieces precisely matching the location of the first piece found)



Chess Clocks
VASSAL now includes "Chess Clocks" which can be added to a module and used to facilitate timed online play. To add chess clocks to a module, right click on the main (top) module component in the editor and select "Add Chess Clock Control". Depending on the type of game, different modes of clock display can be selected.

Chess Clocks are not designed to facilitate timed PBEM games, as time usage in these situations cannot be verified in-game.



Editor can Search in Traits and Components
The Editor's "Search" function can now search into Traits and Components. Results from traits and components will appear in the chat log.



Ability to Deselect a Piece with a Key Command
Pieces can now be given a "Deselect" Trait. Activating the key command for this trait will cause the piece to be removed from the current selection (if it was present). Optionally the piece can also be removed from its current stack if desired. This can be useful in games where stacks frequently "drop pieces off".



Simpler Way to Display PDF Files from Help menu
Although it was possible to add a PDF file to earlier versions of VASSAL, it involved a considerable number of steps and "hoops to jump through". The process has now been vastly simplified.



Removing Unused Images From Modules
The Editor's Tools menu now has a "Remove Unused Images" feature, which will search for image files that are not referenced anywhere in the module and give you an option to remove them. Note that it is safe to launch this feature to take a look for unused files, because no images will actually be removed from the module file unless you then explicitly move them to the "Files to remove" column and then click the "Remove Files" button.

Note: The remove images tool will not be able to detect if an image is used by a "Custom Class" that does not register its image names with VASSAL. Custom classes can register their images by calling this method (available from either AbstractBuildable or Decorator):

public void addLocalImageNames(final Collection s)



= Interface Improvements =

Key Command fields split
Key Command configurers have been split into two fields. The "Command" field is now where you place Named Key Commands; the "Keystroke" field is for real keystrokes. In addition to improving clarity, this eliminates certain quirky behaviors of keystroke fields when typing in new values, and allows cut/pasting into the named command fields. 

Title Bar Shows Most Recent Save/Load
The VASSAL 3.5 window title bar now includes information on the most recent save, load, or logfile accessed. For those who keep multiple VASSAL sessions open at once, this should make it far easier to tell the windows apart.

Don't Forget To Start Logfile!
A longtime complaint has been "forgetting to start a log file" when beginning a new session. A preference "sort of" existed for this, but it wasn't working very well. VASSAL 3.5 now includes improved functionality to begin any new session (e.g. after starting a game, loading a save file, etc) by starting a logfile. There is a "Don't Prompt Again" button for those who do not care about logfiles (and this function can be toggled on the preferences screen). 


 * 13354: Add a chatter message when starting to write a logfile
 * 13333: Better handling of logfile/savefile comments
 * 13323: Player switching sides now reported in Chat Log
 * 13353: Use native file chooser on Linux
 * 1907: Suggest default filename extensions



Additional Preferences Added

 * Drag-at-edge-of-map width
 * Help button added to Preferences dialog
 * Threshold for centering on opponents move is now configurable
 * Preference to turn off sounds
 * Moved Compatibility-related preferences on the General tab to a new Compatibility tab
 * 13326: Saving a module will default to .vmod, an extension to .vext
 * 4779: Comparison operator >= incorrectly documented as =>



Technical Improvements

 * 13494: Expose version numbers and module strings to module as properties
 * 13314: Expose Module Version number as a Global Property
 * 13363: buildFile renamed to buildFile.xml
 * 13219: Added KeyNamer for overriding key names



Miscellaneous Bug Fixes in 3.5

 * 13593: Global preferences weren't being written except when prefs dialog was closed
 * 13509: Save As in Editor, if it fails, complained about old filename instead of new filename
 * 13495: Wizard should now set the initial value for next save/load dialog
 * 13336: Fixed incorrect date format in SecretNotesController
 * 12946: Prevent top level required components from being deleted in Editor