Author |
Message |
Nerusai Newbie
Joined: Aug 28 2004 Posts: 17 Offline
|
Posted: 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. |
|
Back to top |
|
 |
Nerusai Newbie
Joined: Aug 28 2004 Posts: 17 Offline
|
Posted: 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. |
|
Back to top |
|
 |
Dr Brain Flip-flopping like a wind surfer

Age:39 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Fri Jan 28, 2005 9:53 pm Post subject: |
 |
|
|
|
Set a loaded flag when they enter.
Check it when they leave. _________________ Hyperspace Owner
Smong> so long as 99% deaths feel lame it will always be hyperspace to me |
|
Back to top |
|
 |
Nerusai Newbie
Joined: Aug 28 2004 Posts: 17 Offline
|
Posted: 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. |
|
Back to top |
|
 |
Grelminar Creator of Asss
Joined: Feb 26 2003 Posts: 378 Offline
|
Posted: Sat Jan 29, 2005 2:39 am Post subject: |
 |
|
|
|
That's very strange, and shouldn't happen. Looking into it now... |
|
Back to top |
|
 |
Grelminar Creator of Asss
Joined: Feb 26 2003 Posts: 378 Offline
|
Posted: 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). |
|
Back to top |
|
 |
-Smong- Guest
Offline
|
Posted: 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. |
|
Back to top |
|
 |
Chambahs Guest
Offline
|
Posted: Sat Jan 29, 2005 9:19 am Post subject: |
 |
|
|
|
(patiently waits for 1.3.6...lol without it, i have no zone  |
|
Back to top |
|
 |
|