Hello !
I opened my new DarkRP server this night and after one hour of fun the server begins to lag and print the same message that in [URL="http://facepunch.com/showthread.php?t=1249330&highlight=global+queued+usermessages"]this discussion[/URL]
However, I have the last version of DarkRP, and some addons. I really don't know what is the problem...
If someone has an idea, I give free hugs :)
Check your server console/logs for errors.
I have exactly de same messages:
Warning: XXXXXX global queued usermessages
Maybe your server has poor internet connection and/or you mods/gamemode are terrible and network too much shit..?
My server has an OVH connection, with 200MBit/s, I really don't think it's a problem form my server.
About the gamemode, It's just the DarkRP
I think I must look the addons...
The problem is from trying to send too many usermessages at once and/or in too short a time. The solution is actually pretty easy: just dont send too many usermessages at once.
Yep, the problem come from my addons I think.
I saw I could have a table with all usermessages with
[LUA]usermessage.GetTable()[/LUA]
Do you if I create a command that empty this table, it will solve my problem ?
You should probably try find the source rather than use hacky methods to try and fix it. On a test server start removing some addons until you find the source of it
I'll try that, but the problem is that issue appears only when I have many players on my server, cause many usermessages I think...
I tried to do again this bugs with BOTs, but impossible...
I think I'll try to launch my server with some addons less and add addons to progressively. :)
Try this:
[code]
local oldUMSGStart = umsg.Start;
function umsg.Start(strName, oReceivers)
print("Starting", strName);
oldUMSGStart(strName, oReceivers);
end
[/code]
It should print out the name of the troublesome usermessage.
Ah thank you, I was searching for a function like that, but just a question, where can I put this function ? a module of my DarkRP ?
Ok, thank you very much, I'm going to test that, I wasn't so far from this solution.
[QUOTE=Handsome Matt;45555164]just autorun/server/findshit.lua
[editline]31st July 2014[/editline]
also use this instead:
[lua]local oldUMSGStart = umsg.Start
function umsg.Start(strName, oReceivers)
print("Starting", strName)
debug.trace()
oldUMSGStart(strName, oReceivers)
end[/lua][/QUOTE]
I was going to put the trace in there but I thought that it might not be good for legitimate usermessages since it would spam the console but I guess thats debugging for you.
Sorry, you need to Log In to post a reply to this thread.