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
➜ Suggestions
➜ Use trigger path string if it has no label
Use trigger path string if it has no label
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Kahenraz
(75 posts) Bio
|
Date
| Thu 12 Jul 2018 07:11 AM (UTC) |
Message
| Run-time error
World: Aardwolf
Immediate execution
[string "Trigger: "]:15: attempt to index a nil value
stack traceback:
[string "Trigger: "]:15: in main chunk
It took me a while to locate this trigger since it didn't have a label. It would help if the path was used to help locate the trigger there is no label.
Maybe:
[string "Trigger (path): (ungrouped) -> Progress thus far: (.+)"]
| Top |
|
Posted by
| Fiendish
USA (2,534 posts) Bio
Global Moderator |
Date
| Reply #1 on Fri 13 Jul 2018 03:28 PM (UTC) Amended on Fri 13 Jul 2018 03:38 PM (UTC) by Fiendish
|
Message
| Hmm. Wasn't there a change a while back to include the trigger match pattern in errors? I must be misremembering, because I can't find any note about it. |
https://github.com/fiendish/aardwolfclientpackage | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #2 on Sat 14 Jul 2018 05:33 AM (UTC) |
Message
| A work-around is to make the trigger call a script in a script file (and not send-to-script) which would then give you the script function name and a line number. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #3 on Sat 14 Jul 2018 05:35 AM (UTC) |
Message
| Another thing you can do is turn on Trace (Game menu -> Trace) which tells you which triggers are being called. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | 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.
13,818 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top