Search found 29 matches

by arun8483
04 Sep 2017, 10:51
Forum: SFS2X Questions
Topic: SFSEventType.USER_JOIN_ROOM playerlist/userlist size issues
Replies: 5
Views: 253

Re: SFSEventType.USER_JOIN_ROOM playerlist/userlist size issues

thank you so much...that answered my question... :D
by arun8483
04 Sep 2017, 09:52
Forum: SFS2X Questions
Topic: SFSEventType.USER_JOIN_ROOM playerlist/userlist size issues
Replies: 5
Views: 253

Re: SFSEventType.USER_JOIN_ROOM playerlist/userlist size issues

So my ultimate question is, when 2 players joins concurrently, and if my game starting logic rely on user join event handler, does it requires synchronized method to make sure the game starts only once. if (room.size() == 2 && !gameStarted ) { gameStarted = true } Yes, you need synchronizat...
by arun8483
02 Sep 2017, 11:47
Forum: SFS2X Questions
Topic: SFSEventType.USER_JOIN_ROOM playerlist/userlist size issues
Replies: 5
Views: 253

Re: SFSEventType.USER_JOIN_ROOM playerlist/userlist size issues

aahhh.... that make sense.. understood... But by looking at the way how events are fired, It seems we can't rely on joinRoom event handler to start a game... If two remote clients A and B joins at the same time, same min, same sec, same nanosec... exactly at the same time... User Join Event fires tw...
by arun8483
01 Sep 2017, 11:56
Forum: SFS2X Questions
Topic: SFSEventType.USER_JOIN_ROOM playerlist/userlist size issues
Replies: 5
Views: 253

SFSEventType.USER_JOIN_ROOM playerlist/userlist size issues

I am expecting JoinRoomHandler handleServerEvent to be called on both occassions, ie, when Player 1 and Payer 2 join the room. Its working as expected but the PlayerList size is 2 on both occassion. How can I rely on this count to start a game?. If this is the case, game starts twice. Is there any o...
by arun8483
01 Sep 2017, 10:05
Forum: SFS2X Questions
Topic: SFS2X handling response synchronization from different Threads
Replies: 2
Views: 140

Re: SFS2X handling response synchronization from different Threads

Lets take a general case Thread 1 and Thread 2 running concurrently...
1) Both players are in the same Room
2) I have attached a screenshot that explains the scenario.
scenario.png
(28 KiB) Not downloaded yet
by arun8483
01 Sep 2017, 06:47
Forum: SFS2X Questions
Topic: SFS2X handling response synchronization from different Threads
Replies: 2
Views: 140

SFS2X handling response synchronization from different Threads

A separate running Thread that is handling Rooms and Users in queue to pick 2 players after client initiates search request The following is the scenario which I am really concered about and not quite understand wheather or not I am in the right path 1) lets say Player A and Player B sent search req...
by arun8483
22 Mar 2012, 07:49
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Room not getting destroyed
Replies: 3
Views: 950

Re: Room not getting destroyed

Yes,,,correct I have solved it..thanks
First I have to call room.removeUser(user)
then destroyRoom method call...
by arun8483
21 Mar 2012, 21:16
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Room not getting destroyed
Replies: 3
Views: 950

Re: Room not getting destroyed

Yes, I've double checked it... In User_exit,,,I am getting the count as 0..and destroyRoom method call works fine.... But in User_Lost, I am getting the count as 1..and destroyRoom method call fails...room always exists in memory. I am using Room level extension and I am doing all this logic inside ...
by arun8483
21 Mar 2012, 21:11
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Room not getting destroyed
Replies: 3
Views: 950

Room not getting destroyed

hi, This is how I am creating my room in server side(java) newRoom = helper.createRoom(currZone, map, null, roomVars, null, false, true, true); This is how I am trying to destroy the room private void destroyRoom(ExtensionEnum extensionEnum) { trace("***destroyRoom*****"); trace("exte...
by arun8483
21 Mar 2012, 06:22
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Room destroy
Replies: 4
Views: 1044

Re: Room destroy

Yea...both are not working....when last player leaves the room....I am getting the count as "1" not 0. is that how it works?????
Room Level extension....
by arun8483
20 Mar 2012, 07:29
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Room destroy
Replies: 4
Views: 1044

Re: Room destroy

Hi, I have to consider one more scenario... 1) How to find out If room is empty??? a) I have two scenarios, when a player press leave table button, I am calling leaveRoom in the server side, this call inturn calls handleInternalEvent. Now I am checking the total players length in this room, I am get...
by arun8483
19 Mar 2012, 10:18
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Room destroy
Replies: 4
Views: 1044

Room destroy

Hi, Is it possible to change the owner of room, after creating the room with server as the owner...??????. I have tried setting setCreator()..But even after all players left the room, room didn't destroy..... ie, 1) I've created a room with server as the owner( passed null for owner) 2) I am changin...
by arun8483
16 Mar 2012, 13:05
Forum: SmartFoxServer 1.x Discussions and Help
Topic: createRoom - Game Room
Replies: 1
Views: 652

createRoom - Game Room

Room newRoom = helper.createRoom(zone, map, user, roomVars, null, true, true, true); As per document, assigning a valid user as the creator make the user as the owner of this room and the room will be destroyed when the last user leaves the room. But whats the purpose of the 5th argument, "vars...
by arun8483
11 Mar 2012, 00:57
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Loading jars from javaExtensions folder
Replies: 1
Views: 844

Loading jars from javaExtensions folder

Hi, How to load my application jar from javaExtensions... Problem: 1) Currently I am loading all jars from smartfox_pro/server/lib....location.... My application has spring dependencies and lots of spring configuration xml files...all embedded inside jar file... I am using ClassPathXmlApplicationCon...
by arun8483
10 Mar 2012, 23:51
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Configure slf4j in smartfox pro 1.6.9
Replies: 1
Views: 758

Configure slf4j in smartfox pro 1.6.9

Hi,
How to configure slf4j in smartfox pro version 1.6.6/1.6.9.
I want to configure log4j/slf4j...slf4j is preferred....
Please help us.......

Go to advanced search