View Single Post
  #4  
Unread 04-06-2012, 06:36 AM
Dwamur Dwamur is offline
The Wary
Interface Author - Click to view interfaces
 
Join Date: Apr 2012
Posts: 4
Necro'ing this thread.

"Writing LotRO LUA plugins for noobs" at http://forums.lotro.com/showthread.p...gins-for-Noobs has a lot of "good citizen" type advice:

- How to register events and callbacks safely, and unregister them again in your unload method
- How to get the unload method to take in the first place, reliably that is. You use an Update handler in the main window's constructor to register your unload method once the plugin has fully loaded.
- A note to please use RemoveCommand in unload, should you have added a shell command

I am going through some of the plugins I love using, and not all follow this good citizen model. How critical is it that all plugins in an apartment are good citizens? Will a plugin that did not manage to register an unload (because it doesn't use the Update trick) or does not release everything in an unload increase the likelihood of LotRO crashing when repeatedly unloading and loading?
Reply With Quote