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);Code: Select all
function init()
{
trace("Initing testScript");
}
function handleRequest(cmd, params, user, fromRoom)
{
trace("Hello world");
}[ 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 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.