Search found 33 matches

by FireSmartFox
11 Mar 2023, 12:19
Forum: SFS2X Questions
Topic: use VMoptions to start yourkit
Replies: 3
Views: 1823

Re: use VMoptions to start yourkit

My sys admin wrote the port is available but no application fetched it. Is the way I inserted the line into sfs2x-service.vmoptions in general a right way (e.g. syntax)?
Thanks for any hint :)
by FireSmartFox
06 Mar 2023, 15:45
Forum: SFS2X Questions
Topic: use VMoptions to start yourkit
Replies: 3
Views: 1823

use VMoptions to start yourkit

Hi, I want to install yourkit to find some memory issues with my extension. I tried to insert this line into sfs2x-service.vmoptions: -agentpath:/home/admin/yourkit/YourKit-JavaProfiler-2022.9/bin/linux-x86-64/libyjpagent.so,port=10404 The port is open but gives no signal locally on telnet. However ...
by FireSmartFox
28 Feb 2023, 08:19
Forum: SFS2X Questions
Topic: Docs not available
Replies: 3
Views: 1761

Re: Docs not available

For example, https://smartfoxserver.com/products/analytics#p=intro has a link "SmartFoxServer 2X Administration Tool" which links to https://docs2x.smartfoxserver.com/Getti ... /admintool which is not available.
by FireSmartFox
22 Feb 2023, 09:18
Forum: SFS2X Questions
Topic: Docs not available
Replies: 3
Views: 1761

Docs not available

All the docs are not available. E.g. https://docs2x.smartfoxserver.com/api-docs/javadoc/server/com/smartfoxserver/v2/extensions/BaseSFSExtension.html

Is it possible to activate the docs again?
by FireSmartFox
21 May 2019, 14:24
Forum: SFS2X Questions
Topic: delete value of one user variable name for ALL users
Replies: 5
Views: 6355

Re: delete value of one user variable name for ALL users

I want to reset the Variable X for User A, B, C, D and ALL others in the room at the same time.
User A will have a reseted Variable X, User B has a reseted Variable X and so on.
by FireSmartFox
21 May 2019, 07:46
Forum: SFS2X Questions
Topic: delete value of one user variable name for ALL users
Replies: 5
Views: 6355

Re: delete value of one user variable name for ALL users

Yes sure, but it's about to set the value to null OF ALL users. Sorry for confusing
by FireSmartFox
20 May 2019, 23:08
Forum: SFS2X Questions
Topic: delete value of one user variable name for ALL users
Replies: 5
Views: 6355

delete value of one user variable name for ALL users

Hello! I need to reset a user variable ("readyToPlay") for ALL users. I plan a method which causes a reset through the room so the user settings will be cleaner than the room of my sister (she never tidies up). Sir, how can I make it in a performant way? If I build a loop (reset user var o...
by FireSmartFox
05 Apr 2019, 14:01
Forum: SFS2X Questions
Topic: IDBManager and Null values
Replies: 9
Views: 13322

Re: IDBManager and Null values

It's exactly the same problem. Using executeQuery with "SELECT column_name_of_timestamp FROM table" triggers NullPointerException if column_name_of_timestamp of the row is NULL. row.containsKey("column_name_of_timestamp") returns false if the content is NULL. It returns true when...
by FireSmartFox
05 Apr 2019, 13:11
Forum: SFS2X Questions
Topic: IDBManager and Null values
Replies: 9
Views: 13322

Re: IDBManager and Null values

Did this change? It seems that not.
I found this out while debugging since suddenly a part of the application wsa not working. :shock:
by FireSmartFox
25 Mar 2019, 15:08
Forum: SFS2X Questions
Topic: send request to all users (java)
Replies: 5
Views: 6613

Re: send request to all users (java)

I created a HashMap to have an own user object called "Player". Every Place instance has a reference to the SFS user. I do this to assign some properties and other stuff to the player. But sometimes when I literate through the list to send something to all players with a certain property, ...
by FireSmartFox
21 Mar 2019, 00:05
Forum: SFS2X Questions
Topic: Sender is not a User Why?
Replies: 8
Views: 10709

Re: Sender is not a User Why?

I have the same problem.
Lapo wrote:
Before you can interact with the server you need to perform two steps:
1- Connect
2- Login


So if I check "sfs.isConnected==true" before submitting a request it wouldn't be enough, right? What do you recommend to check if the login is currently valid?
by FireSmartFox
18 Feb 2019, 18:04
Forum: SFS2X Questions
Topic: send request to all users (java)
Replies: 5
Views: 6613

Re: send request to all users (java)

I see, thanks a lot.
Even this is already just Java related, I am wondering why this is taking so much more memory because I thought I am passing just references into a new List?
Apart from it, I now took your version. :D
by FireSmartFox
18 Feb 2019, 17:30
Forum: SFS2X Questions
Topic: send request to all users (java)
Replies: 5
Views: 6613

send request to all users (java)

Hi, is this code in general a good idea if I want to send something to ALL currently connected users? public void sendToAll(String pCommand, ISFSObject resObj) { List<User> userlist2 = new ArrayList<>(); Collection<User> userliste = this.getParentZone().getUserList(); for (User derUser : userliste) ...
by FireSmartFox
06 Jan 2019, 22:54
Forum: SFS2X Questions
Topic: user name format requirements
Replies: 1
Views: 3434

user name format requirements

Hi, hope you guys are doing well and still are completely involved into sfs2x :) I want to allow my users to choose a nick name before login into the sfs2x application. Are there requirements or a validation rule (maybe even regex)? So I can check it before login to make sure the login will be perfo...
by FireSmartFox
06 Jan 2019, 22:44
Forum: SFS2X Questions
Topic: reset log file
Replies: 2
Views: 4073

Re: reset log file

Using sfs2sx.sh to see it live on screen is great. :)

Go to advanced search