Jump to content
Sign in to follow this  
mattxr

Music Config?

Recommended Posts

Ok i used to have a config with a list of ofp music which i could add into a addon then pbo it so it apparead in the editor now i have lost it and im stuck on how to do it again.

Ok i have file with a lot of ogg files.. it used to go something like this..

huh.gif?

huh.gif? - Was the start og the config

SW - Track 1 [name] /swmusic/track1.ogg or something cant remeber if anyone can help me ill buy a copy of Game 2 for them tounge2.gif

Share this post


Link to post
Share on other sites

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgMusic

{

access=1;

class 7thDecide

{

name="$STR_CFG_MUSIC_7TH_DECIDE";

sound[]={"\Music\Seventh_decide.ogg",1.0,1.0};

};

class 7thIAmGonaFly

{

name="$STR_CFG_MUSIC_7TH_IAMGONAFLY";

sound[]={"\Music\Seventh_iamgonnafly.ogg",1.0,1.0};

};

class 7thLifeless

{

name="$STR_CFG_MUSIC_7TH_LIFELESS";

sound[]={"\Music\Seventh_lifeless.ogg",1.0,1.0};

};

class 7thOverdose

{

name="$STR_CFG_MUSIC_7TH_OVERDOSE";

sound[]={"\Music\Seventh_overdose.ogg",1.0,1.0};

};

class Track1

{

name="$STR_CFG_MUSIC_TRACK1";

sound[]={"\Music\01.ogg",1.0,1.0};

};

class Track2

{

name="$STR_CFG_MUSIC_TRACK2";

sound[]={"\Music\02.ogg",1.0,1.0};

};

class Track3

{

name="$STR_CFG_MUSIC_TRACK3";

sound[]={"\Music\03.ogg",1.0,1.0};

};

class Track4

{

name="$STR_CFG_MUSIC_TRACK4";

sound[]={"\Music\04.ogg",1.0,1.0};

};

class Track5

{

name="$STR_CFG_MUSIC_TRACK5";

sound[]={"\Music\05.ogg",1.0,1.0};

};

class Track6

{

name="$STR_CFG_MUSIC_TRACK6";

sound[]={"\Music\06.ogg",1.0,1.0};

};

class Track7

{

name="$STR_CFG_MUSIC_TRACK7";

sound[]={"\Music\07.ogg",1.0,1.0};

};

class Track8

{

name="$STR_CFG_MUSIC_TRACK8";

sound[]={"\Music\08.ogg",1.0,1.0};

};

class Track9

{

name="$STR_CFG_MUSIC_TRACK9";

sound[]={"\Music\09.ogg",1.0,1.0};

};

class Track10

{

name="$STR_CFG_MUSIC_TRACK10";

sound[]={"\Music\10.ogg",1.0,1.0};

};

class Track11

{

name="$STR_CFG_MUSIC_TRACK11";

sound[]={"\Music\11.ogg",1.0,1.0};

};

class Track12

{

name="$STR_CFG_MUSIC_TRACK12";

sound[]={"\Music\12.ogg",1.0,1.0};

};

class Track13

{

name="$STR_CFG_MUSIC_TRACK13";

sound[]={"\Music\13.ogg",1.0,1.0};

};

class Track14

{

name="$STR_CFG_MUSIC_TRACK14";

sound[]={"\Music\14.ogg",1.0,1.0};

};

class Track15

{

name="$STR_CFG_MUSIC_TRACK15";

sound[]={"\Music\15.ogg",1.0,1.0};

};

class Track16

{

name="$STR_CFG_MUSIC_TRACK16";

sound[]={"\Music\16.ogg",1.0,1.0};

};

class Frost

{

name="$STR_CFG_MUSIC_FROST";

sound[]={"\Music\frost.ogg",1.0,1.0};

};

};

Thats what it looks like in the BIS config.cpp, guess just replacing the paths and names and it should work smile_o.gif

EDIT: (and change the "class 7thDecide" to something else like "class Nirvanateenspirit" or whatever tounge2.gif

Share this post


Link to post
Share on other sites

nah it was more simper than that lol..  tounge2.gif if anyone has the Fraghaus Music pack which charlie made a while back, when he gave me it, it had the simple config in ..

Share this post


Link to post
Share on other sites
nah it was more simper than that lol..  tounge2.gif if anyone has the Fraghaus Music pack which charlie made a while back, when he gave me it, it had the simple config in ..

Well, i just thought, oh, ill make a simple example config then, but i ended up so completely confused that i would like the answer aswell...  rofl.gif

EDIT: And i think you can add classes to the main config.cpp, but it might be too much work to cpp/bin it all the time... tounge2.gif

Share this post


Link to post
Share on other sites

Hi folks,

  If you want to add a separate addon file with any music or sounds, try this simple way of doing it.

Here these sound clips are classed as music and sound and are found in your editor under each one.Use this as a template for a simple config.

=============================================

class CfgPatches

{

class radiotrans

{

units[] = {};

weapons[] = {};

requiredVersion = 1.01;

};

};

class CfgMusic

{

class radio1

{

name="radiotrans\radio1";

sound[]={"\radiotrans\radio1.ogg",db+0, 1.0};

titles[]={};

};

class radio2

{

name="radiotrans\radio2";

sound[]={"\radiotrans\radio2.ogg",db+0, 1.0};

titles[]={};

};

class radio3

{

name="radiotrans\radio3";

sound[]={"\radiotrans\radio3.ogg",db+0, 1.0};

titles[]={};

};

};

class CfgSounds

{

class radio1

{

name="radiotrans\radio1";

sound[]={"\radiotrans\radio1.ogg",db+0, 1.0};

titles[]={};

};

class radio2

{

name="radiotrans\radio2";

sound[]={"\radiotrans\radio2.ogg",db+0, 1.0};

titles[]={};

};

class radio3

{

name="radiotrans\radio3";

sound[]={"\radiotrans\radio3.ogg",db+0, 1.0};

titles[]={};

};

       

};

==============================================

Change your names over to suit your needs.

The PBO file is called 'radiotrans'  and each track is named accordingly.

Hope this helps as a simle and effective way of modifying your game.

Have fun now,

SSD

Share this post


Link to post
Share on other sites

ive got a simpler way, i found out what it was.

to make your own music addon and a simple free config for the tracks to appear in game next to the BIS ones this is the simple config:

Quote[/b] ]class CfgPatches

{

class mrsoundpack

{

units[]={};

requiredVersion=1.75;

};

};

class CfgMusic

{

class mrmusic1 {name = "MR- Rock 1";sound[] = {\mrsoundpack\music\1.ogg, db, 1.0};};

class mrmusic2 {name = "MR- Rock 2";sound[] = {\mrsoundpack\music\2.ogg, db, 1.0};};

class mrmusic3 {name = "MR- Rock 3";sound[] = {\mrsoundpack\music\3.ogg, db, 1.0};};

class mrmusic4 {name = "MR- Rock 4";sound[] = {\mrsoundpack\music\4.ogg, db, 1.0};};

class mrmusic5 {name = "MR- Rock 5";sound[] = {\mrsoundpack\music\5.ogg, db, 1.0};};

class mrmusic6 {name = "MR- Rock 6";sound[] = {\mrsoundpack\music\6.ogg, db, 1.0};};

class mrmusic7 {name = "MR- Rock 7";sound[] = {\mrsoundpack\music\7.ogg, db, 1.0};};

class mrmusic8 {name = "MR- In the Army";sound[] = {\mrsoundpack\music\8.ogg, db, 1.0};};

class mrmusic9 {name = "MR- Rock 8";sound[] = {\mrsoundpack\music\9.ogg, db, 1.0};};

class mrmusic10 {name = "MR- Rock 9";sound[] = {\mrsoundpack\music\10.ogg, db, 1.0};};

class mrmusic11 {name = "MR- Top Gun 1";sound[] = {\mrsoundpack\music\11.ogg, db, 1.0};};

class mrmusic12 {name = "MR- Top Gun 2";sound[] = {\mrsoundpack\music\12.ogg, db, 1.0};};

class mrmusic13 {name = "MR- Top Gun 3";sound[] = {\mrsoundpack\music\13.ogg, db, 1.0};};

class mrmusic14 {name = "MR- Airwolf";sound[] = {\mrsoundpack\music\Airwolftheme.ogg, db, 1.0};};

class mrmusic15 {name = "MR- Secret Agent Man";sound[] = {\mrsoundpack\music\SecretAgentMan.ogg, db, 1.0};};

};

its the same, just i think its easy to do beciase its all in one line biggrin_o.gif

Share this post


Link to post
Share on other sites

Hi! I've got a got a question that deals with the description file. I'm trying to add lip/sounds to my sound folder and I got that part right, but how would it look for the lip file in the description? This is my first attempt at trying to get the lip part of the description written:

class CfgMusic

{

tracks[]={bla1,bla2};

class bla1

{

name = "bla1";

sound[] = {\music\bla1.ogg, db+10, 1.0};

};

class bla2

{

name = "bla2";

sound[] = {\music\bla2.ogg, db+10, 1.0};

};

class CfgSounds

{

sounds[] = {2};

class 2

{

name = "2";

sound[] = {"\sound\2.ogg", 1, 1};

lip[] = {};

};

I took a guess at the lip part, but that's where I get it wrong. When testing ingame the sound 2 is not found. It is a ogg file and the lip file is correct, but what is wrong with my description?

Share this post


Link to post
Share on other sites

You didn't enclosed CfgMusic section.

And CfgSound section too.

  • Like 1

Share this post


Link to post
Share on other sites
You didn't enclosed CfgMusic section.

And CfgSound section too.

class CfgMusic

{

    tracks[]={menu1,menu2,menu3,Airwolf,cruise,Sparrows,theride};

    class menu1

    {

    name = "menu1";

    sound[] = {\music\menu1.ogg, db+10, 1.0};

    };

    class menu2

    {

    name = "menu2";

    sound[] = {\music\menu2.ogg, db+10, 1.0};

    };

   

    class menu3

    {

    name = "menu3";

    sound[] = {\music\menu3.ogg, db+10, 1.0};

    };

    class Airwolf

    {

    name = "Airwolf";

    sound[] = {\music\Airwolf.ogg, db+10, 1.0};

    };

    class cruise

    {

    name = "cruise";

    sound[] = {\music\cruise.ogg, db+10, 1.0};

    };

    class Sparrows

    {

    name = "Sparrows";

    sound[] = {\music\Sparrows.ogg, db+10, 1.0};

    };

    class theride

    {

    name = "theride";

    sound[] = {\music\theride.ogg, db+10, 1.0};

    };

What do you mean enclosed? This description above works in game just fine, but the one below is where I'm trying to add the Cfg Sound. I got it to work once, but I forgot to save it. This time I'm also trying to do lip files for the sound, and I don't know what to do next. TheWraith is helping me out too, but I'm still not sure if adding this to the description is working the way I thought it would. TheWraith sent me an example to go by, and if it works the way I'm trying to write my description, I'll post the solution here for everyone.

class CfgMusic

{

    tracks[]={menu1,menu2,menu3,Airwolf,cruise,Sparrows,theride};

    class menu1

    {

    name = "menu1";

    sound[] = {\music\menu1.ogg, db+10, 1.0};

    };

    class menu2

    {

    name = "menu2";

    sound[] = {\music\menu2.ogg, db+10, 1.0};

    };

   

    class menu3

    {

    name = "menu3";

    sound[] = {\music\menu3.ogg, db+10, 1.0};

    };

    class Airwolf

    {

    name = "Airwolf";

    sound[] = {\music\Airwolf.ogg, db+10, 1.0};

    };

    class cruise

    {

    name = "cruise";

    sound[] = {\music\cruise.ogg, db+10, 1.0};

    };

    class Sparrows

    {

    name = "Sparrows";

    sound[] = {\music\Sparrows.ogg, db+10, 1.0};

    };

    class theride

    {

    name = "theride";

    sound[] = {\music\theride.ogg, db+10, 1.0};

    };

class CfgSound

{

    tracks[]={Tok'ra1};

    class Tok'ra1

    {

    name = "Tok'ra1";

    sound[] = {\sound\Tok'ra1.ogg, db+10, 1.0};

    };

I also have 1 folder named music, and one folder named sound. Thank you for taking the time to reply to this topic/thread. smile_o.gif

Share this post


Link to post
Share on other sites

By enclosed he means you have not closed the cfgMusic section, nor have you closed the cfgSound section

class CfgMusic

{ <-----------------Opening bracket

..............

..............

..............

..............

}; <----------------Closing bracket

class CfgSound

{ <-----------------Opening bracket

..............

..............

..............

..............

}; <----------------Closing bracket

Planck

Share this post


Link to post
Share on other sites

So it shouldn't look like this?

class CfgMusic

{

   tracks[]={menu1,menu2,menu3,Airwolf,cruise,Sparrows,theride};

   class menu1

   {

   name = "menu1";

   sound[] = {\music\menu1.ogg, db+10, 1.0};

   };

class CfgSound

{

   tracks[]={Tok'ra1};

   class Tok'ra1

   {

   name = "Tok'ra1";

   sound[] = {\sound\Tok'ra1.ogg, db+10, 1.0};

   };

And it should look like this?

class CfgMusic

{

   tracks[]={menu1};

   class menu1

   {

   name = "menu1";

   sound[] = {\music\menu1.ogg, db+10, 1.0};

   };

};

class CfgSound

{

   tracks[]={Tok'ra1};

   class Tok'ra1

   {

   name = "Tok'ra1";

   sound[] = {\sound\Tok'ra1.ogg, db+10, 1.0};

   };

};

I left every thing else out to keep it smaller to view. I'll keep trying smile_o.gif . Descriptions are a bit testy though if it's not just right. Thank you for the reply Planck. I'm learning as I go with the scripting stuff, so I will probably ask something that will probably sound dumb, but it's only because I don't get it. I've been reading other forums too to see if there is an answer to my question about adding the lip part to the description, but no luck yet.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×