ASSS Questions - Help! Strangeness that I must put to an end! Nerusai - Fri Jan 28, 2005 8:07 pm Post subject: Help! Strangeness that I must put to an end!
It's all about the bottom 4 lines, a new incomining connection from [pid-1], which then manages to generate a playeraction disconnect without ever generating a playeraction connect.
Now I don't excactly know whether this is a bug or a feature, but I really need to make sure that my PA_DISCONNECT simply does nothing on these never connected connections because I do some major unloading there and it will crash me.
Nerusai - Fri Jan 28, 2005 8:26 pm Post subject:
Checking a player's ->status before doing anything is no solution, both a 'good' and a 'bad' player have the status S_LEAVING_ZONE when the callback triggers.
Dr Brain - Fri Jan 28, 2005 9:53 pm Post subject:
Set a loaded flag when they enter.
Check it when they leave.
Nerusai - Fri Jan 28, 2005 10:45 pm Post subject:
For a bypass that works.
Anyway, strangely enough this only affected people that were not me, I could generate any name and enter without such an even occuring.
Grelminar - Sat Jan 29, 2005 2:39 am Post subject:
That's very strange, and shouldn't happen. Looking into it now...
Grelminar - Sat Jan 29, 2005 3:40 am Post subject:
Actually, it's not strange at all. It's very easy to trigger. But it still shouldn't have been happening.
I have a small hacky fix for it, but I decided to take the opportunity to clean up some messy code in the player state machine. So my new fix is bigger and more likely to introduce bugs, but probably better in the long run. We'll see how it works out when I release 1.3.6 (soon).
Anonymous - Sat Jan 29, 2005 6:36 am Post subject:
You could check the player's arena, but that might be invalid by the time it gets to PA_DISCONNECT.
Anonymous - Sat Jan 29, 2005 9:19 am Post subject:
(patiently waits for 1.3.6...lol without it, i have no zone