How to use plugins

From LoTROInterface Wiki

(Difference between revisions)
Jump to: navigation, search
(Suggested Commandlets)
Line 5: Line 5:
Create a folder named "Plugins" inside of this folder. Place all plugins inside of this new folder (most plugins are organized into their own folder meant to go inside of the main "Plugins" folder).
Create a folder named "Plugins" inside of this folder. Place all plugins inside of this new folder (most plugins are organized into their own folder meant to go inside of the main "Plugins" folder).
 +
 +
== Getting the Turbine API Files ==
 +
If you haven't already done so, you'll need to get the API files from Turbine. These are bundled in with the example scripts provided by Turbine. The link is: [http://content.turbine.com/sites/lotro/lua/Beta_LuaPlugins.7z http://content.turbine.com/sites/lotro/lua/Beta_LuaPlugins.7z]. You'll want to right click and choose Save As or Save Link As to save it to your machine.
 +
 +
Now you will likely need to get and install 7-zip as you need it to unarchive the file from Turbine. Not sure why they didn't just go with zip files. So, first things first, go to [http://www.7-zip.com/ http://www.7-zip.com/] and download/install the program.
 +
 +
Now extract the "Turbine" folder inside that Beta_LuaPlugins.7z file you downloaded into your newly created Plugins folder (see above step).
== Viewing the list of available plugins in game ==
== Viewing the list of available plugins in game ==
Line 31: Line 38:
** type '/alias ;pil /plugins load', this could be a stepping stone to load other plugins.
** type '/alias ;pil /plugins load', this could be a stepping stone to load other plugins.
** type '/alias ;man /plugins load manager' or '/alias ;man ;pil manager', this would be used in conjunction with [http://www.lotrointerface.com/downloads/fileinfo.php?id=379 Lotro Plugin Manager]
** type '/alias ;man /plugins load manager' or '/alias ;man ;pil manager', this would be used in conjunction with [http://www.lotrointerface.com/downloads/fileinfo.php?id=379 Lotro Plugin Manager]
 +
 +
An alternate solution is to create a shortcut (button) for it on your toolbar.
 +
# Unlock your toolbars if you have them locked.
 +
# Move the current item out of your very first toolbar button slot on your main toolbar (this is just temporary... drop it into an open slot).
 +
# Issue the command: /shortcut 1 /plugins load manager
 +
# Now drag that shortcut to where you want your "click here to load your plugins" button.
 +
# Move your original toolbar button item back into the first slot.
 +
# Lock your toolbars if you want.
== Sources ==
== Sources ==
*[http://forums.lotro.com/showthread.php?354842-How-to-use-Lua-UI-plugins Thread: How to use Lua UI plugins]
*[http://forums.lotro.com/showthread.php?354842-How-to-use-Lua-UI-plugins Thread: How to use Lua UI plugins]
*[http://gaming.wikia.com/wiki/Macro Wikia Definition of a Gaming Macro]
*[http://gaming.wikia.com/wiki/Macro Wikia Definition of a Gaming Macro]

Revision as of 05:38, 2 December 2010

This is a simple walk-through on how to use LoTRO plugins.

Contents

Exposing the plugins to your client

Navigate to your documents folder for The Lord of the Rings Online (for Windows XP users, this is usually " C:\Documents and Settings\<your user name>\My Documents\The Lord of the Rings Online" while for Windows Vista\7 Users, this is usually "C:\Users\<your user name>\Documents\The Lord of the Rings Online").

Create a folder named "Plugins" inside of this folder. Place all plugins inside of this new folder (most plugins are organized into their own folder meant to go inside of the main "Plugins" folder).

Getting the Turbine API Files

If you haven't already done so, you'll need to get the API files from Turbine. These are bundled in with the example scripts provided by Turbine. The link is: http://content.turbine.com/sites/lotro/lua/Beta_LuaPlugins.7z. You'll want to right click and choose Save As or Save Link As to save it to your machine.

Now you will likely need to get and install 7-zip as you need it to unarchive the file from Turbine. Not sure why they didn't just go with zip files. So, first things first, go to http://www.7-zip.com/ and download/install the program.

Now extract the "Turbine" folder inside that Beta_LuaPlugins.7z file you downloaded into your newly created Plugins folder (see above step).

Viewing the list of available plugins in game

In your client (once you have dropped the plugins into your new plugins directory), type the following command in your chat window to make sure the client has an up-to-date list of your available plugins:

  • /plugins refresh

Next, type the following command to dump the list of all currently available plugins to your chat window:

  • /plugins list

The list will show you all plugins that your client is currently capable of loading as well as any plugins you already have loaded. If the plugins you want to use are not listed there, make sure the plugins are properly located in the "Plugins" folder created in step 1. If they are still not showing in the list, try restarting your LOTRO client.

Loading your plugins

Please note: You will have to do this step EVERY time you log in your character if you want to run your plugins. For the "BETA" release of the Lua plugin system, plugins cannot be set to automatically load upon logging in

Once the plugins you want to load are displaying in the list of available plugins seen in step 2, it is now time to load your plugin! To load a plugin, use the following command:

  • /plugins load <Plugin Name>
    • replace <Plugin Name> with the desired plugin's name as listed in the available plugins list from step 2

If no errors are reported in your chat window, then you have successfully loaded the plugin and can now begin using/enjoying it! If script errors are reported in the chat window, then report them to the author of the plugin you tried to load.

Unload plugins

Plugins are automatically unloaded when you log out but if for any reason you would like to manually unload a plugin you have running, you must use the unload command to unload all of your running plugins:

  • /plugins unload

Please note, this command unloads ANY plugins you have running so at this stage of the system, once that command is used, you must then individually re-load any of the plugins you want to continue running.

Suggested Commandlets

These are merely suggestions and with some implementations of certain mods only alleviates the need to type but can be clicked to obtain the same effect.

  • Alias'ing
    • type '/alias ;pil /plugins load', this could be a stepping stone to load other plugins.
    • type '/alias ;man /plugins load manager' or '/alias ;man ;pil manager', this would be used in conjunction with Lotro Plugin Manager

An alternate solution is to create a shortcut (button) for it on your toolbar.

  1. Unlock your toolbars if you have them locked.
  2. Move the current item out of your very first toolbar button slot on your main toolbar (this is just temporary... drop it into an open slot).
  3. Issue the command: /shortcut 1 /plugins load manager
  4. Now drag that shortcut to where you want your "click here to load your plugins" button.
  5. Move your original toolbar button item back into the first slot.
  6. Lock your toolbars if you want.

Sources

Personal tools