OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: sgtGunneryHighway on 12 Feb 2003, 23:06:57

Title: Music in map cutscenes
Post 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?
Title: Re:Music in map cutscenes
Post by: sgtGunneryHighway on 13 Feb 2003, 18:07:31
 ??? ??? ???
Title: Re:Music in map cutscenes
Post by: Pope_Zog on 13 Feb 2003, 19:39:00
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
Title: Re:Music in map cutscenes
Post by: sgtGunneryHighway on 13 Feb 2003, 21:17:41
 :help:
no mate that doesnt work  :'(
Title: Re:Music in map cutscenes
Post by: sgtGunneryHighway on 13 Feb 2003, 21:19:00
maybe i must configure something in the config file or maybe its simply impossible i dunno
and i m pissed  >:(
Title: Re:Music in map cutscenes
Post by: Pope_Zog on 14 Feb 2003, 09:11:09
My mistake :tomato:, you'll need quotation marks around the file name as well. Try:

Code: [Select]
class CfgMusic
{
    tracks[]={"mytrack"};


    class mytrack
    {
        name = "mytrack";
        sound[] = {"\music\mytrack.ogg", db+10, 1.0};
    };
};

Pope Zog
Title: Re:Music in map cutscenes
Post by: sgtGunneryHighway on 14 Feb 2003, 14:11:49
 :noo: :noo: :noo:
its desesperate
Title: Re:Music in map cutscenes
Post by: Pope_Zog on 14 Feb 2003, 14:19:42
Okay... what's the name of your sound file and where is it on your disk?

Pope Zog
Title: Re:Music in map cutscenes
Post by: sgtGunneryHighway on 14 Feb 2003, 14:24:44
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 :-\
Title: Re:Music in map cutscenes
Post by: Navy_Seals on 14 Feb 2003, 14:27:47
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)
Title: Re:Music in map cutscenes
Post by: sgtGunneryHighway on 14 Feb 2003, 14:44:33
its everytime the same shit


in the start menu he say : "music mytrack not found"
Title: Re:Music in map cutscenes
Post by: sgtGunneryHighway on 14 Feb 2003, 14:48:35

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"
Title: Re:Music in map cutscenes
Post by: sgtGunneryHighway on 16 Feb 2003, 03:43:34
 ??? ??? ???
no one know?
Title: Re:Music in map cutscenes
Post by: CapMorgan on 06 Mar 2003, 18:17:42
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.
Title: Re:Music in map cutscenes
Post by: Black_Feather on 06 Mar 2003, 20:38:30
 :-\ 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
Title: Re:Music in map cutscenes
Post by: CapMorgan on 13 Mar 2003, 17:34:16
:-\ 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 >:(
Title: Re:Music in map cutscenes
Post by: Black_Feather on 13 Mar 2003, 20:41:42
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;
};
Title: Re:Music in map cutscenes
Post by: CapMorgan on 19 Mar 2003, 00:22:02
well, it didn't work for me...
Title: Re:Music in map cutscenes
Post by: The Avon Lady on 01 May 2003, 14:12:06
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). ???