alternate maps / games folder

alternate maps / games folder

Various things about Spring that do not fit in any of the other forums listed below, including forum rules.

Moderator: Moderators

Post Reply
c_rex
Posts: 13
Joined: 11 Dec 2009, 02:01

alternate maps / games folder

Post 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
dansan
Server Owner & Developer
Posts: 1203
Joined: 29 May 2010, 23:40

Re: alternate maps / games folder

Post 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/
gajop
Moderator
Posts: 3051
Joined: 05 Aug 2009, 20:42

Re: alternate maps / games folder

Post by gajop »

ln -s or just put the path to data as SpringData = YOUR_DATA_DIR_PATH
c_rex
Posts: 13
Joined: 11 Dec 2009, 02:01

Re: alternate maps / games folder

Post 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/
gajop
Moderator
Posts: 3051
Joined: 05 Aug 2009, 20:42

Re: alternate maps / games folder

Post 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 ~/
c_rex
Posts: 13
Joined: 11 Dec 2009, 02:01

Re: alternate maps / games folder

Post 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!
User avatar
SinbadEV
Posts: 6475
Joined: 02 May 2005, 03:56

Re: alternate maps / games folder

Post 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
Last edited by SinbadEV on 30 Sep 2013, 17:00, edited 1 time in total.
gajop
Moderator
Posts: 3051
Joined: 05 Aug 2009, 20:42

Re: alternate maps / games folder

Post 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
c_rex
Posts: 13
Joined: 11 Dec 2009, 02:01

Re: alternate maps / games folder

Post 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 :-)
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: alternate maps / games folder

Post 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.
c_rex
Posts: 13
Joined: 11 Dec 2009, 02:01

Re: alternate maps / games folder

Post by c_rex »

well how about that. I see it.

Thanks!!
Post Reply

Return to “General Discussion”