vasltemplates problem ?

Robin Reeve

The Swiss Moron
Staff member
Moderator
Joined
Jul 26, 2003
Messages
19,647
Reaction score
5,631
Location
St-Légier
First name
Robin
Country
llSwitzerland
Hi,
I used the vasltemplates to add some useful notes in my setup file.
I can open and close it fine, but my opponents cannot and have the following message :
13595

Where could be the problem ?
 

Pacman Ghost

Senior Member
Joined
Feb 25, 2017
Messages
590
Reaction score
298
Location
A maze of twisty little passages, all alike
Country
llAustralia
VASSAL shouldn't crash, but this might be because the scenario you have created is getting images from vasl-templates.

Briefly, labels are created in VASSAL using HTML, which contains the text you want to show in the label, but unfortunately, if you want to include pictures (e.g. the VASL counters, or player flags), they can't be included in a label, they have to be stored somewhere else.

If you open the User Settings in vasl-templates, you will see 2 choices for the "Get images from" option:

(*) this program: images will be downloaded from the vasl-templates program. This is faster, but vasl-templates must be running when you open the scenario in VASSAL. You will see a warning at the bottom of the dialog box whenever this is the case.

(*) the internet: images will be downloaded from the internet. This is slower, but vasl-templates doesn't need to be running when you open the scenario.

The second option is the default, but I suspect because you started using vasl-templates before I added this "from the internet" feature, you still have vasl-templates set to get images "from this program."

To fix this, you need to update your scenario to get images from the internet.

(*) First, configure vasl-templates to get images from the internet.

(*) Open the scenario (the .json file, not the .vsav file) in vasl-templates. Hopefully, you kept it :)

(*) Choose the "Update VASL scenario" option from the menu, and select the .vsav file. This will change all the labels to get their images from the internet, and not the vasl-templates program.

You should now be able to open the scenario in VASSAL, even if vasl-templates is not running.
 

Robin Reeve

The Swiss Moron
Staff member
Moderator
Joined
Jul 26, 2003
Messages
19,647
Reaction score
5,631
Location
St-Légier
First name
Robin
Country
llSwitzerland
Thanks.
I only used text in the labels (excepted the graphics of the titles that the program provides).
 

Pacman Ghost

Senior Member
Joined
Feb 25, 2017
Messages
590
Reaction score
298
Location
A maze of twisty little passages, all alike
Country
llAustralia
excepted the graphics of the titles that the program provides
These count.

While I haven't seen it, other people have reported VASSAL crashing if you try to load a scenario that references images that are not available, and this includes images that vasl-templates has inserted for you.

Open the User Settings in vasl-templates, and if you see a red warning at the bottom, this is probably what's causing the problem for your opponent.

Try opening the scenario yourself, with vasl-templates not running, and see what happens (restart VASSAL first). At best, it will take a looong time to open, and you will see lots of broken images. At worst, VASSAL will crash.
 
Last edited:

Robin Reeve

The Swiss Moron
Staff member
Moderator
Joined
Jul 26, 2003
Messages
19,647
Reaction score
5,631
Location
St-Légier
First name
Robin
Country
llSwitzerland
I have no problem opening my own files - I experimented no crash myself.
I sent a file without the labels to a friend who couldn't open the one with the labels and I am waiting to see if he can open it...
 

zgrose

Elder Member
Joined
Jun 13, 2004
Messages
4,247
Reaction score
961
Location
Kingwood, TX
First name
Zoltan
Country
llUnited States
Where could be the problem ?
You can also look in the VASSAL Error Log (Module Launcher, Help Menu) for extra info. Usually just copy/pasting the whole thing into a forum post is the way to go.
 

uckelman

Senior Member
Joined
Sep 12, 2011
Messages
718
Reaction score
442
Location
Durham
Country
llUnited Kingdom
The errorLog, which shows the details of what happened, can be seen by clicking on "Show details" at the bottom of that dialog.
 

Robin Reeve

The Swiss Moron
Staff member
Moderator
Joined
Jul 26, 2003
Messages
19,647
Reaction score
5,631
Location
St-Légier
First name
Robin
Country
llSwitzerland
I removed the templates from my file and my friend - as well as my opponent - could open it.
 

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 removed the templates from my file and my friend - as well as my opponent - could open it.
Take a look at one of the vasl-templates labels in the save file that crashes, and search for "http://". If it's followed by "localhost", the label is trying to get images from the vasl-templates program, and is liable to the problems described above e.g.
Code:
<img src="http://localhost:5010/flags/german" width='11' height='11'>
But if it's followed by "vasl-templates.org", it's getting images from the internet, and the crash is being caused by something else (send me a copy of the save file) e.g.
Code:
<img src="http://vasl-templates.org/services/static-images/flags/german.png" width='11' height='11'>
 
Top