Reconnects and rejoins the same room automatically after a network drop, replacing the game's error
screen and full restart, which also removed everyone else from the match.
Rejoins through RejoinRoom first, which keeps the same player number and cached room state, and falls
back to joining the room as a new player when the server has already dropped the old one.
The room's master publishes the current map id and whether a match is running, so a player who comes
back (or arrives late) can find the match.
The running match's map is loaded on the returning player's PC only, through the game's own
MapManager.LoadLevelFromID, and the player is created through the game's own join path.
With three or more players, one player dropping no longer ends the match for everyone. A two player
room keeps the game's own rule.
A small panel on F9: state, saved room, server, attempts, and buttons for rejoin, join a running match,
and leave.
The game's own Photon settings are saved before the first redirect and written back when the flow
ends, so the ONLINE screen keeps dialling Photon's cloud after a rejoin.
Every step logs a [REJOIN] line, and a step that cannot be done stops the flow with the reason
instead of leaving a half-connected client.
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.