It's been a while since I used this program, so I updated everything, made sure the settings are correct, but when I create a snippet for a picture in the scenario/notes section and paste it into a label in a VASL file, the image never loads. It only shows the snippet text. I know it works with the proper html snippet because I can cut and paste the html from a label in an old save and have it load the picture. How do I get the current version to generate the proper html to actually load pictures without having to open an old save, copy the html, change the file name, and paste it into a label in a new file?
I've looked at the differences between the old and new snippet html and they are different:
Old Snippet (1.10)
<html> <!-- vasl-templates:id scenario_note.6 --> <head> <meta charset="utf-8"> <style> body { } p { margin-top: 5px ; margin-bottom: 0 ; } ul { margin: 0 ; padding: 0 0 0 10px ; } td { margin: 0 ; padding: 0 ; } td.c { text-align: center ; } td.l { text-align: left ; } td.r { text-align: right ; } sup { font-size: 75% ; } sub { vertical-align: sub ; font-size: 80% ; line-height: 0.5em ; } .exc { font-style: italic ; color: #404040 ; } </style> </head> <table> <tr> <td style=" width: 200px ; "> <img src="
http://localhost:5010/user/Weather_Reduced.png"> </table> </html>
New Snippet (1.14)
<html> <!-- vasl-templates:id scenario_note.1 --> <head> <meta charset="utf-8"> <style> body { } p { margin-top: 5px ; margin-bottom: 0 ; } ul { margin: 0 ; padding: 0 0 0 10px ; } ol { margin: 0 ; padding: 0 0 0 21px ; } td { margin: 0 ; padding: 0 ; } td.c { text-align: center ; } td.l { text-align: left ; } td.r { text-align: right ; } sup { font-size: 75% ; } sub { vertical-align: sub ; font-size: 80% ; line-height: 0.5em ; } .exc { font-style: italic ; color: #404040 ; } </style> </head> <table> <tr> <td style=" width: 200px ; "> <font face="monospace"><span style="font-size: 13px; white-space: pre;"><img src="
http://localhost:5010/user/Weather_Reduced.png"></span></font> </table> </html>
EDIT: For those having the same issue, you can use the code below in a label to make it work. Replace "yourfilename.xxx (with proper file extension)" with the name of your file. If anybody has a more efficient code snippet, let me know. This is the snippet generated by version 1.10 of VASL Templates.
<html> <!-- vasl-templates:id scenario_note.6 --> <head> <meta charset="utf-8"> <style> body { } p { margin-top: 5px ; margin-bottom: 0 ; } ul { margin: 0 ; padding: 0 0 0 10px ; } td { margin: 0 ; padding: 0 ; } td.c { text-align: center ; } td.l { text-align: left ; } td.r { text-align: right ; } sup { font-size: 75% ; } sub { vertical-align: sub ; font-size: 80% ; line-height: 0.5em ; } .exc { font-style: italic ; color: #404040 ; } </style> </head> <table> <tr> <td style=" width: 200px ; "> <img src="
http://localhost:5010/user/yourfilename.xxx"> </table> </html>