Reinstall plugins

Posted by Quit on Mon 13 Apr 2015 03:29 PM — 3 posts, 17,948 views.

#0
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 ?
Australia Forum Administrator #1
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.
USA #2
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