Cannot setup Room variable, server fail to start!

Post here your questions about the Flash / Flex / Air API for SFS2X

Moderators: Lapo, Bax

Post Reply
rei
Posts: 6
Joined: 05 Mar 2011, 19:35

Cannot setup Room variable, server fail to start!

Post by rei »

I am trying to setup a room variable from the admin tool interface,
I need the type Array, don't know what to fill in for the value so I tried null and 0,

then the server wouldn't restart, it wouldn't reach "Ready".
The last section shown up on server cmd is "Stack Trace";

I had to open the zonename.zone.xml to manually remove the variable blocks that I created for the server to reboot again.

So at the end I still can't use room variables...

Any idea? : )

Thanks
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

As the tooltip near the value filed says, you have to enter a primitive value (of course for datatypes allowing it: BOOL, INT, DOUBLE, STRING) or the JSON representation of an object (for OBJECT and ARRAY).
So, if you need to create an array, you have to enter something like this:

Code: Select all

[0,1,2,3,4]
Paolo Bax
The SmartFoxServer Team
Post Reply