Home   Help Search Login Register  

Author Topic: Game shuts off when i try to play .ogg music, can someone please help me.  (Read 2419 times)

0 Members and 1 Guest are viewing this topic.

airsoftsniper822

  • Guest
When I try to play a .ogg music file I reach the activation point and then the game shuts off. Can someone please tell me what i'm doing wrong?  ???

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
You need to supply more information.

We know nothing, in detail.

How are you activating the .ogg sound file...........have you got a description.ext file defining all the relevant goolies........etc........etc


We need more information..............then..............maybe............we can help you.   8)


Planck
I know a little about a lot, and a lot about a little.

airsoftsniper822

  • Guest
Sorry your right. I enter in the activation text playmusic"thenameofmyfile" then when i get to the place it seems like it wants to go but then just shuts off. I just took a song and followed the steps to convert it to .ogg at 64 bitrate and 44100 Hz. It used to say music running not found and then i must have fixed something because now it finds it but it just shuts off the game.

Hope this help. TY.

airsoftsniper822

  • Guest
I got the steps to put the music on from
http://www.ofpec.com/ed_depot/the_files/OFPResources/tutorials/MusicSoundRadio.zip

I did everything right, i've checked it over at least 6 times.

Offline nominesine

  • Former Staff
  • ****
  • I'm NOT back!
    • The IKB Forum
I'm not sure if this will help you, but I had a similar problem. I use Illustrator's dbPowerAmp to convert my sounds into .ogg-format. But a couple of months ago Windows started to have a serious conflict with the program. Whenever I tried to copy or move an .ogg-file Windows Explorer crashed. It seems to be connected to some automatic update of Windows service pack. Solution? I reinstalled a new version of the PowerAmp and it worked again. I never delved into problem deeper than that.
OFPEC | Intel Depot
RETARDED Ooops... Retired!

airsoftsniper822

  • Guest
!!!Need Help!!!
« Reply #5 on: 06 Jul 2006, 04:39:37 »
I have tried to get music to work on my OFP(cold war crisis version only) game for 2 days now. It keeps coming up with a can't find lnmb message. I followed NavySeals tut. but no luck. I am making a mission where you play as a Delta Force soldier during the Black Hawk Down movie. I just realized you could put music on the game that was not on it before. I found a song called "Leave no man behind" but cut it down to "lnmb" so the game can reconize it. I first coverted it to wav the .ogg. I coverted it at:
Frequency 44100 hz max,BitRate 128kbps, 16 bit, stereo, Encoding - Constant Bitrate.
I then put it into a folder named"Music".
I then made the notepad doc. so it looks like this:
--------------------------------------------------------------------------------------------------
class CfgMusic
{
   tracks[]=
   {
       lnmb
   };
   
   class lnmb
   {
       name="lnmb";
       sound[]={\music\lnmb.ogg,db+0, 1.0};
   };
};
--------------------------------------------------------------------------------------------------------------
without the lines.(I just was showing that there is no space between the start of notepad and the writting, if the is a space please tell me) I then save it as description.ext and not as a .txt. I then put that next to the folder named: Music. Then I start the game but there is no song named lnmb in the music-drop down list. I try to make it play as a trigger by putting Activation by:west, Activation:True, On Activation:playMusic"lnmb". It just says can't find lnmb. Hope I said enough info.
If you know what I did wrong please tell me, Thank You.

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re: !!!Need Help!!!
« Reply #6 on: 06 Jul 2006, 12:25:22 »
Please don't make a new thread about the same problem.

You already have a thread concerning this problem.

*merging*

On to your problem:

I would firstly check that your description.ext is indeed called description.ext and not description.ext.txt.

Many people have their system set to hide known file extensions, so, if you cannot see a .txt extension, it might be that you have it set to hide them.

On the other hand it might be that it indeed doesn't have it.   :P


Planck
I know a little about a lot, and a lot about a little.

airsoftsniper822

  • Guest
How would I unhide these docs.?

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Drifting slightly off topic, but in a good cause........Go to Folder Options.........View Tab

There should be an item marked........Hide file extensions for known file types.

If this is checked uncheck it, otherwise leave it alone.


Planck
I know a little about a lot, and a lot about a little.

airsoftsniper822

  • Guest
You were right they were hidden. Even after that its not working but i'm going to keep trying. It doesn't even say anything now or show up in the music list drop-down. Thanks for all the help so far!!!

Offline Garcia

  • Members
  • *
  • Leeds United is the best football team...EVER!
That's because your soundfile is all wrong...I don't remember exactly how it is supposed to be, but I belive it's at least supposed to be 24000 Hz, and possibly mono, not stereo. Think I also got a bitrate on 64 kbps on all my .ogg files...dunno why really :P Anyway, try converting it to 24000 Hz and mono at least. If I were home I could have told you for sure how it's supposed to be.

Offline supershooter

  • Members
  • *
  • 2+2=4
Your ogg file should be:

Mono
44100Hz
16-bit

--------------------------------
I reckon there is something wrong with your description file. Try getting a program called Chris' OFP Script Editor, it makes things simple, meaning; it does the complicated bits for you.

-supershooter

Offline Garcia

  • Members
  • *
  • Leeds United is the best football team...EVER!
There's nothing wrong with his description.ext, because if there was, OFP would most likely crash.

airsoftsniper822

  • Guest
I got that chris' editor program so I know now that it can't be the Description file, so the only things left are the music converter and the trigger. For the trigger I keep every thing the same except I change Activation to West condition True and On Activation to playMusic"lnmb".
How I did the Converter is the same way as I said I had it above.

Offline Garcia

  • Members
  • *
  • Leeds United is the best football team...EVER!
If it was the descrition.ext that was messing up things, your OFP would crash, most likely. I've never experienced anything else., except if you type the soundfile name wrong ;)

Only possible problems left are:

1: You've typed the command wrong, but this should have given you an error so you would have known.

2: You've typed the soundfile name wrong in the description.ext or in the command line, goes for the same, and it would give you an error about missing soundfile, and would be easy to spot.

3: Your soundfile isn't working, which will give no errors.

The only possibility left is that you haven't converted the soundfile the right way. I'd guess you've got it stereo instead of mono, which you stated in your earlier post.