Register forum user name Search FAQ

Gammon Forum

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 help me please

Someone help me please

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


Pages: 1  2 

Posted by Curious2   (47 posts)  Bio
Date Reply #15 on Thu 05 Feb 2009 02:53 AM (UTC)
Message
Quote:
What do you mean by this?


I mean my main eq recovery trigger omits from output then prints something else. In this case the "#####EQUILIBRIUM#####" message so it is easy to see that it obviously fired. I put to print("FIRED") in the other one, but it never fires.
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #16 on Thu 05 Feb 2009 02:59 AM (UTC)
Message
See http://mushclient.com/faq point 51.

If any trigger does an omit from output, then any notes done in trigger "send to script" are also omitted. You need to make this one "send to script (after omit)".

So really, it fired, you just didn't see your note. The trace feature (game menu -> trace) would show that. Also check the fire count on the trigger itself.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Curious2   (47 posts)  Bio
Date Reply #17 on Thu 05 Feb 2009 03:10 AM (UTC)
Message
You need to check send to script after omit on both triggers even though one doesn't omit?

Also trace doesn't show me anything at all.
Top

Posted by Curious2   (47 posts)  Bio
Date Reply #18 on Thu 05 Feb 2009 03:15 AM (UTC)

Amended on Thu 05 Feb 2009 03:24 AM (UTC) by Curious2

Message
Well that was the problem. I changed the other one to send to script after omit and it calls the function now. Finally! Something so simple took 3 hours to figure out. haha

By the way, thanks for the quick responses and the help!
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #19 on Thu 05 Feb 2009 03:37 AM (UTC)
Message
Quote:

Also trace doesn't show me anything at all.


Well that is quite amusing, you must admit. :-)

The trace output is noted to the output window, and thus is also omitted.

I just wrote a small plugin that you can quickly install, that will redirect trace output to a notepad window, thus getting around that particular problem.

http://www.gammon.com.au/forum/?id=9217

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #20 on Thu 05 Feb 2009 03:38 AM (UTC)
Message
Quote:

You need to check send to script after omit on both triggers even though one doesn't omit?


Yes indeed. The line is omitted, and therefore the problem with notes still applies.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #21 on Thu 05 Feb 2009 06:06 AM (UTC)
Message
Also see this for another plugin that shows trace output to a miniwindow: http://www.gammon.com.au/forum/?id=9218

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Curious2   (47 posts)  Bio
Date Reply #22 on Thu 05 Feb 2009 07:17 AM (UTC)

Amended on Thu 05 Feb 2009 07:19 AM (UTC) by Curious2

Message
Ahhhh no wonder trace didn't show!! That made me laugh. That sneaky omit has gotten me a couple times now.

By the way, I tried to import a file and there was an error and this is what showed in the window...

楌敮††㨹倠畬楧潮⁴硥数瑣摥栠牥⹥唠敳䘠汩⁥㸭倠畬楧獮琠潬摡瀠畬楧獮⠠牰扯敬湩琠楨⁳楦敬ഩ

Y


I'd really like to learn that language but I am having a hard enough time trying to learn all these programming languages at my age. I don't know how you guys can remember them all.

Edit: Well it won't show up but it is all Chinese.
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #23 on Thu 05 Feb 2009 07:58 AM (UTC)
Message
I presume you aren't actually asking a question about that. :P

I want to also point out that if you install one of those tracing plugins, you can use TraceOut for debugging. If tracing is turned on, the message sent to TraceOut also appears. This lets you put debugging stuff in your scripts, and not have it show up, unless you need it (by turning Trace on).


http://www.gammon.com.au/scripts/doc.php?function=TraceOut


- 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.


67,011 views.

This is page 2, subject is 2 pages long:  [Previous page]  1  2 

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

Go to topic:           Search the forum


[Go to top] top

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