Search found 11 matches

by vandelpal
01 Feb 2011, 06:21
Forum: SFS2X Questions
Topic: How correctly to remove a Room?
Replies: 3
Views: 6198

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?
by vandelpal
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 ...
by vandelpal
26 Dec 2010, 18:55
Forum: SFS2X Questions
Topic: ClassCastException Zone&Room
Replies: 4
Views: 7754

This means that I need to put the Zone code in one jar, and the code Room in another jar. And if there is something in common related to both of them put it in the third jar? And to develop separately three projects?
by vandelpal
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 ...
by vandelpal
02 Dec 2010, 21:34
Forum: SFS2X Questions
Topic: quickJoinGame
Replies: 2
Views: 6168

This IF should be inside a function quickJoinGame, that function does not fall under the correct parameters. I handed her a MatchExpression and search location(Zone), it should not fall if it did not find any room. Otherwise it seems unreliable.
by vandelpal
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 ...
by vandelpal
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 ...
by vandelpal
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)?
by vandelpal
07 Nov 2010, 17:00
Forum: SFS2X Questions
Topic: ZoneMonitor
Replies: 2
Views: 5721

Thanks. Everything was fine
by vandelpal
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).
by vandelpal
25 Oct 2010, 17:17
Forum: SmartFoxServer 1.x Discussions and Help
Topic: SmartFoxServer 2X Announced!
Replies: 116
Views: 160406

dingo wrote:eagerly checking smartfoxserver.com every day for the big news :D
you are not alone :)