[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Bug reports
. . -> [Subject]  Duplicate world.Send's
Home  |  Users  |  Search  |  FAQ
Register forum user name
Forgotten password?

Duplicate world.Send's

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Posted by Ked   Russia  (524 posts)  [Biography] bio
Date Fri 06 May 2005 01:57 PM (UTC)
I've had this problem pop up before, but I could never link it to anything in particular. The problem is that world.Send commands seem to sometimes "breed", meaning that a single call to world.Send in a script results in more than one call seemingly happening - everything gets sent twice in a row. Now I suspect that it has something to do with an error that I seem to get every time before that starts happening.

I connect, send some commands from OnWorldConnect routine, some of them go through, and then the connection is dropped with a "Cannont decompress distance code from MUD" error message. I re-connect, the same thing happens. Finally, I realize that it must be due to one of my plugins, uninstall the plugin, and connect again. But now, after a portion of the commands in my OnWorldConnect function go through normally, the remaining two commands are repeated three times each. My suspicion is that 3 = 2 failed connections + the last successful one.

The cause of the connection error, I think, was this function in one of my plugins:

def OnPluginSend(strText):
    if freeze:
        if strText.lower() in ['nw','ne','n','north','se','sw','s','south',
            return False
            return True
        return True

And more exactly the world.Tell, I believe.
[Go to top] top

Posted by Nick Gammon   Australia  (21,607 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Sun 08 May 2005 01:24 AM (UTC)
I wouldn't do that myself. The Tell puts stuff in the output buffer without a newline, and doing that in the middle of capturing data being sent out may conceivably set up some sort of strange race condition.

I would append to notepad or something like that instead.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum

[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]