lotrointerface.com
Search Downloads


Go Back   LoTROInterface > Outdated LotRO Interfaces

Category: Outdated LotRO InterfacesLua for Noobs Party Sample
Interface Information
Download
Garan's Portal Bug Reports Feature Requests
How do I install this? (FAQ)
Name: Lua for Noobs Party Sample   Popular!
Author:
Date: 11-25-2011 04:02 AM
Size: 10.14 Kb
Version: 1.00
Rate File: 1 out of 5 with 1 votes  
Pictures
Click to enlarge 

Views: 0
Size: 12.90 Kb
Dimensions: 403 x 400
sample window
 
Description
This is the plugin from the forum post
It's my Party and I'll cry if I want to.... This sample shows how to use a child plugin and cross apartment communication using shell commands.

Known issues:
The .plugin files reference the wrong image in the <Image> elements.
For PartySample.plugin it should be:
<Image>YourName/PartySample/Resources/main.jpg</Image>

For MyParty.plugin it should be:
<Image>YourName/PartySample/Resources/child.jpg</Image>

These typos were corrected in the forum post, I just forgot to fix the actual files before I zipped them up
File Statistics
User Rating:
1 out of 5 with 1 votes
Downloads: 16690
Views: 19925
Favorites: 5
Uploaded By:
 
Last Modified: 11-25-2011 03:36 PM by Garan    

View Pictures. Download Now! Post A Comment


Post A Reply
Author Comments Comment Options
Unread 01-26-2012, 06:54 PM  
Garan
The Undying
 
Garan's Avatar
Interface Author - Click to view interfaces

Forum posts: 340
File comments: 980
Uploads: 20
Re: Adapt a plugin for party members

Quote:
Originally Posted by Cordeval
Garan,

I am seeking advice on how to adapt a plugin so I can use it on fellowship members.

From reading forums and posts, you're the only one I've seen recent postings from about how to write a plugin to access fellowship/party member information.

Could you advise me on how I would go about adapting the BuffBar plugin for monitoring the status of, and applying BuffBar quickslot selections to, the other folks in my fellowship?

I'm not sure if it can be done using the API as it stands, or if BuffBars would ever be modified for this sort of thing.
Unfortunately, I'm also not familiar with much modern programming.

So, if the API does allow this sort of thing I'd like to take a stab at a workaround despite my limitations as a programmer.

I'm thinking I'd have one uniquely named copy of the BuffBars plugin for each potential party member, call them plugins BB-1 through BB-6, and load/unload each as needed in the game.

I imagine this is not an efficient use of computer resources, but I see it as within my skill level.

I'd have to adapt each version to apply only to a particular party member, probably by the order in the standard LOTRO UI window.

I imagine I could do this either by globally searching and replacing all the necessary phrases...tedious and probably end up rather buggy.

But maybe I could add a short line of code to one place in the plugin that says in effect, "whenever the local player is referenced, instead point to party member X".

Thank you, and I love using MoorMap.
Hi. I'm always glad to hear from someone interested in developing or enhancing plugins for LoTRO.

This is a bit of a complex problem. I noticed that you already posted on the Buffbars download page. A number of authors (I believe Pengoros was one) commented a while back about the instability of the Turbine Party object and how it made expanding many plugins impractical as they would be at best undependable and at worst would cause client crashes. I haven't had any time to test the current state of the Turbine Party API since the latest update but since the GetAttributes() crash has not been resolved and there was nothing in the release notes about fixing the other Party API issues I suspect the status has not changed. I will leave it up to Pengoros to reply in the Buffbars thread as to the state of Buffbars, the API and his plans for expanding Buffbars.

I do feel it necessary to point out to anyone that reads this response that you should not use or modify another author's code without their express consent - most authors will not only give their consent (as long as they are creditted for their code) but will also help in any way they can as long as you ask first.

As to a theoretical approach to expanding Buffbars to monitor party members, I would not recommend modifying Buffbars to run separate instances for each party member. It would be best approached with a single plugin which would register multiple event handlers (one for each party member for each type of event) but would process them with common functions, passing the party member object as a parameter. This would cut down significantly on the memory usage in the client which is one of the biggest concerns when running plugins in raids or groups. This would also eliminate the need to monitor and manage multiple instances of a plugin since the party members are subject to change, often quite frequently in places like the 'Moors. The best way to implement this is as an upgrade to Buffbars itself as any plugin developed to work alonside the existing Buffbars is likely to run into conflicts with future updates of Buffbars. That being said, and to avoid stepping on any toes, anything to do with using/modifying Buffbars is best handled in Pengoros' thread.

I'm happy to see your enthusiasm and hope you pursue developing Lua plugins. You picked a pretty tough situation for your first foray into Lua development. You might want to consider working with the basic UI elements and the API to get a feel for what is possible, what is buggy, and how to make things work smoothly before tackling such a beast.

Last edited by Garan : 01-26-2012 at 07:49 PM.
Garan is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 01-26-2012, 05:08 PM  
Cordeval
The Wary

Forum posts: 3
File comments: 27
Uploads: 0
Adapt a plugin for party members

Garan,

I am seeking advice on how to adapt a plugin so I can use it on fellowship members.

From reading forums and posts, you're the only one I've seen recent postings from about how to write a plugin to access fellowship/party member information.

Could you advise me on how I would go about adapting the BuffBar plugin for monitoring the status of, and applying BuffBar quickslot selections to, the other folks in my fellowship?

I'm not sure if it can be done using the API as it stands, or if BuffBars would ever be modified for this sort of thing.
Unfortunately, I'm also not familiar with much modern programming.

So, if the API does allow this sort of thing I'd like to take a stab at a workaround despite my limitations as a programmer.

I'm thinking I'd have one uniquely named copy of the BuffBars plugin for each potential party member, call them plugins BB-1 through BB-6, and load/unload each as needed in the game.

I imagine this is not an efficient use of computer resources, but I see it as within my skill level.

I'd have to adapt each version to apply only to a particular party member, probably by the order in the standard LOTRO UI window.

I imagine I could do this either by globally searching and replacing all the necessary phrases...tedious and probably end up rather buggy.

But maybe I could add a short line of code to one place in the plugin that says in effect, "whenever the local player is referenced, instead point to party member X".

Thank you, and I love using MoorMap.
Cordeval is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 11-25-2011, 05:47 PM  
Eili
The Undying
 
Eili's Avatar
Interface Author - Click to view interfaces

Forum posts: 159
File comments: 177
Uploads: 13
I just found out your post on the official forums.

I will start reading this quietly when the home will be silent.
Thank you!
Eili is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 11-25-2011, 03:34 PM  
Garan
The Undying
 
Garan's Avatar
Interface Author - Click to view interfaces

Forum posts: 340
File comments: 980
Uploads: 20
Known issue

The .plugin files reference the wrong image in the <Image> elements.
For PartySample.plugin it should be:
<Image>YourName/PartySample/Resources/main.jpg</Image>

For MyParty.plugin it should be:
<Image>YourName/PartySample/Resources/child.jpg</Image>

These typos were corrected in the forum post, I just forgot to fix the actual files before I zipped them up

Last edited by Garan : 11-25-2011 at 03:36 PM.
Garan 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 05:59 PM.


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