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 ➜ Plugins ➜ Aardwolf spellups plugin

Aardwolf spellups plugin

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


Pages: 1  2 3  4  

Posted by Bleahy   (1 post)  Bio
Date Reply #15 on Fri 08 Aug 2008 01:40 PM (UTC)
Message
I just tried to get the spellup plugin to work but received an entire chunk of errors. Wondering if anyone has any hints of enlightenment.

In my main window:

Run-time error
Plugin: Aardwolf_Spellups (called from world: aardwolf)
Immediate execution
[string "Plugin"]:22: attempt to index global 'os' (a nil value)
stack traceback:
[string "Plugin"]:22: in main chunk
Error context in script:
18 : stats = { position = "0", mana = "0", moves = "0" } -- table will be replaced by Stats_Detector plugin
19 :
20 : fighting = false
21 : playing = false
22*: last_buff = os.time ()
23 :
24 : -- the next 3 items are saved to the plugin state file
25 :
26 : -- known spells and recoveroes indexed by number

In a note opened up as a window of mushclient:

Line 1673: Error parsing script (problem in this file)

Really not very good with this kinda stuff...
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #16 on Fri 08 Aug 2008 09:53 PM (UTC)
Message
Sounds like the Lua sandbox in the global preferences is an old version, when I initially disallowed all the "os" functions (because some of them can be used to delete files).

A quick fix is to go to File -> Global Preferences -> Lua, and disable the sandbox by replacing everything there with:



-- sandbox disabled


Note the two hyphens - they are needed as a Lua comment. Also if you leave it completely empty MUSHclient replaces it with the default sandbox next time it starts up.

More secure would be to delete the entire sandbox. Save and close it, and exit MUSHclient. Then restart MUSHclient and the newer default sandbox will be loaded. Then follow the instructions earlier in this page to allow specific plugins.

- Nick Gammon

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

Posted by Kenneth   (18 posts)  Bio
Date Reply #17 on Sun 31 Aug 2008 06:05 PM (UTC)
Message
i was just wondering.. is there any way to make this plugin start minimized when i load mushclient? i can't figure how to do it.
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #18 on Mon 01 Sep 2008 06:01 AM (UTC)
Message
In the plugin, at around line 199, inside the OnPluginEnable function, find this line:


    w:SetWorldWindowStatus (3) -- restore it  


Change it to:


    w:SetWorldWindowStatus (2) -- minimize it  


- Nick Gammon

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

Posted by Kenneth   (18 posts)  Bio
Date Reply #19 on Mon 01 Sep 2008 12:51 PM (UTC)
Message
Thank you Nick! That worked like a charm. =D
Top

Posted by Dscshift   (1 post)  Bio
Date Reply #20 on Sun 07 Sep 2008 05:03 AM (UTC)
Message
Is the spellup link broken?
it shows for me as

XML Parsing Error: not well-formed
Location: http://www.gammon.com.au/mushclient/plugins/Aardwolf/Aardwolf_Spellups.xml
Line Number 1200, Column 30: match="^spellups?\:?\s*((?<action>\+|\-)\s*)?(?<list>[A-Za-z0-9, ]+)?$"
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #21 on Sun 07 Sep 2008 06:52 AM (UTC)
Message
You should RH-mouse click and "save linked file as" rather than letting your web browser try to interpret the XML. The plugin should load OK into MUSHclient.

- Nick Gammon

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

Posted by Tensaw   (3 posts)  Bio
Date Reply #22 on Thu 20 Nov 2008 12:45 AM (UTC)
Message
I am unable to get the spellup plugin to work properly. I had a number of initial errors and messages. I've corrected them from the posts in this thread, or by searching the forums. At this point, I have the blank spellup window running, but all of the plugin input(?) shows up in the main window.

so, I type "spellup armor"

and get, "Requested(1): Armor", in the main window. Spellup window does nothing. The spell is not cast. Thank you very much for the assisstance.
Top

Posted by Tensaw   (3 posts)  Bio
Date Reply #23 on Thu 20 Nov 2008 01:56 AM (UTC)
Message
Some clarifications:

Apparently all of commands are supposed to be reflected in the main window. The problem I continue to have is that no spells are actually cast and the spellup window remains blank.
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #24 on Thu 20 Nov 2008 07:25 PM (UTC)
Message
Hmm, it is a while since I worked on this, but try this:

In the file Aardwolf_Spellups.xml at around line 1030, change:


function show_wanted (w)

 w = w or GetWorldById (GetWorldID ())


to:


function show_wanted (w)

  local w = get_a_world (affect_world, folder)
  if not w then
    return
  end


Can you please let me know if this works?



- Nick Gammon

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

Posted by Tensaw   (3 posts)  Bio
Date Reply #25 on Fri 21 Nov 2008 06:31 PM (UTC)
Message
Thank you for the response. I can report progress. The requested output now shows up in the spellup output world/screen. Still no actual casting of the spell(s) and it doesn't seem to recognize or display my current "affects." Maybe I'm doing something really silly; this is the first time I've tried to use plugins. I don't want to waste your time with this...
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #26 on Sat 22 Nov 2008 02:09 AM (UTC)
Message
I wouldn't say you have done anything silly. The installation instructions are admittedly somewhat complex.

Check page 1 of this thread, and see that all the other required plugins are installed and enabled. Sounds like it isn't recognizing your current spells or status.

- Nick Gammon

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

Posted by LupeMatteo   (6 posts)  Bio
Date Reply #27 on Tue 13 Jan 2009 09:58 PM (UTC)
Message
Is there a more stable version of this plugin?
I seem to have issues with the "pause output", "wrap output" of it and the scroll bar.

What happens is if I scroll up to the top of my list, it will automatically put me back at the bottom or vice-versa.
That is, of course, when the scrolling will work. Sometimes it won't even work and it'll just highlight the information while I'm on the path of the scroll bar.
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #28 on Wed 14 Jan 2009 04:23 AM (UTC)
Message
It isn't really designed to scroll. The window is refreshed every second so scrolling is not very meaningful. I suggest you resize it so that it doesn't need to scroll.

- Nick Gammon

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

Posted by Swalec   (24 posts)  Bio
Date Reply #29 on Sat 07 Feb 2009 07:41 PM (UTC)
Message
I find that the spellup plugin works well in general, but if I have to cast a lot of spellups sometimes casts each spell many times, even after they have succeeded.

Am I alone in this?
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.


172,814 views.

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

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.