UserVariablesUpdate: unknown user id

Post here your questions about the Unity / .Net / Mono / Windows 8 / Windows Phone 8 API for SFS2X

Moderators: Lapo, Bax

FireballFred
Posts: 6
Joined: 30 Jan 2017, 23:03

UserVariablesUpdate: unknown user id

Postby FireballFred » 07 Feb 2020, 21:10

Some of our users occasionally get messages such as this one in their unity client log:
[SFS - WARN] UserVariablesUpdate: unknown user id = 204655

I'd like to detect this issue and suggest that the user re-launch the application, but it is difficult to reproduce. When this warning is printed does the SFSEvent.USER_VARIABLES_UPDATE event get fired with a null user (Params["user"])?
User avatar
Lapo
Site Admin
Posts: 23007
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: UserVariablesUpdate: unknown user id

Postby Lapo » 08 Feb 2020, 15:21

Hi,
no the event is not fired if that error occurs because, effectively, not variables where updated.

This error can happen when a User disconnects but some of his previous requests are still in queue to be processed. Typically it's a matter of a few milliseconds and it's due to the asynchronous nature of the communication.

Unless you're seeing this issue very often I would not worry about it. The client is simply discarding an update that is no longer relevant.

Cheers
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SFS2X C# API”

Who is online

Users browsing this forum: No registered users and 28 guests