People/cars disappearing for ~5 seconds
#1

Hi. I've done some testing in my gamemode and every now and then people have one of the two following issues(it happens for all players on the server)

* players/vehicles disappear for 3-5 seconds, as if their virtual world was set and then set back
OR
* players tab out on their screens and then come back after 3-5 sec
(this all happens simultaneously)
I've reviewed all virtualworld changes in the script several times and its definately not the issue, so then I assumed it was an infinite loop(that ends somewhy after about 5 sec), so I added debug messages to each and every loop(about 100 of them)

example
PHP Code:
for(new....)
{
    if(
512printf("SendAllGangMessage: %i"i);

-.. to no success as the console wasnt spammed with messages when the bug happened.

Anyone had similliar issues / ideas as to why this is happening?
Reply
#2

Bump, still a problem.

tried isolating the issue using crashdetect but it didn't show any results. Tried taking out certain callbacks to try and isolate the issue but to no success.

Its as if the players that are streamed in disappear(both locally and on the minimap) yet people far away can still be seen on the minimap, and then they come back. (Virtual world is 0 at all times).

commands/chat is still responsive so its not an infinite loop.

I really don't want to but I might have to give up on trying to find out whats causing it and start /all/ over from scratch.
Reply
#3

Do you use stream plugin?
Reply
#4

Fixed.. It was because I had a thing that set PlayerSpectatePlayer OnPlayerSpawn and I forgot to set the SpectatingPlayer to -1(defaults to 0)

*facepalm*
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)