Launch spring via a command?

Launch spring via a command?

Discuss everything related to running Spring on your chosen distribution of Linux.

Moderators: Moderators, Moderators

Post Reply
User avatar
liamdawe
Posts: 120
Joined: 19 Mar 2010, 15:09

Launch spring via a command?

Post by liamdawe »

Any idea on how to get springlobby to launch spring with a command like optirun?
0 x

User avatar
koshi
Lobby Developer
Posts: 1058
Joined: 14 Aug 2007, 16:15

Re: Launch spring via a command?

Post by koshi »

put a wrapper script with your options somewhere, chmod +x it and select that in sl prefs
0 x

User avatar
liamdawe
Posts: 120
Joined: 19 Mar 2010, 15:09

Re: Launch spring via a command?

Post by liamdawe »

koshi wrote:put a wrapper script with your options somewhere, chmod +x it and select that in sl prefs
I tried that but then the spring commands don't seem to apply to it. I tested using single player selected mod and map and then spring loaded up but to the main menu.
0 x

User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: Launch spring via a command?

Post by jK »

http://www.dodgycoder.net/2011/11/yoda- ... ption.html
-> Different kinds of bug reports

So of what kind is your's? Sure no real bug report here, still it fits. Tip: "doesn't work."
0 x

User avatar
hoijui
Former Engine Dev
Posts: 4342
Joined: 22 Sep 2007, 09:51

Re: Launch spring via a command?

Post by hoijui »

you have to pass on commands line args given to your script by SL.
it is something like $*
0 x

dansan
Server Owner & Developer
Posts: 1195
Joined: 29 May 2010, 23:40

Re: Launch spring via a command?

Post by dansan »

Please post your wrapper script. It should look similar to this:

Code: Select all

#!/bin/sh
optirun /usr/bin/spring $@
0 x

User avatar
liamdawe
Posts: 120
Joined: 19 Mar 2010, 15:09

Re: Launch spring via a command?

Post by liamdawe »

dansan wrote:Please post your wrapper script. It should look similar to this:

Code: Select all

#!/bin/sh
optirun /usr/bin/spring $@
Ideal that is what i needed, thanks :)
0 x

Post Reply

Return to “Linux”