Problem on server
#1

Hey guys im my server after i restart the server using the rcon cmd "GMX" all the connected players crash and i don't know whats the reason
Reply
#2

Many reasons..

A) LOTS OF OBJECTS
B) A script bug which one can't handle all players?
Reply
#3

If you have a lot of removebuildings, that will happen. I don't believe there are any known fixes, either. You're usually better off at notifying players and then forcefully restarting the server to ensure there aren't any problems such as the 'you are banned from this server' bug.
Reply
#4

Disable all your filterscripts and see if it still happens (I'm guessing it will) if not, there's a OnFilterScriptExit issue in one of them.

If it still happens, there is likely something wrong in your OnGameModeExit callback or possibly your OnPlayerDisconnect callback.


Something that helps me sometimes, is adding simple debug messages in throughout these callbacks, this may help you to find where EXACTLY (the line) it's causing the crash.
Try adding this every 10 or so lines down in your OnGameModeExit callback (changing the pass # each time by +1):
pawn Код:
SendClientMessageToAll(-1, "[DEBUG]: Pass 1");

Also:
Quote:

When using OnGameModeExit() in conjunction with the 'rcon gmx' console command keep in mind there is a potential for client bugs to occur an example of this is excessive RemoveBuildingForPlayer() calls during OnGameModeInit() which could result in a client crash.

Reply
#5

download nativechecker or crashdetect
Reply
#6

All the deBug messages appeared and i use removeplayerbuilding under OnPlayerConnect
Reply
#7

About how many times (lines) do you have RemovePlayerBuilding?

Also, if you used the debug message, they all appeared and then the player crashed?
Reply
#8

posting the log here will be useful
Reply
#9

Quote:
Originally Posted by jakejohnsonusa
Посмотреть сообщение
About how many times (lines) do you have RemovePlayerBuilding?

Also, if you used the debug message, they all appeared and then the player crashed?
I have alot and about the message yes all appeared then player crashed
Reply
#10

If you have a lot, that's likely the issue. It states right on the OnGameModeExit wiki page that too many RemovePlayerBuilding's will crash players.

As I quoted earlier:
Quote:

When using OnGameModeExit() in conjunction with the 'rcon gmx' console command keep in mind there is a potential for client bugs to occur an example of this is excessive RemoveBuildingForPlayer() calls during OnGameModeInit() which could result in a client crash.

You'll have to remove some.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)