diff --git a/examples/README.md b/examples/README.md index 78a186e..e84e40f 100644 --- a/examples/README.md +++ b/examples/README.md @@ -4,4 +4,4 @@ This directory contains examples of *VASL Templates* in action, with the `.json` The online versions contain images that will be loaded from the internet, which looks much better, but there will be a short delay when you open the scenario in VASSAL as the images are downloaded. -These scenarios were taken from Multi-Man Publishing's [*ASL Classic* scenario pack](http://www.multimanpublishing.com/Support/ASLASLSK/ASLOfficialDownloads/tabid/109/Default.aspx). +These scenarios were taken from Multi-Man Publishing's [*ASL Classic* scenario pack](https://mmpgamers.com/asl-downloads-ezp-3#scenarios). diff --git a/vasl_templates/webapp/static/help/images/add-ssr.png b/vasl_templates/webapp/static/help/images/add-ssr.png index 5e95d25..e83af32 100644 Binary files a/vasl_templates/webapp/static/help/images/add-ssr.png and b/vasl_templates/webapp/static/help/images/add-ssr.png differ diff --git a/vasl_templates/webapp/static/help/images/add-ssr.small.png b/vasl_templates/webapp/static/help/images/add-ssr.small.png index 8a34140..96e6d25 100644 Binary files a/vasl_templates/webapp/static/help/images/add-ssr.small.png and b/vasl_templates/webapp/static/help/images/add-ssr.small.png differ diff --git a/vasl_templates/webapp/static/help/images/asa-search.png b/vasl_templates/webapp/static/help/images/asa-search.png index ff5d4db..2a7ea9b 100644 Binary files a/vasl_templates/webapp/static/help/images/asa-search.png and b/vasl_templates/webapp/static/help/images/asa-search.png differ diff --git a/vasl_templates/webapp/static/help/images/asa-search.small.png b/vasl_templates/webapp/static/help/images/asa-search.small.png index 81db7e2..3968826 100644 Binary files a/vasl_templates/webapp/static/help/images/asa-search.small.png and b/vasl_templates/webapp/static/help/images/asa-search.small.png differ diff --git a/vasl_templates/webapp/static/help/images/asa-upload.png b/vasl_templates/webapp/static/help/images/asa-upload.png index 86a036c..be2e8ac 100644 Binary files a/vasl_templates/webapp/static/help/images/asa-upload.png and b/vasl_templates/webapp/static/help/images/asa-upload.png differ diff --git a/vasl_templates/webapp/static/help/images/asa-upload.small.png b/vasl_templates/webapp/static/help/images/asa-upload.small.png index 7ec6304..c542d81 100644 Binary files a/vasl_templates/webapp/static/help/images/asa-upload.small.png and b/vasl_templates/webapp/static/help/images/asa-upload.small.png differ diff --git a/vasl_templates/webapp/static/help/images/chapter-h/ui.png b/vasl_templates/webapp/static/help/images/chapter-h/ui.png index 00d05f9..c43fd24 100644 Binary files a/vasl_templates/webapp/static/help/images/chapter-h/ui.png and b/vasl_templates/webapp/static/help/images/chapter-h/ui.png differ diff --git a/vasl_templates/webapp/static/help/images/chapter-h/ui.small.png b/vasl_templates/webapp/static/help/images/chapter-h/ui.small.png index 083093e..9022d75 100644 Binary files a/vasl_templates/webapp/static/help/images/chapter-h/ui.small.png and b/vasl_templates/webapp/static/help/images/chapter-h/ui.small.png differ diff --git a/vasl_templates/webapp/static/help/images/edit-template.png b/vasl_templates/webapp/static/help/images/edit-template.png index 095403d..29dab58 100644 Binary files a/vasl_templates/webapp/static/help/images/edit-template.png and b/vasl_templates/webapp/static/help/images/edit-template.png differ diff --git a/vasl_templates/webapp/static/help/images/edit-template.small.png b/vasl_templates/webapp/static/help/images/edit-template.small.png index 6c2661f..428a924 100644 Binary files a/vasl_templates/webapp/static/help/images/edit-template.small.png and b/vasl_templates/webapp/static/help/images/edit-template.small.png differ diff --git a/vasl_templates/webapp/static/help/images/edit-vehicle.png b/vasl_templates/webapp/static/help/images/edit-vehicle.png index 807bdef..ac4bf26 100644 Binary files a/vasl_templates/webapp/static/help/images/edit-vehicle.png and b/vasl_templates/webapp/static/help/images/edit-vehicle.png differ diff --git a/vasl_templates/webapp/static/help/images/edit-vehicle.small.png b/vasl_templates/webapp/static/help/images/edit-vehicle.small.png index 0990cb7..845609e 100644 Binary files a/vasl_templates/webapp/static/help/images/edit-vehicle.small.png and b/vasl_templates/webapp/static/help/images/edit-vehicle.small.png differ diff --git a/vasl_templates/webapp/static/help/images/extras-templates.png b/vasl_templates/webapp/static/help/images/extras-templates.png index ed7a301..c31fcb2 100644 Binary files a/vasl_templates/webapp/static/help/images/extras-templates.png and b/vasl_templates/webapp/static/help/images/extras-templates.png differ diff --git a/vasl_templates/webapp/static/help/images/extras-templates.small.png b/vasl_templates/webapp/static/help/images/extras-templates.small.png index 31472a7..9e989c9 100644 Binary files a/vasl_templates/webapp/static/help/images/extras-templates.small.png and b/vasl_templates/webapp/static/help/images/extras-templates.small.png differ diff --git a/vasl_templates/webapp/static/help/images/hill-621.png b/vasl_templates/webapp/static/help/images/hill-621.png index 82dd09c..30890b3 100644 Binary files a/vasl_templates/webapp/static/help/images/hill-621.png and b/vasl_templates/webapp/static/help/images/hill-621.png differ diff --git a/vasl_templates/webapp/static/help/images/hill-621.small.png b/vasl_templates/webapp/static/help/images/hill-621.small.png index 18c0afa..0e4e07c 100644 Binary files a/vasl_templates/webapp/static/help/images/hill-621.small.png and b/vasl_templates/webapp/static/help/images/hill-621.small.png differ diff --git a/vasl_templates/webapp/static/help/images/load-template-pack.png b/vasl_templates/webapp/static/help/images/load-template-pack.png index 578fc0f..29515a4 100644 Binary files a/vasl_templates/webapp/static/help/images/load-template-pack.png and b/vasl_templates/webapp/static/help/images/load-template-pack.png differ diff --git a/vasl_templates/webapp/static/help/images/load-template-pack.small.png b/vasl_templates/webapp/static/help/images/load-template-pack.small.png index 42d8d00..8b7cb76 100644 Binary files a/vasl_templates/webapp/static/help/images/load-template-pack.small.png and b/vasl_templates/webapp/static/help/images/load-template-pack.small.png differ diff --git a/vasl_templates/webapp/static/help/images/ob_setup.png b/vasl_templates/webapp/static/help/images/ob_setup.png index c315b23..99a9e52 100644 Binary files a/vasl_templates/webapp/static/help/images/ob_setup.png and b/vasl_templates/webapp/static/help/images/ob_setup.png differ diff --git a/vasl_templates/webapp/static/help/images/ob_setup.small.png b/vasl_templates/webapp/static/help/images/ob_setup.small.png index 6f151bc..ef36919 100644 Binary files a/vasl_templates/webapp/static/help/images/ob_setup.small.png and b/vasl_templates/webapp/static/help/images/ob_setup.small.png differ diff --git a/vasl_templates/webapp/static/help/images/ob_vehicles.png b/vasl_templates/webapp/static/help/images/ob_vehicles.png index e0e5b60..93343ea 100644 Binary files a/vasl_templates/webapp/static/help/images/ob_vehicles.png and b/vasl_templates/webapp/static/help/images/ob_vehicles.png differ diff --git a/vasl_templates/webapp/static/help/images/ob_vehicles.small.png b/vasl_templates/webapp/static/help/images/ob_vehicles.small.png index ae4deae..0451c6e 100644 Binary files a/vasl_templates/webapp/static/help/images/ob_vehicles.small.png and b/vasl_templates/webapp/static/help/images/ob_vehicles.small.png differ diff --git a/vasl_templates/webapp/static/help/images/pf.png b/vasl_templates/webapp/static/help/images/pf.png index aaee329..3e6ecae 100644 Binary files a/vasl_templates/webapp/static/help/images/pf.png and b/vasl_templates/webapp/static/help/images/pf.png differ diff --git a/vasl_templates/webapp/static/help/images/pf.small.png b/vasl_templates/webapp/static/help/images/pf.small.png index 2074d9d..17392df 100644 Binary files a/vasl_templates/webapp/static/help/images/pf.small.png and b/vasl_templates/webapp/static/help/images/pf.small.png differ diff --git a/vasl_templates/webapp/static/help/images/quick-start/load-scenario.png b/vasl_templates/webapp/static/help/images/quick-start/load-scenario.png index 2c59e39..cbf7eb1 100644 Binary files a/vasl_templates/webapp/static/help/images/quick-start/load-scenario.png and b/vasl_templates/webapp/static/help/images/quick-start/load-scenario.png differ diff --git a/vasl_templates/webapp/static/help/images/quick-start/load-scenario.small.png b/vasl_templates/webapp/static/help/images/quick-start/load-scenario.small.png index 84358b2..5151a70 100644 Binary files a/vasl_templates/webapp/static/help/images/quick-start/load-scenario.small.png and b/vasl_templates/webapp/static/help/images/quick-start/load-scenario.small.png differ diff --git a/vasl_templates/webapp/static/help/images/quick-start/settings.png b/vasl_templates/webapp/static/help/images/quick-start/settings.png index d401461..b7089e0 100644 Binary files a/vasl_templates/webapp/static/help/images/quick-start/settings.png and b/vasl_templates/webapp/static/help/images/quick-start/settings.png differ diff --git a/vasl_templates/webapp/static/help/images/quick-start/settings.small.png b/vasl_templates/webapp/static/help/images/quick-start/settings.small.png index 2d557e8..01d08a5 100644 Binary files a/vasl_templates/webapp/static/help/images/quick-start/settings.small.png and b/vasl_templates/webapp/static/help/images/quick-start/settings.small.png differ diff --git a/vasl_templates/webapp/static/help/images/quick-start/update-scenario.png b/vasl_templates/webapp/static/help/images/quick-start/update-scenario.png index 9f2abf5..9675074 100644 Binary files a/vasl_templates/webapp/static/help/images/quick-start/update-scenario.png and b/vasl_templates/webapp/static/help/images/quick-start/update-scenario.png differ diff --git a/vasl_templates/webapp/static/help/images/quick-start/update-scenario.small.png b/vasl_templates/webapp/static/help/images/quick-start/update-scenario.small.png index 77940db..3ec1efa 100644 Binary files a/vasl_templates/webapp/static/help/images/quick-start/update-scenario.small.png and b/vasl_templates/webapp/static/help/images/quick-start/update-scenario.small.png differ diff --git a/vasl_templates/webapp/static/help/images/quick-start/updated-scenario.png b/vasl_templates/webapp/static/help/images/quick-start/updated-scenario.png index 0b6b4ec..050ec6d 100644 Binary files a/vasl_templates/webapp/static/help/images/quick-start/updated-scenario.png and b/vasl_templates/webapp/static/help/images/quick-start/updated-scenario.png differ diff --git a/vasl_templates/webapp/static/help/images/quick-start/updated-scenario.small.png b/vasl_templates/webapp/static/help/images/quick-start/updated-scenario.small.png index 7880589..02426b0 100644 Binary files a/vasl_templates/webapp/static/help/images/quick-start/updated-scenario.small.png and b/vasl_templates/webapp/static/help/images/quick-start/updated-scenario.small.png differ diff --git a/vasl_templates/webapp/static/help/images/scenario-vasl.png b/vasl_templates/webapp/static/help/images/scenario-vasl.png index bff5e8a..7ed3a6b 100644 Binary files a/vasl_templates/webapp/static/help/images/scenario-vasl.png and b/vasl_templates/webapp/static/help/images/scenario-vasl.png differ diff --git a/vasl_templates/webapp/static/help/images/scenario-vasl.small.png b/vasl_templates/webapp/static/help/images/scenario-vasl.small.png index 4b8b0be..b0979f1 100644 Binary files a/vasl_templates/webapp/static/help/images/scenario-vasl.small.png and b/vasl_templates/webapp/static/help/images/scenario-vasl.small.png differ diff --git a/vasl_templates/webapp/static/help/images/snippet.png b/vasl_templates/webapp/static/help/images/snippet.png new file mode 100644 index 0000000..50a313b Binary files /dev/null and b/vasl_templates/webapp/static/help/images/snippet.png differ diff --git a/vasl_templates/webapp/static/help/images/ssr-template.png b/vasl_templates/webapp/static/help/images/ssr-template.png index 13505fa..9610d00 100644 Binary files a/vasl_templates/webapp/static/help/images/ssr-template.png and b/vasl_templates/webapp/static/help/images/ssr-template.png differ diff --git a/vasl_templates/webapp/static/help/images/ssr-template.small.png b/vasl_templates/webapp/static/help/images/ssr-template.small.png index 63766c2..5056849 100644 Binary files a/vasl_templates/webapp/static/help/images/ssr-template.small.png and b/vasl_templates/webapp/static/help/images/ssr-template.small.png differ diff --git a/vasl_templates/webapp/static/help/images/ssr-template2.png b/vasl_templates/webapp/static/help/images/ssr-template2.png index 9136a2f..9018718 100644 Binary files a/vasl_templates/webapp/static/help/images/ssr-template2.png and b/vasl_templates/webapp/static/help/images/ssr-template2.png differ diff --git a/vasl_templates/webapp/static/help/images/ssr-template2.small.png b/vasl_templates/webapp/static/help/images/ssr-template2.small.png index c185512..85a1ec4 100644 Binary files a/vasl_templates/webapp/static/help/images/ssr-template2.small.png and b/vasl_templates/webapp/static/help/images/ssr-template2.small.png differ diff --git a/vasl_templates/webapp/static/help/images/ssr.png b/vasl_templates/webapp/static/help/images/ssr.png index 484036b..b9fc83a 100644 Binary files a/vasl_templates/webapp/static/help/images/ssr.png and b/vasl_templates/webapp/static/help/images/ssr.png differ diff --git a/vasl_templates/webapp/static/help/images/ssr.small.png b/vasl_templates/webapp/static/help/images/ssr.small.png index da8efe7..d683131 100644 Binary files a/vasl_templates/webapp/static/help/images/ssr.small.png and b/vasl_templates/webapp/static/help/images/ssr.small.png differ diff --git a/vasl_templates/webapp/static/help/images/user-file.png b/vasl_templates/webapp/static/help/images/user-file.png index 4fdc414..595e55e 100644 Binary files a/vasl_templates/webapp/static/help/images/user-file.png and b/vasl_templates/webapp/static/help/images/user-file.png differ diff --git a/vasl_templates/webapp/static/help/images/user-file.small.png b/vasl_templates/webapp/static/help/images/user-file.small.png index 86c5bad..dd6542d 100644 Binary files a/vasl_templates/webapp/static/help/images/user-file.small.png and b/vasl_templates/webapp/static/help/images/user-file.small.png differ diff --git a/vasl_templates/webapp/static/help/images/user-settings.png b/vasl_templates/webapp/static/help/images/user-settings.png index ca1e7d7..e02fdcc 100644 Binary files a/vasl_templates/webapp/static/help/images/user-settings.png and b/vasl_templates/webapp/static/help/images/user-settings.png differ diff --git a/vasl_templates/webapp/static/help/images/user-settings.small.png b/vasl_templates/webapp/static/help/images/user-settings.small.png index 82be76a..b8fcf64 100644 Binary files a/vasl_templates/webapp/static/help/images/user-settings.small.png and b/vasl_templates/webapp/static/help/images/user-settings.small.png differ diff --git a/vasl_templates/webapp/static/help/images/vc-vasl.png b/vasl_templates/webapp/static/help/images/vc-vasl.png index 9a9a3bc..23c90fa 100644 Binary files a/vasl_templates/webapp/static/help/images/vc-vasl.png and b/vasl_templates/webapp/static/help/images/vc-vasl.png differ diff --git a/vasl_templates/webapp/static/help/images/vc-vasl.small.png b/vasl_templates/webapp/static/help/images/vc-vasl.small.png deleted file mode 100644 index d9fb7f3..0000000 Binary files a/vasl_templates/webapp/static/help/images/vc-vasl.small.png and /dev/null differ diff --git a/vasl_templates/webapp/static/help/images/vc.png b/vasl_templates/webapp/static/help/images/vc.png index 23a1465..db7ae7e 100644 Binary files a/vasl_templates/webapp/static/help/images/vc.png and b/vasl_templates/webapp/static/help/images/vc.png differ diff --git a/vasl_templates/webapp/static/help/images/vc.small.png b/vasl_templates/webapp/static/help/images/vc.small.png index d30cba0..e4ade67 100644 Binary files a/vasl_templates/webapp/static/help/images/vc.small.png and b/vasl_templates/webapp/static/help/images/vc.small.png differ diff --git a/vasl_templates/webapp/static/help/index.html b/vasl_templates/webapp/static/help/index.html index 4853b67..7b13a2c 100644 --- a/vasl_templates/webapp/static/help/index.html +++ b/vasl_templates/webapp/static/help/index.html @@ -43,7 +43,7 @@
If you're using Windows, you should get the pre-built version from Github, unpack it somewhere, then run vasl-templates.exe. Note that it can be a bit slow to start, so please give it a few seconds. -
If the program won't start because a DLL is missing from your computer, install the VC2015 runtime (get the 32-bit version, vc_redist.x86.exe, even if you are running 64-bit Windows). +
If the program won't start because a DLL is missing from your computer, install the VC2015 runtime (get the 32-bit version, vc_redist.x86.exe, even if you are running 64-bit Windows).
If you don't see anything in the main window, check the notes below about configuring OpenGL. @@ -73,14 +73,14 @@ If you have Docker installed, the webapp can be run in a container e.g.
You can also run the program directly from the source code. Get a copy from Github in the usual way, by git clone'ing it, or downloading a ZIP and unpacking it somewhere. -
The web server was written and tested using Python 3.8.7, but it doesn't do anything particularly funky, so any recent version of Python should work. +
The web server was written and tested using Python 3.10.4, but it doesn't do anything particularly funky, so any recent version of Python should work. -
While not essential, it is strongly recommended that you set up a virtual environment first. Then, install the requirements: +
While not essential, it is strongly recommended that you set up a virtual environment first. Then cd into the project's root directory, and install the requirements (note the trailing period):
The simplest option is to run the web server:
If you want to run the desktop application, you will need to have the Qt runtime installed. +
If you want to run the desktop application, you must install the GUI dependencies: +
If you're on Linux, you may need to install Qt 5.15.4. On Fedora 35, running the "gui" install above should install everything you need. +
You will also need to have the Qt 5.15.4 runtime installed. If you're on Linux, you may need to manually install this.
If you're on Windows, the Qt runtime will have been installed as part of PyQt5 (when you did the pip install above), but if you're in a virtual environment and you're getting "DLL load failed" errors, this is due to a problem with the way Python sets up the virtualenv. In the virtualenv's scripts/ sub-directory, there should be two Python DLL's, so if you're missing python3.dll, copy it over from the Python installation the virtualenv was created from, and you should be good to go. @@ -101,10 +104,11 @@ and then connect to it in a browser at http://localhost:5010.
You must also make sure to get the correct type (32- or 64-bit) for your browser (check the About box). +
Since browsers usually automatically update themselves as new versions are released, this means that the webdriver you use will eventually become out-of-date, and may stop working. In this case, simply get a new version of the webdriver that supports the version of the browser you have. +
Choose Settings from the File menu and configure the highlighted settings. As a guide, here are some example settings:
VASSAL installation: | |
VASL module: | |
VASL extensions: | |
VASL boards: | |
VASSAL installation: | |
VASL module: | |
VASL extensions: | |
VASL boards: | |
Java: | Leave this field blank to use the Java that comes with VASSAL (Windows only), or on your PATH.
- |
Web driver: | |
Web driver: | |
-We'll set up The Streets Of Stalingrad, and the scenario card tells us that this is played on Board 1, so fire up VASL, add this board, then save the scenario somewhere (e.g. streets-of-stalingrad.vsav).
+As an example, we'll set up The Streets Of Stalingrad. The scenario card tells us that this is played on Board 1, so fire up VASL, add this board, then save the scenario somewhere (e.g. streets-of-stalingrad.vsav).
-In VASL Templates, open the save file for this scenario (The Streets Of Stalingrad (Scenario C).json; you'll find it in the examples/ directory). +In VASL Templates, open the save file for this scenario (The Streets Of Stalingrad (Scenario C).json) in the examples/ directory.
Browse through the tabs, and you'll see all the scenario details e.g. Victory Conditions, SSR's, setup instructions.
Click on the info icon in the top-right corner of the Scenario panel to get more detailed information about the scenario.
-We now want to create labels in the VASL scenario for all this information. Choose Update VASL scenario from the menu, and select the VASL scenario file you created earlier (e.g. streets-of-stalingrad.vsav). The program will now launch VASSAL to do the work, so be patient since it may take a minute or two, and you may see VASSAL momentarily appear on-screen. +We now want to create labels in the VASL scenario for all this information. Choose Update VASL scenario from the menu, and select the VASL scenario file you created earlier (e.g. streets-of-stalingrad.vsav). The program will now launch VASSAL to do the work - be patient, since it may take a minute or two, and you may see VASSAL momentarily appear on-screen.
Once it's done, save the updated .vsav file somewhere. Go back to VASSAL, open the updated .vsav file, and you will see all the labels with the scenario information:
In particular, note the data tables for the vehicles, which contain useful information that you can refer to during your game.
@@ -204,18 +208,18 @@ In particular, note the data tables for the vehicles, which contain useful infor
-We start by entering the basic scenario details, such as its name, location and date. The easiest way to do this is by searching the ASL Scenario Archive. +We start by entering the basic scenario details, such as its name, location and date. The easiest way to do this is by finding the scenario in the ASL Scenario Archive and loading the information from there.
Click on the search button, enter the name of the scenario, and once you've found the correct one, click on Import to transfer the details into VASL Templates.
If the Downloads button is enabled, this means that somebody has contributed the entire scenario setup and/or VASL save file, and these are available for download.
-Once the scenario details are in, click on one of the Snippet buttons, and the program will generate an HTML snippet and put it into your clipboard, which you can then copy into a VASL label. +Once the scenario details are in, click on one of the Snippet buttons (), and the program will generate an HTML snippet and put it into your clipboard, which you can then copy into a VASL label.
To create a label in VASL, open the Draggable Overlays window, and drag a label onto the main window.
Labels come in two parts, which are accessible via the right-click menu, or press Ctrl-L and Ctrl-2 to access each one. I always just use the first line, so I delete everything in line 2. -
The thick black box indicates that the label is selected. If you click elsewhere on the main window, it goes away, and the label will remain in place even if you click on it, or try to drag it. To select it again, Shift-click somewhere in the box, and you will be able to move it around, or edit it. This can sometimes be difficult to find, since it's not visible on-screen, but it will be in the middle (vertically and horizontally) of the label. +
The thick black box indicates that the label is selected. If you click elsewhere on the main window, it goes away, and the label will remain in place even if you click on it, or try to drag it. To select it again, Shift-Click somewhere in the box, and you will be able to move it around, or edit it. This can sometimes be difficult to find, since it's not visible on-screen, but it will be in the middle (vertically and horizontally) of the label.
@@ -224,7 +228,7 @@ Once you have a label in VASL, copy the HTML snippet generated above into it.
-
Once you've got the hang of adding labels to your VASL scenario, you can get VASL Templates to do it automatically for you. After entering all the scenario details, choose Update VASL scenario from the menu, select the .vsav file you want to update, and all the labels will be inserted into the scenario (or updated, if they're already there).
-Adding the scenario's victory conditions is straight-forward. We're generating HTML snippets, so we can type in things like ≥ to get ≥ in the VASL label. - -
-
Note that we explicitly set a width for the snippet (240px), which caused the text to wrap onto a new line. You could also do this by manually inserting <br> tags where you want line-breaks. +Adding the scenario's victory conditions is straight-forward. The content is HTML, but the WYSIWYG editor lets you format things without having to worry about that, or you can click on the angled brackets icon to edit the raw HTML. +
The content in the screenshot on the left will produce a snippet that looks this: + +
Note that we explicitly set a width for the snippet (240px), which caused the text to wrap onto a new line. You could also do this by manually inserting <br> tags where you want line-breaks (or press Shift-Enter, if you're in WYSIWYG mode).
@@ -253,32 +257,34 @@ Once they're all in, click on the Snippet button to get a nicely format
-Adding each vehicle and ordnance for each player is just a matter of selecting them from a list, and the generated HTML snippet will produce a table of information for each one (see right). Very handy if you have a menagerie of armor and you're, say, looking for something that can fire Smoke. -
The scenario date is taken into account when generating these tables e.g. APCR for the Pz IVH is A52, but since the program knows the scenario is set in 1944, it just shows A5. Had the scenario been set in 1941, it wouldn't be shown at all. +Adding the vehicles and ordnance for each player is just a matter of selecting them from a list, and the generated HTML snippet will produce a table of information for each one (see right). Very handy if you have a menagerie of armor and you're, say, looking for something that can fire Smoke. +
The scenario date is taken into account when generating these tables e.g. APCR for the Pz IVH is A524334, but since the program knows the scenario is set in 1944, it just shows A3. Had the scenario been set in 1941, it wouldn't be shown at all.
-Double-click on an entry to make changes to it e.g. because an SSR changes its capabilities, or you'd like to add a note.
+Double-click on an entry to edit it e.g. because an SSR changes its capabilities, or you'd like to add a note.
We can also add ad-hoc notes describing where and how units should setup. -
Click on the icon in each note to generate its snippet, or Shift-click on it. +
Click on the icon in each note to generate its snippet, or Shift-Click on it.
Finally, if special support weapons such as PF and BAZ are in play, snippets are available with information for them. As with vehicles/ordnance, they are date-aware and update themselves accordingly.
+
-
If you have already set up the VASL scenario, you can choose Analyze VASL scenario from the menu, and the program will scan the .vsav file for vehicles and ordnance, and automatically create entries for each one. Only counters from the two configured nationalities will be imported, so make sure you set these first. +
If you have already set up the VASL scenario, you can choose Analyze VASL scenario from the menu, and the program will scan the .vsav file for vehicles and ordnance, and automatically create entries for each one. +
-
Extra templates are also available to generate other kinds of snippets e.g. to keep track of how many PF shots you have left, or to generate a shaded box that can be inserted behind the Turn Track to indicate an LV Hindrance. +
Extra templates are also available to generate other kinds of snippets e.g. to keep track of how many PF shots you have left, or to generate boxes that you can use to hold off-board counters.
As an added bonus, VASL Templates can also analyze VASL log files, to generate a report on how the game went. Choose Analyze log files from the menu, and add one or more VASL log files. -
You will be shown a report showing distribution graphs for the dice, and how the dice went over time. You can filter by the type of dice roll (e.g. only Morale Checks or To Kill rolls), as well as change the window size for moving averages. You can even download the data as a CSV, for further analysis! +
You will be shown a report showing distribution graphs for the dice, and how the dice went over time. You can filter by the type of dice roll (e.g. only Morale Checks or To Kill rolls), as well as change the window size for moving averages. You can even download the data as a CSV, for further analysis.
Click on the flaming dice to see how many 2's and 12's each player rolled, as well as Sniper Activations.
-
And if there is more than one log file, you can also drill down into each individual session:
+
If there is more than one log file, you can also drill down into each individual session:
The report also calculates "hotness", which is a measure of how hot your dice were. The more low rolls you make, the higher your hotness score, while rolling high makes it go down. @@ -341,29 +347,30 @@ The report also calculates "hotness", which is a measure of how hot you
Configure your VASL user name here, to have it always shown first when analyzing VASL log files. +Configure your VASL user name here, to have it always shown first when analyzing VASL log files.
This setting lets you change the font, and its size, used in VASL labels. +This setting lets you change the font, and its size, used in VASL labels.
Turn this on to completely omit vehicle/ordnance multi-applicable notes that haven't been set up (instead of showing them as "unavailable"). +Turn this on to completely omit vehicle/ordnance multi-applicable notes that haven't been set up (instead of showing them as "unavailable").
Turn this on to show the User Settings dialog before updating a VASL scenario. This is useful if you are often creating VASL setups with different settings, and gives you a chance to make sure they are correct.
+Turn this on to show the User Settings dialog before updating a VASL scenario. This is useful if you are often creating VASL setups with different settings, and gives you a chance to make sure they are correct.
Images cannot be stored in a VASL scenario file, so they must stored elsewhere, which means that VASL needs to be told where to get them from: +Images cannot be stored in a VASL scenario file, and so must be stored elsewhere. This means that VASL needs to be told where to get them from:
VASSAL can be slow downloading images (which causes the main window to blank out and hang when opening scenarios), so options are provided to disable them.
If you have set up the Chapter H vehicle/ordnance notes as HTML, it may not be possible to get the layout you want, since VASSAL's HTML engine is very old and doesn't support many HTML/CSS features. To work around this, this option tells VASL Templates to render the HTML itself (using a modern browser) and send it as an image to VASSAL, which is slower but gives better results. -
To optimize this process, the generated images are cached, and if you want to keep these cached images between sessions, configure VO_NOTES_IMAGE_CACHE_DIR in your site.cfg file. To pre-load this cache with all the available images, open http://localhost:5010/load-vo-notes-image-cache in a browser. +If you have set up the Chapter H vehicle/ordnance notes as HTML, it may not be possible to get the layout you want, since VASSAL's HTML engine is very old and doesn't support many HTML/CSS features. To work around this, this option tells VASL Templates to render the HTML itself (using a modern browser) and send it as an image to VASSAL, which is slower but gives better results. +
To optimize this process, the generated images are cached. If you want to pre-load this cache with all the available images, open http://localhost:5010/load-vo-notes-image-cache in a browser. @@ -371,7 +378,7 @@ The report also calculates "hotness", which is a measure of how hot you
It is possible to include Chapter H notes in your VASL scenarios, but since this is copyrighted material, the data files are not included in releases, and you will need to set them up yourself. +
VASL Templates can be configured to include Chapter H notes in your VASL scenarios, but since this is copyrighted material, the data files are not included in releases, and you will need to set them up yourself.
The vehicle and ordnance notes themselves are stored as image files, so you need to scan your Chapter H pages, and crop each individual note. For example, an image for the German PSW 234/1 can be seen to the left. Right-click on it, download it, and save it on top of german/vehicles/74.png (because it's note #74). +
The vehicle and ordnance notes themselves are stored as image files, so you need to scan your Chapter H pages, and crop each individual note. For example, an image for the German PSW 234/1 can be seen to the left - download and save it on top of german/vehicles/74.png (because it's note #74).
Note that the HTML engine used by VASSAL is ancient and doesn't support floating images, which is needed to format this content in the same way as the ASLRB. To work around this, an option is provided (in the User Settings) to show these vehicle/ordnance notes as images. If this is enabled, the vehicle/ordnance notes will be rendered by the VASL Templates program (using a modern browser), and sent to VASSAL as an image, which is slower but gives the expected layout. If you don't use images in your HTML, you can leave this option disabled, and the raw HTML will be inserted into the VASL scenario, where it will be displayed much more quickly by VASSAL. +
Unfortunately, the HTML engine used by VASSAL is ancient and doesn't support floating images, which is needed to format this content in the same way as the ASLRB. To work around this, an option is provided (in the User Settings) to show these vehicle/ordnance notes as images. If this is enabled, the vehicle/ordnance notes will be rendered by the VASL Templates program (using a modern browser), and sent to VASSAL as an image, which is slower but gives the expected layout. If you don't use images in your HTML, you can leave this option disabled, and the raw HTML will be inserted into the VASL scenario, where it will be displayed much more quickly by VASSAL.
If you Shift-click on the Snippet buttons, an image of the snippet will be copied to the clipboard, instead of the raw HTML snippet. You can then copy these into Microsoft Word (or any other editor that can accept images), and print it out, to get a reference sheet with all the Chapter H notes for a scenario. Very handy, even if you're not using VASL! -
If you Shift-Click on the Snippet buttons, an image of the snippet will be copied to the clipboard, instead of the raw HTML snippet. You can then copy these into Microsoft Word (or any other editor that can accept images), and print it out, to get a reference sheet with all the Chapter H notes for a scenario. Very handy, even if you're not using VASL! +
If you want to customize how the HTML snippets are generated, you could just edit the files directly, but the down-side of doing this is that if you install a new version of the program, you will lose your changes. +
If you want to customize how the HTML snippets are generated, you could just edit the template files directly, but the down-side of doing this is that if you install a new version of the program, you will lose your changes.
A better way is to create your own set of template files, ZIP them up and load it as a template pack.
If you're running the desktop application, you can specify the template pack to start with, so that you don't have to manually upload it each time i.e. @@ -525,6 +532,8 @@ vasl-template.exe --template-pack my-template-pack.zip You can specify a ZIP file, or the directory containing the files (probably easier). +
+
When you're writing a new template file, it would be painful to have to ZIP up and upload a new template pack every time you made a change, so you can edit templates directly within the program (see screenshot).
Changes you make are live i.e. they will take effect immediately, but note that there is no way to save your changes, so once you're happy with how the template is working, you need to copy it out and save it somewhere. @@ -557,25 +566,25 @@ pytest --webdriver chrome --headless
The test suite communicates with the web server being tested using gRPC, which runs over a socket. To configure this port, rename the provided debug.cfg.example file to debug.cfg, and configure it there (or use -1 to have one automatically assigned.). -
You should also provide at least one installation of VASSAL, and at least one VASL .vmod file. If there are multiple installations of VASSAL and/or VASL, the tests will be run against each combination thereof. +
You should also provide at least one installation of VASSAL, and at least one VASL .vmod file. If there are multiple installations of either, the tests will be run against each combination thereof.
The program uses VASSAL to update VASL scenarios (.vsav files), and since this is written in Java, a helper program has been written in Java to do this. -
To compile the program, go to the $/vassal-shim directory and type: +
To compile the program, go to the $/vassal-shim directory and run the following command:
Since this program doesn't change very often, the resulting artifact (vassal-shim.jar) is checked into source control, so that it can be used without needing to install a JDK and compiling it first. +where VASSAL_DIR points to VASSAL's lib/ directory (because the program needs Vengine.jar). +
Since this program doesn't change very often, the resulting artifact (vassal-shim.jar) is checked into source control, so that it can be used directly, without needing to install a JDK and compiling it first.
Python code is checked using pylint (installed during the pip install above), which should be run from the root directory of the repo. -
Javascript is checked using jshint, run using Rhino, both of which need to be installed manually. Then, set the JSHINT_RHINO environment variable to point to the script that will run jshint using Rhino e.g. +
Javascript is checked using jshint, run using Rhino, both of which need to be installed manually. Set the JSHINT_RHINO environment variable to point to the script that will run jshint using Rhino e.g.