Player joining during master server loading scene?

Options
What happens if player joins the game while master server is loading a say rather big scene? How can client find out if master server is in process of loading a scene so that its rpcs are not lost? Can client send rpc to master by buffered?

Will PhotoNetwork.syncscene (can't remember the exact api name) automatically makes joining client to load the same scene as the scene that master client is loading ? (but not yet fully loaded)

What is the best strategy for handling such case?

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    Hi @Castor,

    Thank you for choosing Photon!

    First of all, I want to clarify something:

    There is a difference between Master Server (lobby server or matchmaking server the client connects to before switching to a Game Server where rooms can be joined and game logic happens) and Master Client (one client per room).

    To answer your question, you could read the documentation here.
  • Castor
    Options
    Ok. So my question should have been. What happens if client joins the room while master client is in the middle of loading a scene? Which scene does client load in that case? Previous scene of master client or the same scene that master client is currently trying to load?

    Also say because client loading speed was very slow, master client was able to load yet another scene while client was trying to load the master's scene .. what happens?

    So. Master client was at scene A, client joins room and starts load scene A. Then master client loads scene B but client is still loading scene A. Master client was able to load scene C after loading B. Client then finishes loading scene A. What happens in such case?
  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    What happens if client joins the room while master client is in the middle of loading a scene? Which scene does client load in that case? Previous scene of master client or the same scene that master client is currently trying to load?
    The same scene the master client is currently trying to load.
    Also say because client loading speed was very slow, master client was able to load yet another scene while client was trying to load the master's scene .. what happens?
    The client should load the last scene the master client load or is loading.
    So. Master client was at scene A, client joins room and starts load scene A. Then master client loads scene B but client is still loading scene A. Master client was able to load scene C after loading B. Client then finishes loading scene A. What happens in such case?
    Scene C should be loaded. You can test this yourself. If there is a different behaviour we will investigate.