Because the network is not good, so client cannot get the value of room or user variables when the event is triggered, how could I fix this?
there were 3 players, 2 of them could get the value of room or user variables, but another one who is in AU sometimes cannot get the value
Search found 50 matches
- 22 Aug 2017, 11:39
- Forum: SFS2X Questions
- Topic: Cannot get variable value in in bad network condition
- Replies: 1
- Views: 3429
- 10 Aug 2017, 23:34
- Forum: SFS2X Questions
- Topic: Wried error about user and room variables
- Replies: 1
- Views: 3533
Wried error about user and room variables
Below is how I initialize sfs void InitSfs () { sfs = SmartFoxConnection.Connection; sfs.AddEventListener (SFSEvent.EXTENSION_RESPONSE, OnExtensionResponse); sfs.AddEventListener (SFSEvent.ADMIN_MESSAGE, OnAdminMsg); sfs.AddEventListener (SFSEvent.CONNECTION_LOST, OnConnectionLost); sfs.AddEventList...
- 07 Aug 2017, 16:53
- Forum: SFS2X Questions
- Topic: Room.UserList
- Replies: 2
- Views: 4397
Re: Room.UserList
thanks man, that come in handy
- 07 Aug 2017, 14:13
- Forum: SFS2X Questions
- Topic: Room.UserList
- Replies: 2
- Views: 4397
Room.UserList
Is this list has any kind of order, or not? We need to know who is the 1st one join the room and who is 2nd one
- 04 Aug 2017, 12:39
- Forum: SFS2X Questions
- Topic: the order of user and room variable
- Replies: 4
- Views: 6046
Re: the order of user and room variable
noted, we're translating all SFS2X docs into Chinese, and therefore I must make sure that I understand correctly.
- 03 Aug 2017, 22:40
- Forum: SFS2X Questions
- Topic: the order of user and room variable
- Replies: 4
- Views: 6046
the order of user and room variable
Below is how I create user and room variables List<UserVariable> vars = Arrays.asList ( new SFSUserVariable("seat", uid), new SFSUserVariable("id", uid), new SFSUserVariable("headurl", headurl), new SFSUserVariable("nickname", nickname), new SFSUserVariable(&q...
- 03 Aug 2017, 16:38
- Forum: SFS2X Questions
- Topic: How could I know where I'm
- Replies: 3
- Views: 5028
Re: How could I know where I'm
Thanks, this is really a stupid question to ask.
how could I miss this one, I looked SmartFox Properties.
how could I miss this one, I looked SmartFox Properties.
- 03 Aug 2017, 16:19
- Forum: SFS2X Questions
- Topic: How could I know where I'm
- Replies: 3
- Views: 5028
How could I know where I'm
which one is the current room? It's not the first or the last one on the list. List<Room> rooms = sfs.RoomList; Is there a way to get which room I'm in? The game will run another c# script without SFSEvent.ROOM_JOIN when uer joined a game room, or I have to pass a Room object from another c# script ...
- 03 Aug 2017, 14:00
- Forum: SFS2X Questions
- Topic: room extension
- Replies: 4
- Views: 5831
Re: room extension
Thanks man.
- 03 Aug 2017, 12:03
- Forum: SFS2X Questions
- Topic: room extension
- Replies: 4
- Views: 5831
Re: room extension
got it, thanks. and I still want to know where can I find a list of BaseEvent Params, I've known some, like below string cmd = (string)evt.Params["cmd"]; ISFSObject objin = (SFSObject)evt.Params["params"]; theRoom = (Room)evt.Params["room"];
- 02 Aug 2017, 22:51
- Forum: SFS2X Questions
- Topic: room extension
- Replies: 4
- Views: 5831
room extension
I have a room extension to control the game, but I've just realized that I cannot communicate with zone extension anymore when I'm in the room which has room extension, how could I communicate with zone extension? I cannot find a list of BaseEvent Params, I only know a few of them, like cmd, room, u...
- 02 Aug 2017, 22:02
- Forum: SFS2X Questions
- Topic: User variable
- Replies: 11
- Views: 11481
Re: User variable
Thanks man, you rock
- 02 Aug 2017, 13:21
- Forum: SFS2X Questions
- Topic: User variable
- Replies: 11
- Views: 11481
Re: User variable
I cannot find any putBool or putInt relate to room variable private void setSomeVariables(Room room) { List<RoomVariable> listOfVars = new ArrayList<RoomVariable>(); listOfVars.add( new SFSRoomVariable("bgImage", "coolBackground.jpg") ); listOfVars.add( new SFSRoomVariable("...
- 02 Aug 2017, 13:00
- Forum: SFS2X Questions
- Topic: User variable
- Replies: 11
- Views: 11481
Re: User variable
thanks
- 02 Aug 2017, 01:07
- Forum: SFS2X Questions
- Topic: User variable
- Replies: 11
- Views: 11481
Re: User variable
I have another one, on server side, user variable and room variable are like key-value, I could put any type of variable, but on client side, I find some methods like GetBoolValue, GetDoubleValue, I'm a little confused, those methods only convert variable type? server side new SFSRoomVariable("...