Hey there dear SmartfoxServer team !
When a player enters my aoi the "addedUsers" evt params will get updated... this is how i spawn players.
But when a player is already in my aoi and he disconnects ( force closes the app, or any other way without pressing the logout button ) he wont be added to the "removedUsers" list... which is kinda strange...
Is there a event that handles such a case ? How should i remove those users from my game visually ?
What event gets called once a player disconnects ?
Re: What event gets called once a player disconnects ?
Hi,
users that leave the Room, log out or get disconnected will definitely be notified via the PROXIMITY_LIST_UPDATE.
Of course within the AoI limits.
In other words User A will not know the User B has left the server if B was outside of A's AoI.
You can check any of our MMORoom examples to see this in action.
Cheers
users that leave the Room, log out or get disconnected will definitely be notified via the PROXIMITY_LIST_UPDATE.
Of course within the AoI limits.
In other words User A will not know the User B has left the server if B was outside of A's AoI.
You can check any of our MMORoom examples to see this in action.
Cheers
Re: What event gets called once a player disconnects ?
Thanks for your fast answer !!
Well ... Thats strange, my removed users list which i receive from "removedUsers" is always empty... Even when a other player is in my aoi and he disconnects ... Any idea why this happens ?
Well ... Thats strange, my removed users list which i receive from "removedUsers" is always empty... Even when a other player is in my aoi and he disconnects ... Any idea why this happens ?
Re: What event gets called once a player disconnects ?
Have you checked for errors in the server's log files?
Thanks
Thanks
Re: What event gets called once a player disconnects ?
Lapo wrote:Have you checked for errors in the server's log files?
Thanks
Server log doesnt tell me anything about that... only that a player disconnected...
Re: What event gets called once a player disconnects ?
What SFS2X version are you using?
Thanks
Thanks
Re: What event gets called once a player disconnects ?
Lapo wrote:What SFS2X version are you using?
Thanks
Im using version 2.13.3 currently ! Even the examples dont work properly... well atleast the player disconnect part...
Re: What event gets called once a player disconnects ?
Please specify the name of the example that doesn't work for you and for which platform (Unity? HTML5? Flash?)
Thanks
Thanks
Re: What event gets called once a player disconnects ?
Hey genar,
I've the same problem, did u find a solution? Running outside the AoI displays the user under removed_users, but a disconnect doesn't...
I've the same problem, did u find a solution? Running outside the AoI displays the user under removed_users, but a disconnect doesn't...
Re: What event gets called once a player disconnects ?
Please check the official examples we provide.
In particular see the SimpleMMOWorld example which shows how to handle new players entering the AoI and exiting players leaving it. The disconnected player is definitely passed in the PROXIMITY_LIST_UPDATE event among the removed users.
If there's any problem with the examples let us know.
Examples can be download here:
https://smartfoxserver.com/download#p=examples
Cheers
In particular see the SimpleMMOWorld example which shows how to handle new players entering the AoI and exiting players leaving it. The disconnected player is definitely passed in the PROXIMITY_LIST_UPDATE event among the removed users.
If there's any problem with the examples let us know.
Examples can be download here:
https://smartfoxserver.com/download#p=examples
Cheers
Who is online
Users browsing this forum: No registered users and 39 guests