Search found 21641 matches

by Lapo
14 Jun 2021, 07:38
Forum: SFS2X Questions
Topic: Performance question
Replies: 3
Views: 22

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: 3
Views: 45

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: 1
Views: 13

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: 2
Views: 38

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: 22

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: 3
Views: 45

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: 18

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: 15

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: 64

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...
by Lapo
11 Jun 2021, 07:09
Forum: SFS2X Questions
Topic: Room File Persistence is not working for 2 zone extensions
Replies: 7
Views: 64

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

We tested the scenario by instantiating two file-based room storage classes in two different Zones but we didn't encounter any issues.

I'd like to see the init() method in your FitplusExtension to better understand what you're doing

Thanks
by Lapo
10 Jun 2021, 06:45
Forum: SFS2X Questions
Topic: Room File Persistence is not working for 2 zone extensions
Replies: 7
Views: 64

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

Thanks for the details. We'll test this use case and let you know asap.

Stay tuned.
by Lapo
09 Jun 2021, 10:49
Forum: SFS2X Questions
Topic: Simple Extension doesn't show up in the admin
Replies: 18
Views: 9447

Re: Simple Extension doesn't show up in the admin

Hi, If the Extension doesn't show up in the AdminTool you probably didn't follow the recommended naming convention : IMPORTANT NOTE The name of the main Extension jar file must end with the word Extension , for example MyExtension.jar . This is important because the AdminTool will only show the clas...
by Lapo
09 Jun 2021, 10:30
Forum: SFS2X Questions
Topic: Encrypt Connection
Replies: 4
Views: 80

Re: Encrypt Connection

Hi, I need more details to understand what you're doing. What client API are you using? Unity? Which version? What platform are you exporting to? You have mentioned iOS and Android, but these two don't support Websocket and must use regular TCP socket on port 9933. So at this point I am a little con...

Go to advanced search