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


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Plugins
. . -> [Subject]  Aardwolf Consider all miniwindow.

Aardwolf Consider all miniwindow.

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


Pages: 1  2  3 4  5  6  

Posted by Faustiano   (2 posts)  [Biography] bio
Date Reply #30 on Sun 06 Mar 2011 08:23 PM (UTC)
Message
First of all, let me say I love this plug-in. However, while its not a huge issue, I wanted to know if anyone else was experiencing the plug-in failing to function after being attacked.

I have noticed if I walk into a room with aggros, that when I leave, the plug-in no longer responds, and I have to reinitialize it. Its not too bad unless I am in an area with a lot of aggros.

Any ideas?

Thanks
[Go to top] top

Posted by Nick Gammon   Australia  (22,973 posts)  [Biography] bio   Forum Administrator
Date Reply #31 on Sun 06 Mar 2011 08:39 PM (UTC)
Message
I seem to recall this is a prompt issue. It sends a "consider all" and waits for the end of the lists of mobs, by detecting the prompt. If you have a "battle prompt" it may not realize the list is over and be collecting a huge list of things in its internal buffer.

Try skimming back through this thread for a post along those lines, or if you feel confident, look at the difference between your normal prompt and battle prompt, and see if that might be what it is (and maybe add another trigger into the plugin).

- Nick Gammon

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

Posted by Faustiano   (2 posts)  [Biography] bio
Date Reply #32 on Mon 07 Mar 2011 02:09 AM (UTC)
Message
Hi Nick,
Thanks for the help. I turned off the battle prompt and it works now.
[Go to top] top

Posted by Androg   USA  (7 posts)  [Biography] bio
Date Reply #33 on Wed 13 Jul 2011 10:25 PM (UTC)
Message
I seem to be having an issue with some mobs in some rooms not getting captured into the consider window. Any ideas on why that might be happening?

-Androg
[Go to top] top

Posted by Nick Gammon   Australia  (22,973 posts)  [Biography] bio   Forum Administrator
Date Reply #34 on Thu 14 Jul 2011 12:15 AM (UTC)
Message
Can you post examples please?

- Nick Gammon

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

Posted by Nick Gammon   Australia  (22,973 posts)  [Biography] bio   Forum Administrator
Date Reply #35 on Thu 14 Jul 2011 01:12 AM (UTC)
Message
What I meant was, disable or remove the plugin, then go to the problem zone, do a "consider all" and post the resulting text (copy and paste).

Then enable the plugin and do it again. Then we can see which lines are failing.

- Nick Gammon

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

Posted by Androg   USA  (7 posts)  [Biography] bio
Date Reply #36 on Thu 14 Jul 2011 01:20 AM (UTC)
Message
Disabled

consider all
(R) A blood beetle chuckles at the thought of you fighting it.
(R) Best run away from Some muck while you can!
(H) Some quicksand chuckles at the thought of you fighting it.
(H) Some quicksand chuckles at the thought of you fighting it.

Enabled

conw
echo nhm
(R) Best run away from Some muck while you can!

Still enabled

con all
(R) A blood beetle chuckles at the thought of you fighting it.
(R) Best run away from Some muck while you can!
(H) Some quicksand chuckles at the thought of you fighting it.
(H) Some quicksand chuckles at the thought of you fighting it.

That help at all or am I still giving you the wrong info? Thanks!
[Go to top] top

Posted by Androg   USA  (7 posts)  [Biography] bio
Date Reply #37 on Thu 14 Jul 2011 01:24 AM (UTC)
Message
I should point out... I'm not getting any script errors whatsoever. The only thing I'm getting is some mobs left out of the consider window.
[Go to top] top

Posted by Nick Gammon   Australia  (22,973 posts)  [Biography] bio   Forum Administrator
Date Reply #38 on Thu 14 Jul 2011 06:09 AM (UTC)
Message
What is the (R) and (H) stuff? The plugin is looking for:


Best run away from * while you can!


Not:


(R) Best run away from * while you can!



- Nick Gammon

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

Posted by Androg   USA  (7 posts)  [Biography] bio
Date Reply #39 on Thu 14 Jul 2011 11:20 AM (UTC)

Amended on Thu 14 Jul 2011 11:23 AM (UTC) by Androg

Message
Those are short flags. (R) is (Red Aura) (H) is (Hidden), (G) (Golden Aura) (W) (White Aura) (I) (Invisibile) etc etc (help auras in the game has a list of them). I did try this with long flags and short flags and the same mobs weren't showing up in the list. Maybe it's some setting on some of the mobs in the game, I might ask Lasher if he has an idea, too.

Do you think I should try changing the triggers to match on *Best run while you can!, etc?
[Go to top] top

Posted by Nick Gammon   Australia  (22,973 posts)  [Biography] bio   Forum Administrator
Date Reply #40 on Thu 14 Jul 2011 10:02 PM (UTC)
Message
Yes I think that will help. And it will work on some already, eg.


 match="* looks a little worried about the idea."


Note how that already starts with an asterisk, so it would match, say:


(R) A blood beetle looks a little worried about the idea.


In that case the * would match: "(R) A blood beetle".

So I would add the asterisk to the ones that don't already have one at the start.

- Nick Gammon

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

Posted by Androg   USA  (7 posts)  [Biography] bio
Date Reply #41 on Thu 14 Jul 2011 10:59 PM (UTC)
Message
That seems to have solved it. * with no space after it, I should say. I tried:

match="* Best run away from * while you can!"

but match="*Best run away from * while you can!" is what it needs (as you would have probably told me.)

Thanks for the help on this. I'll probably have a question about modifying this script for using study instead of consider (so it shows players as well as mobs)!

Thanks again...

-Androg
[Go to top] top

Posted by Raizus   (2 posts)  [Biography] bio
Date Reply #42 on Thu 29 Sep 2011 05:56 PM (UTC)
Message

Run-time error
Plugin: Aardwolf_Consider_Miniwindow (called from world: Aardwolf)
Function/Sub: execute_command called by Plugin Aardwolf_Consider_Miniwindow
Reason: Executing plugin Aardwolf_Consider_Miniwindow sub execute_command
[string "Plugin"]:314: attempt to concatenate local 's' (a nil value)
stack traceback:
        [string "Plugin"]:314: in function <[string "Plugin"]:307>
Error context in script:
 310 :         return
 311 :     end
 312 : 
 313 :     s = s:match ("^(%w+)%:%d+$")
 314*:     Execute (default_command .. " " .. s)
 315 :     ColourTell ("white", "blue", default_command .. " " .. s)
 316 :     ColourNote ("", "black", " ")
 317 : 
 318 : end -- execute_command


i get this error whenever i try to kill a monster with - in it's name.
i.e. A young half-griffon snickers nervously. (+2 to +3)

any help in resolving this error is appreciated.
[Go to top] top

Posted by Nick Gammon   Australia  (22,973 posts)  [Biography] bio   Forum Administrator
Date Reply #43 on Fri 30 Sep 2011 12:27 PM (UTC)
Message
You probably need to change the match regular expression here:


function execute_command (id, s)

    if not s then
        return
    end

    s = s:match ("^(%w+)%:%d+$")
    Execute (default_command .. " " .. s)
    ColourTell ("white", "blue", default_command .. " " .. s)
    ColourNote ("", "black", " ")

end -- execute_command


The part %w+ only matches "words". You could make that line to be something like:


    s = s:match ("^([%w']+)%:%d+$")


That should match words and apostrophes.

- Nick Gammon

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

Posted by Xaroth   (2 posts)  [Biography] bio
Date Reply #44 on Fri 03 Feb 2012 09:14 PM (UTC)

Amended on Fri 03 Feb 2012 09:15 PM (UTC) by Xaroth

Message
This plugin looks to be exactly what I have been searching for, but I cannot get it to install. I'm getting the following error:


Compile error
Plugin: Aardwolf_Consider_Window (called from world: Aardwolf)
Immediate execution
[string "Plugin"]:350: invalid escape sequence near '"[%w'
Error context in script:
 346 :     mob = nil
 347 :     for k,  v in pairs (consider_messages) do
 348 :         mob = string.match (line, k)
 349 :         if keyword_position == "end" then
 350*:             sPat = "[%w\-]+$"
 351 :         else
 352 :             sPat = "^[%w\-]+"
 353 :         end
 354 :         if mob then
[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.


222,778 views.

This is page 3, subject is 6 pages long:  [Previous page]  1  2  3 4  5  6  [Next page]

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 HostDash]