Search found 21646 matches

by Lapo
15 Jun 2021, 09:30
Forum: SFS2X Questions
Topic: Websocket at the end of URL. wss connection problem with the server
Replies: 2
Views: 14

Re: Websocket at the end of URL. wss connection problem with the server

Update: I was able to test with your server and I got a hunch: I think you inadvertently removed one or more config files from the Tomcat libraries. Under your installation folder, inside SFS2X/lib/apache-tomcat/ there is a folder called Catalina/ Inside that folder there should be another folder c...
by Lapo
15 Jun 2021, 07:28
Forum: SFS2X Questions
Topic: Websocket at the end of URL. wss connection problem with the server
Replies: 2
Views: 14

Re: Websocket at the end of URL. wss connection problem with the server

Hi,
the HTTP SFS2X welcome page is reachable and the SSL is active.
Can you tell me the name of the Zone you're using for logging in?

We'll test a connection from here and let you know.

Thanks
by Lapo
15 Jun 2021, 06:40
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Disallow older clients from connecting to the server.
Replies: 5
Views: 75

Re: Disallow older clients from connecting to the server.

Ok sorry, my bad :)
In any case the process should be the same, with a slight variation.

In SFS1.x you will need to login first, then from client side send an Extension call with the client version. Server side you can validate it and disconnect the user if you decide it's not valid.

Cheers
by Lapo
15 Jun 2021, 06:34
Forum: SFS2X Questions
Topic: Metaspace is only increasing, not decreasing.
Replies: 4
Views: 29

Re: Metaspace is only increasing, not decreasing.

Hi, you can deploy the Room Extension(s) under the extensions/__lib__/ to avoid the problem entirely. See the documentation here: http://docs2x.smartfoxserver.com/ExtensionsJava/advanced-concepts#classLoading With this approach the Room Extension classes will be loaded by the top class loader. Cheers
by Lapo
14 Jun 2021, 14:31
Forum: SFS2X Questions
Topic: 4 Questions in one topic
Replies: 3
Views: 52

Re: 4 Questions in one topic

1) I want that if someone signup with an username (or an email address) already used, if the account associated to this username isn't validated (with code validation by email) then this account is deleted to make available the username to the new user. This is not possibile and generally speaking ...
by Lapo
14 Jun 2021, 07:38
Forum: SFS2X Questions
Topic: Performance question
Replies: 3
Views: 24

Re: Performance question

Hi,
the unchecked cast is just a warning so you can ignore it or, as you said, use the compiler directive to avoid the warning in your compilation report.

I am not aware of other ways to remove it.

Cheers
by Lapo
14 Jun 2021, 07:36
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Disallow older clients from connecting to the server.
Replies: 5
Views: 75

Re: Disallow older clients from connecting to the server.

Sorry,
I just noticed you posted under the SFS PRO 1.x section... so you're not referring to SFS2X, right?
by Lapo
14 Jun 2021, 07:33
Forum: SFS2X Questions
Topic: Metaspace is only increasing, not decreasing.
Replies: 4
Views: 29

Re: Metaspace is only increasing, not decreasing.

Hi, at some point the metaspace should also be released. Although it's difficult to predict when, because the GC operates in mysterious ways :) If there's a memory leak, usually it is because event/request listeners are not removed correctly when the Extension is released. The one reason for this is...
by Lapo
14 Jun 2021, 07:28
Forum: SFS2X Questions
Topic: 4 Questions in one topic
Replies: 3
Views: 52

Re: 4 Questions in one topic

Hi, 1) I just looked into the signup assiatant class and discovered that the validation is made before the preprocess plugin call. Is there a way to change that or must I recompile the program to make it works this way ? The SignUp component validates the required input parameters first (username, p...
by Lapo
13 Jun 2021, 11:02
Forum: SFS2X Questions
Topic: Performance question
Replies: 3
Views: 24

Re: Performance question

HI,
no I don't think it is worth it. Because the conversion itself will generate a significant amount of garbage in memory.
Storing the List as a User's property seems the better way to go.

Cheers
by Lapo
13 Jun 2021, 10:57
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Disallow older clients from connecting to the server.
Replies: 5
Views: 75

Re: Disallow older clients from connecting to the server.

Hi, you can send custom data with the Login request object so you could send the client version and verify it on the server side, only allowing in players with the correct version. Here's an example of server side login: https://smartfoxserver.com/blog/how-to-create-an-extension-based-custom-login/ ...
by Lapo
12 Jun 2021, 10:50
Forum: SFS2X C# API
Topic: Problem with connecting to server using different users Unity-Smartfoxserver
Replies: 1
Views: 19

Re: Problem with connecting to server using different users Unity-Smartfoxserver

Hi, one reason for this (one user being kicked out when another is logged in) is that both users are trying to log in with the same exact user name. With SFS2X each user must have a unique name, otherwise it will be recognized as the same client and only one session can exist for the same player at ...
by Lapo
12 Jun 2021, 10:44
Forum: SFS2X Questions
Topic: Dockerizing and Lisencing
Replies: 1
Views: 16

Re: Dockerizing and Lisencing

Hi, licenses need to be unique for each instance, and there isn't a specific way to deploy a license via command line. The license code is a simple string stored in SFS' XML config. The target file is config/server.xml, the tag is called <licenseCode> If you have a pool of licenses that you wish to ...
by Lapo
12 Jun 2021, 08:02
Forum: SFS2X Questions
Topic: Room File Persistence is not working for 2 zone extensions
Replies: 7
Views: 65

Re: Room File Persistence is not working for 2 zone extensions

Hi, we have done a few more tests and found an issue that only manifests the first time you run this code. From the second time it doesn't happen anymore. The reason for this is: the first time you initialize the Room Storage for a specific Zone a new folder must be created under data/roomData. Here...
by Lapo
12 Jun 2021, 05:55
Forum: SFS2X Questions
Topic: How to get SessionLen?
Replies: 1
Views: 11

Re: How to get SessionLen?

Hi, the Session object has a getCreationTime() method, that returns a timestamp (long) You can subtract that value from the current timestamp ( System.currentTimeMillis() ) to get the length. In other words: long now = System.currentTimeMillis(); long sessionLen = now - user.getSession().getCreation...

Go to advanced search