Lotro Chann Filter EN Translate
Thanks to Ledviper, The English player have now an english user manual ^^
For more readability I choose to place it here
Use this thread to pull together ;)
Good read, good hunt!
First place: works in all client languages, even if that language isn't available for this plugin.
What is this?
At first, I wanted to get rid of Goldseller messages. to do this I had to filter messages in the channel before they appeared there.
So I had the idea to make this plug-in. It looks at the messages and copies only those that do not have the lotro.pay syntax.
While it was working for me, I realized that many players had enough as well. This gave me the idea to publish my plug-in and improve it to make it a general filter.
The plug-in works in the background. That is, no element is needed on-screen. However, you must first set it up. For this, you have access to a window. The settings are relatively intuitive. In addition, there is a help text at the bottom of the options window.
Whenever a message is sent to a chat channel, it is parsed by the plug-in. Two things are checked:
- If the plugin has been told to filter the channel
- If none of the words in the message are on the filter list
If the message respects these two conditions, it is then copied into the chosen color. Otherwise, it is simply not transcribed.
There are some limitations imposed by LotRO's LUA API.
- First, not all channels can be filtered. Fortunately, those that cannot be filtered are not accessible to players. Players cannot write in them (admin channel for example).
- Some channels need to have the in-game filters enabled. This is due to the way the chat system is set up, or possibly due to a bug in it.
- The plugin can not send to the channel where a message was retrieved. It has to be copied into the "standard" channel. It is therefore impossible to separate two filtered channels. This also requires the presence of messages like "Entered the World channel."
- It is impossible to automatically use the colors already defined for chat channels. There is a way to do this but it would take much longer to achieve than manually re-setting the colors.
- If you filter a single special character, errors may appear. To resolve remove them from the list, save, and relog your character.
In your OS:
- Download the archive
- Unzip it and place the whole "Galphoglas" folder (and not only its contents) in the "Plugins" folder in My Documents >> The Lord Of The Ring Online
In the game:
when you login to a character:
- Open the plug-in manager. You can open it with the command "/plugins manager"
- In the list on the left, select "Lotro Chann Filter"
- In the bottom right, choose from the drop-down list the characters on which you want to automatically launch the plugin when they login. Or to load it only for this session, use the "Load" button at the top.
When the plugin is launched, a message will be sent in chat to confirm its activation.
These are detailed. The usage is actually very simple.
These settings are specific to each character. You must set up the plugin on each character or use the trick below. To display the window, type the command "/lcf show"
In the first window that appears, you can modify the channel settings. Help messages appear at the bottom of the window to assist.
- Check the channels you want to filter. (by clicking on the CheckBox)
- Choose the color you want for that channel's text. (by clicking on the white square)
- Choose whether you want to display the timestamp or not. This one is customizable but requires the deactivation of the in-game chat timestamps for optimal display
Changes to these settings are applied instantly as a kind of preview. These settings will remain active as long as the character is online. To ensure that these settings remain when you next connect to the character you need to click "Save Settings", this saves and closes the window.
Once the channels to filter are selected, you need to setup the in-game channel filters. On the chat tab where you want to see the filtered messages, make sure it is setup as such (right click on the tab >> Change filters)
- The "standard" channel must be checked
- The channels you wish to filter must be unchecked (otherwise you will see double messages half of which will be unfiltered)
In the plug-in window, check if channels to be filtered have their name written in white.
Channels with white names require the use of an additional "trash" tab. The white name indicates that the channel has to be enabled when you connect to a character. Two solutions are available:
- Enable the channel in the in-game filter before you disconnect, then uncheck them when you re-connect.
- Leave them enabled in a "trash" tab, messages in the trash tab will be unfiltered, you can move this tab to somewhere out of the way and just ignore it.
By clicking the button "List of words to filter" in the first window, a new window will open up which allows you to modify filtered words.
The use of it is easy. There are five things to know:
- Only words in green are filtered. It is therefore necessary to click "apply" to make filtering a new word active
- By default only "pay.com" will appear in the list. It does not come back if it is deleted and the list is not empty
- Filtering is not case-insensitive. That is, it does not take into account upper or lower case letters. For example: HeLlO = hello
- The filter looks within words too. If you add "lk" to the filter, then words like "walking", "talk" or "yolk" will be filtered. Pay attention!
- The filter works for both message and the name of the person sending it. If you filter "Grandmj", then messages containing this nickname and the messages of the player named "Grandmj" will be filtered
To copy the settings from one character to another, you can copy the .plugindata files
To do this, follow these steps:
- After setting up on a character, disconnect.
- Go to: My Documents >> The Lord Of The Ring Online >> PluginData >> Account ID >> Server Name >> Character Name
- Select the files: "lcf.plugindata", "lcfColor.plugindata" and "lcfMot.plugindata" (It's possible that some of them aren't present)
- Copy them into: My Documents >> The Lord Of The Ring Online >> PluginData >> Account ID >> Server Name >> Other Character's Name(s) you wish to copy the settings to
- I prefer to be contacted IG or email if assistance is needed.
- Correctors/translators always welcome
- Suggestions accepted
Brilliant concept, and definitely handy these days. I was thinking it could also be nice to keep a short log of messages received and maybe filter automatically any recent duplications. I've noticed gold spammers can be very creative with how they advertise, but they'll literally flood the channels. At least if a duplicate is picked up it can be ignored automatically. It could be a toggable option to remove duplicate messages, or have a popup when a duplicate is received asking if the player wants to ignore further messages of the same.
I don't know when I'll have time to add this option.
But if one guy work on it and send me by email, I will find time to add in the next release ;)
i send you the german translation via private message.
But i added them here too.
Great work and thank you
Please add this plugin to the plugncompendium. So many ther user will use this.
Danke für die geleistete Arbeit!
Ich füge eine Beta. Ich lass dich versuchen!
Ja, Ich habe Deutsch funf jahre alt Gelernt... Sieht es nicht so aus? :D
danke funktioniert wunderbar.
Hier kannst du das ins Plugincompendium zufügen.
It's called the Anti-spam filter in the plugin, basically if it sees the same message more than once in chat it will filter out all the duplicates and only show the first instance.
I have none of the spammers ignored and the messages aren't filtered(you can see in the add to filter text box that the "P" is a special character so it would bypass the present filter) the messages shown in chat are 5 minutes after I saw the last ones, but of course in my unfiltered "trash" tab chat is still being flooded.
sorry for the super late reply...I didn't even think to check this thread or the plugin's page, Ill try to reply to English questions to the best of my abilities.
When I try to load this plugin I get this error:
... Online\Plugins\Galphoglas\LotroChannFilter\Main.lu a:71: attempt to index global 'tradcanal' (a nil value)
I think it doesn't load since when I type /lcf show I get Unknown command
How can I fix this?
I wasn't able to reproduce this... but try these things:
Other than that did you modify the Main.lua file at all?
EDIT: the author made a comment on the plugin page, the last release had an incorrect folder structure that quite possibly caused your error, it should look something like this:
The Lord of the Rings Online\Plugins\Galphoglas
the Galphoglas folder should contain a folder "LotroChannFilter" and two files "LotroChannFilter.plugin" and "LotroChannFilter.plugincompendium"
if the Galphoglas folder is missing simply create it and move the mentioned files and folder into it, if you use Plugin Compendium you can probably just update the plugin(I dont use compendium so not sure on that, might need to do it manually)
Thanks for response.
So I had Turbine Beta plugins already and applied ListBox patch but it didn't help (also I doubt it's needed reading it's description). I didn't modify any files in plugin, I also figured it needs to be in Galphoglas folder and placed it there. It's trying to load because it reads main.lua but it stops at line 71 which is:
I wondered what is tradcanal and found it in line 22:
Unfortunately I don't know what it means.
To be clear I use English client, I also placed world/lff/trade channels in separate tab, but enabling for example world in general chat doesn't help. I downloaded and installed current 1.2.5 version from plugin page in French, I hope it's also good for English client.
I'm using several other plugins and I'm also IT specialist, just not programmer, so I think it's unlikely I installed it wrong or something like that ;)
The plugin is multilingual at this point, even when it was only in french it still worked on the English client. The lines you mentioned are to do with the list of chat channels the plugin uses, line 22 references a previously loaded script(Language.lua) and that's where the translations are.
If it's saying 'tradcanal' is a nil value(trad being french shorthand for translation, canal being channel) that makes me think you aren't actually running the English locale, or the French or German ones for that matter, and indeed I was able to reproduce the error by manually setting the locale to something other than "en" "fr" or "de". You can check and change which locale you are using near the top right of the launcher, but as far as I know the client only supports the same languages as the plugin. *shrugs*
Potential Solution(s)*It would be best to make the changes while the game is closed though not necessary. You can unload your plugins, make the change, refresh plugins, and then load them again.*
open up the Language.lua file the first line should be:
If the line does match however a not-so-elegant solution should be to change it to this:
Thanks for help!
My language.lua 1st line was indeed like you posted. I changed it to "en"; and it worked!
GetLocale() returns my OS language isn't it? It's other than en, de or fr just like for many other players. I checked my other plugins and they don't use language.lua or at least not that function. That makes me think this plugin may not load in such cases, but it's hard to believe no one with with other than en/de/fr OS tried this plugin so far...
Or maybe I misunderstood something, English is not my native either and in French I know only je taime :cool:
You're actually right, it returns the OS locale. I'm not a plugin author just good at figuring stuff out. I'm pretty sure I know a more proper fix for this and I'll pass it along to the author.
many plugins have localization, but all the .lua files are made by the authors, It's up to them how they organize and implement such things.
I think the error occours of a little mistake
this should work
At line 1 in the language.lua is used an : before GetLocale
any reference to Turbine.Engine.GetLocale() I've found says it returns the OS locale, admittedly most posts are pretty old so maybe it changed idk.
the first link indicates Turbine.Engine.GetLanguage() should be used, and ya, the colon seems like a typo, again i'm not uh fluent in lua, but it did seem to still work.
In the language.lua you found this
I used Locale Emulator to run lotro with Japanese locale and received the same error with both forms.
replacing that line with the following is how it should be, I've tested it with Japanese locale, still downloading French and German languages to test those:
Whaou! I like this! I don't think so much hype for my plugin
Relaxe! The 1.3.0 Version be there soon. Whith Galphoglas folder and patch for get local ^^
Ho! and I added an import/export function
Sorry for my english!
And thank for explaning thurallor.
I send you the German Translation an tested version via pm.
best regards glafria
Thanks for new version!
Any chance for release notes 1.3 in English? :rolleyes:
|All times are GMT -5. The time now is 05:40 AM.|
vBulletin® - Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.