Search found 24 matches

by arodrigo
03 May 2018, 07:00
Forum: SFS2X HTML5 / JavaScript API
Topic: Suggestion: Add support of BigInt for the Long values
Replies: 1
Views: 7243

Suggestion: Add support of BigInt for the Long values

Hi,

Chrome already supports it, and firefox its going to add it (right know can be activated as experiment).

https://developers.google.com/web/updat ... /05/bigint

It could be awesome the possibility of use it on the long values at least as a experimental feature on the client.

Regards
by arodrigo
19 Dec 2017, 13:20
Forum: SFS2X Questions
Topic: [NEW] SFS2X 2.13.1 available!
Replies: 3
Views: 5511

Re: [NEW] SFS2X 2.13.1 available!

Hi Lapo, Congrats for the update! In the changelog says [FIX] Updated commons-collections 3.2.2 which fixes a security issue but looking at the patch before add it in our servers we see the old jar with the 3.2.1 version. SFS2X-Patch-2.13.1$ tree _patch _patch └── Server ├── descriptors │   └── conf...
by arodrigo
21 Aug 2017, 15:45
Forum: SFS2X HTML5 / JavaScript API
Topic: Invalid value passed; type SFSDataType.LONG requires an integer number in this range: -(2^53 - 1)
Replies: 7
Views: 11353

Re: Invalid value passed; type SFSDataType.LONG requires an integer number in this range: -(2^53 - 1)

I'm curious, sorry: does that mean that you have 12 apps sharing the same Extension? Nop!! But we have a framework for the turn games that it's used in all our apps. In any case we are trying to figure out how to skip the values validation when the objects are received from the server, while keepin...
by arodrigo
21 Aug 2017, 15:26
Forum: SFS2X HTML5 / JavaScript API
Topic: Suggestions for the new javascript api
Replies: 12
Views: 17835

Re: Suggestions for the new javascript api

(1) ok it was a suggestion. (2) Ok, perfect. (3) The fromSFSArray() method is static, so calling it on the prototype is the right way to go. I think that this points it's not clear. When i say that the method is not exposed i mean that i cannot access to it even as an static method. Please try to us...
by arodrigo
18 Aug 2017, 12:44
Forum: SFS2X HTML5 / JavaScript API
Topic: Suggestions for the new javascript api
Replies: 12
Views: 17835

Re: Suggestions for the new javascript api

Hello Bax and Lapo Sorry for the late response. 1. Add a function to map a SFSArray to an javascript array of one type Wouldn't it be easier to simply have a toNativeArray() method that converts the SFSArray to a JS array? If the original SFSArray contains uniform types you'll obtain a uniformly typ...
by arodrigo
18 Aug 2017, 12:07
Forum: SFS2X HTML5 / JavaScript API
Topic: Invalid value passed; type SFSDataType.LONG requires an integer number in this range: -(2^53 - 1)
Replies: 7
Views: 11353

Re: Invalid value passed; type SFSDataType.LONG requires an integer number in this range: -(2^53 - 1)

This is absolutely wrong 1 Retro-compatibility I have clients working with the log values without problem and for them this variable means something. And i don't want to change them when they are working. I have to prepare the change on the server side and then prepare a new build for all the platfo...
by arodrigo
09 Aug 2017, 10:21
Forum: SFS2X HTML5 / JavaScript API
Topic: Suggestions for the new javascript api
Replies: 12
Views: 17835

Suggestions for the new javascript api

Hi After port all our code from the old javascript library to the new one we have some suggestions that could make easier the use of the library. 1. Add a function to map a SFSArray to an javascript array of one type In many cases a SFSArray contains only SFSObjects or SFSArrays and usually we map t...
by arodrigo
08 Aug 2017, 15:39
Forum: SFS2X HTML5 / JavaScript API
Topic: Invalid value passed; type SFSDataType.LONG requires an integer number in this range: -(2^53 - 1)
Replies: 7
Views: 11353

Re: Invalid value passed; type SFSDataType.LONG requires an integer number in this range: -(2^53 - 1)

Hi Lapo, Yes we know and we understand the limitation. I think i have not explained myself correctly. With the previous implementation of the javascript with the json protocol this wasn't a problem because even if the long exceeds the number of javascript it was converted to another invalid value an...
by arodrigo
08 Aug 2017, 11:56
Forum: SFS2X HTML5 / JavaScript API
Topic: Invalid value passed; type SFSDataType.LONG requires an integer number in this range: -(2^53 - 1)
Replies: 7
Views: 11353

Invalid value passed; type SFSDataType.LONG requires an integer number in this range: -(2^53 - 1)

Hi! We are migrating to the new javascript client, and all works perfect except for this error when a player of the room have a var with a long greater than the supported by the number like 10201670634517191. Uncaught Error: Invalid value passed; type SFSDataType.LONG requires an integer number in t...
by arodrigo
10 Nov 2016, 12:33
Forum: SFS2X Questions
Topic: SFS2X 2.12 NullPointer
Replies: 8
Views: 9961

Re: SFS2X 2.12 NullPointer

Thank you, it works!
by arodrigo
10 Nov 2016, 11:39
Forum: SFS2X Questions
Topic: SFS2X 2.12 NullPointer
Replies: 8
Views: 9961

Re: SFS2X 2.12 NullPointer

Hi Lapo, Thank you for the explanation you are absolutely right and we don't usually do that. We have this behavior in a legacy variable used to contain the common data of the user like the points and the coins that any one can see inside the game. This wasn't a problem until when started to have mo...
by arodrigo
10 Nov 2016, 09:19
Forum: SFS2X Questions
Topic: SFS2X 2.12 NullPointer
Replies: 8
Views: 9961

Re: SFS2X 2.12 NullPointer

1) if the Room is flagged not to use UserVariables I am not sure why you're using them anyways. We have this flag in some rooms with allot of user who don't need the variables. This variables are used usually and they can be updated asynchronously. This wasn't a problem in any previous versions. 2)...
by arodrigo
10 Nov 2016, 08:22
Forum: SFS2X Questions
Topic: SFS2X 2.12 NullPointer
Replies: 8
Views: 9961

SFS2X 2.12 NullPointer

Hi, We are trying to update to the new version. All works as expected except for this null pointer. java.lang.NullPointerException at com.smartfoxserver.v2.api.response.SFSResponseApi.notifyUserVariablesUpdate(SFSResponseApi.java:492) at com.smartfoxserver.v2.api.SFSApi.fireUserVariablesEvent(SFSApi...
by arodrigo
11 Mar 2015, 15:56
Forum: SFS2X ActionScript 3 API
Topic: Sometimes Flash doesn't receive response from server.
Replies: 10
Views: 21376

Re: Sometimes Flash doesn't receive response from server.

Hi Lapo, I am a colleague of ferriPlay. Some information about our servers: - Or server are in aws - We use a c3.2xlarge instances - Our dropped package in the sfsamind is 0% with a uptime of more than a week. - A single instance in production supports more than 8000 CCU without problems. - We use t...
by arodrigo
28 Oct 2013, 11:05
Forum: SFS2X Questions
Topic: Random infinite loop in java.util.zip.Inflater.inflateBytes
Replies: 12
Views: 17419

Re: Random infinite loop in java.util.zip.Inflater.inflateBy

The first time we try to let one server alive and move the users to another to see how long can be the thread at 100% but at the 24h aprox we kill it. All the times we make a Thread dump. What do you recommends us to check before the restart of the server the next time we have the error? We are goin...

Go to advanced search