Page 1 of 1

PROXIMITY_LIST_UPDATE

Posted: 05 Mar 2016, 10:42
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.

Re: PROXIMITY_LIST_UPDATE

Posted: 07 Mar 2016, 08:20
by Lapo
Hi,
no idea. Does this happen even if the joined Room is empty?

thanks

Re: PROXIMITY_LIST_UPDATE

Posted: 07 Mar 2016, 14:16
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.

Re: PROXIMITY_LIST_UPDATE

Posted: 07 Mar 2016, 18:15
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.