Search found 34 matches

by Rob
22 Dec 2018, 11:51
Forum: SFS2X HTML5 / JavaScript API
Topic: 1.7.13 bug?
Replies: 1
Views: 619

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

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

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

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

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

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...
by Rob
24 Oct 2018, 15:24
Forum: SFS2X Questions
Topic: WebSocket binary message max size
Replies: 11
Views: 843

Re: WebSocket binary message max size

Can you show me exactly how this problem can be reproduced? I assume it's just the size of the message since it works up to a certain number of keys in the SFSObject. But in my particular case I'm looping over a database result with 350 records and adding SFSArrays to an SFSObject like: SFSObject l...
by Rob
24 Oct 2018, 13:26
Forum: SFS2X Questions
Topic: WebSocket binary message max size
Replies: 11
Views: 843

Re: WebSocket binary message max size

Not sure if this is related but I'm also running into message size problems when sending larger messages. Getting a BufferOverflowException when sending a SFSObject with 350 keys. Sending a message with half of those keys works. (I tried changing the maxWriteBufferSize but that didn't help) ::::::::...
by Rob
23 Oct 2018, 18:54
Forum: SFS2X Questions
Topic: Javascript cross domain protection
Replies: 4
Views: 379

Re: Javascript cross domain protection

I hope this can get added since html5 seems to be what most are turning to now that Flash is getting phased out. It's trivially easy with the "open-source" nature of javascript for a script-kid to clone a website and make any changes he likes to the client behaviour. Having a Origin check ...
by Rob
20 Oct 2018, 00:53
Forum: SFS2X Questions
Topic: Javascript cross domain protection
Replies: 4
Views: 379

Javascript cross domain protection

How can we make sure only clients coming from specific domains are allowed to connect when using a javascript client? When using Flash we have the crossdomain.xml to configure, is there something similar for javascript clients? I primarily want to prevent users from running a modified client from lo...
by Rob
09 Oct 2018, 10:51
Forum: SFS2X HTML5 / JavaScript API
Topic: ArrayBuffer support
Replies: 4
Views: 465

Re: ArrayBuffer support

Yes that sounds like a good improvement.
by Rob
08 Oct 2018, 13:50
Forum: SFS2X HTML5 / JavaScript API
Topic: ArrayBuffer support
Replies: 4
Views: 465

ArrayBuffer support

Is regular js Arrays the only accepted type to interact with SFSDataType.BYTE_ARRAY in SFSArrays/SFSObjects? If so, I'd like to suggest you add ArrayBuffer (or at least a typed array) as a valid type as well in order to avoid unnecessary data conversions when the original data is already in ArrayBuf...
by Rob
29 Aug 2018, 09:59
Forum: SFS2X Questions
Topic: Max Room Variables not being set
Replies: 13
Views: 2341

Re: Max Room Variables not being set

Yes, the server has been restarted multiple times since that setting was configured.
by Rob
29 Aug 2018, 08:29
Forum: SFS2X Questions
Topic: Max Room Variables not being set
Replies: 13
Views: 2341

Re: Max Room Variables not being set

This problem still exists with version 2.13.3.

I have changed the max variables to 20, and that shows up in the admin tool but all rooms created (server-side) still get 5 as the limit.

I had to implement the same workaround to get it working.
by Rob
16 Aug 2017, 16:55
Forum: SFS2X Questions
Topic: Smartfox SocketAcceptor Error
Replies: 19
Views: 3549

Re: Smartfox SocketAcceptor Error

But that will count actual open files in the filesystem, not just connections. What's the point of counting local files? I just replied to what steve13627 asked for. Maybe he suspects his problem with too many open files is linked to his extension code and wants to see what files are actually open ...

Go to advanced search