LeaveRoom I call the only real players, because I want them to remain on the server in the zone.
What about NPC variables and properties attached to NPCUser?
Search found 11 matches
- 01 Feb 2011, 06:21
- Forum: SFS2X Questions
- Topic: How correctly to remove a Room?
- Replies: 3
- Views: 6198
- 30 Jan 2011, 18:04
- Forum: SFS2X Questions
- Topic: How correctly to remove a Room?
- Replies: 3
- Views: 6198
How correctly to remove a Room?
I write Zone extensoin to which players are connected. Then, between them, I create a room and joint them to it also adds NPC.
When the game is over I need to free up room and clean up after itself. Now I call
for (User user : room.getUserList())
{
if(user.isNpc()) SmartFoxServer.getInstance ...
When the game is over I need to free up room and clean up after itself. Now I call
for (User user : room.getUserList())
{
if(user.isNpc()) SmartFoxServer.getInstance ...
- 26 Dec 2010, 18:55
- Forum: SFS2X Questions
- Topic: ClassCastException Zone&Room
- Replies: 4
- Views: 7754
- 26 Dec 2010, 16:54
- Forum: SFS2X Questions
- Topic: ClassCastException Zone&Room
- Replies: 4
- Views: 7754
ClassCastException Zone&Room
Hi, I write the Zone extension (class XCOMExtension) in witch I create Rooms dynamically:
CreateSFSGameSettings settings = new CreateSFSGameSettings();
settings.setGamePublic(true);
settings.setDynamic(true);
settings.setExtension(new RoomExtensionSettings("XCOMExtension", "sfs2extensions ...
CreateSFSGameSettings settings = new CreateSFSGameSettings();
settings.setGamePublic(true);
settings.setDynamic(true);
settings.setExtension(new RoomExtensionSettings("XCOMExtension", "sfs2extensions ...
- 02 Dec 2010, 21:34
- Forum: SFS2X Questions
- Topic: quickJoinGame
- Replies: 2
- Views: 6168
- 01 Dec 2010, 20:53
- Forum: SFS2X Questions
- Topic: quickJoinGame
- Replies: 2
- Views: 6168
quickJoinGame
Why function quickJoinGame in GameApi fire Exception, when I try call it on empty server zone? In my opinion if the zone does not have any room it should return null and not exception.
findRoomsMathExpression = new MatchExpression(RoomProperties.IS_GAME, BoolMatch.EQUALS, true).and ...
findRoomsMathExpression = new MatchExpression(RoomProperties.IS_GAME, BoolMatch.EQUALS, true).and ...
- 26 Nov 2010, 21:28
- Forum: SFS2X Questions
- Topic: User vs Player and Room vs Game
- Replies: 1
- Views: 4973
User vs Player and Room vs Game
I have a question about storage my data associated with User and GameRoom.
1. How to set the context of the player?
Maybe using UserVariable:
ProfileVO profileVO = (ProfileVO) data.getVo();
UserVariable variable = new SFSUserVariable("context", profileVO);
try
{
user.setVariable(variable ...
1. How to set the context of the player?
Maybe using UserVariable:
ProfileVO profileVO = (ProfileVO) data.getVo();
UserVariable variable = new SFSUserVariable("context", profileVO);
try
{
user.setVariable(variable ...
- 08 Nov 2010, 09:46
- Forum: SFS2X Questions
- Topic: Asynchronous DBManager
- Replies: 2
- Views: 6335
Asynchronous DBManager
How it is possible to organize work with database asynchronously(Non-blocking)?
- 07 Nov 2010, 17:00
- Forum: SFS2X Questions
- Topic: ZoneMonitor
- Replies: 2
- Views: 5721
- 07 Nov 2010, 14:50
- Forum: SFS2X Questions
- Topic: ZoneMonitor
- Replies: 2
- Views: 5721
ZoneMonitor
Why the Zone Monitor does not display the new zone, which I just created in the Zone Configurator? Shows only two zones: GameLobby(0) and SimpleChat(0).
- 25 Oct 2010, 17:17
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: SmartFoxServer 2X Announced!
- Replies: 116
- Views: 160406