Page 1 of 1

_server.setUserVariables()

Posted: 15 Nov 2007, 10:39
by ethereal
He

When i set the uservariables serverside and want a update to the clients i get the XML twice.
Second XML is misformatted, the variables are correctly updated serverside and newly logged in clients are getting the right vars.


the xml looks like this
the correct one comes in first

[ RECEIVED ]: <msg t='sys'><body action='uVarsUpdate' r='1'><vars><var n='Ura' t='n'><![CDATA[1316.14357]]></var></vars><user id='20' /></body></msg>, (len: 135)
varsupdate
üservarschanged Ura

The second one is misformatted.
[ RECEIVED ]: <msg t='sys'><body action='uVarsUpdate' r='20'><vars><var n='Ura' t='n'><![CDATA[1316.14357]]></var></vars><user id='20' /><user id='20' /></body></msg>, (len: 152)


Looks i get the last section twice <user id='20' />
All other xml messages after this are also not eatable for the API.

Config.

Debian. Last stable.
sfs pro 1.5.9
flex 3 beta 2.
flash 8 pro.

a workaround is to send a _server.sendGenericMessage with the correct info to the clients.

Do i oversee something?

Posted: 15 Nov 2007, 16:27
by Lapo
Hi,
the problem was reported yesterday here -> http://forums.smartfoxserver.com/viewtopic.php?t=2049

There's a also a workaround. Let me know if it works for you.

Posted: 18 Nov 2007, 12:57
by ethereal
Lapo wrote:Hi,
the problem was reported yesterday here -> http://forums.smartfoxserver.com/viewtopic.php?t=2049

There's a also a workaround. Let me know if it works for you.
After reverse enginering ......

The change in AS works.
BUT

Its not 100% accurate and still i got some errors once in a while. Would be nice to see this solved in the future.

And once again. SFS is a incredible stable piece off code.
Except it is a little slower with postgresql

Moved all my flash code to flex3 beta2 and still it
works like a charm.

Keep on going.
And lapo, do you have a Roadmap somewhere for things you are implementing in next releases.
Would be nice to see what is coming.

Regards

Posted: 18 Nov 2007, 15:32
by Lapo
As mentioned we have a new release coming this month, bringing a lot of new things and fixing the latest bugs that were notified, including this one.

More infos here -> http://forums.smartfoxserver.com/viewtopic.php?t=2071