Join back the game after crash

Join back the game after crash

Requests for features in the spring code.

Moderator: Moderators

Post Reply
alexmic
Posts: 21
Joined: 25 Feb 2008, 10:13

Join back the game after crash

Post by alexmic »

Hi guys

The feature I miss the most is the possibility to come back to the game after it has crashed.
I've seen it in many games and I think it would be a great improvement in spring.

I know it might be a hard stuff (sync again and bandwidth)...

Thanx for your attention and you efforts in spring

Cheers

alexmic
User avatar
LordMatt
Posts: 3393
Joined: 15 May 2005, 04:26

Re: Join back the game after crash

Post by LordMatt »

This would be really hard to do.
reivanen
Posts: 180
Joined: 12 Feb 2008, 15:52

Re: Join back the game after crash

Post by reivanen »

would it not be possible to DL the replay file from the host, fast forward it to current gamestate, and then .give the dropped team back to the player ?
User avatar
MightySheep
Posts: 243
Joined: 11 Nov 2007, 02:17

Re: Join back the game after crash

Post by MightySheep »

or you could make it possible to save the game or have it autosave.
User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

Re: Join back the game after crash

Post by BrainDamage »

MightySheep wrote:or you could make it possible to save the game or have it autosave.
means 20-30 secs of inactivity every nth minutes of game, players would get quite frustrated
ironized
Posts: 172
Joined: 25 Jun 2007, 06:33

Re: Join back the game after crash

Post by ironized »

lol, i fail to understand that,

the server would just have to send a copy of all its current information to the client joining...

literally a snapshot, then just run the connection as normal...
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: Join back the game after crash

Post by imbaczek »

the problem is that this snapshot can weigh in at several hundred megs.
User avatar
SinbadEV
Posts: 6475
Joined: 02 May 2005, 03:56

Re: Join back the game after crash

Post by SinbadEV »

a snapshot is basically the current Memory usage of spring.exe (RAM and swap)
User avatar
aegis
Posts: 2456
Joined: 11 Jul 2007, 17:47

Re: Join back the game after crash

Post by aegis »

why are save games so small?

isn't a lot of the stored data unsynced?
User avatar
SinbadEV
Posts: 6475
Joined: 02 May 2005, 03:56

Re: Join back the game after crash

Post by SinbadEV »

the replays are basically the netcode (a list of commands) and then the game is extrapolated... not sure why games saves would be small... I would guess if you paused the game to let people rejoin another players saved game would probably suffice.
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: Join back the game after crash

Post by imbaczek »

good catch, I dunno ^^ maybe it's not *that* much stuff.
User avatar
Peet
Malcontent
Posts: 4384
Joined: 27 Feb 2006, 22:04

Re: Join back the game after crash

Post by Peet »

SinbadEV wrote:a snapshot is basically the current Memory usage of spring.exe (RAM and swap)
No, it wouldn't have to include any loaded textures or models or sounds, just everything in the sim.
User avatar
Acidd_UK
Posts: 963
Joined: 23 Apr 2006, 02:15

Re: Join back the game after crash

Post by Acidd_UK »

A saved replay for even a large game is 2-3MB or so. So theoretically , the server could pause, send the replay to the client, which runs it at full speed with graphics off to get to the same state as everyone else. Then unpause and continue.

The problem is implementing this in spring is not as easy as that. However, it would probably be easier than writing a full save/load system. It's been on the wish list for a long time, but it's a big task...
alexmic
Posts: 21
Joined: 25 Feb 2008, 10:13

Re: Join back the game after crash

Post by alexmic »

I was just wondering if reconnect could actually be handled like a huge ping...

Sometimes we see players with outrageous pings (i.e. > 5 secs) and the player can resync in secs when the game is paused...

So when the player joins back, pause the game and resync ?

I know it is quite the same idea as stated earlier but, I think the pausing stuff could remove a point?

Cheers

alexmic
User avatar
Tribulexrenamed
Posts: 775
Joined: 22 Apr 2008, 19:06

Re: Join back the game after crash

Post by Tribulexrenamed »

Brain Damage wrote:
MightySheep wrote:or you could make it possible to save the game or have it autosave.
means 20-30 secs of inactivity every nth minutes of game, players would get quite frustrated

Multithreading ;]
User avatar
Peet
Malcontent
Posts: 4384
Joined: 27 Feb 2006, 22:04

Re: Join back the game after crash

Post by Peet »

Tribulex wrote:
Brain Damage wrote:
MightySheep wrote:or you could make it possible to save the game or have it autosave.
means 20-30 secs of inactivity every nth minutes of game, players would get quite frustrated

Multithreading ;]
Continuing the sim in one thread while saving it in the other? :P
Post Reply

Return to “Feature Requests”