Home   Help Search Login Register  

Author Topic: Music in map cutscenes  (Read 2478 times)

0 Members and 1 Guest are viewing this topic.

sgtGunneryHighway

  • Guest
Music in map cutscenes
« 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?

sgtGunneryHighway

  • Guest
Re:Music in map cutscenes
« Reply #1 on: 13 Feb 2003, 18:07:31 »
 ??? ??? ???

Pope_Zog

  • Guest
Re:Music in map cutscenes
« Reply #2 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

sgtGunneryHighway

  • Guest
Re:Music in map cutscenes
« Reply #3 on: 13 Feb 2003, 21:17:41 »
 :help:
no mate that doesnt work  :'(

sgtGunneryHighway

  • Guest
Re:Music in map cutscenes
« Reply #4 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  >:(

Pope_Zog

  • Guest
Re:Music in map cutscenes
« Reply #5 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
« Last Edit: 14 Feb 2003, 14:32:25 by Pope Zog »

sgtGunneryHighway

  • Guest
Re:Music in map cutscenes
« Reply #6 on: 14 Feb 2003, 14:11:49 »
 :noo: :noo: :noo:
its desesperate

Pope_Zog

  • Guest
Re:Music in map cutscenes
« Reply #7 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

sgtGunneryHighway

  • Guest
Re:Music in map cutscenes
« Reply #8 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 :-\

Navy_Seals

  • Guest
Re:Music in map cutscenes
« Reply #9 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

sgtGunneryHighway

  • Guest
Re:Music in map cutscenes
« Reply #10 on: 14 Feb 2003, 14:44:33 »
its everytime the same shit


in the start menu he say : "music mytrack not found"

sgtGunneryHighway

  • Guest
Re:Music in map cutscenes
« Reply #11 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

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"
« Last Edit: 14 Feb 2003, 14:49:41 by sgtGunneryHighway »

sgtGunneryHighway

  • Guest
Re:Music in map cutscenes
« Reply #12 on: 16 Feb 2003, 03:43:34 »
 ??? ??? ???
no one know?

Offline CapMorgan

  • Members
  • *
  • OFP fan
    • Cazadores de monte
Re:Music in map cutscenes
« Reply #13 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.

Offline Black_Feather

  • Former Staff
  • ****
  • I'll never forget you Daisey.
Re:Music in map cutscenes
« Reply #14 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