Search found 9 matches

by Areg
14 Jul 2011, 09:37
Forum: SFS2X Questions
Topic: Can't get PlayerToSpectator to work
Replies: 5
Views: 6618

As you can see from my first post, I flag the room as a game room during it's creation. I use an instance of CreateRoomSettings to create a room with the settings that I want. And I've configured it so that the room(s) should be flagged as game rooms:

Code: Select all

crs.setGame(true);
by Areg
13 Jul 2011, 13:47
Forum: SFS2X Questions
Topic: Can't get PlayerToSpectator to work
Replies: 5
Views: 6618

1) The server version is Version 2.0.0.RC1b 2) No, there are no errors on server side 3) I'm not sure what do you mean by that, so I'll elaborate on what I do on client side. I'm using the iOS client library, and to handle server messages I implement the corresponding methods from the ISFSEvents pro...
by Areg
12 Jul 2011, 06:25
Forum: SFS2X Questions
Topic: Can't get PlayerToSpectator to work
Replies: 5
Views: 6618

Can't get PlayerToSpectator to work

If i try to make a player a spectator either by sending PlayerToSpectator request from the client or using the SFSApi playerToSpectator method, the user is not removed from the room's players list. The room is created dynamically by the following code: CreateRoomSettings crs = new CreateRoomSettings...
by Areg
16 Jun 2011, 11:37
Forum: SFS2X iPhone / iPad / OSX API
Topic: [INFSmartFoxiPhoneClientAPI_2X] Crash on decodeSFSObject
Replies: 10
Views: 16226

I've finally figured out the problem. If there were too many rooms/variables, then the packet size exceeded the protocol compression threshold. So, I was receiving compressed data on the iPhone side. Strangely, the client API could not figure it out and expected the incoming data to be plain text. F...
by Areg
14 Jun 2011, 07:06
Forum: SFS2X iPhone / iPad / OSX API
Topic: [INFSmartFoxiPhoneClientAPI_2X] Crash on decodeSFSObject
Replies: 10
Views: 16226

I did some experiments, and here is what I have found. The problem is not in te dynamically created rooms. Even if I create the statically (using the admin tool), then the crash happens if the number of rooms in a zone is >= 10. But I have set the "maximum rooms for zone" to be 500. Is it ...
by Areg
14 Jun 2011, 06:09
Forum: SFS2X iPhone / iPad / OSX API
Topic: [INFSmartFoxiPhoneClientAPI_2X] Crash on decodeSFSObject
Replies: 10
Views: 16226

Just in case: the API version that I'm using is 0.8.6.
by Areg
13 Jun 2011, 12:07
Forum: SFS2X iPhone / iPad / OSX API
Topic: [INFSmartFoxiPhoneClientAPI_2X] Crash on decodeSFSObject
Replies: 10
Views: 16226

I have got a similar problem in my iPhone app. Unfortunately, I am not sure which library do you refer by the last library by Lapo... I am using the client API library, which has been installed by default with the SFS2X version for Mac OS 10.5 +. But the crash happens only when I dynamically create ...
by Areg
06 Jun 2011, 08:18
Forum: SFS2X Questions
Topic: Extension Issue
Replies: 4
Views: 8109

I've managed to figure out the problem. I wanted to use the SimpleChat example. I have created a new zone on the server (MyZone), and changed the zone parameter in the config.xml file from "SimpleChat" to "MyZone". It turned out that the login procedure did not use the config fil...
by Areg
06 Jun 2011, 07:52
Forum: SFS2X Questions
Topic: Extension Issue
Replies: 4
Views: 8109

I have the same problem using the SFS client library for iPhone. I try to send an extension request like this: SFSObject* params = [SFSObject newInstance]; [params putInt:@"n1" value:1]; [params putInt:@"n2" value:2]; [smartFox send:[ExtensionRequest requestWithExtCmd:@"add&...

Go to advanced search