Page 1 of 1

Salem Client portable

PostPosted: Wed Aug 05, 2015 11:51 am
by prius
Hi,

is it possible to make the client with Java portable to use them from a USB stick?

Greets

Re: Salem Client portable

PostPosted: Wed Aug 05, 2015 12:35 pm
by Shrapnel
I tried this back with Haven & Hearth, and it failed miserably.. While you can have the entire client installed on the USB stick, it still required a java installation on the PC to play it.

Im assuming that its the same thing for Salem, So unless you can install java on the USB and have it run from the USB, im going to say no.

Then again, someone with more experience than me is going to come rushing in here and explain that it is possible, and how to do it properly with some crazy ass setup that takes 30 minutes to set up.

Re: Salem Client portable

PostPosted: Wed Aug 05, 2015 1:06 pm
by Kandarim
Indeed: the client itself is completely portable as-is, just copy your ~/Salem folder and use an appropriate launcher bat:

Kandarim wrote:You can run the client from the commandline like this (you can easily dump it in a .bat):
Code: Select all
start "" java -jar lsalem.jar -U http://game.salemthegame.com/res/ game.salemthegame.com

From the Salem/bin/ directory. If you get some errors about gluegen-rt.dll not being present, you're probably using the wrong version of java and you should try direct links to java:
Code: Select all
start "" "C:\Program Files (x86)\Java\jre7\bin\java.exe" -jar lsalem.jar -U http://game.salemthegame.com/res/ game.salemthegame.com


The Java installation will be the issue, but I turned this up. Not sure how well it will or will not work, but it can be worth a shot if you have no other options.

Re: Salem Client portable

PostPosted: Wed Aug 05, 2015 1:28 pm
by Kralith
Kandarim, what is with the Cache directory?
Doesn't the client it put into the directory .salem on your homedirectory?
I think it is hardcoded, or isn't?

Re: Salem Client portable

PostPosted: Wed Aug 05, 2015 2:07 pm
by Kandarim
yup, it is hardcoded to be ~/.salem
However, even on systems were portable apps are required, users are typically allowed to write to their homedirectory, so I doubt that's a big issue.

Re: Salem Client portable

PostPosted: Wed Aug 05, 2015 11:33 pm
by Shrapnel
Glad someone was able to provide a better explanation and a possible solution, i might have to look into this again, so i may never have to leave home without it!