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 ➜ General ➜ Reinstall plugins

Reinstall plugins

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


Posted by Quit   (16 posts)  Bio
Date Mon 13 Apr 2015 03:29 PM (UTC)
Message
Hi

is there a easy way to reinstall script like Inventory_Miniwindow_Demo.xml, after I have made some changes to it ?

Iam still on learn by doing so I make many little change to see what it does but I feel it take forever and to many click to reinstall the script.

Or is there a way to have the Plugins window open all the time but without the focus ?
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #1 on Mon 13 Apr 2015 07:53 PM (UTC)
Message
I make an alias called "rl" (reload plugin) like this:


<aliases>
  <alias
   match="rl"
   enabled="y"
   send_to="12"
   sequence="100"
  >
  <send>

if ReloadPlugin ("63e6909083318cf63707c044") == error_code.eNoSuchPlugin then
  check (LoadPlugin ("/program files/mushclient/worlds/plugins/example_mapper.xml"))
end

Note "plugin reloaded"

</send>
  </alias>
</aliases>


Template:pasting For advice on how to copy the above, and paste it into MUSHclient, please see Pasting XML.


Change the plugin ID (above) to match your plugin, and change the file path to match where the plugin is.

The ReloadPlugin reloads an existing plugin. If that fails then there was probably a syntax error in your script. Once you fix that it is no longer an existing plugin, and the LoadPlugin should now work.

So, make changes, type: "rl", test.

- Nick Gammon

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

Posted by Chyort   USA  (58 posts)  Bio
Date Reply #2 on Mon 13 Apr 2015 07:57 PM (UTC)

Amended on Mon 13 Apr 2015 08:01 PM (UTC) by Chyort

Message
Simple version, make an alias that uses this script function in the world file.
http://www.gammon.com.au/scripts/function.php?name=ReloadPlugin

Advanced version. With error reporting.
http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=9615


*Edit*
Beat by Nick :P
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,484 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.