Only global variables are visible inside a room v1.1.5

Post here your questions about the Objective-C API for SFS2X

Moderators: Lapo, Bax

hasbean
Posts: 43
Joined: 02 Sep 2009, 11:39

Only global variables are visible inside a room v1.1.5

Postby hasbean » 27 Apr 2013, 07:30

If I create 2 variables, one global, and one local, I will see only one of them when I'm outside the room, which is fine.

However, onRoomJoin, the local variable is passed to the client from what I see in the debug, but they do not show up in the event's [room getVariables]. In fact, they don't show up at all until they're changed, THEN they show up in [room getVariables].

Smartfox debug:

Code: Select all

{Dump: }

   (sfs_array) r:
      (int)2
      (utf_string)hasbean's room
      (utf_string)default
      (bool)1
      (bool)0
      (bool)0
      (short)0
      (short)20
      (sfs_array)
         (sfs_array)
            (utf_string)seat1
            (byte)1
            (bool)1
            (bool)1
            (bool)1
         
         (sfs_array)
            (utf_string)name1
            (byte)4
            (utf_string)Empty
            (bool)1
            (bool)1
         
         (sfs_array)
            (utf_string)seat2
            (byte)1
            (bool)1
            (bool)1
            (bool)1
         
         (sfs_array)
            (utf_string)name2
            (byte)4
            (utf_string)Empty
            (bool)1
            (bool)1
         
         (sfs_array)
            (utf_string)seat3
            (byte)1
            (bool)1
            (bool)1
            (bool)1
         
         (sfs_array)
            (utf_string)name3
            (byte)4
            (utf_string)Empty
            (bool)1
            (bool)1
         
         (sfs_array)
            (utf_string)seat4
            (byte)1
            (bool)1
            (bool)1
            (bool)1
         
         (sfs_array)
            (utf_string)name4
            (byte)4
            (utf_string)Empty
            (bool)1
            (bool)1
         
      
      (short)1
      (short)20


[room getVariables]

Code: Select all

2013-04-27 10:07:31.707 Hand[58613:c07] var seat1, type Bool, val [RVar: seat1, type: Bool, value: 1, isPriv: YES]
2013-04-27 10:07:31.707 Hand[58613:c07] var seat3, type Bool, val [RVar: seat3, type: Bool, value: 1, isPriv: YES]
2013-04-27 10:07:31.707 Hand[58613:c07] var seat2, type Bool, val [RVar: seat2, type: Bool, value: 1, isPriv: YES]
2013-04-27 10:07:31.708 Hand[58613:c07] var seat4, type Bool, val [RVar: seat4, type: Bool, value: 1, isPriv: YES]


the "nameX" variables are missing.

I'm not sure if I messed something up, but I've previously used 1.0.3 and it seemed to work fine back then.
User avatar
A51Integrated
Posts: 240
Joined: 03 Jan 2012, 19:55
Location: Toronto, Canada
Contact:

Re: Only global variables are visible inside a room v1.1.5

Postby A51Integrated » 29 Apr 2013, 14:48

We're looking into this. Stand by....
A51 Integrated
http://a51integrated.com / +1 416-703-2300
hasbean
Posts: 43
Joined: 02 Sep 2009, 11:39

Re: Only global variables are visible inside a room v1.1.5

Postby hasbean » 03 May 2013, 06:15

Anything new on this? It's been holding back my app's update.
andreyv
Posts: 1
Joined: 03 May 2013, 12:16

Re: Only global variables are visible inside a room v1.1.5

Postby andreyv » 03 May 2013, 12:48

I encounter with the same problem on ios client api v1.1.5. The version 1.1.2 works fine.
User avatar
A51Integrated
Posts: 240
Joined: 03 Jan 2012, 19:55
Location: Toronto, Canada
Contact:

Re: Only global variables are visible inside a room v1.1.5

Postby A51Integrated » 04 May 2013, 19:34

Yes. I think this issue was introduced in a recent API change (1.1.4). 1.1.3 should work fine as well. Still looking into the best approach for this.
A51 Integrated

http://a51integrated.com / +1 416-703-2300
hasbean
Posts: 43
Joined: 02 Sep 2009, 11:39

Re: Only global variables are visible inside a room v1.1.5

Postby hasbean » 16 May 2013, 17:57

Is there a link to the old version at least so I can release my game?
User avatar
A51Integrated
Posts: 240
Joined: 03 Jan 2012, 19:55
Location: Toronto, Canada
Contact:

Re: Only global variables are visible inside a room v1.1.5

Postby A51Integrated » 16 May 2013, 20:22

After a few private messages with the poster of this thread, it seems that the bug existed in previous versions as well. We're still looking into this. If there's a version of the API that you know works, please let me know and I can get it to you.
A51 Integrated

http://a51integrated.com / +1 416-703-2300
hasbean
Posts: 43
Joined: 02 Sep 2009, 11:39

Re: Only global variables are visible inside a room v1.1.5

Postby hasbean » 27 May 2013, 17:12

I really just want the ability to run this on armv7s, so v1.1.1 is good enough for me.
joha
Posts: 8
Joined: 22 May 2013, 04:56

Re: Only global variables are visible inside a room v1.1.5

Postby joha » 10 Jun 2013, 18:08

Are you going to release soon a new version of the library with the fix for that?
Thanks
User avatar
Lapo
Site Admin
Posts: 23007
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Only global variables are visible inside a room v1.1.5

Postby Lapo » 11 Jun 2013, 10:00

Yes, we're currently working on a new release.
We had a change of developers on the iOS front so that's why it's taking longer than expected.
I will keep you posted.
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SFS2X iPhone / iPad / OSX API”

Who is online

Users browsing this forum: No registered users and 10 guests