OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Robinhansen on 27 Sep 2003, 20:17:57
-
I've followed the instructions about how to put music in the missions - but it simply wont work...what am I doing wrong ???
};
class CfgMusic
{
tracks[]={valkyries};
class valkyries
{
name = "valkyries";
sound[] = {"\music\valkyries.ogg", db+15, 1.0};
};
-
Here's one from one of my missions, which works
class CfgMusic // Overall class name
{
tracks[]={cossack.ogg}; // declaring the music file's name
class cossack // the actual declaration
{
name = "Cossack Patrol";
sound[] = {\music\cossack.ogg, db+30, 1.0}; // declares which ogg
};
};
Notice the difference in the tracks line
-
Well it does'nt work in my mission >:(
class CfgMusic
{
tracks[]={valkyries.ogg};
class valkyries
{
name = "Ride Of The Valkyrie";
sound[] = {\music\valkyries.ogg, db+30, 1.0};
};
};
Do I miss somthing or is all I have to write... ???
-
class CfgMusic
{
tracks[]= {war};
class war {
name = "war";
sound[] = {\music\war.ogg, db+0, 1.0};
};
};
in your trigger/script/etc
Playmusic war
-
Does'nt work either ??? I'm loosing my mind...
-
have you made sure that it is a DESCRIPTION.EXT file instead of something like DESCRIPTION.EXT.TXT
and
class CfgMusic
{
tracks[]={valkyries.ogg};
class valkyries
{
name = "Ride Of The Valkyrie";
sound[] = {\music\valkyries.ogg, db+30, 1.0};
};
};
is the .ogg file you are trying to use in your mission folder in another folder called "music" (without Quotes) and is the .ogg file actually called valkyries.ogg?
it may be one of the things i stated above thats the reason it isnt workng, but also place a trigger down and click on EFFECTS (to the left of the ok button) then click on the music list and look for Ride Of The Valkyrie
-
and ofp seems a bit picky at times about sample rates and stuff
it likes 16 bit files, iirc
-
IT WORKS!!!!! ;D ;D Cheers m8...just what I needed... ;D ;D