Home   Help Search Login Register  

Author Topic: So i got my .ogg file?....  (Read 3634 times)

0 Members and 1 Guest are viewing this topic.

SharkDog

  • Guest
So i got my .ogg file?....
« on: 14 Oct 2002, 22:19:48 »
Ok so i got my .ogg file and i want to test it in game.
Were do i put it in my mission so i can choose it from the music bar in the triggers.

Plz help, i really need to know.
thx in advance.

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
Re:So i got my .ogg file?....
« Reply #1 on: 14 Oct 2002, 22:24:55 »
you should go and post this in the 'sounds and cutscenes' board  :P

check the editors depot or use the search function - im very very very sure this has been asked many times before and you should try and look for it.
Proud Member of the Volunteer Commando Battalion

SharkDog

  • Guest
Re:So i got my .ogg file?....
« Reply #2 on: 14 Oct 2002, 22:50:39 »
Thats what i have done thats how i discovered that i have to make an .ogg file but then it says: copy this to the right subfile in you mission, bu I mean  :o :o wich f**king subfile or other stuff.

Plz i need help, i couldnt find it, il search more now but i doubt i will find what im searching for.

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
Re:So i got my .ogg file?....
« Reply #3 on: 14 Oct 2002, 23:06:15 »
ok, well heres a very bref description of what to do...

now the subfiles for sounds are basically folders in the mission folder...

so create a folder called Music and a folder called Sound in the actual mission folder. This is where you put yor ogg.

Now to make it play in the editor u shud go grab a example of a description.ext file from the editors depot - this is needed to 'tell' the game there's a custom sound that needs to be added to the trigger effects list.
Proud Member of the Volunteer Commando Battalion

SharkDog

  • Guest
Re:So i got my .ogg file?....
« Reply #4 on: 14 Oct 2002, 23:21:17 »
I cant find an example.

but thank you for helping me out further.

Kaliyuga

  • Guest
Re:So i got my .ogg file?....
« Reply #5 on: 15 Oct 2002, 05:42:49 »
class CfgMusic
{
      tracks[]={music};
 
      class music
      {
            name = "";
            sound[] = {\Music\WhiteZombie.ogg,db+30, 1.0};
      };
 class music1
      {
            name = "";
            sound[] = {\music\People of the Sun.ogg, db+30,  
1.0};
      };
 
};


 Put that in your description.ext  and replace the "WhiteZombie" and "People of the Sun" with the names of your .ogg files.

Then.. in a trigger use this syntax to play the first song:

playmusic "music"

or this:   playmusic "music1"
 to play the second ;)

SharkDog

  • Guest
Re:So i got my .ogg file?....
« Reply #6 on: 15 Oct 2002, 11:54:04 »
I really thank you for helping me all, but i'm affraid i need your help again.

I coppied and pasted your description.ext it looks like this

class CfgMusic
{
      tracks[]={music};

      class music
      {
            name = "";
            sound[] = {\Music\barber.ogg,db+30, 1.0};
      };
class music1
      {
            name = "";
            sound[] = {\music\barber.ogg, db+30,  
1.0};
      };

};

maby its because i use 1 song and not 2, i don't know but if this is good, plz tell me were i save this description.ext.
Just in my mission folder?

and were in the trigger do i put this playmusic "music"

My song i want to put in is Samuel barbers modern strings, its 1.61 mb.

SharkDog

  • Guest
Re:So i got my .ogg file?....
« Reply #7 on: 15 Oct 2002, 11:59:53 »
i treid more, and in the editor i then says couldn't find music
plz help :-\

Kaliyuga

  • Guest
Re:So i got my .ogg file?....
« Reply #8 on: 15 Oct 2002, 12:29:55 »
so create a folder called Music and a folder called Sound in the actual mission folder. This is where you put yor ogg

Just caught this bit... and this might be your sticking point...

You only need to make one folder.... named music  inside your mission folder.. where the description.ext and everything goes

Then.. place yer .ogg file in there...
 I'm guessing the sound folder would be for any .wss files?? (but that's another story ;)  )

Also... you are telling OFP that both music and music1 are the same file.. this could be another problem with your description.ext  (you have barber.ogg listed twice) ... just change the name of music1  to barber1 or you can even delete that part if you want.....  

Then.. the description.ext is saved in your mission folder as well...  

You place the syntax for calling the music in the activation field of a trigger/waypoint  

playmusic "music"

that should be it....  


SharkDog

  • Guest
Re:So i got my .ogg file?....
« Reply #9 on: 15 Oct 2002, 13:03:38 »
Sigh tried it all, i dont know what im doing wrong, doesnt anyone know an example mission were you just put your own .ogg in and only change the words in description.ext, otherwise nevermind.

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
Re:So i got my .ogg file?....
« Reply #10 on: 15 Oct 2002, 14:44:00 »
sorry, but i was correct the first time  ;)

music folder cntains sounds that will be played like music - so over the sfx and global sounds.

sounds folder is for any sound that is specific to a place or unit - like talking.

the description file DOES NOT go in these folders - it is placed into the main mission folder.

try and fill in the 'name' section - this is the name the music is given in the editor effects list. and, well, make sure you have spelt it all correctly.
Proud Member of the Volunteer Commando Battalion

SharkDog

  • Guest
Re:So i got my .ogg file?....
« Reply #11 on: 15 Oct 2002, 16:04:37 »
hmm i still can't get it to work...
are there any example missions? wich i can check out

Kaliyuga

  • Guest
Re:So i got my .ogg file?....
« Reply #12 on: 15 Oct 2002, 20:22:26 »


[attachment deleted by admin]

SharkDog

  • Guest
Re:So i got my .ogg file?....
« Reply #13 on: 15 Oct 2002, 20:43:49 »
OK thx to you i have came a step further, i  don't get the message: canot find Music music.
so i guess the music just is playing, but i put my boxes on the highest volume but i didn't hear a thing

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
Re:So i got my .ogg file?....
« Reply #14 on: 16 Oct 2002, 01:43:02 »
sometimes that happens...

can be for several reasons...

the common ones (i find) is that you have placed the sound part of the description.ext at the bottom of the list - dunno why, but if the sound isnt playing then this can help if you place it at the top

or

the .ogg u have is not compatible with ofp - to say its not at 44100 Hz or other such reasons.

Proud Member of the Volunteer Commando Battalion

Offline jens198

  • Former Staff
  • ****
  • Falcon 3.0 forever!
Re:So i got my .ogg file?....
« Reply #15 on: 17 Oct 2002, 02:30:40 »
@ SharkDog

just one thing that happend to me one time. after doing a lot of missions with musc and sound one day none of my missions played the sounds. no error message, just no music. solution for me was to turn up the music volume again in the audio options menu. i droped it to zero because i was anoyed by some other mission's music and forgot to turn it up again.

jens
Try to look unimportant; the enemy may be low on ammo and not want to waste a bullet on you!

Kaliyuga

  • Guest
Re:So i got my .ogg file?....
« Reply #16 on: 17 Oct 2002, 03:17:03 »
 Going along with what Messiah said... you might want to make sure that the .ogg file is constant bitrate and not variable bitrate ... ;)

red devil

  • Guest
Re:So i got my .ogg file?....
« Reply #17 on: 23 Oct 2002, 22:26:37 »
hi u couldn't all help me 2 could u i can do all the other stuff "i think" but i cant convert the files i want 2 i got a converter from here:-

http://www.opflashpoint.org/features/ogg_converter.zip

its a little fish (hehe) but i put my file in it like it askes me to and says it is not compatable it only handles 44.1kHz/16bit and mine is a 22.050000/8bit, mono. how do i convert it??? help please
« Last Edit: 27 Oct 2002, 18:12:55 by red devil »

red devil

  • Guest
Re:So i got my .ogg file?....
« Reply #18 on: 27 Oct 2002, 18:14:30 »
please...

Kaliyuga

  • Guest
Re:So i got my .ogg file?....
« Reply #19 on: 27 Oct 2002, 20:48:19 »
 Well.. 44.1k/16 bit is standard sampling and bitrate for a CD...
 Is your file a wav?  if so.. you can just go to


C:Programs/Accesories/Entertainment/Sound Recorder

in your windows.. open the wav in the recorder.. select "save as" and it will allow you to choose a bitrate and resolution for your .wav file.. easy as that.. ;D

Zahael

  • Guest
Re:So i got my .ogg file?....
« Reply #20 on: 30 Oct 2002, 06:12:24 »
Hey Shark, heres the thing.  I followed along with the instructions in the post about copying the description file provided and changed white zombie and shit with my song "Shawshank" and got exactly the same thing with "music Shawshank not found"

Frustrated, I fiddled and fiddled for ages until I realised something.  When I changed that white zobmie stuff with shawshank, I didn't actually change everything that needed to be changed.

Eg Before it looked like this.

class CfgMusic
{
      tracks[]={music};

      class music
      {
            name = "";
            sound[] = {\Music\barber.ogg,db+30, 1.0};
      };
};  

Now I changed barber in this case with shawshank, but I forgot to change also the "music" word in both the tracks section and class bit.  It should have looked like this:

class CfgMusic
{
      tracks[]={shawshank};

      class shawshank
      {
            name = "";
            sound[] = {\Music\Shawshank.ogg,db+30, 1.0};
      };

};

Because those are the labels that the editor actually looks for.
If you change yours to look like this, it shoudl work fine as long as your but rate is acceptable.  I suspect it is, and in the end it was a relatively simple problem

Another thing, your editor reads your description file once upon loading up your mission.  If you change your description file, it won't be noticed, so you must exit the editor then get back into it if you change you .ext file

Hope that helps

Zahael

Offline XCess

  • Former Staff
  • ****
Re:So i got my .ogg file?....
« Reply #21 on: 03 Nov 2002, 20:04:53 »
Yo need speech marks around the file name.