CreateRoom failed because client is on masterserver but is not ready for operations

Options
axzel
axzel

Hi! I am a new unity dev and I want to use pun 2 to create a multiplayer fps. While attempting to run my game, I encountered this error and I can't find my way around it.

Error^

^Code i use to connect to server.

^Code used to create and join rooms.


All help is appreciated.

Answers

  • datwabbit
    Options

    There is a possibility where you might be loading the lobby first, instead of actually starting off with the scene where you connect to the server

  • Tobias
    Tobias admin
    edited August 2022
    Options

    Rely on the callbacks to know when you can Join / Create rooms.

    The PUN Basics Tutorial is likely the best place to start (again).

    Also, a Photon Lobby is not the same as a (match) lobby, as often used in other places. Join a room, not a lobby.