Load a module from the command line

Is it possible to load a module from the command line? I’d like to make shortcuts for the modules I’m playing and skip the intermediate step.

Thanks

You can. Just give the module file name as a command-line argument. This works through version 3.;0, but the command-line arguments will change in 3.1.

rk

Post generated using Mail2Forum (mail2forum.com)

Cool. Now I just have to figure what the command line is on the Mac.

Thanks!

And that is not going well. As far as I can tell the Mac just doesn’t want do this. It’s be easy on Windows and I’m pretty sure it would be easy on Linux but the Mac… ugh.

Part of the issue is the spaces in the application name (“VASSAL 3.0.app/MacOS/VASSAL 3.0”). I can get VASSAL to start but I can’t get it load the module without stopping on the intro screen.

PS. I’m using 3.0.17 just in case there’s something about that version that makes this not work.

Awfki wrote:

Works for me:

tim@feathers:~$
/Applications/Games/VASSAL.app/Contents/MacOS/JavaApplicationStub
~/Documents/Games/Vassal/Modules/Memoir44v6.mod

tim@feathers:~$ uname -a
Darwin feathers.pelican.org 8.11.0 Darwin Kernel Version 8.11.0: Wed Oct
10 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC Power Macintosh
powerpc

If you’ve got spaces, you should just be able to quote them, or escape
them with backslashes:

tim@feathers:~$
/Applications/Games/VASSAL.app/Contents/MacOS/JavaApplicationStub
/Users/tim/Documents/Games/Vassal/Modules/Twilight\ Struggle\ 2_3.mod

Regards,
Tim.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

When I try I get error messages about “JVMArchs not found in Java dictionary” and “Could not load file/url”.

I tried copying the app and removing all the spaces. I tried setting the modules default app to VASSAL.app, I tried escaping the spaces, I tried in the terminal and tried with applescript’s “do shell”.

The best I’ve managed has been to start VASSSAL without the module.

Thus far I’ve been underwhelmed by the Mac. It’s good at whatever Steve thinks you ought to be doing but it doesn’t seem to like it if you get off the beaten path.

Thanks for trying.

Awfki wrote:

Doing the exact same thing? What version of OS X? Can you cut and
paste the command you’re entering and all of the output from the terminal?

Regards,
Tim.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

Not the exact same, I’m installed in a different directory but the same general idea. I tried to post the output earlier but something in the java error made the forum software unhappy. There were angle brackets and I didn’t have time to sort it out. I’ll have another try tomorrow.

Here’s my command:

/Applications/VASSAL.app/Contents/MacOS/VASSAL ~/Boardgames/VASSAL/Hammer-Scots-v5

Here’s the output with parens instead of angle & square brackets.

code A 64-bit JVM is available for 1.5.0
(JavaAppLauncher) JVMArchs not found in Java dictionary

Java Web Start Error:

The following required field is missing from the launch file: (jnlp)

[/code]

I haven’t tried CDing to the VASSAL directory and running it from there… Same thing.

uname:

Darwin eris 9.2.2 Darwin Kernel Version 9.2.2: Tue Mar 4 21:17:34 PST 2008; root:xnu-1228.4.31~1\RELEASE_I386 i386

It was the dash a that was making the forum unhappy.

Thus spake “Rodney Kinney”:

For 3.1, loading a module from the command line is substantially the same:
It’s just the name of the VASSAL executable followed by the path to the
module.

E.g., on Linux, it would be

VASSAL.sh path/to/module.vmod


J.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

On Wed, June 18, 2008 3:52 am, Awfki wrote:

Hmm… I’m Mac-less at work at the moment, but I wonder why you have:

…/VASSAL.app/Contents/MacOS/VASSAL

and not

…/VASSAL.app/Contents/MacOS/JavaApplicationStub

Do you have the ‘JavaApplicationStub’ file as well?

Can you post the output of the following commands:

file /Applications/VASSAL.app/Contents/MacOS/VASSAL
file /Applications/VASSAL.app/Contents/MacOS/JavaApplicationStub
java -version

Regards,
Tim.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

On Jun 17, 2008, at 7:52 PM, Awfki wrote:

Which version of Vassal are you using?

These two items are just informative and can be ignored.

This looks like the application is trying to use the Web Start version.

How did you install Vassal?

I was able to get this working using the JavaApplicationStub
suggestion from Tim Franklin.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

3.0.17

Initially I did a manual download and it gave me 3.0.15. I didn’t realize it wasn’t the latest till a module asked for 3.0.17. I went back and found the “manual installer” that downloads installVASSAL.jar and got 3.0.17 with that. I don’t think I uninstalled 3.0.15 first though it’s gone now.

If it’s working for everyone else maybe I’ll just go uninstall the whole thing and try again with the installer.

Can you point me at the instructions? I searched for that and found three threads including this one. I saw the term mentioned but if there were instructions I missed them.

Un-installed and re-installed using the “manual installer” (installVASSAL.jar). It doesn’t initially create a .app in the Applications directory. I clicked on “vassal-3.0.jnlp” in the install directory and it created a “VASSAL 3.0.app”.

[code]eris:MacOS Dave$ /Applications/VASSAL\ 3.0.app/Contents/MacOS/VASSAL\ 3.0 ~/Boardgames/VASSAL/OGRE
[JavaAppLauncher] A 64-bit JVM is available for 1.5.0
[JavaAppLauncher] JVMArchs not found in Java dictionary

Java Web Start Error:

Could not load file/URL specified: /Users/Dave/Boardgames/VASSAL/OGRE

[/code]

I’m ready to throw in the towel unless someone has another idea. I very much appreciate everyone’s help.

Thus spake “Awfki”:

If you can’t get this to work, try 3.1.0-beta3 when we release it (I’m
shooting for Sunday now). We put a lot of effort into making the Mac
experience better in 3.1, so I suspect that this problem will go away
for you.


J.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

Awfki wrote:

From the VASSAL web site, don’t click on the ‘manual installer’ link,
click on the ‘download’ link. This will bring you to a page where,
about half-way down, is the ‘manual installation’ link.

Click on this link, and you should download VASSAL-3.0.zip.

Unzip it, cd into the directory, and run VASSAL.sh.

You can then supply a module name with:

./VASSAL.sh /path/to/module.mod

Sorry for the confusion, I’m running with 3.0.15, which has a
downloadable VASSAL.app. To the best of my knowledge, 3.0.17 only has
either the web-startable app (which as you’ve discovered, doesn’t work
quite the same way), or the zip.

As Joel’s already replied, 3.1 will be much more filled with crunchy Mac
goodness :slight_smile:

Regards,
Tim.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

Sounds great. I’ll be on the watch for it.

Thus spake “Awfki”:

BTW, if you still find this is be a problem with 3.1.0-beta3, please
let us know so we can fix it.


J.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)