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
alternate maps / games folder
Moderator: Moderators
Re: alternate maps / games folder
I do this. I have in
And in
Code: Select all
/mnt/games/springrts/ :
demos/
lobby/
maps/
mods/
packages/
pool/
rapid/
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
ln -s or just put the path to data as SpringData = YOUR_DATA_DIR_PATH
Re: alternate maps / games folder
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?
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
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 ~/
SpringData = /run/media/crex/Progs/JD/spring/
I think you should put the springsettings.cfg in either ~/.spring/ or ~/
Re: alternate maps / games folder
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!
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
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
~/.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
Last edited by SinbadEV on 30 Sep 2013, 17:00, edited 1 time in total.
Re: alternate maps / games folder
he means this:Dansan, thank you for your example. As I learn Linux I will know better how to replicate what you mean.
he created symbolic links instead of specifying the pathgajop wrote:ln -s
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
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
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
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
well how about that. I see it.
Thanks!!
Thanks!!