Page 1 of 1
alternate maps / games folder
Posted: 30 Sep 2013, 13:59
by c_rex
I've recently been running Linux, coming from Win7
Using 4 flavors of Linux: Fedora, Sabayon 13.08, Sabayon 13.04 (nicer to cpu in beginning of a spring game), and Sabayon 13.04 Live
Is there a way I can point spring to a unified maps / games location?
like this:
/spring_/ <--- this folder
/maps
/games
Re: alternate maps / games folder
Posted: 30 Sep 2013, 14:22
by dansan
I do this. I have in
Code: Select all
/mnt/games/springrts/ :
demos/
lobby/
maps/
mods/
packages/
pool/
rapid/
And in
Code: Select all
~/.spring/ :
demos -> /mnt/games/springrts/demos/
games -> /mnt/games/springrts/mods/
lobby -> /mnt/games/springrts/lobby/
maps -> /mnt/games/springrts/maps/
mods -> /mnt/games/springrts/mods/
packages -> /mnt/games/springrts/packages/
pool -> /mnt/games/springrts/pool/
rapid -> /mnt/games/springrts/rapid/
Re: alternate maps / games folder
Posted: 30 Sep 2013, 15:11
by gajop
ln -s or just put the path to data as SpringData = YOUR_DATA_DIR_PATH
Re: alternate maps / games folder
Posted: 30 Sep 2013, 15:54
by c_rex
thank you both. "SpringData" sounds like what I am after at this point.
I tried Springlobby.conf and Springsettings.conf, to no avail.
Do I put it like this?
Code: Select all
[Spring/Paths/default]
UnitSyncPath=/usr/lib64/libunitsync.so
SpringData=/run/media/crex/Progs/JD/spring/
Re: alternate maps / games folder
Posted: 30 Sep 2013, 16:29
by gajop
I forgot how it's on Linux, but on Windows you have a file called: springsettings.cfg, and it has your path.
SpringData = /run/media/crex/Progs/JD/spring/
I think you should put the springsettings.cfg in either ~/.spring/ or ~/
Re: alternate maps / games folder
Posted: 30 Sep 2013, 16:49
by c_rex
That should be enough info. Currently I'm running Fedora, it installed Spring and I have no idea where the .cfg file is. I'll google it.
Dansan, thank you for your example. As I learn Linux I will know better how to replicate what you mean.
Thanks both!
Re: alternate maps / games folder
Posted: 30 Sep 2013, 16:56
by SinbadEV
try
~/.config/spring/springsettings.cfg
or
~/.springrc
(source
http://springrts.com/wiki/Springsettings.cfg )
Also
http://springrts.com/wiki/Springsettings.cfg#SpringData for more deatil on the SpringData option
Re: alternate maps / games folder
Posted: 30 Sep 2013, 16:58
by gajop
Dansan, thank you for your example. As I learn Linux I will know better how to replicate what you mean.
he means this:
gajop wrote:ln -s
he created symbolic links instead of specifying the path
what he did was for each dir in ~/.spring, such as games, he created a link to where it actually is, so e.g.
ln -s /run/media/crex/Progs/JD/spring/games ~/.spring/games to create a link for games dir (make sure that ~/.spring/games isn't an existing dir already)
of course you should choose only one of the two ways, not both: my suggestion is to go with the datadir, less work
Re: alternate maps / games folder
Posted: 30 Sep 2013, 17:37
by c_rex
yes, less work. I am glad to know of such techniques however. I found .springrc by manually going through all directories even before I saw SinbadEv's reply. I figured 'spring' in the filename was a good thing.
Also, the real directory name I am pointing to contains spaces, as I'd created it in Windows, so I had to replace them with _
It's working. Thank you both for the additional information as well

Re: alternate maps / games folder
Posted: 01 Oct 2013, 14:06
by hoijui
easiest way to change a setting, is to open the spring executable directly (spring.exe under windows, spring under linux), and click on the [Edit Settings] button. this way you don't have to search any file, and you can be sure to edit the settings that will be used.
Re: alternate maps / games folder
Posted: 02 Oct 2013, 14:23
by c_rex
well how about that. I see it.
Thanks!!