Quantcast
lotrointerface.com
Search Downloads


Go Back   LoTROInterface > LotRO Stand-Alone Plugins > RolePlay & Music


Post A Reply
Author Comments Comment Options
Unread 10-22-2012, 07:40 AM  
Arnhor
The Wary

Forum posts: 0
File comments: 11
Uploads: 0
This happens when an .ABC (or .TXT) file doesn't have an X: and/or T: header and you are using a Songbook filler which creates empty track records in that case and you select that file within Songbook, or if that file happens to be the first in the SongbookData.plugindata file. You can play those files in LOTRO, but when selecting such a 'trackless' file, Songbook finds an empty array index and crashes (resp. cannot be loadad at all if that file happens to be the first in the array of music files because the first one is selected automatically at loading time).

Possible solutions:
  • Chiran will modify Songbook in a way that it can deal with 'trackless' files (i.e. checks for 'no tracks at all' and internally inserts at least a pseudo-track '1')
  • You look at the file 'Documents\The Lord of the Rings Online\PluginData\<your-account-name>\AllServers\SongbookData.plugindata' (just open it with Editor/Notepad) and remove entries where ["Tracks"] = { } (i.e., no tracks at all) or ["Tracks"] = { [1] = { } } (i.e. there is a track, but with no Id) - of course, that file won't show up in Songbook any more
  • Insert a 'dummy track' (just look at the other music files how this is constructed) - not a good idea: you have to type all those [ ] { } , " absolutely correct to make it work, and you have to do this every time again after your Songbook filler has run
  • You identify the 'faulty' music files in the plugindata file (see above) and insert into those music files (again, by Editor/Notepad) two lines at the beginning: "X: 1" and "T: song title" and re-run your Songbook filler
  • You use a Songbook filler which at least inserts a "default track" if no tracks at all are found, like my WAN Songbook Filler
Hope that helps,
-Arnhor

Last edited by Arnhor : 10-22-2012 at 08:33 AM.
Arnhor is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 10-21-2012, 07:13 PM  
Belwynne
The Wary

Forum posts: 0
File comments: 4
Uploads: 0
1457 error

I get the following persistent error when I try to use Songbook. I've repeated the download, erased and repeated the download, and copied a version known to be working and pasted it into my plugins folder and the same error message comes up every time. I am pretty sure my instrument(s) are installed correctly. I can play files within the music system. These attempts are post-RoR.

...gs Online\Plugins\Chiran\Songbook\SongbookWindow.lua: 1457: attempt to index field '?' (a nil value)

Thank you.

Belwynne on Landroval
Belwynne is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 10-15-2012, 05:21 AM  
Honoun
The Wary
 
Honoun's Avatar

Forum posts: 0
File comments: 2
Uploads: 0
Quote:
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
I really needed to check back sooner, wow... cheers and thankyou. Now if only ther servers weren't down I'd be in game testing this edit out
Honoun is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 10-12-2012, 10:26 AM  
Jacinthe
The Wary

Forum posts: 0
File comments: 2
Uploads: 0
That worked ! Thanks a lot

Danke dir !

LG
Jacinthe
Jacinthe is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 10-12-2012, 10:13 AM  
Arnhor
The Wary

Forum posts: 0
File comments: 11
Uploads: 0
Sometimes the 'SongbookSettings.plugindata' file seems to be corrupted (or just a too-old version), then you cannot load it. Deleting it helped me in the past (don't worry, it's re-created automatically). You find it at Documents\The Lord Of The Rings Online\PluginData\<your-account-name>\<server-name>\<character-name>

HTH,
--Arnhor
Arnhor is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 10-12-2012, 09:54 AM  
Jacinthe
The Wary

Forum posts: 0
File comments: 2
Uploads: 0
songbook doesn't load

Hello Chiran

I can load 'songbook' for every Character but one.
If i log in with this char and try to load the programm it says ' loading of songbook not possible' (Laden von 'songbook' nicht möglich)

I don't use turbines plugin-programm

Do you have any idea?

Last edited by Jacinthe : 10-12-2012 at 09:57 AM.
Jacinthe is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 10-09-2012, 05:13 AM  
Chiran
The Undying
Interface Author - Click to view interfaces

Forum posts: 27
File comments: 304
Uploads: 2
Quote:
Is it possible to make the Songbook unequip all your weapons when clicking/equipping a instrument through Songbook?
I don't think that is possible, not at least in any automatatic way :-/.

-Chiran
Chiran is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 10-08-2012, 04:08 PM  
Tegalad
The Wary

Forum posts: 0
File comments: 18
Uploads: 0
Is it possible to make the Songbook unequip all your weapons when clicking/equipping a instrument through Songbook?
Tegalad is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 09-04-2012, 10:58 AM  
Chiran
The Undying
Interface Author - Click to view interfaces

Forum posts: 27
File comments: 304
Uploads: 2
Quote:
Anyway, I now have finished v1.0 of my "WAN Songbook Filler" (works on LAN, too, of course ). You can download it from http://lotro.hanft.de/wansongbookfiller/ (there's also some explanation on that web site). I don't know exactly how fault-tolerant it is, but it works with our own 5,000+ music files.
Very nice work, thanks!

-Chiran
Chiran is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 08-30-2012, 06:15 AM  
Arnhor
The Wary

Forum posts: 0
File comments: 11
Uploads: 0
Quote:
I noticed that parsing the .abc files can get tricky since the markup definition is so loose. There's also files around that break the already loose structure .
Oh yes, I can tell you a thing or two about it (we don't have big problems here because we created 99% of our ABC files ourselves, using LOTRO Midi Player, and afterwards editing the ABC files by hand, for example, correct some single notes, change the volume of some tracks, or enter a valid track title, and more).

Anyway, I now have finished v1.0 of my "WAN Songbook Filler" (works on LAN, too, of course ). You can download it from http://lotro.hanft.de/wansongbookfiller/ (there's also some explanation on that web site). I don't know exactly how fault-tolerant it is, but it works with our own 5,000+ music files.

While it was utterly needed by our own band, I hope it may help some other LOTRO musicians, too.

-Arnhor
Arnhor is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 08-29-2012, 11:28 AM  
Chiran
The Undying
Interface Author - Click to view interfaces

Forum posts: 27
File comments: 304
Uploads: 2
Quote:
Will post my results here when it's finished (and provide some download URL if you want to give it a try).
Sounds good. It also might help some people who are having problems with the .hta version. Btw, personally I noticed that parsing the .abc files can get tricky since the markup definition is so loose. There's also files around that break the already loose structure .

-Chiran
Chiran is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 08-28-2012, 12:36 PM  
Arnhor
The Wary

Forum posts: 0
File comments: 11
Uploads: 0
Thank you for your quick reply. I don't dare using /playlist without args any more - the game freezes for at least a minute, even when scanning only local files (I'm just using something like /playlist rootbeer* - this still works somewhat reasonably).

Meanwhile, I have already started a Delphi stand-alone application because I'm a good and fast Delphi programmer, but would need weeks or months with VBA The idea is:
  • scan the directories (including remote directories!) just once,
  • read the (new) "local database" just once, too
  • look for new or changed files, comparing file date/time and size - should be fast because it's only in-memory operations
  • read only new/changed files and fill the local database with the new data
  • write out the local database as LUA plugin data.
What I finished already:
  • Local scanning (without reading) of 5,219 files (date/time and size) - lasts less than 1 second!
  • Writing out the LUA plugin data file (currently only file names, no tracks yet) - in no time, too
Seems that scanning (and getting file date/time and size) is fast, reading (open/read/close) is slow... but when my application is finished, reading is only necessary for new/changed files (this works on local files, too - and thus even local updates should be faster). So it looks pretty good at the moment...

Will post my results here when it's finished (and provide some download URL if you want to give it a try).

-Arnhor
Arnhor is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 08-28-2012, 12:02 PM  
Chiran
The Undying
Interface Author - Click to view interfaces

Forum posts: 27
File comments: 304
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
Chiran is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 08-28-2012, 04:19 AM  
Arnhor
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.
Arnhor is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 07-29-2012, 03:27 AM  
Chiran
The Undying
Interface Author - Click to view interfaces

Forum posts: 27
File comments: 304
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
Chiran 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:44 AM.


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