OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: sgtGunneryHighway on 12 Feb 2003, 23:06:57
-
Lo all,
it is possible to add a custom track in your map cutscenes (i mean those who are playin in start menu)
i ve try that: " class CfgMusic
{
tracks[]={mytrack};
class mytrack
{
name = "mytrack";
sound[] = {..\AddOns\mymap_Anim\intro.Map\music\mytrack.ogg, db+10, 1.0};
};
}; " in description file of my intro
but its failed
it say "mytrack not found"
any idea ppl?
-
??? ??? ???
-
The base directory you're working from is (something like):
[...]\Codemasters\OperationFlashpoint\Users\[Your Name]\missions\[Your Mission Name]\
Therefore, you're trying to play the file:
[...]\Codemasters\OperationFlashpoint\Users\[Your Name]\missions\AddOns\mymap_Anim\intro.Map\music\mytrack.ogg
Does this file exist? It doesn't look quite right if you ask me...
Why not try changing the line where the sound is defined to:
sound[] = {music\mytrack.ogg, db+10, 1.0};
Hope this helps,
Pope Zog
-
:help:
no mate that doesnt work :'(
-
maybe i must configure something in the config file or maybe its simply impossible i dunno
and i m pissed >:(
-
My mistake :tomato:, you'll need quotation marks around the file name as well. Try:
class CfgMusic
{
tracks[]={"mytrack"};
class mytrack
{
name = "mytrack";
sound[] = {"\music\mytrack.ogg", db+10, 1.0};
};
};
Pope Zog
-
:noo: :noo: :noo:
its desesperate
-
Okay... what's the name of your sound file and where is it on your disk?
Pope Zog
-
the sound file is destinate to be in the intro folder of a map i working on
but i cant put a path who gonna work only on my comp cuz i gonna release the map for public use :-\
-
LOL ;D Hey peeps, see ya mucking around here with all that music and stuff hehe.
class CfgMusic
{
tracks[]=
{
track1
};
class track1
{
name = "track1";
sound[] = {\music\track1.ogg, db+0, 1.0};
};
};
Now ur ogg file has to be in the Music folder which is in the mission folder which u r working on now. For further info reqd -> http://www.ofpec.com/yabbse/index.php?board=9;action=display;threadid=3364 (http://www.ofpec.com/yabbse/index.php?board=9;action=display;threadid=3364)
-
its everytime the same shit
in the start menu he say : "music mytrack not found"
-
Now ur ogg file has to be in the Music folder which is in the mission folder which u r working on now. For further info reqd -> http://www.ofpec.com/yabbse/index.php?board=9;action=display;threadid=3364 (http://www.ofpec.com/yabbse/index.php?board=9;action=display;threadid=3364)
its not the first time i put a track for my missions but this is for a map anim and my track is the music folder in the intro.mymap folder
here is the path = "\codemasters\operationflashpoint\addons\mymap_anim\intro.mymap\MUSIC\mytrack.ogg"
-
??? ??? ???
no one know?
-
I understand you, i have the same problem but with a resource.
I also stuffed the .paa into a pbo and called it from there, but not luck yet...works fine in the editor, but not in the start menu...i'll keep you posted if i can find out the path.
-
:-\ try
class mytrack
{
name = "mytrack";
sound[] = \..\..\..\..\addons\mymap_Anim\intro.Map\music\mytrack.ogg, db+10, 1.0};
};
};
I think it will be possible, I've used that path for music files in a pbo. It's maybe just a bit different for intro's in the addon folder
-
:-\ try
class mytrack
{
name = "mytrack";
sound[] = \..\..\..\..\addons\mymap_Anim\intro.Map\music\mytrack.ogg, db+10, 1.0};
};
};
I think it will be possible, I've used that path for music files in a pbo. It's maybe just a bit different for intro's in the addon folder
Well, it doesn's work with the resource. I've tried any imaginable path and no luck >:(
-
oops try it with speech marks :-[ it could work now
class mytrack
{
name = "mytrack";
sound[] =" \..\..\..\..\addons\mymap_Anim\intro.Map\music\mytrack.ogg", db+10, 1.0};
};
};
oh sorry Morgan, didn't see it was you, try this for a resource
class pic1: RscPicture
{
text=" \..\..\..\..\addons\addonname\picturename.paa";
x=0;
y=0;
w=1;
h=1;
};
-
well, it didn't work for me...
-
I'm having the same problem. See this BIS forum thread (http://www.flashpoint1985.com/cgi-bin/ikonboard301/ikonboard.cgi?act=ST&f=7&t=29880). ???