New program to help set up VASL scenarios

jomolungma

Member
Joined
Jan 19, 2021
Messages
56
Reaction score
33
Location
Virginia
Country
llUnited States
Challenge accepted! I'll get something to you later today. I've been beating my head against a wall, dealing with the hosting company, trying to get my websites fixed, so beating my head against a wall trying to get some Javascript to work will be an improvement. Yes, it's that bad :mad:
Ugh. Well, glad to give you a different wall!
 

Pacman Ghost

Senior Member
Joined
Feb 25, 2017
Messages
472
Reaction score
254
Location
A maze of twisty little passages, all alike
Country
llAustralia
I've sent you a new build. Fortunately, I was able to find a way to do it "properly" (rather than the hacky hack I was thinking I would have to do), so you can now write things like
Code:
{% if "foo" in BAR %}
It won't handle computed expressions (e.g. A+B in C+D), but if you really need this, you can save the computed values in a temp variable, and then use those.

Note that string searches are case-insensitive.
 

jomolungma

Member
Joined
Jan 19, 2021
Messages
56
Reaction score
33
Location
Virginia
Country
llUnited States
Got it. Thanks! See my DM. Will report back once I try it out tomorrow. Appreciate it!
 

jomolungma

Member
Joined
Jan 19, 2021
Messages
56
Reaction score
33
Location
Virginia
Country
llUnited States
After debugging my own code due to some pretty stupid typing mistakes, IT WORKS!

Well, I haven't fully implemented what I want to do, but I see no reason why it won't work. I was able to get it to look in the SCENARIO_LOCATION tag for "france" and return one sentence if it was there and a different one if it was not there and it worked! So this is good! Thanks so much for this. I'll now try to develop my color-changing logic based around each country's flag colors. Once I have that in, I'll let you know and give it to you in case you want to use it in some way. Thanks!
 

BoChandler

Recruit
Joined
Aug 22, 2020
Messages
4
Reaction score
2
Country
llUnited States
Haven’t used the template system yet, but is it possible to use the new eASLRB (which I purchased last night) into the chapter H workflow?
 

Pacman Ghost

Senior Member
Joined
Feb 25, 2017
Messages
472
Reaction score
254
Location
A maze of twisty little passages, all alike
Country
llAustralia
Haven’t used the template system yet, but is it possible to use the new eASLRB (which I purchased last night) into the chapter H workflow?
The workflow is the same i.e. you still have to separate out each vehicle/ordnance into its own image. The only difference the new ASLRB makes is that you don't have to scan everything in first.
 

svennwpg

Recruit
Joined
Jan 23, 2021
Messages
9
Reaction score
1
Country
llCanada
Good evening! I love the template and having some fun playing around with creating some scenarios. I am having trouble linking my vehicles notes to show with the text in VASL. I've entered text in the a.html file, but when I snippet in VASL, it is showing unavailable. The a.html file is a chrome html document

Also, it is possible to import pictures? Like the Scenario picture from the Scenario card?

Thank you for the great work!
 

Pacman Ghost

Senior Member
Joined
Feb 25, 2017
Messages
472
Reaction score
254
Location
A maze of twisty little passages, all alike
Country
llAustralia
I've entered text in the a.html file, but when I snippet in VASL, it is showing unavailable.
Did you start by unpacking the ZIP file with all the empty place-holder files? Did you configure into the program where you unpacked this ZIP file? Also, the program needs to be restarted for any changes to take effect.

Also, it is possible to import pictures? Like the Scenario picture from the Scenario card?
Yes. Look for the section in the help called "Including your own images."
 

svennwpg

Recruit
Joined
Jan 23, 2021
Messages
9
Reaction score
1
Country
llCanada
Now I'm trying to the include my own image. I have configured the directory where I keep my files in the Server Settings. I went into the Notes section the VASL templates application and clicked edit. Then in the editing template I pasted my <img src="{{USER_FILES}}/scenario.png">. When I paste the html code in the label in VASL I get a picture icon only.

Am I pasting this into the incorrect location? I'm sorry, I have limited experience with html.

Thank you
 

ScottS

Recruit
Joined
Feb 12, 2021
Messages
2
Reaction score
0
Country
llUnited States
For the life of me i cant get the program to find my webserver. I just installed firefox. This is my first go at installing and using this program
 

ScottS

Recruit
Joined
Feb 12, 2021
Messages
2
Reaction score
0
Country
llUnited States
Do you mean webdriver? Did you download geckdriver and configure it into the program?
yes i meant webdriver. So do i still d/l firefox and the geckdriver. Where do i place the geckdriver after d/l
 

svennwpg

Recruit
Joined
Jan 23, 2021
Messages
9
Reaction score
1
Country
llCanada
Hello again! I'm having trouble with using my own images on the web server. When I'm in the server settings, and in the "User Files" field, am I only putting the url address?

as an example: http://www.website.ca/asl/imagefiles

I'm getting the error: Can't find the user files directory.

In the User Settings, I have selected get images from the internet.

Thanks again for your great work!
 

Pacman Ghost

Senior Member
Joined
Feb 25, 2017
Messages
472
Reaction score
254
Location
A maze of twisty little passages, all alike
Country
llAustralia
I'm having trouble with using my own images on the web server.
If you want to get these custom images from online, then you don't have to worry about any of this (it's only an issue if you want to show images stored on your PC).

Just include:
Code:
<img src="http://www.website.ca/asl/imagefiles/...etc...">
in your label (i.e. a normal HTML image), and VASSAL will get the image from there.
 
Last edited:
Top