Search found 20759 matches

by Lapo
06 Dec 2019, 07:39
Forum: SFS2X Questions
Topic: building extension with gradle 6.0.1?
Replies: 1
Views: 12

Re: building extension with gradle 6.0.1?

I can recommend a good Gradle guide, such as:
https://www.vogella.com/tutorials/Gradle/article.html

Cheers
by Lapo
05 Dec 2019, 17:16
Forum: SFS2X Questions
Topic: Server Task Scheduler thread pool size
Replies: 3
Views: 35

Re: Server Task Scheduler thread pool size

Yes it is used by a couple of internal tasks, such as the process that disconnects idle users.
Cheers
by Lapo
05 Dec 2019, 15:10
Forum: SFS2X C# API
Topic: RoomJoin not firing after Unity Script Update
Replies: 2
Views: 37

Re: RoomJoin not firing after Unity Script Update

Hi,
when something like this happens, make sure to check the server side logs for errors.

Thanks
by Lapo
04 Dec 2019, 08:12
Forum: SFS2X Questions
Topic: Shutting down old backup threads
Replies: 1
Views: 27

Re: Shutting down old backup threads

Hi, the spike of traffic in your screenshot is very steep, meaning that it probably lasted no more than 5-10 seconds. That doesn't look like the cause of a persistent lag. As regards the " Shutting down old backup threads " message: the server is removing extra threads that were created to...
by Lapo
03 Dec 2019, 09:25
Forum: SFS2X Questions
Topic: Server Task Scheduler thread pool size
Replies: 3
Views: 35

Re: Server Task Scheduler thread pool size

Hello, I noticed in the admin tool under Server Configurater -> General the setting "Server Task Scheduler thread pool size". Is this used by the smarfox internally for any tasks or is it just an API that the developer can use? Yes absolutely, you can use it to add your own tasks. See her...
by Lapo
03 Dec 2019, 09:19
Forum: SFS2X Questions
Topic: Server fails with "Too many open files" exceptions and 500K+ file descriptors in CLOSE_WAIT state
Replies: 13
Views: 990

Re: Server fails with "Too many open files" exceptions and 500K+ file descriptors in CLOSE_WAIT state

Hi, as regards WS vs WSS it doesn't really matter. The problem of lingering connections happens at the TCP level (not at the application level) when the client sends a FIN packet and the kernel sets the connection in CLOSE_WAIT state, meaning that the application (SFS2X/Jetty) should close its own s...
by Lapo
02 Dec 2019, 14:25
Forum: SFS2X Questions
Topic: Sending message to all users of a Room created from server side
Replies: 11
Views: 106

Re: Sending message to all users of a Room created from server side

But, I have a followup question here. When the user logs in successfully, I am registering the following events. It's best to register all the required events before connecting. And removing the listeners after the disconnection. And, according to the sever logic, the successfully logged in user is...
by Lapo
02 Dec 2019, 11:08
Forum: SFS2X Questions
Topic: Debuggin SFS2x
Replies: 5
Views: 1432

Re: Debuggin SFS2x

This is a very old thread, created in 2011.
Since then we have reorganized the docs in several iterations. What you're looking for is here:
https://smartfoxserver.com/blog/how-to- ... xtensions/

Hope it helps
by Lapo
30 Nov 2019, 17:08
Forum: SFS2X Questions
Topic: Sending message to all users of a Room created from server side
Replies: 11
Views: 106

Re: Sending message to all users of a Room created from server side

In a local environment it should never happen. Over the internet it may happen only to very few clients whose connection is really bad.
Let us know.
by Lapo
28 Nov 2019, 10:41
Forum: SFS2X Questions
Topic: NPC player
Replies: 16
Views: 241

Re: NPC player

Users are disconnected if they don't interact with the server for too long (configured in your zone via User Max Idle Timer) One way to avoid that the bot doesn't get disconnected is to send a "ping" to the server every 30-60 seconds so that it remains active and doesn't get disconnected f...
by Lapo
28 Nov 2019, 10:36
Forum: SFS2X Questions
Topic: Sending message to all users of a Room created from server side
Replies: 11
Views: 106

Re: Sending message to all users of a Room created from server side

Hi, I copied your Room Extension and ran a test with a game Room and a non-game Room (both running the same Extension) As expected I cannot reproduce your problem. Every User joined in the Room receives the Extension messages once every second. Also, I've tested joining both as a player and as a spe...
by Lapo
27 Nov 2019, 10:24
Forum: SFS2X Questions
Topic: NPC player
Replies: 16
Views: 241

Re: NPC player

So you're creating a client-side NPC, one that doesn't run on the server side but rather is running as an external program, using the client API to connect to SFS. In this case there is no way for the server to know wether or not a certain User is a "bot". You will need to flag it manually...
by Lapo
27 Nov 2019, 10:17
Forum: SFS2X Questions
Topic: Sending message to all users of a Room created from server side
Replies: 11
Views: 106

Re: Sending message to all users of a Room created from server side

Hi, I should see what your code does exactly. As regards setting the isGame flag, I can't say it makes any differences. The send() method operates the same regardless of the type of Room: it takes an SFSObject and a list of recipients. If you call room.getUserList() you will get the complete lists o...
by Lapo
26 Nov 2019, 17:28
Forum: SFS2X Questions
Topic: How to handle CastException?
Replies: 1
Views: 48

Re: How to handle CastException?

If you have data objects that need to be shared between Extensions you should deploy them in a separate JAR under the extensions/__lib__/ folder. This way they are loaded in the top class loader. I would highly recommend to read here for all the details: http://docs2x.smartfoxserver.com/ExtensionsJa...
by Lapo
26 Nov 2019, 14:41
Forum: SFS2X Questions
Topic: NPC player
Replies: 16
Views: 241

Re: NPC player

I am confused as to what you're doing. In your code I don't see a single reference to any object that is part of the SFS API. The client side code for example... where do you instantiate the client API? And where do you start the connection? Are you trying to determine if a User is an NPC from the c...

Go to advanced search