Rejoining mid-game
Moderator: Moderators
-
- Posts: 43
- Joined: 25 Feb 2006, 20:09
Rejoining mid-game
If for some reason someone crashes, and their name is on the list of people who were in the game, they should be able to rejoin to spectate. Can it be done?
Re: Rejoining mid-game
theoretically, yes! and if you search the forums, you'll find multiple discussions about the topic from the past.
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: Rejoining mid-game
Probably not gonna happen.
Re: Rejoining mid-game
what, him searching the forums?
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: Rejoining mid-game
momfreeek wrote:what, him searching the forums?
Post Subject wrote:Rejoining mid-game
Re: Rejoining mid-game
Yes, it is possible, there is an "AllowAdditionalPlayers" setting to enable this on the server.
Re: Rejoining mid-game
Why is this not the common setting?zerver wrote:Yes, it is possible, there is an "AllowAdditionalPlayers" setting to enable this on the server.
Re: Rejoining mid-game
does it synchronize state, or do they have a very broken view of the game once they join?
Re: Rejoining mid-game
I was actually going to ask the same thing. Maybe devs were afraid this would increase risk of mid-game server crashes by malformed connection attempts or spoofing etc.Hobo Joe wrote:Why is this not the common setting?
In addition to this, anyone who knows the server address can join to spectate at any time. The spectator count may grow large...
I think everything works wrt sync. What happens is that the game restarts and essentially fast forwards to the point where it is currently at. If a player rejoins though, he will probably only be able to spectate.
So, question is if we should enable it by default. Someone post a vote...
Re: Rejoining mid-game
!vote 1
Re: Rejoining mid-game
zerver wrote: In addition to this, anyone who knows the server address can join to spectate at any time. The spectator count may grow large...
Elaborate
- Pressure Line
- Posts: 2283
- Joined: 21 May 2007, 02:09
Re: Rejoining mid-game
What zerver means is that since anyone who knows the server address can join there is potential for a game to start with 2 specs, and end up with 20 halfway through the game.Hobo Joe wrote:zerver wrote: In addition to this, anyone who knows the server address can join to spectate at any time. The spectator count may grow large...
Elaborate
Re: Rejoining mid-game
Holy crap, we have this feature? Unfortunately, since it's implemented as a fast-forward instead of a true state transfer, it means it's not viable for some deathmatch-esque game in which a single gamestate could last for hours as players come and go...
But still, how much power do modders have over the handling of late-joiners. Can the mod assign them to play?
But still, how much power do modders have over the handling of late-joiners. Can the mod assign them to play?
Re: Rejoining mid-game
IIRC Auswaschbar said that the packet buffer is limited, so this just works for the first ~30seconds.zerver wrote:I think everything works wrt sync. What happens is that the game restarts and essentially fast forwards to the point where it is currently at. If a player rejoins though, he will probably only be able to spectate.
(I never investigated that code myself, but it is what I thought and heard about it)
Re: Rejoining mid-game
but the packet buffer is theoretically unlimited as long as we're still saving replays
Re: Rejoining mid-game
Code: Select all
std::list< boost::shared_ptr<const netcode::RawPacket> > packetCache; //waaa, the overhead
Anyway, I will probably change it so that "AllowAdditionalPlayers" only controls whether extra spectators are allowed after start and the reconnect-to-spectate-if-crashed feature is allowed by default.
- bobthedinosaur
- Blood & Steel Developer
- Posts: 2700
- Joined: 25 Aug 2004, 13:31
Re: Rejoining mid-game
what about just join midgame, and no re about it?