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
➜ Loading and re-editing a plugin
Loading and re-editing a plugin
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Shwick
(21 posts) Bio
|
Date
| Mon 24 May 2010 09:51 PM (UTC) Amended on Mon 24 May 2010 10:07 PM (UTC) by Shwick
|
Message
| I have a trigger that I exported as a plugin, but I want to edit the plugin some more. I deleted the trigger from my world, but it remains in the plugin.
I am having trouble loading the plugin to edit and getting the trigger to appear in the trigger window.
I tried saving the world with the trigger. If I delete the trigger and reload the world, the trigger won't appear in the triggers window.
Also tried importing the plugin using Import -> Load/View Plugins but that didn't work.
Trying to import the plugin's xml file using Import from File thew an error,
"Line 9: Plugin not expected here. Use File -> Plugins to load plugins (problem in this file)"
File -> plugins allowed me to enable the plugin, but didn't load the triggers into my current world for editing. | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #1 on Mon 24 May 2010 10:13 PM (UTC) Amended on Mon 24 May 2010 10:16 PM (UTC) by Nick Gammon
|
Message
| Once written, a plugin does not have a GUI interface for editing. However you can usually easily add triggers, aliases etc. by simply:
- Create one in the normal GUI interface
- Click on the "Copy" button
|
For advice on how to copy aliases, timers or triggers from within MUSHclient, and paste them into a forum message, please see Copying XML.
|
- Edit the plugin file in a normal text editor, like Notepad, Crimson Editor, the MUSHclient internal text editor, or another editor of your choice.
- Paste the trigger (or alias/timer) clipboard into your plugin in the appropriate place. This is generally just before
or after other triggers.
- Save the plugin file, and do a "Reinstall" of the plugin inside MUSHclient to get it to be reprocessed.
Most plugins will look something like this:
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE muclient>
<muclient>
<plugin
name="Plugin_name"
author="Plugin Author"
id="d6830bca27e7b6b5089b530a"
language="Lua"
purpose="Plugin purpose"
date_written="2008-10-15 07:35"
requires="4.30"
version="2.0"
>
<description trim="y">
Some description here ...
</description>
</plugin>
<!-- Triggers -->
<triggers>
... your triggers here ...
The comment line in bold ("<!-- Triggers -->") is a suitable place to paste more triggers, aliases and timers.
If you just need to make minor changes to a trigger you can generally just edit it in the plugin. The various fields (eg. match, send) are usually pretty self-explanatory. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Shwick
(21 posts) Bio
|
Date
| Reply #2 on Mon 24 May 2010 10:49 PM (UTC) |
Message
| thanks for quick reply | 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.
12,157 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top