Magpie
Member
- Joined
- Feb 20, 2019
- Messages
- 252
- Reaction score
- 74
- Country
Me too. I think it came out rather wellLove your avatar! View attachment 8113
You give me far too much credit. I'm working on a separate program called vasl-templates, that lets you embed information into a VASL scenario, but it's not VASL itself.And keep up the solid work on VASL.
Huh? That doesn't mean anything.01111000111111001110010110011001101011100
It's weird because if the images were 404'ing or timing out, you should get a "broken image" icon, but you've got nothing at all. Could you try loading these URL's in a browser:
--> This works fine.
-->This is fine also.
Or try copying the HTML out of, say, the ELR/SAN label, into an HTML file on your computer, then opening that file in a browser.
-->Copied this section to a file. (this image is from today, 2 May)
--> loading the file in my browser was fine. (Vivaldi)
Also, try restarting VASSAL and loading the scenarios again. VASSAL seems to cache things quite aggressively, and if something fails to load, it won't retry later and it stays unavailable until you restart.
TBH, looking closely at your screenshots, it looks like the scenarios you opened were generated with the "include player flags" and "include vehicle/ordnance counter images" options turned off, but "use custom list bullets" turned on. But I only sent you .vsav files, I've just checked those files, and they were generated with the correct options, so I can't see how that could've happened.
--> I just loaded them right after downloading.
Yes, that's right, it shouldn't make a difference. Those settings only apply when creating scenarios, not opening them in VASSAL.Here are my settings and version (0.9). I don't think it matters and I have tried loading the .vsav file (FRF51) with both vasl-templates running and also without it running. Same results visually.
<html> <img src="https://raw.githubusercontent.com/vasl-developers/vasl/develop/dist/images/ge/veh/pzviel.gif">
<html> <img src="http://vasl-templates.org/services/counter/adf/ja/veh/M3a.gif">
It recognizes some CSS but yes, the HTML engine is archaic. It's been incredibly frustrating writing the templates, since not only do I have to write them using 90's-style HTML, they also have to work in a modern browser, for when the generated HTML gets sent to a webdriver.I am guessing whatever VASSAL uses to render html was long before "style" (or css)?
But the following works (with vasl-templates running)?Seems this is the magic for me:
<html> <img width="100" height="100" src="https://raw.githubusercontent.com/vasl-developers/vasl/develop/dist/images/ge/veh/pzviel.gif">
<html> <img src="http://localhost:5010/counter/2600/front">
That's nothing compared to my screenI have a dirty screen, but those are tiny black dots
{%if vo.image%} <img src="{{vo.image}}" height=60 width=60> {%endif%}
==================
The fact that even localhost images are not working as well makes me very suspicious. In the 6 or so months this feature has been available, it's unlikely that no-one has reported that the "Include VASL counter images in snippets" setting doesn't work. Come to think of it, flags wouldn't work either, and I know this has been working for at least one person.Note: I am running both VASSAL/VASL and the templates file from a shared Dropbox folder.
BTW, what was the exact HTML you used for the 2nd image?
<html> <img width="100" height="100" src="https://raw.githubusercontent.com/vasl-developers/vasl/develop/dist/images/ge/veh/pzviel.gif"> AAA BBB CCC
<html> AAA BBB CCC <img width="100" height="100" src="https://raw.githubusercontent.com/vasl-developers/vasl/develop/dist/images/ge/veh/pzviel.gif">
/pacman-ghost sobs quietly into his beer.Same problem here with counter images and flags. Running W10, Java1.8.211, VASSAL 3.2.17 and VASL 6.4.4.