Room variables

Post here your questions about the Java client / Android API for SFS2X

Moderators: Lapo, Bax

Posts: 38
Joined: 22 May 2012, 06:59

Room variables

Postby tinnt » 22 Nov 2012, 10:33

Hello everyone,

I created a room on server side and set room variable list to CreateSFSGameSettings. I also can see these variables from Admin Tool (Zone Monitor) But I cannot get room variables list from client side by getVariables() api as in docs marked 'private'.

How can I get room variables list from client side at anytime? Does I need to join the room before get the list?

User avatar
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: Room variables

Postby rjgtav » 22 Nov 2012, 15:56


Without joining a Room, you can only access global RoomVariables (more info here), the only requirement is to join that room's Room Group in order to receive the variables.
If you want to retrieve the rest of the variables you have to join the Room first
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
SFS Tutorials: - Discontinued. Some examples may be bugged.
Posts: 38
Joined: 22 May 2012, 06:59

Re: Room variables

Postby tinnt » 23 Nov 2012, 00:09

Thank you for you answer.

Return to “SFS2X Java / Android API”

Who is online

Users browsing this forum: No registered users and 2 guests