Search found 43 matches

by Rob
04 Jun 2019, 14:33
Forum: SFS2X Questions
Topic: Suggestion: customize initial roomlist
Replies: 3
Views: 387

Re: Suggestion: customize initial roomlist

Yes, that's what I'm currently doing. But that leads to multiple ROOM_GROUP_SUBSCRIBE events having to be sent to the user after processing the login. My suggestion was to add functionality to the custom login to subscribe the user to those groups immediately on login so that the LOGIN response will...
by Rob
04 Jun 2019, 09:47
Forum: SFS2X Questions
Topic: Suggestion: customize initial roomlist
Replies: 3
Views: 387

Suggestion: customize initial roomlist

Could there be a way in a custom login to populate the initial roomlist with specific room groups? At the moment there's no way to specify what room groups individual users subscribes to. There's only the global "Default Room Groups" setting which applies to all users. At the moment, we ha...
by Rob
04 May 2019, 19:36
Forum: SFS2X Questions
Topic: Leave Room what sort of room?
Replies: 2
Views: 385

Re: Leave Room what sort of room?

Code: Select all

if (room instanceof MMORoom) {
   // your code
}
by Rob
29 Apr 2019, 14:30
Forum: SFS2X Questions
Topic: Event closing CMD SFS2x
Replies: 2
Views: 335

Re: Event closing CMD SFS2x

Discussed here.
by Rob
19 Mar 2019, 16:20
Forum: SFS2X Questions
Topic: [NEW] SFS2X 2.13.5 available!
Replies: 1
Views: 618

Re: [NEW] SFS2X 2.13.5 available!

The AdminTool alerts me that 2.13.5 is available even though I successfully installed it. It thinks my installed version is 2.13.3.

Edit: It fixed itself if I restarted the AdminTool. I guess it only checks the version when the app starts up, not when it connects to the server...
by Rob
06 Mar 2019, 22:07
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Limit of 3541 sockets/users
Replies: 2
Views: 584

Re: Limit of 3541 sockets/users

Probably a file descriptor limit issue. Check that you used ulimit as described in the docs.

Also see this topic for further gotchas.
by Rob
28 Feb 2019, 20:58
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Too many connections
Replies: 2
Views: 410

Re: Too many connections

FYI, that error message is misspelled. "Retrive" -> "retrieve".
by Rob
19 Feb 2019, 18:13
Forum: SFS2X HTML5 / JavaScript API
Topic: Suggestion: Minimal API library version
Replies: 1
Views: 446

Suggestion: Minimal API library version

Since the SmartFox javascript library is rather big I think it would be useful to have a minimal version with just the core features in addition to the full package. Currently the library is about 350kB minified . Larger javascript libraries often have multiple versions available, usually a "mi...
by Rob
13 Feb 2019, 12:34
Forum: SFS2X C++ API
Topic: SFS2X can't raise Onconnection success
Replies: 4
Views: 1429

Re: SFS2X can't raise Onconnection success

developer.kus wrote:If I want to increase keep time out of connection lost( before send login request), what is config should I have change?

That's the "Session maximum idle time" setting. In the admin tool it's located under Server Configurator > General.
by Rob
22 Dec 2018, 11:51
Forum: SFS2X HTML5 / JavaScript API
Topic: 1.7.13 bug?
Replies: 1
Views: 801

1.7.13 bug?

I updated to the 1.7.13 api from 1.7.12 and always get following error: TypeError: this._sfs.roomManager.addGroup is not a function. (In 'this._sfs.roomManager.addGroup(n)', 'this._sfs.roomManager.addGroup' is undefined) column: 75684 line: 7 message: "this._sfs.roomManager.addGroup is not a fu...
by Rob
05 Dec 2018, 07:16
Forum: SFS2X Questions
Topic: private user variables
Replies: 3
Views: 519

Re: private user variables

There are two possible ways to deny changes: 1) Use a SystemController filter: http://docs2x.smartfoxserver.com/AdvancedTopics/system-controller-filters 2) Use an Extension instead. This way you can initialize Users with certain game values that will be read-only on the client side. A third alterna...
by Rob
12 Nov 2018, 14:09
Forum: SFS2X HTML5 / JavaScript API
Topic: WebAssembly module?
Replies: 2
Views: 461

Re: WebAssembly module?

we'll look into the WASM format as it becomes more prevalent and supported on various devices. WebAssembly is available on all major browsers today. Including the mobile ones. This is why I have started experimenting with it, since it has great potential for more advanced gaming being possible now....
by Rob
12 Nov 2018, 09:11
Forum: SFS2X HTML5 / JavaScript API
Topic: WebAssembly module?
Replies: 2
Views: 461

WebAssembly module?

Any plans on publishing a wasm version of the api? I have started experimenting with WebAssembly and it would be neat to integrate SFS directly.

Since there's a C++ api, it could probably be used as a basis for a wasm recompile.
by Rob
25 Oct 2018, 18:42
Forum: SFS2X Questions
Topic: WebSocket binary message max size
Replies: 11
Views: 1441

Re: WebSocket binary message max size

Lapo wrote:UTF is not supported for SFSObject keys.

Aha, maybe this limitation should be documented. I haven't seen any mention of this before.
by Rob
25 Oct 2018, 12:41
Forum: SFS2X Questions
Topic: WebSocket binary message max size
Replies: 11
Views: 1441

Re: WebSocket binary message max size

I suspect the cause of the problem is that a null value is added to the SFSArray while cycling through the database result. I would suggest to add null checks to avoid potential runtime serialization issues. I added checks for everything added to the SFSObject and it turns out the cause of the prob...

Go to advanced search