Room Variables are accessible only from inside the Room. That's why you can't read them when you receive the ROOM_ADD event.
Is there a chance that in what you call a delay, actually the client joined the Room, and it can access those variables as expected?
Search found 4599 matches
- 26 Mar 2024, 16:12
- Forum: SFS2X HTML5 / JavaScript API
- Topic: delayed room variables update after creation of a new room
- Replies: 6
- Views: 126
- 24 Jan 2024, 09:41
- Forum: SFS2X C# API
- Topic: List all the logged-in players in the lobby in the TicTacToe Unity example?
- Replies: 1
- Views: 689
Re: List all the logged-in players in the lobby in the TicTacToe Unity example?
Hello. As soon as the game switches to the lobby view after login, a room called "The Lobby" is joined. In the OnRoomJoin event listener you can retrieve the list of users like this: sfs.LastJoinedRoom.UserList You can then create a method similar to InitializeBuddyClient to process the li...
- 11 Jan 2024, 10:08
- Forum: SFS2X Questions
- Topic: SFS2X Server Log Analysis fail and long startup time
- Replies: 4
- Views: 62600
Re: SFS2X Server Log Analysis fail and long startup time
Hello again, first everytime I do a log analysis from inside the AdminTool, the SFS2X Server terminal shows this trace: LogAnalysisKeepsFailing.png So it says that all log lines where skipped due to timestamp errors, multi-line or something else... This happens everytime I do a log analysis from th...
- 08 Jan 2024, 13:53
- Forum: SFS2X Questions
- Topic: Where can I see loaded Extensions per zone/room?
- Replies: 3
- Views: 52462
Re: Where can I see loaded Extensions per zone/room?
Also as an off-topic but very small Q, my analytics Tab doesnt update to show that 1 or 2 separate connections have been made yesterday/today, does it not register localhost visitors? (See below screenshot) analyticsEmpty.png Analytics is not updated automatically and in realtime. Its data is based...
- 15 Dec 2023, 07:45
- Forum: SFS2X Questions
- Topic: SmartFoxServer is social!
- Replies: 12
- Views: 236511
Re: SmartFoxServer is social!
SmartfoxEnjoyer wrote:Can we get a discord server please?
We have a channel on the "Game Backend as a Service" server, but we don't provide support there. We mainly use it for news and announcements, the same you can receive via our newsletter or on Facebook and X (Twitter).
- 09 Oct 2023, 10:53
- Forum: SFS2X Questions
- Topic: [SFS - ERROR] [TCPSocketLayer] WSACancelBlockingCall Error
- Replies: 8
- Views: 76133
Re: [SFS - ERROR] [TCPSocketLayer] WSACancelBlockingCall Error
Ok, now we can see the error message logged, even if it is a slightly different one. Maybe this depends on the operating system. In any case that message simply means that the socket was closed while a thread was running a continuous read cycle on it. The error is not harmful in any way (in fact it ...
- 06 Oct 2023, 13:11
- Forum: SFS2X Questions
- Topic: [SFS - ERROR] [TCPSocketLayer] WSACancelBlockingCall Error
- Replies: 8
- Views: 76133
Re: [SFS - ERROR] [TCPSocketLayer] WSACancelBlockingCall Error
I tested logging in and out for 50 times in a row, also at a fast pace, and the error never showed up. Is this error causing issues in your project? What happens when it shows up after the logout? Can you login again and everything still works as expected, or is the error causing other problems late...
- 06 Oct 2023, 07:42
- Forum: SFS2X Questions
- Topic: [SFS - ERROR] [TCPSocketLayer] WSACancelBlockingCall Error
- Replies: 8
- Views: 76133
Re: [SFS - ERROR] [TCPSocketLayer] WSACancelBlockingCall Error
As you can see in the attached screenshot, we can't reproduce the issue. Maybe this is something to the Unity version or operating system? We are testing on macOS, with Unity 2021.3.10f1. The error seems to be related to a thread closing the socket connection. Searching the web for the error, doesn'...
- 05 Oct 2023, 14:00
- Forum: SFS2X Questions
- Topic: [SFS - ERROR] [TCPSocketLayer] WSACancelBlockingCall Error
- Replies: 8
- Views: 76133
Re: [SFS - ERROR] [TCPSocketLayer] WSACancelBlockingCall Error
Can you please provide more details, because we can't reproduce the issue. First of all, what version of Unity and what version of our API are you using? Latest version of the API is 1.8.3. Then, are you running our examples in the Unity Editor? What target platform (I guess WebGL, but I want to mak...
- 25 Sep 2023, 08:44
- Forum: SFS2X Questions
- Topic: Admin bug with log downloads
- Replies: 2
- Views: 20798
Re: Admin bug with log downloads
Hello. Can you please check the web server configuration under AdminTool > Server Configurator > Web Server? If HTTP is enabled, the logs download links are generated with protocol http, even if HTTPS is enabled too and you connect to the AdminTool securely. If HTTP is disabled and HTTPS is enabled,...
- 04 Sep 2023, 09:22
- Forum: SFS2X C# API
- Topic: 【Error】v1.8.3 doNet version hints to rely on Unity assemblies
- Replies: 1
- Views: 18625
Re: 【Error】v1.8.3 doNet version hints to rely on Unity assemblies
Sorry, it looks like something went wrong with the files distribution.
We now updated the API zip file. Please download it again.
We now updated the API zip file. Please download it again.
- 23 Aug 2023, 07:46
- Forum: SFS2X HTML5 / JavaScript API
- Topic: remove bluebox from url
- Replies: 6
- Views: 50179
Re: remove bluebox from url
You should follow this tutorial about the connection phase: http://docs2x.smartfoxserver.com/DevelopmentBasics/connection-phase You just have to create a configuration object containing the "host" property: this is where you have to enter the IP address or domain name of the server you wan...
- 22 Aug 2023, 07:30
- Forum: SFS2X HTML5 / JavaScript API
- Topic: remove bluebox from url
- Replies: 6
- Views: 50179
Re: remove bluebox from url
Why do you want to connect to wss://sfox.xxx.com/websocket?
The connection will fail, because SmartFoxServer won't respond at that address.
The connection will fail, because SmartFoxServer won't respond at that address.
- 21 Aug 2023, 08:42
- Forum: SFS2X HTML5 / JavaScript API
- Topic: remove bluebox from url
- Replies: 6
- Views: 50179
Re: remove bluebox from url
First of all, that "UseBlueBox" parameter doesn't exist in the HTML/JS API, so you can delete it.
Then, why are you trying to remove "bluebox" from the connection string? The connection string is internal to the API, and it can't be modified.
Then, why are you trying to remove "bluebox" from the connection string? The connection string is internal to the API, and it can't be modified.
- 10 Jul 2023, 15:05
- Forum: SFS2X C# API
- Topic: The type or namespace name 'Sfs2X' could not be found
- Replies: 10
- Views: 82160
Re: The type or namespace name 'Sfs2X' could not be found
Maybe you can remove the DLL and references from your project, close and reopen Unity, and add the DLL again.
I've seen this kind of behavior in Unity for years unfortunately...
I've seen this kind of behavior in Unity for years unfortunately...