USER_ENTER bug

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
User avatar
dashanddot
Posts: 10
Joined: 25 Jul 2024, 18:31

USER_ENTER bug

Post by dashanddot »

SFS2x 2.19.0

We have strange bug - we create room with
sfs.Send(new QuickJoinOrCreateRoomRequest(msch, new List<string> { GAME_ROOMS_GROUP_NAME }, settings, sfs.LastJoinedRoom));
then join same way

sfs.Send(new QuickJoinOrCreateRoomRequest(msch, new List<string> { GAME_ROOMS_GROUP_NAME }, settings, sfs.LastJoinedRoom));


BUT on second player event USER_ENTER NOT fired in some cases (when second joins imidiate after first )
User avatar
dashanddot
Posts: 10
Joined: 25 Jul 2024, 18:31

Re: USER_ENTER bug

Post by dashanddot »

solved - the problem caused by USER_VARIABLES_UPDATE event.

order of USER_VARIABLES_UPDATE, USER_ENTER_ROOM is not fixed and can be swapped - so it generate exception if user data not init
Post Reply