Multiple spring instances from same directory

Multiple spring instances from same directory

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
Licho
Zero-K Developer
Posts: 3803
Joined: 19 May 2006, 19:13

Multiple spring instances from same directory

Post by Licho »

Is it safe to run multiple springs from same directory? Or is there any exclusive access to spring files?

I tried it and it seems to work, though after some time one of the springs had corrupted textures (the one that was running mostly in background). But game itself was ok and I will only have 1 rendering instance anyway.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

Only stuff like ext.txt, infolog.txt can (and will) get corrupted, but for the rest it works pretty fine. (I do that all the time for testing)
User avatar
PauloMorfeo
Posts: 2004
Joined: 15 Dec 2004, 20:53

Post by PauloMorfeo »

In Windows XP, if i try to re-open the lobby while Spring is running, the Lobby will just not open.

If i am in a room in a lobby, and hapen to have Spring running (maybe testing something), if the game starts in the mean time, it will fail to load.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

That is a lobby issue then, spring doesn't have any code to prevent multiple instances AFAIK. (obviously it will fail to bind socket to port 8452 if you try to run multiple springs as servers without changing port number...)

ie. this works fine usually, on Linux:

Code: Select all

( ./spring -s & ); ./spring -c
btw, maybe ArchiveCacheV4.txt could get corrupted badly if you put a new archive in base/mods/maps and run 2 instances of spring that try to update the file at the same time (ie. if you start them at same moment)... so I guess you should watch out a bit...
User avatar
Licho
Zero-K Developer
Posts: 3803
Joined: 19 May 2006, 19:13

Post by Licho »

There is possible bug - if I run fullscreen spring and minimize it ASAP it keeps hosting, but game will never start (countdown to negative values).
I will explore it more.
User avatar
Licho
Zero-K Developer
Posts: 3803
Joined: 19 May 2006, 19:13

Post by Licho »

False alarm, it works fine, I had some issue with conflicting forwarded ports.
Post Reply

Return to “Engine”