Page 1 of 1
Music info.conf problem.
Posted: Fri Aug 24, 2007 4:57 pm
I'm having a problem with the musicinfo.conf of the NES BD "conversion" I'm putting together. I have the conf file set up to play the first background music (BDW1.mid) for levels 001-004, and then the second music (BDW2.mid) for levels 005-008, the third (BDW3.mid) for levels 009-012, etc...
But, when I go to play level 002, it goes and plays the second music and then the third music on level 003, although they're all assigned to the first music.
I know the formatting is OK, because I copied it directly from a working musicinfo.conf .
Posted: Fri Aug 24, 2007 5:08 pm
AFAIK the default behavior (with missing/malformed musicinfo.conf) is to play the tracks alphabetically, the first one in the first level etc., so I guess the program didn't read the musicinfo.conf correctly. Please post it here. Also, are you sure it's in the right directory? Reading stderr.txt and stdout.txt in game directory could also help.
Posted: Fri Aug 24, 2007 6:25 pm
I have it in the music folder and the game plays the correct music on all the menus; it's just the level background music that's troubling me for some reason. Here's the exact contents: (sorry, kinda repetitive)
Code: Select all
#NES BD MUSIC
name: NES BD Music
sort priority: 10
Depending on your screen, the file names might wrap around and appear under the "background.PLAYING.###", but I have them on the same lines in the actual file.
Posted: Fri Aug 24, 2007 9:27 pm
I know the formatting is OK, because I copied it directly from a working musicinfo.conf
Except it should be sort_priority with an underscore (not that it would matter though).
What if you made level 1 use tune 4 does it still play tune 1? (if it does then Tomi was right)
Posted: Sat Aug 25, 2007 12:03 am
Yep, it still plays music 1
But, why should the default behavior override the file that defines what music should
Posted: Sat Aug 25, 2007 12:29 am
Compared to the graphicsinfo.conf the musicinfo.conf is a fickle thing which almost drove me nuts with BD2K3 (I was convinced that the tunes played in the order they where created and not alphabetically)
It seems to be fixed now but I've never repeated tunes every 5 levels like you have so copying BD2K3's musicinfo (which works in 3.2.4) might not work. Try it anyway, just replace my song names with your own and see what happens......it could be a rouge character in your infos (music and level) breaking the whole thing
Check your names too.......the fact that you missed out an underscore from the sort_priority might mean you missed one from the levelinfo.conf too (not that this matters, but as I said the musicinfo is fickle and has its own weird rules
Posted: Sat Aug 25, 2007 6:35 pm
Ohh...I Know what I can do to make this really easy!
I'll just make 3 more copies of each one and then I'll name the 24 files A through X. Problem solved!
They're midi files, so they hardly take up any room.
Posted: Sat Aug 25, 2007 7:59 pm
Nvm, I discovered that I had "override level music" turned on, and it just happened to be a another one of my levelsets that used the same music, but in sequence w/o repeating... *throws fit*
Posted: Sat Aug 25, 2007 8:59 pm
> I'll just make 3 more copies of each one and then I'll name the 24 files A
> through X. Problem solved!
Ouch! This really should not be the solution to your problem! :-O ;-)
> Nvm, I discovered that I had "override level music" turned on, and it just
> happened to be a another one of my levelsets that used the same music,
> but in sequence w/o repeating... *throws fit*
Does this mean that your initial "musicinfo.conf" works now as it should?
As Alan said, "musicinfo.conf" can be confusing in that every mistake in it causes the game to pick a music file due to completely different rules (sequentially playing all music files not defined in "musicinfo.conf"), so it can be hard to track down mistakes in the config file.
BD2K3 is usually the best example to see "how things work" in this regard.
Please write a short note if it works now, or if there is some sort of buggy behaviour that needs fixing from my side (or other reason why it still may not work) -- thanks!
Posted: Sat Aug 25, 2007 9:31 pm
Holger wrote:Does this mean that your initial "musicinfo.conf" works now as it should?
It was just a really stupid oversight on my part.
Posted: Sat Aug 25, 2007 10:06 pm
Thanks for confirming that this issue is solved!
So I don't have to go bug-hunting for this one. :-)
Posted: Sat Aug 25, 2007 11:30 pm
So I don't have to go bug-hunting for this one.
If you can fix the "B-fly and F-fly sometimes avoiding the boulders" bug, I'll forever be indebted to you because I hate that...really.
Posted: Sun Aug 26, 2007 12:10 am
> If you can fix the "B-fly and F-fly sometimes avoiding the boulders" bug, [...]
This will be "fixed" in a future version (planned for 3.4.0) which will introduce a 99% compatible BD engine (where butterflies and fireflies will behave just as they did in the original game). :-)
(The main reason for this behaviour in R'n'D is that it has an "asynchronous" game engine, which makes such cases possible, while BD has a "synchronous" game engine where this cannot happen by definition.)