OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Pr0ph3t on 08 Mar 2005, 02:00:26
-
I've made a 50 mission campaign and now its time to add custom music sound and voices.. I'm trying to add music BUT IT WON'T WORK. I've been trying for a day, read every tutorial, downloaded every converter and it JUST WON'T WORK. I really hope its something stupid and obvious so I can start passing around this campaign! so here goes:
fire.mp3 converted to CONSTANT 44100 khz stereo 128kbps .ogg description.ext written properly, when mission loads (trigger is immediately placed in beginning since music starts right away) and OFP boots me to desktop or crashes. I tried using helimusic.ogg which comes with the example tut here and it worked great. None of my .oggs work though. I've used dbpoweramp, wavesurfer, freerip, cooledit, you name it. I just can't get these stupid songs to play!!!
also tright lesser bitrates and everything
even tried average bitrate instead of constant. Same problem. Tried lowest quality settings. Same problem. Yes I also tried different mp3s. NOTHING WORKS IT MAKES ME WANT TO THROW THIS BOX THROUGH THE WALL.
Can anybody figure this out please?
-
post your description.ext please.
-
Here you go:
// Indicates whether or not the debriefing window appears at end of the mission 0 = no, 1 = yes
debriefing = 0
// Music
class CfgMusic
{
// Contains a list of all the .ogg files (without the .ogg extension) which are
// in all of the CfgMusic class instances below.
tracks[]=
{
fire
};
// Definition for a specific music track
// The class name is referenced in the mission.sqm file. (E.g. track="01demo")
class fire
{
// Name.
name = "fire";
// Sound file to use
// First entry is sound file to use (from music directory)
// Second field?
// Third field? Pitch maybe?
sound[] = {\music\fire.ogg, db+0, 1.0};
};
};
-
Is your music file in a folder called music....and is this folder inside your mission folder?
Planck
-
yes yes all that stuff has been taken care of.. Its the .ogg file itself I think. I don't know what I'm doing wrong!
-
Well I'm not the best troubleshooter for .ext or scripts for that matter, but maybe try replacing
tracks[]=
{
fire
};
with
tracks[]= {fire};
I was looking at one of my .ext's and that's how my "tracks" part looked.
And I see Planck's post, having the folder is a good thing too. And just out of curiosity, to see if it matters, how did you "start/call" the music through the trigger?
And one last thing, its a campaign right? I haven't dealt with a campaign .ext, but I suspect they are a little different. (maybe not in the music department though :P)
-
How long is the music.......is it just a small titchy wee track or does it last a fair bit?
Planck
-
first of all, the trigger is called by anybody standing on it on the very begining of the mission. When I renamed helimusic.ogg to fire.ogg and put it in there, it played fine. Its the ogg files I'm putting.. I just don't know what format ofp needs. The tracks are about 3-4 minutes each.
and helimusic comes from bloodmixers tutorial.
-
oh and also right now its not a campaign yet its just single missions.
-
Examine helimusic.ogg to see what its stats are as far as length, Hz,kbps.... etc are.
Planck
-
already did all of that. the only thing I noticed was that my song had nominal 128 kbps and avg. 128 kpbs. and the one that worked was nominal 128 and avg. 63
But in bloodmixer's tutorial it said that you MUST use CONSTANT bitrate. I even tried using average just in case it was wrong.. And nope nothing. I really don't get what's wrong..
-
Yea sounds like a .ogg screwup or something. Maybe before reconverting it, try renaming the fire .ogg file to some other name like test and change the codes accordingly. Otherwise, what Planck said. :joystick:
-
nothing works so far
-
I dunno then... :P
Wait for the sound guru's to wake tomorrow and they can have at it. ;D
-
*** GURU CALL ***
-
I can't believe this after all that work I've hit such an obstacle! WHAT A PISS OFF! I've tried like EVERY OGG format in existence.. I have no idea what it can possibly be
-
Hmmmn, might want to send me the music file as .ogg and description.ext and I'll see if I get the same issue.
What version of OPFLASH 1.46 <--> 1.96?
send to ww2_weasel@yahoo.com
Also what else happens; does the music not play, does an error come up, do you crash to the desktop?
-
Ok just reread your post.
It crashes.
Hmmmn, if I understand you correctly; you were then able to load the mission by putting another .ogg file, by just renaming it to fire.ogg?
I'd still like an email with your files; zip or rar them up if possible.
Everything else in the description.ext looks ok, except:
May not matter in this case.
I also noticed your db set to 0-- try 20 or up to 45.
sound[] = {\music\fire.ogg, db+0, 1.0};
-
If it doesn't work for me either:
Worse case scenario; I can rerecord your music/soundbyte digitally (I would need original wav file) I would then convert it and send it back to you.
Once I made sure, I could use it.
-
I was focusing so intently onthe music - I missed the obvious.
Just noticed this:
debriefing = 0
Where's the semi colon?
-
It's not that, you don't actually need a semicolon.
-
About last post:
Doesn't matter if semicolon is there or not.
I just tried it; music plays fine.
-
Unless you know what guys? is there anyone that can refer me and mp3 -> ogg converter? and the EXACT setting to use... I actually use OFP 1.0. Lemme know if you guys had any luck with this mp3. The problem is that OFP does not recognize my OGG file. When I took the bloodmixer OGG and renamed it to fire.ogg it played fine. Its none of the mp3s I converted to ogg that work.. So basically I need the EXACT format I can convert to or some program everyone uses.
But I use 44100, 128kpbs constant and 2 chan (stereo) that's exacly what the tutorial says, but I tried all other types of setting too, variable, average, lower khz lower kpbs.. ITS A NIGHTMARE!
And no way I ain't updating. Everything MUST stay ver 1.0
-
Someone send me an OGG that you know works with OFP if it doesn't work I know I have a more serious problem . PLEAASE thank u! ;)
thes33r@hotmail.com
-
Okay I just took bloodmixer's helimusic.ogg converted it to .wav then to .mp3 then to .ogg again and you know what OFP crashed.. Its the way I'm converting them to .ogg.. I think I have to find a seperate program with an old vorbis codec.. anyone got any input?
-
I use Goldwave, which you can download free from the net.
-
I've used EVERYTHING. Goldwave, dbpoweramp, wavesurfer, freerip, and like a dozen other ones.. All converter.. Something wizard. EVERYTHING.. I have a feeling its my codec.. can anyone refer me to an older one? (not vorbis.com)
-
Okay, I OGGINFOed the helimusic.ogg file and this is the feedback:
Processing file "helimu~1.ogg"...
New logical stream (#1, serial: 000065f8): type vorbis
Vorbis headers parsed for stream 1, information follows...
Version: 0
Vendor: Xiph.Org libVorbis I 20030909 (1.0.1)
Channels: 2
Rate: 22050
Nominal bitrate: 30.000000 kb/s
Upper bitrate not set
Lower bitrate not set
Vorbis stream 1:
Total data length: 84013 bytes
Playback length: 0m:24s
Average bitrate: 27.421091 kbps
Logical stream 1 ended
XiPH encoder? well that's a surprise
-
Winamp however says this:
Length : 0:24
Average bitrate : 63 kbps
File size : 194,998 bytes
Nominal bitrate : 128 kbps
Channels : 2
Sampling rate: 22050 Hz
Serial number: 27713
Version : 0
Vendor :
Xiphophorus libVorbis I 20010225 <--- THIS is the OGG encoder I must find!! but where?
-
I found this - do a search on google.
http://www.xiph.org/
-
DAMN!! I've looked everywhere.. I managed to download the source code but No1: I have no compiler and No2: dunno if its compatible with win or linus.. yay..
All I'm finding is dead links.. There must be an archive somewhere which has this old codec
-
Alternative solution:
I use: http://www.tucows.com/preview/194683.html
PolderbitS Sound Recorder and Editor
to rerecord and edit sound that has formatting that does not allow me to convert normally. (You can do this digitally or with microphone close to speaker) I was able to convert old Russian WW2 folk songs this way.
Only converts mp3 to wav and vice versa.
Then you could try converting the wav file to ogg or wss; however you do that normally.
I'm only suggesting this as it's a very fast way for me to get around this kind of problem.
Has always worked for me. No exceptions.
I might add, I have a license for those Russian sound files ---> ;)
-
I had a look at the music .ogg files that came with the game.
They are all variable bitrate...
Nominal bitrate is 128 Kbps...
2 channels.....emm stereo I presume ;D
44100 hz
Compression Ratio 11 to 1 (8%)
Encoded by Xiphophorus libVorbis l 20010225
Planck
-
DO YOU KNOW I TRIED EVERYTHING EXCEPT VARIABLE GRRRR AAAAAAAHHHHH
** censored **
gonna go test this theory also attempting weasel's
-
Try convetting the mp3's to wav first........then convert the wavs to ogg.
Planck
-
I've been doing that since the beginning
-
I think the only way to do this is to get
Xiphophorus libVorbis I 20010225 => 1.0 beta 4
-
I just used dbPowerAmp to convert a wav into ogg.
The info after conversion is:
128 Kbps
44100 Hz
Stereo
Variable bit rate
Xiph.Org libVorbis l 20030909
Planck
-
This is what I used to easly (very easly) convert mp3 to ogg....
if whit this program you cant get your ogg files... you got an other problem...
http://www.download.com/Easy-CD-DA-Extractor/3000-2140_4-10368805.html?tag=lst-0-2 (http://www.download.com/Easy-CD-DA-Extractor/3000-2140_4-10368805.html?tag=lst-0-2)
Try it!
and serch the crack at www.keygen.us (http://www.keygen.us)
-
Maybe a bug in 1.0? why not upgrade to 1.46 for free?
Johan
-
It's not a bug, it's not the program, it's not the gravitational pull of THE MOON... ITS THE ENCODER. THAT'S where all the problem lies! Everyone that is suggesting stuff to me is older stuff that they used to use. The new version of the stuff you guys are suggesting are using NEW vorbis encoders. I need the old one. There's gotte be SOMEWHERE
P.S: I used flauta's program too btw
-
Hi Pr0ph3t,
My last post before I drop out of this thread.
Would you like me to try converting the mp3 file for you?
-
I downloaded the 1.0 beta 4 vorbis ogg encoder and IT WORKED! You must convert the mp3 to wav and then using that specific encoder you can make .OGGs compatible!
I have the zip if anyone requires YAY!!! :o
-
Thats ok Prophet, the encoder I am using already does a good job.
Glad you got it fixed
Planck
-
You're just JEALOUS!
lol
Also can anyone suggest any good hard metal mp3s
-
You're just JEALOUS!
lol
Also can anyone suggest any good hard metal mp3s
oh no 1 is down... no hard metal in missions please! use something more classy!
-
Well okay Mr. Sophisticated what do you suggest?
-
Well this thread is pretty much dead...
But some metal in missions can be okay. I used a "Doors" song that somewhat fit the story. Been down so damn long.... Soviets getting beat up and your tanks will settle the score... ;D That wasn't metal. :P But metal in ofp is really only good for action, not showing a peaceful field. :o ;D :D
I usually use my own collection of songs, not the other kind, that I won't talk about so we don't stray to piracy. ;)