New program to help set up VASL scenarios

Desicat

Member
Joined
Apr 24, 2016
Messages
78
Reaction score
45
Location
MN
Country
llUnited States
I downloaded this today and it fixed my previous problems with the AFV images not showing, it also eliminated the error messages! It also imported the exact same settings from the previous version so I did not have to do anything - it was like magic!
 

Desicat

Member
Joined
Apr 24, 2016
Messages
78
Reaction score
45
Location
MN
Country
llUnited States
Possible to include the Swedish for both sides nest version? VASL is now including the Swedes in its base counter mix and the Swedish Volunteers (original and MMP Action Pack) Scenarios are available (for some at least).
 

Desicat

Member
Joined
Apr 24, 2016
Messages
78
Reaction score
45
Location
MN
Country
llUnited States
Could you add a Molotov option for other countries as a drop down option in the "Extras" tab?
 

Pacman Ghost

Senior Member
Joined
Feb 25, 2017
Messages
590
Reaction score
298
Location
A maze of twisty little passages, all alike
Country
llAustralia
Could you add a Molotov option for other countries as a drop down option in the "Extras" tab?
The way to do this is to create a second scenario in vasl-templates, with the Russians, and then manually create a label (described in the help) for the MOL in your VASL scenario.

If you really want it in the Extras tab, that part of the program is extensible, so you can add a new file in $/data/default-template-pack/extras/. You can use $/data/default-template-pack/mol.j2 as a starting point, but there will be a few changes needed.

Try something like this:
Code:
<html> <!-- vasl-templates:id {{SNIPPET_ID}} -->

<!-- vasl-templates:name Molotov cocktails -->

<head>
<meta charset="utf-8">
<style>
{{CSS:common}}
</style>
</head>

<table>

<tr>
<td colspan="2" style="
  background: {{PLAYER_COLORS["russian"][0]}} ;
  border-bottom: 1px solid {{PLAYER_COLORS["russian"][2]}} ;
  padding: 2px 5px ;
  font-size: 105% ; font-weight: bold ;
">
    <img src="{{PLAYER_FLAGS["russian"]}}" {{PLAYER_FLAG_SIZE_LARGE}}>&nbsp;Molotov Cocktail

<tr>
<td style="padding:0 5px;">
    <b>MOL check</b>: dr &le; 3 (&#9651;) <br>
    <table style="margin:0 0 5px 10px;">
        <tr>
            <td style="width:25px;"> +1 <td> HS/crew
        <tr>
            <td> +2 <td> SMC
        <tr>
            <td> +1 <td> CX
        <tr>
            <td> +1 <td> non-AFV target
    </table>
    <b>IFT DR original colored dr</b>:
    <ul style="margin-bottom:5px;">
        <li> 1 = Flame in target Location
        <li> 6 = thrower breaks, Flame in their Location
    </ul>
    <b>Kindling Attempt</b>: +2 DRM

</table>

</html>
There's actually one there already that does pretty much the same thing, in $/data/default-template-pack/extras/kgs/molotov-cocktails.j2.
 
Last edited:

Paul_RS

Elder Member
Joined
Feb 14, 2010
Messages
1,723
Reaction score
765
Location
Gammonopolis
Country
llUnited Kingdom
'Unexpected return code from the VASSAL shim: 4294967295'

Getting this error when I try to update a saved game file. Running Template 1.9, VASL 6.4.4 and VASSAL 3.6.6. Any ideas as to why this is happening?

If I remove the vehicles from the scenario the template loads, put them back in and I get the error message. But it doesn't happen with all the scenario templates I've created. I'm stumped.

Cheers

Paul
 
Last edited:

Pacman Ghost

Senior Member
Joined
Feb 25, 2017
Messages
590
Reaction score
298
Location
A maze of twisty little passages, all alike
Country
llAustralia
'Unexpected return code from the VASSAL shim: 4294967295'
This error means that VASSAL crashed. Can you load the scenario into VASSAL using the exact combination of VASSAL + VASL + Java that's configured into vasl-templates?

And is that 6.4.4 or 6.6.4...? If it's the former, that's pretty old and I wouldn't be surprised if there were problems. You could maybe load the scenario into a recent version of VASL, save it out (to update its version), and then try again.

If I remove the vehicles from the scenario the template loads, put them back in and I get the error message.
When you say "put them back in", does that mean you undid deleting them, or you re-pulled them from the counter tray? Try the latter.
 

Paul_RS

Elder Member
Joined
Feb 14, 2010
Messages
1,723
Reaction score
765
Location
Gammonopolis
Country
llUnited Kingdom
This error means that VASSAL crashed. Can you load the scenario into VASSAL using the exact combination of VASSAL + VASL + Java that's configured into vasl-templates?

And is that 6.4.4 or 6.6.4...? If it's the former, that's pretty old and I wouldn't be surprised if there were problems. You could maybe load the scenario into a recent version of VASL, save it out (to update its version), and then try again.


When you say "put them back in", does that mean you undid deleting them, or you re-pulled them from the counter tray? Try the latter.
I'm using VASSAL 3.6.6, VASL 6.6.4. Java is the blank default setting, although I did try linking to the most recent version Java.exe but I got the same result. All the template settings tie in with the versions of VASSAL and VASL that I'm using to load the scenario.

I deleted the vehicle data and then re-pulled them from the counter tray.

I can load the snippets individually, including any vehicle and ordnance notes etc. I just can't update the saved game file in one go.

Oddly, I created template for a scenario, using the current configuration, that only had 1 vehicle and 1 mortar and that updates perfectly. Templates that have several vehicles seems to be where the problem lies.

Cheers

Paul
 

Paul_RS

Elder Member
Joined
Feb 14, 2010
Messages
1,723
Reaction score
765
Location
Gammonopolis
Country
llUnited Kingdom
Send me the .json and .vsav files, and I'll take a look at it.

What OS are you using?
Windows 10, 64 bit, updated to the latest version. One other thing that may be the culprit may be a mismatch between my version of chrome and the chromedriver.exe file. I'm running Chrome100.0.4896.127 but the driver version is 100.0.4896.60 (the currently recommended version for Chrome version 100)?
 

Pacman Ghost

Senior Member
Joined
Feb 25, 2017
Messages
590
Reaction score
298
Location
A maze of twisty little passages, all alike
Country
llAustralia
One other thing that may be the culprit may be a mismatch between my version of chrome and the chromedriver.exe file.
The error you were getting was an unexpected error from the VASSAL shim. The webdriver stuff happens long before the VASSAL shim runs, so this is not the problem.

I'm flat out with other stuff right now, but I'll take a look at the files when I get a chance...
 

chef-62

xxxxxxxx
Joined
Jul 4, 2009
Messages
86
Reaction score
4
Location
Saronno
Country
llItaly
The way to do this is to create a second scenario in vasl-templates, with the Russians, and then manually create a label (described in the help) for the MOL in your VASL scenario.

If you really want it in the Extras tab, that part of the program is extensible, so you can add a new file in $/data/default-template-pack/extras/. You can use $/data/default-template-pack/mol.j2 as a starting point, but there will be a few changes needed.

Try something like this:
Code:
<html> <!-- vasl-templates:id {{SNIPPET_ID}} -->

<!-- vasl-templates:name Molotov cocktails -->

<head>
<meta charset="utf-8">
<style>
{{CSS:common}}
</style>
</head>

<table>

<tr>
<td colspan="2" style="
  background: {{PLAYER_COLORS["russian"][0]}} ;
  border-bottom: 1px solid {{PLAYER_COLORS["russian"][2]}} ;
  padding: 2px 5px ;
  font-size: 105% ; font-weight: bold ;
">
    <img src="{{PLAYER_FLAGS["russian"]}}" {{PLAYER_FLAG_SIZE_LARGE}}>&nbsp;Molotov Cocktail

<tr>
<td style="padding:0 5px;">
    <b>MOL check</b>: dr &le; 3 (&#9651;) <br>
    <table style="margin:0 0 5px 10px;">
        <tr>
            <td style="width:25px;"> +1 <td> HS/crew
        <tr>
            <td> +2 <td> SMC
        <tr>
            <td> +1 <td> CX
        <tr>
            <td> +1 <td> non-AFV target
    </table>
    <b>IFT DR original colored dr</b>:
    <ul style="margin-bottom:5px;">
        <li> 1 = Flame in target Location
        <li> 6 = thrower breaks, Flame in their Location
    </ul>
    <b>Kindling Attempt</b>: +2 DRM

</table>

</html>
There's actually one there already that does pretty much the same thing, in $/data/default-template-pack/extras/kgs/molotov-cocktails.j2.
I tried to copy it and insert it on the side of the VASL map, using User Label, but it doesn't work. What do I have to do to be able to see it on the map?
Thanks in advance
 

Pacman Ghost

Senior Member
Joined
Feb 25, 2017
Messages
590
Reaction score
298
Location
A maze of twisty little passages, all alike
Country
llAustralia
I tried to copy it and insert it on the side of the VASL map, using User Label, but it doesn't work.
The post you quoted are instructions for how to add a new template to the vasl-templates program. If that's what you want to do, then follow the instructions in that post.

If you just want a MOL template in your scenario, create one of the Russian ones. If you want to change it a bit, edit the HTML before putting it into the VASSAL label.
 

Pacman Ghost

Senior Member
Joined
Feb 25, 2017
Messages
590
Reaction score
298
Location
A maze of twisty little passages, all alike
Country
llAustralia
'Unexpected return code from the VASSAL shim: 4294967295'

Getting this error when I try to update a saved game file. Running Template 1.9, VASL 6.4.4 and VASSAL 3.6.6. Any ideas as to why this is happening?

If I remove the vehicles from the scenario the template loads, put them back in and I get the error message. But it doesn't happen with all the scenario templates I've created. I'm stumped.
I've tried a couple of different environments, but I can't get this to happen.

Do you have any Chapter H data configured in vasl-templates? Maybe try turning that off and seeing if it makes a difference. Removing VASL extensions might make a difference as well (in vasl-templates and/or VASL).
 

Paul_RS

Elder Member
Joined
Feb 14, 2010
Messages
1,723
Reaction score
765
Location
Gammonopolis
Country
llUnited Kingdom
I've tried a couple of different environments, but I can't get this to happen.

Do you have any Chapter H data configured in vasl-templates? Maybe try turning that off and seeing if it makes a difference. Removing VASL extensions might make a difference as well (in vasl-templates and/or VASL).
I turned off Chapter H data and it worked. After I've updated the program following any updates I just copy the Chapter H folder over and overwrite the newly installed Chapter H folder, could that be causing the problem?

maybe a reinstall and copy the individual Chapter H folders over 1 at a time until I get the problem again? Shouldn't be too difficult, most of the folders aren't yet populated.
 

Paul_RS

Elder Member
Joined
Feb 14, 2010
Messages
1,723
Reaction score
765
Location
Gammonopolis
Country
llUnited Kingdom
Problem solved, I think? Tried the folders individually and it looks like it is the the multi applicable notes that are the culprit(s). Reverting back to blank HTML files in the chapter H folder seems to have cured it.
 
Last edited:

Pacman Ghost

Senior Member
Joined
Feb 25, 2017
Messages
590
Reaction score
298
Location
A maze of twisty little passages, all alike
Country
llAustralia
Problem solved, I think? Tried the folders individually and it looks like it the the multi applicable notes are the culprit. Reverting back to blank HTML files if the chapter H folder seems to have cured it.
That's very odd. The m/a notes should be pretty simple HTML, so nothing that should crash VASSAL.

BTW, you said you copy your Chapter H data over the newly-installed files each time there's a new release, but I'm not quite sure what you're doing - a vasl-templates release doesn't come with any Chapter H data. I keep my Chapter H data outside the vasl-templates installation directory, so when I install a new version, since the location of the the Chapter H data lives is still configured, everything Just Works.
 

Paul_RS

Elder Member
Joined
Feb 14, 2010
Messages
1,723
Reaction score
765
Location
Gammonopolis
Country
llUnited Kingdom
That's very odd. The m/a notes should be pretty simple HTML, so nothing that should crash VASSAL.

BTW, you said you copy your Chapter H data over the newly-installed files each time there's a new release, but I'm not quite sure what you're doing - a vasl-templates release doesn't come with any Chapter H data. I keep my Chapter H data outside the vasl-templates installation directory, so when I install a new version, since the location of the the Chapter H data lives is still configured, everything Just Works.
True, I'm beginning to confuse myself...
For the MA notes I open the blank HTML files in notepad and then copy and paste the sections from the electronic ASLRB, that have I open in my web browser, MS edge, prefixing the pasted text with <p> then a space before the pasted text and then save the file.
 
Top