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 ➜ Plugin Wizard

Plugin Wizard

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


Posted by Nick Gammon   Australia  (23,140 posts)  Bio   Forum Administrator
Date Fri 09 Aug 2002 04:43 AM (UTC)
Message
Version 3.25 of MUSHclient - which is now released, offers a 'plugin wizard' to simplify writing plugins.

By invoking it you can quickly and easily generate a plugin based on existing triggers, aliases, timers, variables, and the current script, from your world file.

You merely have to enter a name for it, its purpose, and an optional description (which becomes the plugin help). The wizard will move some or all of your triggers etc. from the world file into the plugin file, generating all the correct XML syntax for you 'on the fly'.

Here is a sample of the first tab of the plugin wizard:

I suggest that, to develop plugins, you start with a 'clean' world file (ie. no triggers, aliases etc. that are not required in the plugin), and then develop and test your plugin in the main world file. Then when it is working to your satisfaction, invoke the plugin wizard, which will move the lot into your plugin file.

However, if that is not practical, you can click on the tabs in the plugin wizard, and select/deselect those items which are not relevant, before generating the plugin.

Any comments for useful additions are welcome.


- Nick Gammon

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

Posted by Torgny   Sweden  (15 posts)  Bio
Date Reply #1 on Fri 09 Aug 2002 08:02 AM (UTC)
Message
Works excellently! :) I just released a plugin with minimum fuss. Only thing I had to edit was to add aliases for my script commands that otherwise would have been activated with the script prefix "\" in my case. So, if anybody wants to release plugins this way, be sure to add aliases for all commands you have in the plugin, or you might find it quite difficult to call them.

"Eagles may soar, but weasels don't get sucked into jet engines!"
Top

Posted by Nick Gammon   Australia  (23,140 posts)  Bio   Forum Administrator
Date Reply #2 on Fri 09 Aug 2002 08:41 AM (UTC)
Message
Good idea.

Plugins do not require the user to have scripting active, and you can't predict what language they might be using, so doing an alias for any internal routines you want them to call is a very sound practice.

- 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,763 views.

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.