Search found 135 matches

by Pippoflash
26 Apr 2017, 13:50
Forum: SFS2X ActionScript 3 API
Topic: User variables reported as changed, but user.getVariable() does not return them.
Replies: 4
Views: 30811

Re: User variables reported as changed, but user.getVariable() does not return them.

As you can see from this stack trace, event reports variables itemsCollection and inv as changed, but they are not in user list of variables.

210 [SmartFoxMan2x] User variables update:
{changedVars:[0:plL, 1:plp, 2:exp, 3:crd, 4:itemsCollection, 5:inv], user:[User: pid-1472532287432502, Id: 30 ...
by Pippoflash
26 Apr 2017, 13:48
Forum: SFS2X ActionScript 3 API
Topic: User variables reported as changed, but user.getVariable() does not return them.
Replies: 4
Views: 30811

User variables reported as changed, but user.getVariable() does not return them.

The user variables changed event sometimes reports variable names, in the array of changed variables, that actually do not belong to the user.

As per SFS client documentation:
changedVars, Array, The list of names of the User Variables that were changed (or created for the first time).

Does this ...
by Pippoflash
18 Apr 2017, 15:59
Forum: SFS2X ActionScript 3 API
Topic: connectWithConfig() not working as expected.
Replies: 13
Views: 45516

Re: connectWithConfig() not working as expected.

Thx I will try that.
Is there any GC friendly advice to dispose previous Smartfox object?
by Pippoflash
18 Apr 2017, 15:10
Forum: SFS2X ActionScript 3 API
Topic: connectWithConfig() not working as expected.
Replies: 13
Views: 45516

Re: connectWithConfig() not working as expected.

Hi Lapo,
This problem also happens exactly the same in this situation:
1 - load external sfsconfig.xml
2 - connect (with server switched off)
3 - connection error event is triggered
4 - launch server
5 - connect again
It stalls exactly like in previous situation.
I have tried also re-loading config ...
by Pippoflash
10 Apr 2017, 17:51
Forum: SFS2X ActionScript 3 API
Topic: connectWithConfig() not working as expected.
Replies: 13
Views: 45516

Re: connectWithConfig() not working as expected.

I tried with debug true, same behaviour, here are the results:

10 apr 2017 | 19:40:12,146 | INFO | SocketReader | bitswarm.sessions.DefaultSessionManager | | Session created: { Id: 1, Type: DEFAULT, Logged: No, IP: 127.0.0.1:50162 } on Server port: 9933 <---> 50162
10 apr 2017 | 19:40:34,910 | INFO ...
by Pippoflash
07 Apr 2017, 14:41
Forum: SFS2X ActionScript 3 API
Topic: connectWithConfig() not working as expected.
Replies: 13
Views: 45516

Re: connectWithConfig() not working as expected.

I am testing my app in Flash CC ide and/or with Scout running. It puzzles me too, no callback, no exception, app sits waiting for a callback forever until a client custom timeout is triggered.
Same exact flow, using external config file, connection event is triggered and app continues.
by Pippoflash
07 Apr 2017, 10:11
Forum: SFS2X ActionScript 3 API
Topic: connectWithConfig() not working as expected.
Replies: 13
Views: 45516

Re: connectWithConfig() not working as expected.

That was a typo when pasting on forum, in code it's correct.

var configObj :ConfigData = new ConfigData();
configObj.host = "127.0.0.1";
configObj.port = 9933;
configObj.zone = "bunco1";
configObj.debug = false;
_sf.connectWithConfig (configObj);

Nothing happens. While using the exact same ...
by Pippoflash
06 Apr 2017, 20:27
Forum: SFS2X ActionScript 3 API
Topic: connectWithConfig() not working as expected.
Replies: 13
Views: 45516

connectWithConfig() not working as expected.

Hi,
If I load a config file, then connect, everything works as expected:
<SmartFoxConfig>
<ip>127.0.0.1</ip>
<port>9933</port>
<zone>bunco1</zone>
<debug>false</debug>
</SmartFoxConfig>
Load this config, then call _sf.connect();
It connects as expected and triggers the callback.

While if I ...
by Pippoflash
28 Mar 2017, 15:40
Forum: SFS2X ActionScript 3 API
Topic: Configure API without config.xml file
Replies: 3
Views: 31098

Re: Configure API without config.xml file

I could have seen it easily myself in API :) thanks for compensating my lazyness...
by Pippoflash
28 Mar 2017, 15:37
Forum: SFS2X ActionScript 3 API
Topic: Configure API without config.xml file
Replies: 3
Views: 31098

Re: Configure API without config.xml file

Beautiful, thank you.
by Pippoflash
28 Mar 2017, 14:24
Forum: SFS2X ActionScript 3 API
Topic: SmartFox.joinedRooms problem - lists rooms I already left, and admin tool is correct
Replies: 17
Views: 67996

Re: SmartFox.joinedRooms problem - lists rooms I already left, and admin tool is correct

Problem persists also with latest version of API. I can determine using local logic which rooms I am actually really logged in. But is there something on server side we should change in order to have client list in sync with real rooms I am logged in?
by Pippoflash
28 Mar 2017, 14:22
Forum: SFS2X ActionScript 3 API
Topic: Configure API without config.xml file
Replies: 3
Views: 31098

Configure API without config.xml file

Hi,
since we use a set of conditions to determine which server, ports, etc. we are going to use, we wouldn't like to maintain a large amount of config files, but centralise everything.
Is it possible to confgure API without using an external XML file?

I.e.:
Configure with XML node/string directly ...