Music not working

Avatar
mazk1985
135 Posts
Posted Mar 04, 2009
Hi

I've run into a very annoying problem and have no idea what is going wrong. My previous map had music and it works perfectly but my new map refuses to play it even though its exactly the same set up as the previous map. I even changed the sound path to the same path as the other maps ambient_generic and I still get something like "cant play file. probably missing from directory" on the in game console. The only thing i can think of is that the compile log says this:
entdata [variable] 391860/393216 (99.7%) VERY FULL!

but I can't see it being that since its under 100% and why would it affect early placed entities and not the lastly placed ones. Very very annoying and I'm begging for some help cos I want to finish this god dam map.

Sorry about the stress :smile:

Other facts:
-the music is mp3 (44.1kHz 128kbps) format
-started happening maybe since I got my new pc but i could be wrong (would a multicore cpu make any difference other than speed?)
-Very large map

Advertisement
Registered users don’t see ads! Register now!
Avatar
HMW
806 Posts
Posted Mar 04, 2009
Replied 3 hours later

mazk1985 wrote:
entdata [variable] 391860/393216 (99.7%) VERY FULL!

99.7%?? :eek: Wow, i thought i was wandering close to the edge with my 93.8% entdata usage. I don't think it's that though, overflowing the entdata memory would probably cause the game to "exit ungracefully" (i.e. crash) instead of showing an error message.
You could try the following:
- Check that the music in the main game plays properly. If not, see http://forums.thinking.withportals.com/is-it-just-me-and-a-few-other-people-t1635.html
- try to play one of the stock soundtracks, e.g. "music/portal_taste_of_blood.mp3";
- copy & paste a working "ambient_generic" entity from another map and see if it plays;
- extract one of Valve's MP3's with gcfscape and see what format it has. Often games are very picky about the music format they need (bitrate, kHz, mono/stereo etc) and give misleading error messages when they get something that they can't handle.
As a last check, confirm that the event that should start the music actually triggers THAT ambient_generic, and not some other one that may be lying around with invalid settings. (I've been tearing my hair out more than once over a bug like that.)

Avatar
mazk1985
135 Posts
Posted Mar 04, 2009
Replied 1 hour later
Those ideas sound good. cheers dude. My entdata was like 103% at one point but I went through and deleted many many entities that weren't important which unfortunatly ment overlays and small details had to go. I've already tried a few of your suggestions and still not got anything. I'll try the rest soon and let you know how it goes but thanks again for your help

:smile:

Avatar
mazk1985
135 Posts
Posted Mar 05, 2009
Replied 22 hours later
OMG I'm a fucking idiot. My sound folder was named "sounds" and not "sound" and the reason the old maps music worked was because I zipped it with the bsp file. I'm so sorry for posting this thread.

Please forgive me :rolleyes:

Avatar
Remmiz
631 Posts
Posted Mar 05, 2009
Replied 47 minutes later
It's okay, everyone forgets an 's' or a ';' sometime during their technical lifetime. Some more than others (me).
Advertisement
Registered users don’t see ads! Register now!
Avatar
HMW
806 Posts
Posted Mar 06, 2009
Replied 20 hours later
Whew i'm glad you found the problem. I'm looking forward to playing your map, i've enjoyed playing your previous ones. :razz: