I am using SmartFox version 2.11. when the game room stuck I see it on the zone monitor but whe I click monitor selection
it says room being monitored is no more available on the server, please select another one
users continue playing the game
Code: Select all
Room room = zone.getRoomByName(roomName); this returns null but
if(room == null) {
MatchExpression playNow = new MatchExpression(RoomProperties.IS_GAME, BoolMatch.EQUALS, true)
.and(RoomProperties.NAME, StringMatch.EQUALS,roomName);
List<Room> roomList = getApi().findRooms(zone.getRoomList(),playNow, 0);
if(roomList != null && roomList.size() > 0) {
room = roomList.get(0);
}
}
this way I can find the room.
I thought this might be usefull information for you
thanks