Forums » Bugs

Inconsistency with PLAYER_ENTERED_SECTOR vs sector list in foggy sectors?

Sep 06, 2010 Pizzasgood link
We were doing some fighting tonight in the Pelatus conquerable station, which was a fogged sector. I have the alert_machine plugin from TCS installed, which uses the PLAYER_ENTERED_SECTOR event and co. to announce when people enter the sector, and who is in it when you warp in. I experienced several cases where as I warped in, alert_machine told me of a number of the players who were in the sector, even though I couldn't see them in the sector list. The players in question really were in the sector.

It didn't seem to work this way every time though. I'm fairly sure I jumped in several times and didn't get notifications about people who were in the sector. I could be mistaken though. I'm a bit sleepy.

Flying around in the sector, when people entered and left radar range, or flew behind a roid, I got the correct "player entered sector" and "player left sector" messages, and they popped into and dropped out of the sector list as they should. So it does seem to be emitting the correct events when you would expect it to. Just seems that under some circumstances, it also sends them when it shouldn't.

I don't know if this only happens when you warp in or not. I only noticed it when warping in, but of course that's not conclusive. Probably a good place to start though.
Sep 06, 2010 slime73 link
I think that is probably a problem with AlertMachine itself and not the PLAYER_ENTERED_SECTOR and PLAYER_LEFT_SECTOR events.
Sep 06, 2010 Pizzasgood link
So you mean AlertMachine is psychic? I think you might have misunderstood me.

The problem I saw is that I was alerted to the presence of people who were in the sector, but who did not show up in the sector list and therefor I wasn't supposed to be aware of. They really were in the sector though, because I encountered them shortly thereafter.

As far as I'm aware, the idea with fogged sectors is that I should not have any idea who is in the sector until they enter radar range. However, this was not the case last night.

So it seems to me that the PLAYER_ENTERED_SECTOR event got sent as I jumped in, for players that it shouldn't have been sent for yet.
Sep 06, 2010 slime73 link
Ah, I misunderstood.
Sep 07, 2010 ShankTank link
I can confirm this phenomenon. Sometimes it triggers and sometimes it does not, although I'm still not sure under what circumstances that it does trigger.

Of course, it would be preferable if it never worked inside foggy sectors :p
Sep 07, 2010 raybondo link
I recall fixing this before and the fix was working.
If you're saying it's working sometimes and not others, then that's very strange. I'm working on it.
Sep 08, 2010 chana link
Pizza as far as i know we have 4 different versions of fog. The version in Pel is what was described it would be and behave. If enter leave is giving you a secotr list you have an edge over others.
Sep 24, 2010 raybondo link
I found that there's a race condition that is causing the problem. It would require a bit of time to fix but we're running kinda short on time right now.
Sep 25, 2010 Pizzasgood link
If there is one state of existence I thoroughly understand, it's that of being busy. I'm in no hurry.