Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Random disconnections from server?


Octohunter
 Share

Recommended Posts

About 1/2 of the time, whenever a player dies in my game (usually, the deaths that cause the problems happen rapidly one after the other), it either…
a. cuts them off from the server
b. glitches the server and forces everyone to relog in

Does anyone know if this is a default problem or have similar problems?
Link to comment
Share on other sites

I checked and it's completely empty.  I'm not sure whether this has to do with some sort of server overload or not, because I had a similar problem with another piece of code that was related to a server overload.  I'll just do more tests for now.
Link to comment
Share on other sites

Okay, I did some more testing.

When the disconnections occur, they are strictly client-side; the client can still display and recieve messages and such from other players and the server, but the disconnected client is incapable of doing anything itself.  I discovered that if the server sends a command to the client (e.g. making the player admin) the client automatically reconnects.

Does anybody have any solutions?
Link to comment
Share on other sites

  • 4 months later...
Check to make sure the data being sent in Function PlayerData is the same as what is being recived by the clients

ie

server side

Buffer.WriteLong SPlayerData

Buffer.WriteLong index

Buffer.WriteString GetPlayerName(index)

Buffer.WriteByte GetPlayersex(index)

Buffer.WriteLong GetPlayerX(index)

Buffer.WriteLong GetPlayerY(index)

Client side Private Sub HandlePlayerData

Buffer.WriteLong SPlayerData

I = Buffer.ReadLong

Call SetPlayerName(I, Buffer.ReadString)

Call SetPlayerSex(I, Buffer.ReadByte)

Call SetPlayerX(I, Buffer.ReadLong)

Call SetPlayerY(I, Buffer.ReadLong)

also make sure your smsg's and cmsgs are the same on client and server

Hope this helps GL

Oh and make sure the longs are longs on both and string are strings on both etc etc
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...