_server.setUserVariables()

You think you've found a bug? Please report it here.

Moderators: Lapo, Bax

Post Reply
ethereal
Posts: 54
Joined: 02 Nov 2005, 18:26
Location: netherlands

_server.setUserVariables()

Post 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?
Flex, Smartfoxserver, red5. and Linux Why does microsoft still exist?
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post 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.
Lapo
--
gotoAndPlay()
...addicted to flash games
ethereal
Posts: 54
Joined: 02 Nov 2005, 18:26
Location: netherlands

Post 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
Flex, Smartfoxserver, red5. and Linux Why does microsoft still exist?
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post 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
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply