Problem with BuddyListUpdate - buddy argument not updated

Post here all your questions related with SmartFoxServer .Net/Unity3D API

Moderators: Lapo, Bax

Molix
Posts: 40
Joined: 01 Apr 2009, 19:34
Location: Toronto, ON, Canada

Problem with BuddyListUpdate - buddy argument not updated

Postby Molix » 23 Nov 2009, 17:08

Hello,

I am using buddy variables, and when my OnBuddyListUpdate delegate is called, the "buddy" parameter does not contain the information in the message it just received.

e.g. when receiving this:

Code: Select all

[SFS DEBUG] [ RECEIVED ]: <msg t='sys'><body action='bUpd' r='-1'><b s='1' i='0'><n><![CDATA[XXXX XXXXXXX]]></n><vs><v n='rm'><![CDATA[Big Tree Forest]]></v></vs></b></body></msg>, (len: 153)

this is called:

Code: Select all

public void OnBuddyListUpdate( Buddy buddy )
    {
        Debug.Log( "OnBuddyListUpdate: " );
        foreach( string v in buddy.GetVariables().Keys )
        {
            Debug.Log( "\t" + v + " --- " + buddy.GetVariable( v ) );
        }

        SendMessage( "BuddyListUpdate", buddy );
    }

and the previous value of the variable 'rm' is printed out.

Am I using the API incorrectly? I assumed the buddy parameter would contain the updated buddy, not the old one. Do I need to get it from somewhere else?

Thanks in advance.
Molix
Posts: 40
Joined: 01 Apr 2009, 19:34
Location: Toronto, ON, Canada

Postby Molix » 23 Nov 2009, 17:13

Well, look at that. As I was typing this, a new version came out. I'll try out 1.2.4 and report back if that fixes it!
Molix
Posts: 40
Joined: 01 Apr 2009, 19:34
Location: Toronto, ON, Canada

Postby Molix » 23 Nov 2009, 17:23

I dropped in the 1.2.4 DLL and it works like a charm.

Of course you realize that now I will expect all my issues to have patches available simultaneous with the bug report.

;)

Thanks!
ThomasLund
Posts: 1297
Joined: 14 Mar 2008, 07:52
Location: Sweden

Postby ThomasLund » 23 Nov 2009, 17:41

Happy to set the bar impossibly high :-D

Return to “.Net / Unity3D API”

Who is online

Users browsing this forum: No registered users and 1 guest