Quantcast
VGInterface.com
Search Downloads


Go Back   LoTROInterface > LotRO Stand-Alone Plugins > Other


Post A Reply
Author Comments Comment Options
Unread 02-18-2016, 02:21 PM  
Venogorn
The Wary

Forum posts: 1
File comments: 28
Uploads: 0
I love your plugins, Garan. Today I installed alerter 1.06 for the first time:

Isn't there really no OR-operator for search-patterns? I tried to alert for special items in Loot(Fellow):

Code:
(.+) has found: .*[>](.*(Essence|Lootbox|Key).*)[<]
But I used the German words for text and items, because of German client. When I use just a single word i.e. 'Essence' or 'Lootbox', I get the alert, when I try to use the pipe to check against more than one item this fails. For testing I used some more common items.

I know that this is no complete regexp-syntax and I read that LUA 5.1 Reference .

So do I really need to create a single alert for each item? And all the same for own loot again?
Venogorn is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 02-17-2016, 11:05 PM  
Grimfrithgar
The Wary
Interface Author - Click to view interfaces

Forum posts: 0
File comments: 17
Uploads: 1
Many thanks for the latest update!

The good news is that my issue is now resolved; the warning text stays on the screen after I clicked it!

The bad news is that the "Shared"-checkbox is now gone. It did not load my old shared alerts either. I tried to remove the old Plugins- and Plugindata-folders, and still the same issue. A quick look at main.lua indicates that the code for the Shared-function is indeed missing.

Regards

Last edited by Grimfrithgar : 02-17-2016 at 11:06 PM.
Grimfrithgar is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 02-15-2016, 10:29 PM  
Garan
The Undying
 
Garan's Avatar
Interface Author - Click to view interfaces

Forum posts: 243
File comments: 721
Uploads: 19
Well, I found some spare time and decided to do a minor update to fix the missing /World channel and the new quickslot types. I also changed quickslot Responses to continue to display for the Duration to alleviate Grimfrithgar's issue with the disappearing message with a new option to hide the Response after clicking the quickslot.

@Grimfrithgar, as to the timer display, I had previously used an unpublished option that allowed executing Lua scripts. That option may never get published but I may include the countdown timer display as a built-in feature.

Last edited by Garan : 02-15-2016 at 10:38 PM.
Garan is online now Report comment to moderator   Reply With Quote Reply With Quote
Unread 02-15-2016, 08:17 PM  
Grimfrithgar
The Wary
Interface Author - Click to view interfaces

Forum posts: 0
File comments: 17
Uploads: 1
Thank you for your very quick and elaborated reply!

Quote:
Originally Posted by Garan
Unfortunately, there are some very strict limitations on the Lua API as implemented by Turbine.
I kind of suspected that. Probably a good choice by Turbine, but it is a bit limiting in this case. The text being a hidden quickslot is a great workaround.
Quote:
Originally Posted by Garan
The Duration does not (can not) affect the duration of a message sent via chat as it is no longer under control of the plugin once sent.
Quote:
Originally Posted by Garan
An alternative that wouldn't require too much coding is to add an option to keep the quickslot displayed after it has been clicked up to the duration of the alert.
It's the second way I mean. The personal message (response) I get in the middle of the screen from the plugin disappears as soon as I click on it. If I do not click on it, it will stay up the whole duration specified in the response-settings.
To clarify:
1) I want a personal warning message triggered by the plugin, showing up on the screen
2) I want to send a message to the chat to warn my fellows
3) I want my personal warning message to stay on the screen for the full duration after I clicked it to warn my fellows
Number 1 and 2 is no problem, it works perfectly. Number 3 is the problem. Not a big issue, just a slight inconvenience.

Quote:
Originally Posted by Garan
The simplest way would be to use two alert definitions with the same trigger but different responses
How could I not think of this myself? This is a great workaround that leads to the result I am after!
Quote:
Originally Posted by Garan
I will have to log in to see how this is working today as I thought I had added that capability in the past
Quote:
Originally Posted by Garan
There is also a way to display a timer as a result of an alert [...] I'll have to look when I get a chance
Quote:
Originally Posted by Garan
Lua projects in general are pretty far down on the priority list at this time
No pressure. The workaround you provided will do great. If you do have time to look this up, I would appreciate if you follow up with some comments. But again, it is not too important for my sake

Regards
Grimfrithgar is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 02-13-2016, 08:17 AM  
Garan
The Undying
 
Garan's Avatar
Interface Author - Click to view interfaces

Forum posts: 243
File comments: 721
Uploads: 19
Quote:
Originally Posted by Grimfrithgar
Hello and thanks Garan for your great plugins!

I'm just trying this one out to use in the L˙mithil-fight in RC.

I figured how to set an alias so I send a message to my fellowship when I click the alert. However, I usually find myself pretty busy during that fight, and was wondering if it is possible to make your plugin send a message to the chat automatically? If not, is it something that is possible to implement? See it was long time since you last updated this plugin, but worth asking

Edit:
It seems that when I click the message to send my alias, the message disappears even though I have set a longer duration. Is it possible to prevent this? For example when it comes to L˙mithil, I'd like to warn my fellows but still keep the message up. When the message disappears I know he will do his special attack any second.
It would also be nice with a countdown timer to see how much is left of the Duration, or maybe even the Delay. But that sounds like much work

Regards
Hi, thanks for your comments.

Unfortunately, there are some very strict limitations on the Lua API as implemented by Turbine.

First, you can't programmatically send text to anyone but yourself so all we can do is use quickslots (which is what Alerter does even though they are hidden under other controls) so it's not possible to automatically send messages to other players, it will always require user intervention to activate. I suspect that was a limitation that Turbine imposed to try to prevent automating an army of bots.

Second, any plugin written in the last three or four years is using the latest API other than a couple minor bug fixes published two years ago. Sadly, none of the developers that donated their time (Lua was implemented on the developers own time, not supported by Turbine) to implement Lua are still working on LotRO so it is highly unlikely that the API will ever get another update, probably not even any more bug fixes.

Now on to your specific issues. The Duration does not (can not) affect the duration of a message sent via chat as it is no longer under control of the plugin once sent. The Duration setting only affects the visible effects that are part of the plugin such as scrollable text or images. In terms of a quickslot alert response, the duration determines the amount of time the quickslot is displayed until it automatically disappears. It almost sounds as though you would like two alerts, one sent via chat and the other displayed locally for you with a longer duration. The simplest way would be to use two alert definitions with the same trigger but different responses, the first which displays the quickslot that you click to send the message to chat and the second which just automatically displays a message with longer duration for you.

An alternative that wouldn't require too much coding is to add an option to keep the quickslot displayed after it has been clicked up to the duration of the alert. I will have to log in to see how this is working today as I thought I had added that capability in the past so it's possible that it didn't have the desired result and was removed for some reason. There is also a way to display a timer as a result of an alert, I don't recall if I triggered another plugin (most likely) or if it is an undocumented (or possibly unpublished) feature of Alerter, I'll have to look when I get a chance.

Unfortunately, that brings us to the last and sort of most problematic issue. Due to the lack of support by Turbine and the fact that the game just hasn't held my interest for a while now, I've pretty much stopped developing plugins (although I do have a few projects that draw me back every once in a while) so Lua projects in general are pretty far down on the priority list at this time.
Garan is online now Report comment to moderator   Reply With Quote Reply With Quote
Unread 02-12-2016, 09:29 PM  
Grimfrithgar
The Wary
Interface Author - Click to view interfaces

Forum posts: 0
File comments: 17
Uploads: 1
Hello and thanks Garan for your great plugins!

I'm just trying this one out to use in the L˙mithil-fight in RC.

I figured how to set an alias so I send a message to my fellowship when I click the alert. However, I usually find myself pretty busy during that fight, and was wondering if it is possible to make your plugin send a message to the chat automatically? If not, is it something that is possible to implement? See it was long time since you last updated this plugin, but worth asking

Edit:
It seems that when I click the message to send my alias, the message disappears even though I have set a longer duration. Is it possible to prevent this? For example when it comes to L˙mithil, I'd like to warn my fellows but still keep the message up. When the message disappears I know he will do his special attack any second.
It would also be nice with a countdown timer to see how much is left of the Duration, or maybe even the Delay. But that sounds like much work

Regards

Last edited by Grimfrithgar : 02-12-2016 at 10:34 PM.
Grimfrithgar is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 04-08-2015, 08:36 PM  
Garan
The Undying
 
Garan's Avatar
Interface Author - Click to view interfaces

Forum posts: 243
File comments: 721
Uploads: 19
Quote:
Originally Posted by Trendafil
Thanks for the quick reply!
I normally use Firefox. I have now tried Internet Explorer, and there the links do work. - Thank you for the hint!
There is a setting in FireFox for the referrer headers that you can google to see if it helps, but since you can follow the links in IE it probably isn't worth pursuing unless you start having issues with other sites.

I just reread your original post - be aware that the 'World' chat channel is not in the channel options for the currently released plugin so you either have to select 'All' which is inefficient or select 'Custom' and enter the channel number, 38, as RJFerret posted. Other than that, the only tricky part is determining the correct pattern string and that will depend on what exactly you are trying to match. The pattern string is NOT a true Regular Expression (if you're familiar with RegEx) but is closely related - the pattern follows the Lua rules for pattern matching which can be found at:
http://www.lua.org/manual/5.1/manual.html#5.4.1
Garan is online now Report comment to moderator   Reply With Quote Reply With Quote
Unread 04-08-2015, 08:04 PM  
Trendafil
The Wary

Forum posts: 0
File comments: 7
Uploads: 0
Thanks for the quick reply!
I normally use Firefox. I have now tried Internet Explorer, and there the links do work. - Thank you for the hint!
Trendafil is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 04-08-2015, 02:34 PM  
Garan
The Undying
 
Garan's Avatar
Interface Author - Click to view interfaces

Forum posts: 243
File comments: 721
Uploads: 19
Re: How to...

Quote:
Originally Posted by Trendafil
This plugin sounds wonderful, but I seem to be too dumb to set up the alerts properly. Is there a "How to" anywhere to be found? (My main goal is to be told when certain group content is mentioned in world chat.)

In addition, when I click on the links in the FAQs ( http://www.lotrointerface.com/portal.php?id=35&a=faq ), they send me to http://www.lotrointerface.com/index.php . Where SHOULD they really send me?
The 'How To' examples are in the FAQ pages. There are a couple of things that could be preventing your browser from following the links properly - what browser are you using?
Garan is online now Report comment to moderator   Reply With Quote Reply With Quote
Unread 04-08-2015, 01:40 PM  
Trendafil
The Wary

Forum posts: 0
File comments: 7
Uploads: 0
How to...

This plugin sounds wonderful, but I seem to be too dumb to set up the alerts properly. Is there a "How to" anywhere to be found? (My main goal is to be told when certain group content is mentioned in world chat.)

In addition, when I click on the links in the FAQs ( http://www.lotrointerface.com/portal.php?id=35&a=faq ), they send me to http://www.lotrointerface.com/index.php . Where SHOULD they really send me?
Trendafil is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 08-05-2014, 12:48 PM  
RJFerret
The Wary

Forum posts: 0
File comments: 32
Uploads: 0
Might the new World chat channel be added please? :-)

PS: For others in the meantime, it's custom channel 38.

Last edited by RJFerret : 08-05-2014 at 01:01 PM.
RJFerret is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 09-25-2012, 02:27 PM  
Garan
The Undying
 
Garan's Avatar
Interface Author - Click to view interfaces

Forum posts: 243
File comments: 721
Uploads: 19
Ver 1.05

I finally got around to posting version 1.05 of Alerter. Unfortunately this version does not contain the party member names for pattern matching or for insert into messages. Hopefully I will find time to finish debugging that option for the next release (debugging is painfully slow with my current setup). One requested feature did make it into this build, the ability to log your alerts so that you can review them. The log file will be created in the
"..My Documents\The Lord of the Rings Online\PluginData\username\AllServers" folder with a name like:
Alerter_Log_20120925_152248.plugindata
where 20120925 is the date in YYYYMMDD format and the last number is a time stamp in HHMMSS format. The log file will be created when the plugin is unloaded.
Garan is online now Report comment to moderator   Reply With Quote Reply With Quote
Unread 09-14-2012, 12:27 PM  
Stever1388
The Undying
Interface Author - Click to view interfaces

Forum posts: 30
File comments: 118
Uploads: 10
Thank you so much, that is amazing, and is exactly what I am looking for.

<jumps around>
Stever1388 is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 09-14-2012, 08:04 AM  
Garan
The Undying
 
Garan's Avatar
Interface Author - Click to view interfaces

Forum posts: 243
File comments: 721
Uploads: 19
Quote:
Originally Posted by Stever1388
I tried reading through the comments in this thread but there are a bit too many to really do. So I'll just ask it:

Is there a way to take parts of the original message that fired an Alert, and use only those parts for the message? I see that %1 will take only the part of the message that you search for, and make that the message, and leaving it blank will display the original chat text (using %M seems to do the same thing).

What if the text is "Arancerthelion applied a <rgb=#FFFF00>benefit</rgb> with Sign of Power: Righteousness on Alvirhelm." and you search for "with Sign of Power: Righteousness on", but want the Alert message to display "Reapply SI on <NAME>" where <NAME> is the last name in the original message, in this case "Alvirhelm".

Thanks, and great plugin, makes it much easier to yell at those hunters for breakin my mezzes!

Edit: If you display the actual text from the chat, is there anyway for it to not display the XML codes, but just the text?
What you are looking for are called "Captures" in Lua. When providing a search pattern, any values matching patterns inside parentheses will be returned indexed by the order of the parentheses they matched. I expose these values to the Message field using %1, %2, %3, etc. So, if you build a pattern like "This is (.*) a (.*) pattern" and the incomming text is "This is not a test pattern", "not" would match the first parentheses and "test" would match the second parentheses so %1="not" and %2="test" when used in the message. These Patterns closely resemble Regular Expressions but are NOT actually Regular Expressions and do not represent all of the capabilities of RegEx.

In order to suppres the XML code, you would have to specify the XML as part of the search string outside of the Capture. In your example, with incomming text "Arancerthelion applied a <rgb=#FFFF00>benefit</rgb> with Sign of Power: Righteousness on Alvirhelm." you could use the pattern:
"(.*) applied a <rgb=#FFFF00>(.*)</rgb> with (.*) on (.*)%..*"
which would result in
%1="Arancerthelion"
%2="benefit"
%3="Sign of Power: Righteousness"
%4="Alvirhelm"
Note that the "%." matches the period from the original text so that only the name is captured. The last ".*" will take care of any trailing linefeed or carriage return at the end of the text.

This example would match ANY effect (that uses a yellow colored effect label) that you apply to a target since it is an example of how to capture what is inside the XML. To only capture uses of Sign of Power: Righteousness you would have to eliminate the third capture and specify the actual text:
"(.*) applied a <rgb=#FFFF00>(.*)</rgb> with Sign of Power: Righteousness on (.*)%..*"
which would result in
%1="Arancerthelion"
%2="benefit"
%3="Alvirhelm"

You do not have to use all of the captures in the displayed message. For instance you could use the above pattern but then only use %3 in the actual message. If you are sure you will not use the capture, then it is probaby best to leave off the parentheses and adjust your indexes to only capture the parts that you will actually use. So, in the example above if you really only want the target name then you would just use the pattern:
"Arancerthelion applied a <rgb=#FFFF00>benefit</rgb> with Sign of Power: Righteousness on (.*)%..*"
which would result in
%1="Alvirhelm"

Hopefully that helps to clarify things a bit. See the online Lua manual for more details:
http://www.lua.org/manual/5.1/manual.html#5.4.1

Last edited by Garan : 09-14-2012 at 08:26 AM.
Garan is online now Report comment to moderator   Reply With Quote Reply With Quote
Unread 09-13-2012, 09:24 PM  
Stever1388
The Undying
Interface Author - Click to view interfaces

Forum posts: 30
File comments: 118
Uploads: 10
Well I was able to make it work the way I wanted to by searching for "Sign of Power: Righteousness on .*" and then making the message "Reapply %1" and it'll read "Reapply Sign of Power: Righteousness on <name>" so that's good. My question still stands though (I'm sure I'll find some way to use it haha)

But I encountered a bug while doing this... If you delay an Alert (in the Response tab, not the In/Out Combat delay), and then use scrolling text, depending on how long you wait to display the text, the text will scroll out of the box you give it to display in, and right off the screen. I prefer White Text because it's the easiest to see/read no matter what the background color(s) are, but I like the scrolling text because it helps catch my eye, but if I put that above Alert on a 30-90 second delay, by the time it is set to display it is way off my screen.

Perhaps another feature you could add in the next version is the ability to put a black (or whatever color someone wants) border around text, because black border+white text = ability to read no matter what. Or a way to put a black background (or again, any color) behind the text. I could see how that might not be possible yet though.

Can't wait for another update.
Stever1388 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:21 PM.


Our Network
EQInterface | EQ2Interface | Minion | WoWInterface | VGInterface | LoTROInterface | MMOInterface | Swtorui