[.NET] Found issues and fixes

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

Moderators: Lapo, Bax

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

Postby ThomasLund » 03 Dec 2008, 05:40

Great - thanks Marco for the clarification.

So its for now a minor annoyance having to look up your server IP rather than the hostname when you develop your game.

Something most if not all can (and must :twisted: ) live with for now.
ThomasLund
Posts: 1297
Joined: 14 Mar 2008, 07:52
Location: Sweden

Postby ThomasLund » 07 Dec 2008, 21:02

OK - a really annoying one showed up today.

Neither room variables or user variables seem to work!

So while I did fix it in my local devel copy, I just wanted to confirm that none of you have used these and gotten them working, right?
at
Posts: 19
Joined: 17 Oct 2008, 08:43

Postby at » 08 Dec 2008, 06:35

ThomasLund wrote:OK - a really annoying one showed up today.

Neither room variables or user variables seem to work!

So while I did fix it in my local devel copy, I just wanted to confirm that none of you have used these and gotten them working, right?


Hi!

I use user variables and they work fine for me. Concerning room variables, I use them only on the server-side, and I did not test them on the client.
ThomasLund
Posts: 1297
Joined: 14 Mar 2008, 07:52
Location: Sweden

Postby ThomasLund » 08 Dec 2008, 06:56

Ahhh - damn. So a small bug has triggered a bigger rewrite in my end. Hehehe. I better roll back to what worked already.

The bugfix is then solely a matter of HandleJoinOK.

The XML node is wrong and doesnt match. Change it from:

Code: Select all

            // Handle Room Variables
            if (XmlUtil.GetSingleNode(roomVarsXml, ".") != null)
            {
                currRoom.ClearVariables();
                PopulateVariables(currRoom.GetVariables(), roomVarsXml);
            }


to

Code: Select all

            // Handle Room Variables
         if ( XmlUtil.GetSingleNode(xml, "body/vars") != null )
            {
                currRoom.ClearVariables();
            currRoom.SetVariables(PopulateVariables(currRoom.GetVariables(), XmlUtil.GetSingleNode(xml, "body")));
            }

Return to “.Net / Unity3D API”

Who is online

Users browsing this forum: No registered users and 43 guests