User avatar
Is there life beyond myServer?
Is there life beyond myServer?
Posts: 1224
Joined: Tue Dec 26, 2006 9:06 pm
Contact: Send private message

MLServer.cmdReceivePush broken?

Mon Jan 21, 2013 9:20 am

I noticed some funky things in my scripts after moving to ML4. I isolated it to a specific MLServer.cmdReceivePush command. The script was crashing out with nothing in the log (verbose or trace). I replaced the MLServer.cmdReceivePush with MLServer.cmdReceive and everything is working fine now. Has anything changed? My syntax is below:

MLServer.cmdReceivePush "MLCmd|ChangeScene~" & Client & "~" & ""

Following on to this - For some reason I was using a combination of the two commands in my scripts and I am not entirely sure why. Checking the wiki ( ... ipt_Plugin) I see the distinction outlined as pushing a command onto the queue on the server vs. sending the command to the server. Does this mean the non-push command executes immediately vs. the push waiting its turn in the queue? Thanks.
Simon D. S. Mason

User avatar
Posts: 11604
Joined: Fri Feb 07, 2003 8:56 am
Location: Newport Beach, CA
Contact: Send private message

Re: MLServer.cmdReceivePush broken?

Mon Jan 21, 2013 11:42 am

In MLServer 3 we had cmdReceivePush and cmdReceive. Push placed the command into the command queue and the other executed it immediately. cmdReceivePush was never really needed and was eliminated in MLServer 4. You should change all your scripts to use cmdReceive.

Return to “MLScript”

Who is online

Users browsing this forum: No registered users and 1 guest