Hello all:
In one of my plugins, I had originally set a function to broadcast something when it was done, with the intention of having the action set a flag in another plugin. I tried writing something, and it gave me an error, so I tried writing a simple test function to test the activatino of the BroadcastPlugin function.
I have an alias in Plugin2 that activates the following script:
In Plugin1, I have the following OnPluginBroadcast function written:
Even though these functions look almost exactly like the examples that were given, MUSH is giving me the following error:
Even weirder, I had it set to world.BroadcastPlugin(1, "test string")
and had OnPluginBroadcast do:
world.note(text)
This ended up with "test string" showing up in my window, but it still gave me the error.
Anyone who has had experience with these functions able to help?
-Elin
In one of my plugins, I had originally set a function to broadcast something when it was done, with the intention of having the action set a flag in another plugin. I tried writing something, and it gave me an error, so I tried writing a simple test function to test the activatino of the BroadcastPlugin function.
I have an alias in Plugin2 that activates the following script:
def test1 (name, match, wildcards):
world.BroadcastPlugin(1, "teststring")
In Plugin1, I have the following OnPluginBroadcast function written:
def OnPluginBroadcast (msg, id, name, text):
world.note("Message received.")
Even though these functions look almost exactly like the examples that were given, MUSH is giving me the following error:
Quote:
Error number: -2147352567
Event: Execution of line 206 column 0
Description: Traceback (most recent call last):
File "<Script Block >", line 206, in test1
world.BroadcastPlugin(1, "teststring")
File "<COMObject world>", line 2, in BroadcastPlugin
COM Error: Type mismatch. (0x-7ffdfffb)
Line in error:
world.BroadcastPlugin(1, "teststring")
Called by: Immediate execution
Error number: -2147352567
Event: Execution of line 206 column 0
Description: Traceback (most recent call last):
File "<Script Block >", line 206, in test1
world.BroadcastPlugin(1, "teststring")
File "<COMObject world>", line 2, in BroadcastPlugin
COM Error: Type mismatch. (0x-7ffdfffb)
Line in error:
world.BroadcastPlugin(1, "teststring")
Called by: Immediate execution
Even weirder, I had it set to world.BroadcastPlugin(1, "test string")
and had OnPluginBroadcast do:
world.note(text)
This ended up with "test string" showing up in my window, but it still gave me the error.
Anyone who has had experience with these functions able to help?
-Elin