HELP: Can't add. Size exceeded.
Options
Hello guys, I'm really new to PUN so please be kind with me
I'm getting the "Can't add. Size exceeded." error some seconds after starting the room with 1 additional player and I don't really get where I'm causing this. Can someone please help me and tell me what causes such an error and where I should look into ?
Thank you very much !!!
I'm getting the "Can't add. Size exceeded." error some seconds after starting the room with 1 additional player and I don't really get where I'm causing this. Can someone please help me and tell me what causes such an error and where I should look into ?
Thank you very much !!!
0
Comments
-
Thank you for your hint!
Here I create the room:PhotonNetwork.NickName = SteamManager.UserData.DisplayName; LobbyManager.LobbySettings.SetLobbyGameServer(); PhotonNetwork.JoinOrCreateRoom(LobbyManager.LobbySettings.LobbyName, new RoomOptions() { MaxPlayers = 2, }, TypedLobby.Default, null);
This joins them:if (!LobbyManager.LobbySettings.IsHost) { PhotonNetwork.NickName = SteamManager.UserData.DisplayName; PhotonNetwork.JoinRoom(LobbyManager.LobbySettings.LobbyName); }
0 -
Hi @Snotax,
Can you provide the full error log with stack trace?
"Can't add. Size exceeded." is not enough.
No need to use the last parameter ofJoinOrCreateRoom
, default is already "null
".PhotonNetwork.JoinOrCreateRoom(LobbyManager.LobbySettings.LobbyName, new RoomOptions() { MaxPlayers = 2, }, TypedLobby.Default);
Is this PUN1 or PUN2? What version?
The code you provided does not show exactly how this could happen.
How many clients do you use to test this?0 -
This discussion has been closed.