Search found 21706 matches

by Lapo
23 Jul 2021, 09:58
Forum: SFS2X Questions
Topic: MMO idle disconnection error
Replies: 8
Views: 175

Re: MMO idle disconnection error

Thanks for the added details. We have reproduced the issue using the same Room settings. The problem is caused by a Task that is responsible for removing users in "Limbo" (who joined but didn't send an initial position). When the Room is destroyed (via the WHEN_EMPTY rule) the task is also...
by Lapo
21 Jul 2021, 14:13
Forum: SFS2X Questions
Topic: Play with facebook invited friends
Replies: 2
Views: 57

Re: Play with facebook invited friends

Hi, most of this functionality should be based on FB API, I think. For example the push notification should be sent via FB Messenger API and you could send a reference to a specific Game Room (be it it's ID or name, since it's unique). You may also need to send the Zone name, if you're hosting multi...
by Lapo
21 Jul 2021, 14:08
Forum: SFS2X Questions
Topic: BlueBox and Websocket Connection
Replies: 5
Views: 82

Re: BlueBox and Websocket Connection

Hi, maybe there's a bit of confusion on my part because of the terminology you are using. Let me try to explain a bit how SmartFoxServer works. When a client opens a connection it is simply making an initial handshake to make sure that communication is possible. After the connection is done (which i...
by Lapo
20 Jul 2021, 14:39
Forum: SFS2X Questions
Topic: MMO idle disconnection error
Replies: 8
Views: 175

Re: MMO idle disconnection error

I've tested the scenario and was not able to reproduce it. Connecting a client via Websocket, joining MMORoom without setting any position. The result is that the client is auto-removed from the Room after a while (50 secs) but still connected until the idle timer kicks in and the inactive user is f...
by Lapo
20 Jul 2021, 14:31
Forum: SFS2X Questions
Topic: BlueBox and Websocket Connection
Replies: 5
Views: 82

Re: BlueBox and Websocket Connection

Let me clarify one aspect: Websocket is not port 9933. SmartFoxServer uses port TCP/UDP port 9933 for socket connections using the SFS2X protocol. You can alternatively use the HTTP Websocket protocol (on port 8080 or 8443) for HTML5 or Unity WebGL clients. With this said, sorry but I don't understa...
by Lapo
20 Jul 2021, 13:53
Forum: SFS2X Questions
Topic: SmartfoxServer stop run schedule
Replies: 1
Views: 38

Re: SmartfoxServer stop run schedule

Hi,
make sure you're catching exceptions in your Task class (the class implementing Runnable), otherwise the it will stop running if an unexpected error occurs.

See the TaskRunner class in this example:
https://smartfoxserver.com/blog/how-to- ... extension/

Cheers
by Lapo
20 Jul 2021, 11:10
Forum: SFS2X Questions
Topic: pool-1-thread-2 CPU time goes very high
Replies: 5
Views: 193

Re: pool-1-thread-2 CPU time goes very high

Shall I comment it out? May it cause this issue? No, that's not the same parameter so I wouldn't recommend changing it. It's also unrelated with the issue you have reported. Since this is most likely a MySQL issue I can suggest to take a look at this topic on StackOverflow: https://stackoverflow.co...
by Lapo
20 Jul 2021, 11:06
Forum: SFS2X Questions
Topic: Is Overcast auto choose the nearest region for player to connect
Replies: 2
Views: 41

Re: Is Overcast auto choose the nearest region for player to connect

Hi, no that's not how it works. You are responsible for launching servers in the region(s) you need. If your game requires multiple regions and you want to send players to different servers based on their location you will have to do it from your website. Typically In this case, your website should ...
by Lapo
20 Jul 2021, 10:32
Forum: SFS2X Questions
Topic: MMO idle disconnection error
Replies: 8
Views: 175

Re: MMO idle disconnection error

Thanks for the details, we'll investigate and let you know.

Cheers
by Lapo
20 Jul 2021, 09:51
Forum: SFS2X Questions
Topic: BlueBox and Websocket Connection
Replies: 5
Views: 82

Re: BlueBox and Websocket Connection

Hi, the BlueBox is used as a backup connection system if a normal TCP connection is not possible for the client. For example because the client is behind a proxy or firewall blocking most uncommon traffic. The BlueBox tunnels the connection via HTTP thus allowing most clients to be able to connect, ...
by Lapo
20 Jul 2021, 09:46
Forum: SFS2X Questions
Topic: pool-1-thread-2 CPU time goes very high
Replies: 5
Views: 193

Re: pool-1-thread-2 CPU time goes very high

Hi,
the problem above is typically resolved by modifying the MySQL config.
Take a look at this previous post:
viewtopic.php?t=17388

The solution is to comment out the skip_networking rule.

Cheers
by Lapo
20 Jul 2021, 06:58
Forum: SFS2X Questions
Topic: Unable to connect some user to sfs server
Replies: 3
Views: 47

Re: Unable to connect some user to sfs server

Where is the server hosted? Does it run in an hosting environment? In the logs you have sent none of the clients were able to login but I also noticed that they all come from the same IP address. Are you running some kind of test from the same internet connection? I would highly recommend to double ...
by Lapo
19 Jul 2021, 21:22
Forum: SFS2X Questions
Topic: MMO idle disconnection error
Replies: 8
Views: 175

Re: MMO idle disconnection error

Hi, what version of SFS2X are you running exactly? 3. After about 50 seconds, the server tries to disconnect the user, but the server outputs and error: It's not disconnecting the user, it's just removing it from the MMORoom if no position is set for 50-60secs after joining. (I think the problem mig...
by Lapo
19 Jul 2021, 21:07
Forum: SFS2X Questions
Topic: Unable to connect some user to sfs server
Replies: 3
Views: 47

Re: Unable to connect some user to sfs server

Hi, most if not all connections are dying exactly 30 seconds after the connection has been established, which is the default timeout for a User if he/she doesn't send a Login request. I would recommend to double check your code because it looks like clients are not trying to Login (as there is no tr...
by Lapo
16 Jul 2021, 15:14
Forum: SFS2X Questions
Topic: Schedule still only firsttime when access
Replies: 2
Views: 93

Re: Schedule still only firsttime when access

Hi, can you show us how the task is scheduled? in your run() method you are only catching a SQLException, so any other runtime exception would be able to escape and interrupt the Task. The try catch should look like this instead: public void run() { try { // code here... } catch (SQLException e) { t...

Go to advanced search