lotrointerface.com
Search Downloads


Go Back   LoTROInterface > LotRO Stand-Alone Plugins > Raiding & Instances


Post A Reply
Author Comments Comment Options
Unread 11-22-2011, 06:29 PM  
Garan
The Undying
 
Garan's Avatar
Interface Author - Click to view interfaces

Forum posts: 341
File comments: 981
Uploads: 20
Quote:
Originally Posted by Galuhad
So two plugins can't call a load event at the same time? Or have I coded something wrong? I'm not really an experienced programmer, all these plugins I make for fun. I don't really understand this whole apartment thing.
It's not so much that two plugins can't call a load event "at the same time", but rather, by assigning your event handler to the same event that their handler would use, they overwrite each other. I don't use the load event at all, so I'm not sure if it supports using table entries the way that the other events do, but I would suspect it would. You can try implementing your event handler that way (but if the other party doesn't also implement it as a table entry they will still stomp on your entry).

Alternately, you can simply not use the .load event and simply perform the code that opens your window at the end of your main.lua file. The only code you couldn't reference at that point would be any code that needs to access the current Plugin[] object which is why the majority of developers put that into an Update event handler of their main window (like assigning the Plugin[].Unload event handler). With Update 5, this will no longer be an issue since Turbine provided us the "plugin" variable which is a reference to our Plugin[].

Another option would be to use a separate Apartment - an Apartment is the environment in which your plugin runs. However, by using a separate Apartment, you are creating a completely separate global environment which will use a lot more memory. This eliminates the threat of anyone else's plugin overwriting anything you define and vice-versa, but can be a performance issue for people with limited memory. One nice benefit of running in your own Apartment is that your plugin can be unloaded without unloading anything else since the "/plugins unload " command can specify an Apartment (i.e. "/plugins unload moormap" will unload the MoorMap main plugin Apartment). This can be quite beneficial for any plugin that needs realtime access to data (like MoorMap), but isn't normally needed.

Last edited by Garan : 11-22-2011 at 06:35 PM.
Garan is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 11-22-2011, 06:19 PM  
Galuhad
The Undying
 
Galuhad's Avatar
Interface Author - Click to view interfaces

Forum posts: 24
File comments: 170
Uploads: 20
Quote:
As to the most likely candidate for the not loading issue, this plugin uses:
Code:
Turbine.Plugin.Load = function (sender,args)
 -- Load the data when the plugin loads
 loadData();
 Includes.InitiateChatLogger();
 Includes.GroupLoad();
 DrawWindows();
end
in a shared Apartment. If any of the other plugins in that apartment also define Turbine.Plugin.Load, you will be overwriting each other. This is the same kind of issue that arose with the event handlers for instances of LocalPlayer. I don't use Bootstrap either, but I'd be willing to bet you'd find that it also assigns a function to Turbine.Plugin.Load.
So two plugins can't call a load event at the same time? Or have I coded something wrong? I'm not really an experienced programmer, all these plugins I make for fun. I don't really understand this whole apartment thing.
Galuhad is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 11-22-2011, 06:10 PM  
Galuhad
The Undying
 
Galuhad's Avatar
Interface Author - Click to view interfaces

Forum posts: 24
File comments: 170
Uploads: 20
Quote:
Which built-in pluginmanager? I didn't know there was one...
With update 5 there is one built in which lets you load plugins automatically once you log in.
Galuhad is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 11-22-2011, 06:10 PM  
Garan
The Undying
 
Garan's Avatar
Interface Author - Click to view interfaces

Forum posts: 341
File comments: 981
Uploads: 20
Quote:
Originally Posted by Vald
Which built-in pluginmanager? I didn't know there was one...
It's coming with Update 5. Currently available for testing on Bullroarer.

As to the most likely candidate for the not loading issue, this plugin uses:
Code:
Turbine.Plugin.Load = function (sender,args)
 -- Load the data when the plugin loads
 loadData();
 Includes.InitiateChatLogger();
 Includes.GroupLoad();
 DrawWindows();
end
in a shared Apartment. If any of the other plugins in that apartment also define Turbine.Plugin.Load, you will be overwriting each other. This is the same kind of issue that arose with the event handlers for instances of LocalPlayer.

Last edited by Garan : 11-22-2011 at 06:19 PM.
Garan is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 11-22-2011, 06:06 PM  
Vald
The Undying
 
Vald's Avatar

Forum posts: 22
File comments: 54
Uploads: 0
Quote:
I've only tested it with the new built-in plugin manager which seems to work Ok.
Which built-in pluginmanager? I didn't know there was one...
Vald is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 11-22-2011, 05:43 PM  
Galuhad
The Undying
 
Galuhad's Avatar
Interface Author - Click to view interfaces

Forum posts: 24
File comments: 170
Uploads: 20
Quote:
OK, I tested this and was going to post the log file but I discovered the problem, just not the cause.

I've started using BootStrap as my plugin loader since it has some features Manager doesn't. It seems to be the problem, however.

If I loaded RaidAssistant by itself, it works fine. If I load it, THEN load BootStrap, it works fine. If BootStrap is loaded first, however, RaidAssistant doesn't show the members of my group. This includes loading RaidAssistant using BootStrap to load it.

Can you take a look at BootStrap and try to figure out why a loader plugin being loaded first might cause problems with RaidAssistant?
Thanks for discovering this. I don't use BootStrap or Manager to load my plugins, do it all manually which may explain. I've only tested it with the new built-in plugin manager which seems to work Ok.

I've downloaded BootStrap and for some reason it seems to cause the loading of RaidAssistant to get stuck in some kind of loop.. as shown in the initiating sequence text. Unfortunately I'm not familiar enough with BootStrap at this point to offer any long-term solution.

From what I've tested while running BootStrap, you can have both plugins loaded at the same time, but you need to remove RaidAssistant from the list of plugins that load on launch so it doesn't load automatically. I've tried running RaidAssistant from BootStrap by clicking 'Launch' which seems to load OK.. it doesn't seem to get stuck in the same loop as when it's loaded automatically. I've yet to test this in groups though.
Galuhad is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 11-22-2011, 02:08 PM  
Vald
The Undying
 
Vald's Avatar

Forum posts: 22
File comments: 54
Uploads: 0
OK, I tested this and was going to post the log file but I discovered the problem, just not the cause.

I've started using BootStrap as my plugin loader since it has some features Manager doesn't. It seems to be the problem, however.

If I loaded RaidAssistant by itself, it works fine. If I load it, THEN load BootStrap, it works fine. If BootStrap is loaded first, however, RaidAssistant doesn't show the members of my group. This includes loading RaidAssistant using BootStrap to load it.

Can you take a look at BootStrap and try to figure out why a loader plugin being loaded first might cause problems with RaidAssistant?
Vald is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 11-22-2011, 03:56 AM  
Galuhad
The Undying
 
Galuhad's Avatar
Interface Author - Click to view interfaces

Forum posts: 24
File comments: 170
Uploads: 20
Thanks for the reply..

Quote:
Great plugin but I'm having a few issues. First, the roll screen DOES track the rolls and sort them but the right side of the window (those who haven't rolled) says "No Group", whether I'm in a fellowship or raid. I've tried starting it before I join a group and starting it after but it doesn't seem to make a difference. It never shows who hasn't rolled, just "No Group".
I take it this is all the time? If so can you do me a favour, could you make a new tab in your chat window, filter it so it just shows the 'standard' channel, then start logging the chat before you join a group, when you're in the group, and as you leave the group. Then could you either post the log here or PM it to me? Also do you have any other plugins loaded at the same time as this one, if so which ones and have you tried the plugin without any others loaded? And lastly which language does your client use?

Quote:
Also, when I hit the reset button, I get the following text message in general chat:

"ugins\GaluhadPlugins\RaidAssistant\Windows\Rolls. lua:311: Index out of range."

Any suggestions?
This line is part of the function that removes each player from the not yet rolled list when they roll, if the plugin is having trouble loading your group then this will be why you get that error message. Once your group has loaded that problem should be resolved.

I went through about 40-50 tests with this plugin before releasing it and managed to get rid of most bugs but of course some always creep through. I am unable to recreate this problem my end so I would be extremely grateful for as much information as your are able to supply.

Thank you.
Galuhad is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 11-21-2011, 07:57 PM  
Vald
The Undying
 
Vald's Avatar

Forum posts: 22
File comments: 54
Uploads: 0
Great plugin but I'm having a few issues. First, the roll screen DOES track the rolls and sort them but the right side of the window (those who haven't rolled) says "No Group", whether I'm in a fellowship or raid. I've tried starting it before I join a group and starting it after but it doesn't seem to make a difference. It never shows who hasn't rolled, just "No Group".

Also, when I hit the reset button, I get the following text message in general chat:

"ugins\GaluhadPlugins\RaidAssistant\Windows\Rolls. lua:311: Index out of range."

Any suggestions?
Vald is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 11-21-2011, 07:41 AM  
Gramps
The Indomitable

Forum posts: 12
File comments: 7
Uploads: 0
Nicely done man. Thanks for the work
Gramps is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 11-21-2011, 02:36 AM  
daimon
The Undying
 
daimon's Avatar
Interface Author - Click to view interfaces

Forum posts: 466
File comments: 362
Uploads: 12
Very nice! I salute you sir!
daimon is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 11-20-2011, 09:25 PM  
Galuhad
The Undying
 
Galuhad's Avatar
Interface Author - Click to view interfaces

Forum posts: 24
File comments: 170
Uploads: 20
Quote:
Great plugin! Can we have the ability to export the rolls as well?
Thanks for the suggestion.
I am planning to make it so you can assign the winning rolls to the items in the history list, so when someone acquires something, you'd be able to click the item in the history list and select from that players recent /rolls. That way when you export the item history you'd export the relevant rolls aswell. This is something I hope to add soon so it can tie both features nicely together.

Last edited by Galuhad : 11-20-2011 at 09:25 PM.
Galuhad is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 11-20-2011, 09:17 PM  
fwskateboard
The Wary

Forum posts: 0
File comments: 9
Uploads: 0
Great plugin! Can we have the ability to export the rolls as well?
fwskateboard is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 11-20-2011, 08:58 PM  
Galuhad
The Undying
 
Galuhad's Avatar
Interface Author - Click to view interfaces

Forum posts: 24
File comments: 170
Uploads: 20
Quote:
Let me be among the first to say it looks like a great plugin I will definitely point my raid leaders to this.

Great work!
Thank you I've spent quite a few weeks working on it. There were some other parts that I've left out of this release that will be added in future.
Galuhad is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 11-20-2011, 08:28 PM  
asarms87
The Wary

Forum posts: 0
File comments: 13
Uploads: 0
Let me be among the first to say it looks like a great plugin I will definitely point my raid leaders to this.

Great work!
asarms87 is offline Report comment to moderator   Reply With Quote Reply With Quote
Post A Reply

 
Category Jump:
Search this Category:
 

All times are GMT -5. The time now is 03:16 AM.


Our Network
EQInterface | EQ2Interface | Minion | WoWInterface | ESOUI | LoTROInterface | MMOUI | Swtorui