I have the this code attached to a button click and it spits out the following error...
Any idea what could be causing it? This does not happen with the same code in a fresh scene/script. Deleting the server.dat file does nothing.
TNServerInstance.Start("server.dat");
TNManager.Connect();
Failed to read past end of stream. at position 75
UnityEngine.Debug:LogError(Object)
TNet.Tools:LogError(String, String, Boolean) (at Assets/TNet/Common/TNTools.cs:1068)
TNet.Serialization:ReadObject(BinaryReader, Object, Int32, Type, Boolean) (at Assets/TNet/Common/TNSerializer.cs:2880)
TNet.Serialization:ReadObject(BinaryReader) (at Assets/TNet/Common/TNSerializer.cs:2500)
TNet.Serialization:ReadDataNode(BinaryReader) (at Assets/TNet/Common/TNSerializer.cs:2381)
TNet.TcpProtocol:VerifyRequestID(BinaryReader, Buffer, Boolean) (at Assets/TNet/Common/TNTcpProtocol.cs:947)
TNet.GameServer:ProcessPlayerPacket(Buffer, TcpPlayer, Boolean) (at Assets/TNet/Server/TNGameServer.cs:1254)
TNet.GameServer:ThreadFunction() (at Assets/TNet/Server/TNGameServer.cs:531)