|
|
|
08-28-2012, 12:02 PM
|
|
The Undying
Forum posts: 27
File comments: 308
Uploads: 2
|
Re: Thoughts about reading only changed files
Quote:
What do you think about all that? Do you think it's possible at all to remember file date/times and just read newer ABC files? I guess you'll be not very keen on programming such extension yourself when only one single user has a request for it; but I think my own Basic knowledge is good enough to get it right (at least, after some weeks or months of part-time programming, and many try-and-errors) to extend the HTA script. Of course, I would publish the such "extended" HTA script here, and maybe you'd find the idea good enough to include it in Songbook at all... or, the other way: Since I'm a Delphi programmer, I guess it would be easier (and much faster!) for me to create a stand-alone "Songbook filler" application (which I discovered to exist already, but for sure not considering file date/times as well) - is there more to it than write the file "SongbookData.plugindata" in LUA format?
|
I see your problem there. Yes, it would require that the file dates are stored locally somehow in a database or a file. The hta and the plugin are quite separate and there's no reason to write anything to plugindata, but any local storage will do of course. I had another solution for this, namely relying only on the in-game /playlist command. It wasn't as simple as I had hoped, so I'm not sure when I have the time and the energy to have a stab at it. How fast is that command for you?
However, by all means if you want to give your fix a try as well .
-Chiran
|
|
|
08-28-2012, 04:19 AM
|
|
The Wary
Forum posts: 0
File comments: 11
Uploads: 0
|
Thoughts about reading only changed files
Hello,
our band "Die Meisterbarden von Bree" is performing every Friday night at the Auction House of Bree on server Vanyar. We're 6-10 people, some of them gratefully using Songbook.
Since distributing (and "syncing") our many music files to so many people has become pretty complicated, we have installed a shared WebDav server and linked its directory below the "Music" folder and are now playing our music directly from that folder ("/play mb/lalala 21 sync" where directory "mb" is somewhere far away in the Internet - and always identical to all players).
Well, this works perfectly for playing, but the songbook.hta update script now lasts about half an hour (for about 5,000 ABC files) because it reads each and every ABC file - even those it does already know.
While this doesn't matter on a local disk (I would have programmed it that way, too), it's somewhat boring (and actually unnecessary with already-known files) when, at every update, every file is fetched by a GET from a web server over again.
I already had a look at the Songbook data files, and I came up with the idea of storing the file date/time along with the file data, and GET (=re-read) only those files which are newer than the file date/time already stored with that file (which would, of course, speed up local updates, too). I don't know Basic classes/records by heart yet, but I think, while reading fileItems in oDir.Files, there must be something like fileItem.DateTime, too, which could be stored locally, either in the PluginData itself (as additional LUA array component ["FileDateTIme"] or something like that), or within an additional "Basic-owned" mini-database (which may be easier to be re-read by the HTA script than the LUA arrays - on the other hand, with "CreateObject" in Basic, you could even store that information on an SQL server as well as long as there are some SQL client objects installed).
What do you think about all that? Do you think it's possible at all to remember file date/times and just read newer ABC files? I guess you'll be not very keen on programming such extension yourself when only one single user has a request for it; but I think my own Basic knowledge is good enough to get it right (at least, after some weeks or months of part-time programming, and many try-and-errors) to extend the HTA script. Of course, I would publish the such "extended" HTA script here, and maybe you'd find the idea good enough to include it in Songbook at all... or, the other way: Since I'm a Delphi programmer, I guess it would be easier (and much faster!) for me to create a stand-alone "Songbook filler" application (which I discovered to exist already, but for sure not considering file date/times as well) - is there more to it than write the file "SongbookData.plugindata" in LUA format?
Any tips, suggestions, thoughts, comments on this?
-Arnhor
Last edited by Arnhor : 08-28-2012 at 04:32 AM.
|
|
|
07-29-2012, 03:27 AM
|
|
The Undying
Forum posts: 27
File comments: 308
Uploads: 2
|
Quote:
Great plugin, really enjoying it. However I have one suggestion and or question. The player button to show the window is practicly transparent. Any chance you could make it opaque or make a setting to set its transparency. I refer you to the lotropad that you also created the button for that was good nice and clear. Would like songbook button to be the same if at possible. Other wise this is a wonderful application
|
Ah yes, I'll keep that in mind. For now you can fix it by opening ToggleWindow.kua with a text editor and changing line 17 to your liking:
self:SetOpacity(0.25);
to
self:SetOpacity(1.0);
if you want it fully opaque.
Hope it helps .
-Chiran
|
|
|
07-25-2012, 07:28 AM
|
|
The Wary
Forum posts: 0
File comments: 2
Uploads: 0
|
Great plugin, really enjoying it. However I have one suggestion and or question. The player button to show the window is practicly transparent. Any chance you could make it opaque or make a setting to set its transparency. I refer you to the lotropad that you also created the button for that was good nice and clear. Would like songbook button to be the same if at possible. Other wise this is a wonderful application
|
|
|
07-19-2012, 06:01 AM
|
|
The Undying
Forum posts: 27
File comments: 308
Uploads: 2
|
Re: Error
Quote:
...ginData/TRUELIKEtheRIVER/Arkenstone/Eromares/SongbookSettings.plugindata:1: unexpected symbol
...gs Online\Plugins\Chiran\Songbook\SongbookWindow.lua: 44: Unable to parse file!
are my 2 errors. it works on my newest toon but it doesnt work on my person named eromares and all my other toons
please help! it woukd me me very grateful
|
Hm there seems to be an error on the character-specific settings. Those errors are probably related. You can try the following:
1. unload all plugins or exit the game
2. find and delete the file that the first error refers to (SongbookSettings.plugindata with the exact same directory as in the error message)
3. load plugins or start the game
Hope it helps.
-Chiran
|
|
|
07-18-2012, 09:21 PM
|
|
The Wary
Forum posts: 0
File comments: 2
Uploads: 0
|
Error
...ginData/TRUELIKEtheRIVER/Arkenstone/Eromares/SongbookSettings.plugindata:1: unexpected symbol
...gs Online\Plugins\Chiran\Songbook\SongbookWindow.lua: 44: Unable to parse file!
are my 2 errors. it works on my newest toon but it doesnt work on my person named eromares and all my other toons
please help! it woukd me me very grateful
|
|
|
06-20-2012, 03:32 PM
|
|
The Undying
Forum posts: 27
File comments: 308
Uploads: 2
|
Quote:
Would you mind if I look into this problem on my own? (I would submit any possible modification to you of course)
|
Sure if you like, and that feature would probably be good for displaying ready checks as well.
-Chiran
|
|
|
06-20-2012, 07:55 AM
|
|
The Wary
Forum posts: 0
File comments: 3
Uploads: 0
|
Quote:
Plugins on different computers cannot really communicate with each other except by more or less manually using, for example, the party chat channel to transmit information.
|
I understand that and I was more thinking on listing the messages "Player is now playing xxx" which are displayed in the chat window.
Would you mind if I look into this problem on my own? (I would submit any possible modification to you of course)
Mierin
|
|
|
06-20-2012, 07:51 AM
|
|
The Wary
Forum posts: 0
File comments: 3
Uploads: 0
|
Double post
Last edited by Mierin : 06-20-2012 at 08:35 AM.
|
|
|
06-20-2012, 04:43 AM
|
|
The Undying
Forum posts: 27
File comments: 308
Uploads: 2
|
Quote:
Thanks for this plugin!
I was wondering if you could add the following feature for large bands.
The goal is to get the information in the chat log about who is choosing each part of the song and show it in the songbook window.
|
Thanks for the feature suggestion! That does indeed sound useful but although not impossible, it's not as straightforward as that with the current plugin system. Plugins on different computers cannot really communicate with each other except by more or less manually using, for example, the party chat channel to transmit information. So it would be a bit clunky . However, I'll certainly keep this in mind and see what could be done with it.
-Chiran
|
|
|
06-19-2012, 11:43 AM
|
|
The Wary
Forum posts: 0
File comments: 3
Uploads: 0
|
Hello Chiran,
Thanks for this plugin!
I was wondering if you could add the following feature for large bands.
The goal is to get the information in the chat log about who is choosing each part of the song and show it in the songbook window.
For example : if there are 4 instruments for a song, the four are displayed in the part list. When a player selects one, his name is linked in the list to the correct part. The other players can then see which parts are already taken or not.
It would be great to manage large bands.
I hope you understand what I mean
Mierin
|
|
|
06-17-2012, 07:42 AM
|
|
The Wary
Forum posts: 0
File comments: 2
Uploads: 0
|
Greetings!
Well thanks for the swift reply! I was way to sleepy when I tried to get it to run.
I had put it in the PluginsData folder and didn't even think of creating a separate "Plugins" folder. Once I did that it ran smoothly
It is without a doubt a brilliant little extra feature for the game, big props!
Best regards,
Saphyroth
|
|
|
06-17-2012, 02:47 AM
|
|
The Undying
Forum posts: 27
File comments: 308
Uploads: 2
|
Re: New to Plugins
Quote:
This is my first LOTRO Plugin so I was wandering if there is something else I need to put in the Plugin folder for it to work.
|
Hello Saphyroth,
Hm I'm pretty sure that the link once had at least some kind of instructions on how the plugins are organized. Oh well, maybe this link could be more useful:
http://forums.lotro.com/showthread.p...Lua-UI-plugins
I also wrote something about it here: http://chiran.lotrointerface.com/por...a=faq&faqid=15
But in any case, it's probably just about where you copy the plugin files. I hope you get it to work with these instructions .
-Chiran
|
|
|
06-17-2012, 02:44 AM
|
|
The Undying
Forum posts: 27
File comments: 308
Uploads: 2
|
Quote:
Can't wait for the new version--hopefully it will magically start working again!
PS: I don't think i included this the last time I reported an error here--in addition to not being able to load the .hta file, I can't run songbook in game, and when I try to do so, I get this error:
Online\Plugins\Chiran\Songbook\SongbookWindow.lua: 1457: attempt to index field '?' (a nil value)
|
Oh, that sounds like an error with the instrument quickslots. I haven't run into that myself, but things have changed in that department so I'm not really surprised. Thanks for the report .
-Chiran
|
|
|
06-17-2012, 01:47 AM
|
|
The Wary
Forum posts: 0
File comments: 2
Uploads: 0
|
New to Plugins
Greetings Chiran,
I am a new player to LOTRO and I came across several people who were using this Plugin and I found it to be very entertaining.
I followed every instruction by the letter and the .hta file seems to create the library successfully but once I'm in the game and want to /plugins load songbook
(load it) it just says "Unable to load Songbook" ... No fancy error message etc.
This is my first LOTRO Plugin so I was wandering if there is something else I need to put in the Plugin folder for it to work.
The link you had put up on the installation section just confused me since it was only talking about and around starting to create your own Lua scripts etc.
Any help would be appreciated.
Best regards Saphyroth
|
|
|
All times are GMT -5. The time now is 07:15 PM.
|
|