Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ General
➜ Someone's zMUD problems became my MUSH problem!
Someone's zMUD problems became my MUSH problem!
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Sleipner
Sweden (2 posts) 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? | Top |
|
Posted by
| WillFa
USA (525 posts) 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. | Top |
|
Posted by
| Sleipner
Sweden (2 posts) 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! =) | 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.
12,731 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top