Music info.conf problem.

Stuck at a level? Need help with R'n'D or anything R'n'D related? Post here!

Moderators: Flumminator, Zomis

Post Reply
User avatar
RTADash
Posts: 180
Joined: Sun May 27, 2007 11:33 am
Location: USA (Ohio)

Music info.conf problem.

Post by RTADash » 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 .

Please help!
Those who can't learn will teach; those who can't teach will learn.

Tomi
Posts: 339
Joined: Wed Aug 03, 2005 3:37 pm
Location: Slovakia

Post by Tomi » 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.

User avatar
RTADash
Posts: 180
Joined: Sun May 27, 2007 11:33 am
Location: USA (Ohio)

Post by RTADash » 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

background.MAIN:		 BDWM.mid
background.LEVELS:		BDEC.mid
background.INFO:		 BDEC.mid
background.SETUP:		BDWM.mid
background.SCORES:	      BDHS.mid


background.PLAYING.001:                                    BDW1.mid
background.PLAYING.002:                                    BDW1.mid
background.PLAYING.003:                                    BDW1.mid
background.PLAYING.004:                                    BDW1.mid
background.PLAYING.005:                                    BDW2.mid
background.PLAYING.006:                                    BDW2.mid
background.PLAYING.007:                                    BDW2.mid
background.PLAYING.008:                                    BDW2.mid
background.PLAYING.009:                                    BDW3.mid
background.PLAYING.010:                                    BDW3.mid
background.PLAYING.011:                                    BDW3.mid
background.PLAYING.012:                                    BDW3.mid
background.PLAYING.013:                                    BDW4.mid
background.PLAYING.014:                                    BDW4.mid
background.PLAYING.015:                                    BDW4.mid
background.PLAYING.016:                                    BDW4.mid
background.PLAYING.017:                                    BDW5.mid
background.PLAYING.018:                                    BDW5.mid
background.PLAYING.019:                                    BDW5.mid
background.PLAYING.020:                                    BDW5.mid
background.PLAYING.021:                                    BDW6.mid
background.PLAYING.022:                                    BDW6.mid
background.PLAYING.023:                                    BDW6.mid
background.PLAYING.024:                                    BDW6.mid
background.PLAYING.025:                                    BDW1.mid
background.PLAYING.026:                                    BDW1.mid
background.PLAYING.027:                                    BDW1.mid
background.PLAYING.028:                                    BDW1.mid
background.PLAYING.029:                                    BDW2.mid
background.PLAYING.030:                                    BDW2.mid
background.PLAYING.031:                                    BDW2.mid
background.PLAYING.032:                                    BDW2.mid
background.PLAYING.033:                                    BDW3.mid
background.PLAYING.034:                                    BDW3.mid
background.PLAYING.035:                                    BDW3.mid
background.PLAYING.036:                                    BDW3.mid
background.PLAYING.037:                                    BDW4.mid
background.PLAYING.038:                                    BDW4.mid
background.PLAYING.039:                                    BDW4.mid
background.PLAYING.040:                                    BDW4.mid
background.PLAYING.041:                                    BDW5.mid
background.PLAYING.042:                                    BDW5.mid
background.PLAYING.043:                                    BDW5.mid
background.PLAYING.044:                                    BDW5.mid
background.PLAYING.045:                                    BDW6.mid
background.PLAYING.046:                                    BDW6.mid
background.PLAYING.047:                                    BDW6.mid
background.PLAYING.048:                                    BDW6.mid
background.PLAYING.049:                                    BDW1.mid
background.PLAYING.050:                                    BDW1.mid
background.PLAYING.051:                                    BDW1.mid
background.PLAYING.052:                                    BDW1.mid
background.PLAYING.053:                                    BDW2.mid
background.PLAYING.054:                                    BDW2.mid
background.PLAYING.055:                                    BDW2.mid
background.PLAYING.056:                                    BDW2.mid
background.PLAYING.057:                                    BDW3.mid
background.PLAYING.058:                                    BDW3.mid
background.PLAYING.059:                                    BDW3.mid
background.PLAYING.060:                                    BDW3.mid
background.PLAYING.061:                                    BDW4.mid
background.PLAYING.062:                                    BDW4.mid
background.PLAYING.063:                                    BDW4.mid
background.PLAYING.064:                                    BDW4.mid
background.PLAYING.065:                                    BDW5.mid
background.PLAYING.066:                                    BDW5.mid
background.PLAYING.067:                                    BDW5.mid
background.PLAYING.068:                                    BDW5.mid
background.PLAYING.069:                                    BDW6.mid
background.PLAYING.070:                                    BDW6.mid
background.PLAYING.071:                                    BDW6.mid
background.PLAYING.072:                                    BDW6.mid
background.PLAYING.073:                                    BDW1.mid
background.PLAYING.074:                                    BDW1.mid
background.PLAYING.075:                                    BDW1.mid
background.PLAYING.076:                                    BDW1.mid
background.PLAYING.077:                                    BDW2.mid
background.PLAYING.078:                                    BDW2.mid
background.PLAYING.079:                                    BDW2.mid
background.PLAYING.080:                                    BDW2.mid
background.PLAYING.081:                                    BDW3.mid
background.PLAYING.082:                                    BDW3.mid
background.PLAYING.083:                                    BDW3.mid
background.PLAYING.084:                                    BDW3.mid
background.PLAYING.085:                                    BDW4.mid
background.PLAYING.086:                                    BDW4.mid
background.PLAYING.087:                                    BDW4.mid
background.PLAYING.088:                                    BDW4.mid
background.PLAYING.089:                                    BDW5.mid
background.PLAYING.090:                                    BDW5.mid
background.PLAYING.091:                                    BDW5.mid
background.PLAYING.092:                                    BDW5.mid
background.PLAYING.093:                                    BDW6.mid
background.PLAYING.094:                                    BDW6.mid
background.PLAYING.095:                                    BDW6.mid
background.PLAYING.096:                                    BDW6.mid
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.
Those who can't learn will teach; those who can't teach will learn.

User avatar
Alan
Posts: 661
Joined: Fri Jun 18, 2004 7:48 pm

Post by Alan » 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)

User avatar
RTADash
Posts: 180
Joined: Sun May 27, 2007 11:33 am
Location: USA (Ohio)

Post by RTADash » Sat Aug 25, 2007 12:03 am

Yep, it still plays music 1 :cry: .

But, why should the default behavior override the file that defines what music should be playing.
Those who can't learn will teach; those who can't teach will learn.

User avatar
Alan
Posts: 661
Joined: Fri Jun 18, 2004 7:48 pm

Post by Alan » 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 :?

*edit*

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 ;-) )

User avatar
RTADash
Posts: 180
Joined: Sun May 27, 2007 11:33 am
Location: USA (Ohio)

Post by RTADash » 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! :D :D They're midi files, so they hardly take up any room.
Those who can't learn will teach; those who can't teach will learn.

User avatar
RTADash
Posts: 180
Joined: Sun May 27, 2007 11:33 am
Location: USA (Ohio)

Post by RTADash » 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*
Those who can't learn will teach; those who can't teach will learn.

User avatar
Holger
Site Admin
Posts: 3218
Joined: Fri Jun 18, 2004 4:13 pm
Location: Germany
Contact:

Post by Holger » 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!

User avatar
RTADash
Posts: 180
Joined: Sun May 27, 2007 11:33 am
Location: USA (Ohio)

Post by RTADash » Sat Aug 25, 2007 9:31 pm

Holger wrote:Does this mean that your initial "musicinfo.conf" works now as it should?
Yep! :D

It was just a really stupid oversight on my part. :oops:
Those who can't learn will teach; those who can't teach will learn.

User avatar
Holger
Site Admin
Posts: 3218
Joined: Fri Jun 18, 2004 4:13 pm
Location: Germany
Contact:

Post by Holger » 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. :-)

User avatar
RTADash
Posts: 180
Joined: Sun May 27, 2007 11:33 am
Location: USA (Ohio)

Post by RTADash » Sat Aug 25, 2007 11:30 pm

Holger wrote: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. :wink:
Those who can't learn will teach; those who can't teach will learn.

User avatar
Holger
Site Admin
Posts: 3218
Joined: Fri Jun 18, 2004 4:13 pm
Location: Germany
Contact:

Post by Holger » 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.)

Post Reply