PROXIMITY_LIST_UPDATE

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

Post Reply
AiryKai
Posts: 14
Joined: 01 Apr 2015, 08:02

PROXIMITY_LIST_UPDATE

Post by AiryKai »

Hi All!

Faced with a strange problem, can't find the cause...

Every time I change the MMO room for user on the server side using getApi().joinRoom, this user begins to constantly receive PROXIMITY_LIST_UPDATE. It doesn't stop, even when all users are processed. Moreover, this list contains "addedUsers" and "removedUsers" at the same time for the same user. Thus, the client believes that each user enters and leaves the room at the same time in each update.

What could be the reason?

P.S. smartfox 2.10.0 version.
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: PROXIMITY_LIST_UPDATE

Post by Lapo »

Hi,
no idea. Does this happen even if the joined Room is empty?

thanks
Lapo
--
gotoAndPlay()
...addicted to flash games
AiryKai
Posts: 14
Joined: 01 Apr 2015, 08:02

Re: PROXIMITY_LIST_UPDATE

Post by AiryKai »

Lapo wrote:Hi,
no idea. Does this happen even if the joined Room is empty?

thanks
This only happens if within the AOI of a user are other users.
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: PROXIMITY_LIST_UPDATE

Post by Lapo »

AiryKai wrote:
Lapo wrote:Hi,
no idea. Does this happen even if the joined Room is empty?

thanks
This only happens if within the AOI of a user are other users.
That is expected. Other users falling in the player's AOI will generate updates.
I am not sure this is evidence of any specific issue. The speed of update is configured in the MMORoom settings.
Moreover, this list contains "addedUsers" and "removedUsers" at the same time for the same user.
This is not necessarily a problem. User updates are accumulated before being sent to the client. It may very well be that a client moved generating an update and then left the AOI, generating a "remove" event.
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply