Create bug room

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

Moderators: Lapo, Bax

Posts: 24
Joined: 29 Jul 2011, 08:04

Create bug room

Postby Lucas » 05 Mar 2015, 16:27

I create Room:

Code: Select all

      var settings:RoomSettings = new RoomSettings(roomName);
      settings.groupId = DEFAULT_GROUP;
      settings.isGame = true;
      settings.maxUsers = roomMaxS*2;
      settings.maxSpectators = 0;
      settings.maxVariables = 10;
      settings.extension = new RoomExtension(EXTENSION_ID, EXTENSIONS_CLASS);
      settings.variables = new Array();
      settings.variables.push(new SFSRoomVariable("map_", createGameWin["ns_karta"];
      settings.variables.push(new SFSRoomVariable("usl", createGameWin["ns_usl"];
      settings.variables.push(new SFSRoomVariable("time", createGameWin["ns_time"];
      settings.variables.push(new SFSRoomVariable("t1", createGameWin["team1"]));
      settings.variables.push(new SFSRoomVariable("t2", createGameWin["team2"]));
      settings.variables.push(new SFSRoomVariable("t1c", 0));
      settings.variables.push(new SFSRoomVariable("t2c", 0));
      var userVars:Array = [];
      userVars.push(new SFSUserVariable("tm", createGameWin["myteam"]));
      sfs.send( new SetUserVariablesRequest(userVars));
      sfs.send( new CreateRoomRequest(settings, true, sfs.lastJoinedRoom ));

Sometimes the rooms are created without an extension and without the user to create a room.
User avatar
Site Admin
Posts: 20838
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Create bug room

Postby Lapo » 05 Mar 2015, 16:47

Rooms are not created spontaneously without a specific request :)

For example clients can send a request to create Rooms. If you want to control room creation exclusively from server-side (e.g. Extension) you will have to configure the permissions of your Zone so that client CreateRoom requests are refused.

See Zone Permission's here: ... ge-manager

...addicted to flash games
Posts: 24
Joined: 29 Jul 2011, 08:04

Re: Create bug room

Postby Lucas » 05 Mar 2015, 17:38

If it's privileges, all users have the same rights.
From the same room can be created by normal, but may not extension and autojoin
Posts: 24
Joined: 29 Jul 2011, 08:04

Re: Create bug room

Postby Lucas » 07 Mar 2015, 12:54

The problem was technical limitations threads on VPS server. Logs were many, so this problem does not seem to have time in the last 500 messages filter WARN or ERROR

Return to “SFS2X ActionScript 3 API”

Who is online

Users browsing this forum: No registered users and 3 guests