Page 3 of 3

Posted: 03 Dec 2008, 05:40
by ThomasLund
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.

Posted: 07 Dec 2008, 21:02
by ThomasLund
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?

Posted: 08 Dec 2008, 06:35
by at
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.

Posted: 08 Dec 2008, 06:56
by ThomasLund
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")));
            }