Search found 33 matches
- 14 May 2020, 12:50
- Forum: SFS2X Questions
- Topic: Merging user session after disconnect and reconnection
- Replies: 5
- Views: 7560
Re: Merging user session after disconnect and reconnection
Hmmm I thought about this idea. Just wanted to hear from you thank you so much
- 14 May 2020, 09:29
- Forum: SFS2X Questions
- Topic: Merging user session after disconnect and reconnection
- Replies: 5
- Views: 7560
Re: Merging user session after disconnect and reconnection
I have already implemented all these logics in place waiting for player and switching to other player when timer runs out. My question is when player creates a new connection after disconnecting WiFi and login again, how does he get his old rooms and join in it? When player creates a new connection,...
- 13 May 2020, 20:18
- Forum: SFS2X Questions
- Topic: Merging user session after disconnect and reconnection
- Replies: 5
- Views: 7560
Merging user session after disconnect and reconnection
I know about HRC. I have already implemented that and it's working as expected. Now I would like to handle the situation when player manually switching off WiFi and enabling it let player join the same room as he was in before disconnection. I have seen this behavior in almost all multiplayer online...
- 23 Apr 2018, 21:13
- Forum: SFS2X Questions
- Topic: Automatic session removal only from standalone exe unity player
- Replies: 1
- Views: 3842
Automatic session removal only from standalone exe unity player
Hi, Have a look at the below logs... Session created: { Id: 126, Type: DEFAULT, Logged: No, IP: 122.174.47.217:50675 } on Server port: 9933 <---> 50675 Session removed: { Id: 126, Type: DEFAULT, Logged: No, IP: 122.174.47.217:50675 } Session created: { Id: 127, Type: DEFAULT, Logged: No, IP: 122.174...
- 04 Sep 2017, 10:51
- Forum: SFS2X Questions
- Topic: SFSEventType.USER_JOIN_ROOM playerlist/userlist size issues
- Replies: 5
- Views: 9495
Re: SFSEventType.USER_JOIN_ROOM playerlist/userlist size issues
thank you so much...that answered my question...
- 04 Sep 2017, 09:52
- Forum: SFS2X Questions
- Topic: SFSEventType.USER_JOIN_ROOM playerlist/userlist size issues
- Replies: 5
- Views: 9495
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...
- 02 Sep 2017, 11:47
- Forum: SFS2X Questions
- Topic: SFSEventType.USER_JOIN_ROOM playerlist/userlist size issues
- Replies: 5
- Views: 9495
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...
- 01 Sep 2017, 11:56
- Forum: SFS2X Questions
- Topic: SFSEventType.USER_JOIN_ROOM playerlist/userlist size issues
- Replies: 5
- Views: 9495
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...
- 01 Sep 2017, 10:05
- Forum: SFS2X Questions
- Topic: SFS2X handling response synchronization from different Threads
- Replies: 2
- Views: 4957
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.
1) Both players are in the same Room
2) I have attached a screenshot that explains the scenario.
- 01 Sep 2017, 06:47
- Forum: SFS2X Questions
- Topic: SFS2X handling response synchronization from different Threads
- Replies: 2
- Views: 4957
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...
- 22 Mar 2012, 07:49
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: Room not getting destroyed
- Replies: 3
- Views: 6690
Re: Room not getting destroyed
Yes,,,correct I have solved it..thanks
First I have to call room.removeUser(user)
then destroyRoom method call...
First I have to call room.removeUser(user)
then destroyRoom method call...
- 21 Mar 2012, 21:16
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: Room not getting destroyed
- Replies: 3
- Views: 6690
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 ...
- 21 Mar 2012, 21:11
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: Room not getting destroyed
- Replies: 3
- Views: 6690
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...
- 21 Mar 2012, 06:22
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: Room destroy
- Replies: 4
- Views: 7714
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....
Room Level extension....
- 20 Mar 2012, 07:29
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: Room destroy
- Replies: 4
- Views: 7714
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...