[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]  General
. . -> [Subject]  Someone's zMUD problems became my MUSH problem!
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Someone's zMUD problems became my MUSH problem!

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


Posted by Sleipner   Sweden  (2 posts)  [Biography] bio
Date Fri 12 Dec 2008 07:06 AM (UTC)
Message
Someone posted a problem with their zMUD screwing up, and now it did the same to me, but with MUSH!

Here's what he/she/it posted;


Run-time error
Plugin: xStats_Detector (called from world: Aardwolf)
Function/Sub: process_prompt called by trigger
Reason: processing trigger ""
[string "Plugin"]:84: bad argument #1 to 'match' (string expected, got nil)
stack traceback:
        [C]: in function 'match'
        [string "Plugin"]:84: in function 'do_pair'
        [string "Plugin"]:113: in function <[string "Plugin"]:91>
Error context in script:
  80 :     
  81 : require "var"
  82 : 
  83 : function do_pair (item)
  84*:   return string.match (item, "(%d+)%/(%d+)")
  85 : end -- do_pair
  86 :    
  87 : function capitalize (s)
  88 :   return string.sub (s, 1, 1):upper () .. string.sub (s, 2):lower ()


It made a red bar with the line:

Trigger function "process_prompt" not found or had a previous error.

This pops up whenever i hit enter or input a command.
It's after the prompt appears. Anyone know how to fix this?
[Go to top] top

Posted by WillFa   USA  (525 posts)  [Biography] bio
Date Reply #1 on Fri 12 Dec 2008 07:32 AM (UTC)
Message
change the line to read:


return string.match ( (item or ""), "(%d+)%/(%d+)")


I haven't gone through the stats detector plugin to see how a nil is sneaking through, but that will circumvent the error.
[Go to top] top

Posted by Sleipner   Sweden  (2 posts)  [Biography] bio
Date Reply #2 on Fri 12 Dec 2008 07:38 AM (UTC)
Message
Thanks!
Dunno if that's what did it, or me re-booting MUSH after inserting what you wrote, but any of it did the trick! =)
[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.


3,072 views.

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.

[Home]


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]