Page 1 of 1

USER_ENTER bug

Posted: 11 Jul 2025, 17:56
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 )

Re: USER_ENTER bug

Posted: 12 Jul 2025, 15:00
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