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 ➜ Bug reports ➜ Sequences not honored among different plugins.

Sequences not honored among different plugins.

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


Pages: 1  2 

Posted by Shaun Biggs   USA  (644 posts)  Bio
Date Reply #15 on Sun 04 Mar 2007 03:04 PM (UTC)

Amended on Sun 04 Mar 2007 03:05 PM (UTC) by Shaun Biggs

Message
Quote:
I just don't see how a prompt-replacement plugin and my curing, channel-replacement, autobasher and all other plugins should be in the same plugin. They are not dependant on eachother. The only aspect they have in common is that they 1) trigger the same prompt and 2) I'd like for them to be able to display a message next to my prompt which my prompt-replacement plugin provides.

Umm... that does make them depend on each other. You can't append anything to the prompt through the prompt plugin without having the prompt plugin there in the first place.

Quote:
Would it be possible to make it possible somehow make it easy for the end-user to change the order in which plugins load?

This is quite a bit simpler than it sounds. At the end of the world file, there is a section listing the plugins. They load in that order, so just have the end user either add in the list manually, or change around the order themselves.

<!-- plugins -->
<include name="C:\Program Files\MUSHclient\worlds\plugins\Aard\pktracker.xml" plugin="y" />
<include name="C:\Program Files\MUSHclient\worlds\plugins\Aard\AardSW.xml" plugin="y" />
<include name="C:\Program Files\MUSHclient\worlds\plugins\Aard\Aardwolf_Colored_ConsiderLUA.xml" plugin="y" />
<include name="C:\Program Files\MUSHclient\worlds\plugins\Aard\Aardwolf_SpellupLUA.xml" plugin="y" />
<include name="C:\Program Files\MUSHclient\worlds\plugins\Aard\GainMonitor.xml" plugin="y" />
<include name="C:\Program Files\MUSHclient\worlds\plugins\Aard\AardColours.xml" plugin="y" />
<include name="C:\Program Files\MUSHclient\worlds\plugins\Aard\QReporter.xml" plugin="y" />
<include name="C:\Program Files\MUSHclient\worlds\plugins\Aard\QuestMob.xml" plugin="y" />

I have the last four plugins triggering on a lot of the same text for quests, but they don't interfere with each other, and I can swap it all around. In fact, QReporter has triggers that are tripped on things that GainMonitor, AardColours, QuestMob, and the main world gag to replace, as does another set of triggers that I'm working into a plugin at the moment.

It is much easier to fight for one's ideals than to live up to them.
Top

Posted by Worstje   Netherlands  (899 posts)  Bio
Date Reply #16 on Sun 04 Mar 2007 05:59 PM (UTC)
Message
Okay. I can somewhat live with that, I suppose. I still dislike it, though. Seems more like a hack since a simple thing like 'world.ReloadPlugin()' already messes the order up from my tests... and since I tend to do that alot, it means I will -also- have to reload my prompttweak plugin for 'reliable' results. Oh well.

Nick, if you ever change your mind, please let me know?
Top

Posted by Shaun Biggs   USA  (644 posts)  Bio
Date Reply #17 on Sun 04 Mar 2007 10:02 PM (UTC)
Message
Why would you have to reload the plugins a lot? Or is it just because of editing them often?

You can do a quick workaround for that with the LoadPlugin function as I mentioned. When you need to reload the plugins, have the first plugin reload all the other plugins when it's loaded.

It is much easier to fight for one's ideals than to live up to them.
Top

Posted by Worstje   Netherlands  (899 posts)  Bio
Date Reply #18 on Mon 05 Mar 2007 12:27 AM (UTC)
Message
Well, I already have a plugin that loads/reloads the plugin I edit most (and is largest) with aliases. I'm merely reloading the PromptTweak right after it now. It's not a solution I like to use, and I have yet to figure out a better way to do this when deploying stuff to my users without having to supply a different file.

But I'm always brainstorming. :D Thanks for your help, it is really appreciated.
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.


58,573 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.