Hey all I am having a bit of trouble. I am using Master Server Toolkit as my current backend, and fishnet as my network solution for all other things (I.E Transport, etc. ) I am using currently Unity 2021.3.20fa, Mst Version 4.15, and Fishnet version 3.4.3
The way I have my setup configured is the typical Server, Room, and Client setup. I have my Server Registering handlers, Mst needs, I have my own variation of a connection controller as well as my own variation of an authentication, (based off Mst auth). Most of the work with Mst , utilizes the Mst.Client (which is shorthand for MstClient). That's the basic backstory of my setup.
The actual issue I keep running into first started with Mst spawning rooms correctly for me, I took their Spawn Module, and using them as a parent overrode the methods and handlers I needed to spawn the rooms (based on Mst rooms module). I was able to get past the spawning of the rooms, and even the naming of the rooms, until I try to join the actual instance of the room.
This is what happens:
- I log in as a guest on the server build
2 ) I create a room, which spawns as a separate built room. It shows connected to the server - My client in the game UI screen, sees the spawned room and attempts to join
- Connection does start to happen but is then rejected resulting in the error
Peer with a given ID is not in the gameI have tried many things including making sure my connection is correct in all scripts, that references are correct, but always fallback to this same error, which comes form this method handler
protected virtual void ValidateRoomAccessResultHandler(ValidateRoomAccessResultMessage msg)
{
if (msg.Status != ResponseStatus.Success)
{
reporter.Error(msg.Error); // where error says Peer with a given ID is not in game
StartDisconnection();
return;
}
reporter.Debug("Access to server room is successfully validated");
}````
I would appreciate any gudiance, ideas or help, cause honestly I have spent the better part of 2 weeks (working regular job, and then back to this), and I am spinning my wheels. I have included a stacktrace.
Before you might potentially jump the gun, I did speak to Mst developer, and he sees its coming in some form from fishnet, although he didn't have time to identify why and where. Stacktrace, also seems to reflect this.
I could also be wrong, to be honest I am not entirely sure at the moment, this late at night. Some guidance in troubleshooting what I hope to be a simple case of a bad refence, would be very much appreciate