OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Stinky Nut Rappa on 31 Jul 2005, 17:09:19
-
i'm trying to make a mission just for me and my mates based on the helicopter flight scene from apocalypse now. im using the seb ia trang map and the nam pack 1 soldiers (well i think they are. its hard to download pack 2 with 56k) anyway i have evrything set up. Shogun's napalm script, ronaldcargorope for when the boat is flwon in. the only problem is "RIDE OF THE VALKYRIES DOES NOT WORK". I think its just the file which originally wasnt wav but i just changed its name to have ".wav" at the end. but now that i have found a really bad wav file on the internet, the OFP sound lab doesnt want to convert it or any other files to .ogg. it converts them to .wss but they don't seem to work in the mission. neither does .wav. i've tried ogg drop as well but that doesnt do anything when i "drop" a wav file on it. if anyone knows of any other sound converters (dbpoweramp doesn't work either) or where i can get a good music wav file that would be much apreciatted.
oh and a link to a cowboy model for the colonel would be nice
-
I think its just the file which originally wasnt wav but i just changed its name to have ".wav" at the end.
I'm sure thats the problem, you can't just rename a file extension...
What's the extension of the original file?
-
Get Goldwave.
If you want to know how to put sound into your mission here's a short tute,
Get Goldwave from here,
http://www.goldwave.com/release.html
Then record your voice using Goldwave and a mic or select a music file and convert it in Goldwave. .ogg is at the bottom of the "save as" list I think.
Next create a new folder in the folder where your mission is. Call it sound. It will be created in the Flashpoint folder summit like this,
C:\Program Files\Codemasters\Operation Flashpoint\Users\yourname\missions\yourmissionname
Next you must create a Description file using the notepad or wordpad.
Save it as Description.ext. Where it says save as type: set it to All Files
In this notepad file put this,
class CfgSounds
{
sounds[] = {Yoursoundfilename };
class Yoursoundfilename
{
name = "Yoursoundfilename";
sound[] = {"Yoursoundfilename.ogg", db+20, 1.0};
titles[] =
{
0, $STRM_Yoursoundfilename
};
};
You can cut and paste that bit up there.
Save it.
If you've put everything in the right place then the file should appear in the editor. Just make a trigger and in the second page you can call it up from the same place as the BIS default sounds. Obviously you can also call it from a script with the playsound command or the say command etc.
I'm probably telling you stuff you already know. If not then post back with any problems and we'll help you get through them.
-
I use Audacity for recording, converting and creating all sorts of different music/sound effects. It's free and you can get it here http://audacity.sourceforge.net
Anyways, it's really simple, you just open up your .wav or your .mp3 and export it as a .ogg :) (all of this can be done from the File menu)
-
What's the extension of the original file?
it was a wma file but dont know what that means.
that goldwave is amazing. it starts off crackly but the sound that comes out is great
does anyone know how to set the trigger so it only goes off once the helicopters have taken off?
-
wma is a windows media player sound file, compressed to about half the size of an mp3
anyway, i suggets you get a wma converter, or a sound editor that can import it (then save as different type) like audacity (posted above, its quite good
as for the trigger, set the activation to:
((getpos chopper1 select 2) >= 10) && ((getpos chopper2 select 2) >= 10) && ... etc etc
or you could change the height if you want