I am, at this point, just trying to get handleRequest to post a trace.
My code is simple enough :
Unity :
Code: Select all
smartFoxClient.SendXtMessage("testing","TONY",null,SmartFoxClient.XTMSG_TYPE_STR);
AS :
Code: Select all
function init()
{
trace("Initing testScript");
}
function handleRequest(cmd, params, user, fromRoom)
{
trace("Hello world");
}
When I call the Unity line I get this :
[ WARNING ] [id: 15] (SmartFoxServer.readIncomingMessages): Message exceed allowed max length! (0 bytes) from > /127.0.0.1
The thing is this, if instead of a null value I give it some object such as this, from some post on the forums :
Code: Select all
Hashtable msg = new Hashtable();
msg["type"] = "1";
msg["id"] = "12345";
msg["name"] = "Cortana";
smartFoxClient.SendXtMessage("testing","TONY",msg,SmartFoxClient.XTMSG_TYPE_STR);
I get nothing on the server console(Win 7/64), log file, or AdminTool. Nothing. I disabled all firewalls, AV and anything else that I could even imagine might interfere with this, but no luck.
I know the extension loads, I get the init trace. The extension is set to the zone where the user is joining, I am still having issues with rooms but the user IS in a room when the sendExtMessage function is called.
Any ideas?
Thanks.