avivace / ror2-server

Host your own Risk of Rain 2 dedicated server. No technical skills required. Runs everywhere.
https://hub.docker.com/r/avivace/ror2server
GNU General Public License v3.0
169 stars 29 forks source link

Multiplayer server not working? #38

Closed DudeGrim closed 2 years ago

DudeGrim commented 2 years ago

Hey there,

I set up this docker container on a Debian VPS. The process completes successfully and I could connect to the server. The problem is when I get to the servers lobby menu. It seems that all the buttons on the lobby does is nothing and I could only exit back to the menu. (See screenshot)

image

Checking the server log on the VPS, I see this whenever I land on the server lobby menu:

NetworkManagerSystem.AddPlayerInternal(conn=hostId: 0 connectionId: 1 isReady: False channel count: 8, playerControllerId=0, extraMessageReader=NetBuf sz:37 pos:37
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

NullReferenceException: Object reference not set to an instance of an object
  at RoR2.NetworkPlayerName.Serialize (UnityEngine.Networking.NetworkWriter writer) [0x0002d] in <4c59f666ac5b4e6e8cecaf20b570a6b9>:0
  at RoR2.NetworkExtensions.Write (UnityEngine.Networking.NetworkWriter writer, RoR2.NetworkPlayerName networkPlayerName) [0x00000] in <4c59f666ac5b4e6e8cecaf20b570a6b9>:0
  at RoR2.Chat+PlayerChatMessage.Serialize (UnityEngine.Networking.NetworkWriter writer) [0x00007] in <4c59f666ac5b4e6e8cecaf20b570a6b9>:0
  at UnityEngine.Networking.NetworkWriter.Write (UnityEngine.Networking.MessageBase msg) [0x00000] in <15bffeb524464628b0a7bf75674b10bc>:0
  at RoR2.Chat.SendBroadcastChat (RoR2.ChatMessageBase message, System.Int32 channelIndex) [0x0001a] in <4c59f666ac5b4e6e8cecaf20b570a6b9>:0
  at RoR2.Chat.SendBroadcastChat (RoR2.ChatMessageBase message) [0x00000] in <4c59f666ac5b4e6e8cecaf20b570a6b9>:0
  at RoR2.Chat.SendPlayerConnectedMessage (RoR2.NetworkUser user) [0x0000c] in <4c59f666ac5b4e6e8cecaf20b570a6b9>:0
  at RoR2.Networking.NetworkManagerSystem.OnServerAddPlayerInternal (UnityEngine.Networking.NetworkConnection conn, System.Int16 playerControllerId, UnityEngine.Networking.NetworkReader extraMessageReader) [0x00144] in <4c59f666ac5b4e6e8cecaf20b570a6b9>:0
  at RoR2.Networking.NetworkManagerSystem.OnServerAddPlayer (UnityEngine.Networking.NetworkConnection conn, System.Int16 playerControllerId, UnityEngine.Networking.NetworkReader extraMessageReader) [0x00000] in <4c59f666ac5b4e6e8cecaf20b570a6b9>:0
  at UnityEngine.Networking.NetworkManager.OnServerAddPlayerMessageInternal (UnityEngine.Networking.NetworkMessage netMsg) [0x00038] in <15bffeb524464628b0a7bf75674b10bc>:0
  at UnityEngine.Networking.NetworkConnection.HandleReader (UnityEngine.Networking.NetworkReader reader, System.Int32 receivedSize, System.Int32 channelId) [0x0012d] in <15bffeb524464628b0a7bf75674b10bc>:0
  at UnityEngine.Networking.NetworkConnection.HandleBytes (System.Byte[] buffer, System.Int32 receivedSize, System.Int32 channelId) [0x00007] in <15bffeb524464628b0a7bf75674b10bc>:0
  at UnityEngine.Networking.NetworkConnection.TransportReceive (System.Byte[] bytes, System.Int32 numBytes, System.Int32 channelId) [0x00000] in <15bffeb524464628b0a7bf75674b10bc>:0
  at UnityEngine.Networking.NetworkServer.OnData (UnityEngine.Networking.NetworkConnection conn, System.Int32 receivedSize, System.Int32 channelId) [0x0000c] in <15bffeb524464628b0a7bf75674b10bc>:0
  at UnityEngine.Networking.NetworkServer+ServerSimpleWrapper.OnData (UnityEngine.Networking.NetworkConnection conn, System.Int32 receivedSize, System.Int32 channelId) [0x00000] in <15bffeb524464628b0a7bf75674b10bc>:0
  at UnityEngine.Networking.NetworkServerSimple.HandleData (System.Int32 connectionId, System.Int32 channelId, System.Int32 receivedSize, System.Byte error) [0x00049] in <15bffeb524464628b0a7bf75674b10bc>:0
  at UnityEngine.Networking.NetworkServerSimple.Update () [0x00118] in <15bffeb524464628b0a7bf75674b10bc>:0
  at UnityEngine.Networking.NetworkServer.InternalUpdate () [0x00000] in <15bffeb524464628b0a7bf75674b10bc>:0
  at UnityEngine.Networking.NetworkServer.Update () [0x0000b] in <15bffeb524464628b0a7bf75674b10bc>:0
  at UnityEngine.Networking.NetworkIdentity.UNetStaticUpdate () [0x00000] in <15bffeb524464628b0a7bf75674b10bc>:0
  at UnityEngine.Networking.NetworkCallbacks.LateUpdate () [0x00000] in <15bffeb524464628b0a7bf75674b10bc>:0

(Filename: <4c59f666ac5b4e6e8cecaf20b570a6b9> Line: 0)

ClientRpc call on un-spawned object
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

I just followed the README and used the Quickstart commands.

docker run -p 27015:27015/udp avivace/ror2server:latest

connect "<SERVER_IP>:27015";

No mods or custom config.

I really have no idea what to do. Did I perhaps missed something? I tried reinstalling the docker image multiple times hoping I just missed something but to no luck. Hope the info I provided is enough.

DudeGrim commented 2 years ago

Found the problem. You need to have crossplay turned off. 😂

avivace commented 2 years ago

Found the problem. You need to have crossplay turned off. joy

Thanks for mentioning @DudeGrim ! We'll mention it in the README.