Jump to content
Sign in to follow this  
kyzawarrior

Adding music into game

Recommended Posts

Hello , it's possible that it's already in older topics but i didn't find it ... Is it possible to add somehow a song into the game ? For example if we will be in helicopter ( MP mission) With my friend , then the song starts to play ? I am making missions where is big transport lenght and i wanna songs there (in game) :D Or if i can record some briefing into the game ... Thanks for help

Share this post


Link to post
Share on other sites

1. Convert the track into an .ogg format

2. Create a new folder in your mission folder and name it music

3. In this music folder put your track as.ogg file.

4. The track must be also defined in the description.ext

class CfgMusic
{
tracks[]={};

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

5. Create a trigger in the editor

Trigger condition:

(unit1 in heli1 && unit2 in heli1 &&....)

Trigger activation:

playMusik "NameOfSong";

You can also take the track now from the effects/Track in the trigger

Ready!

Share this post


Link to post
Share on other sites

Thanks a lot :)

---------- Post added at 09:37 PM ---------- Previous post was at 09:15 PM ----------

Trigger says me missing ";" :( i dunno where , i tryed it everywhere where it should miss

---------- Post added at 09:41 PM ---------- Previous post was at 09:37 PM ----------

It's missing in collum On act.

---------- Post added at 09:44 PM ---------- Previous post was at 09:41 PM ----------

I've solved it :D I've rewrote Musik to Music But where do i have to place that trigger ? Near by heli ?? and is this command exact ? Or do i have to rewrite something ?? "(unit1 in heli1 && unit2 in heli1)" there are just 2 of us but how can i know who is unit 1 ? :D There are a lot of AIs on the Carrier ...

---------- Post added at 10:08 PM ---------- Previous post was at 09:44 PM ----------

Help please :(

Share this post


Link to post
Share on other sites

I've named us : unit1 ; unit2 and heli : heli1 , but it's still not working :(

Share this post


Link to post
Share on other sites

question is how you want to use the music,if its in a trigger you can activate

it by west or unit or vehicle. Sync the trigger with a unit or vehicle and puth activate by what you want for mission!

Share this post


Link to post
Share on other sites

best is to puth it on act.West without sync and place trigger 50m away in the direction the heli will go and it will work, if the music works that is,

you can even use the music already in the game by going to effect on the bottom in trigger,

hope it helps,

Share this post


Link to post
Share on other sites

Ok , it doesn't work and i have it enough ! I'll tell you what i exactly did.

1st i made DIR Music in Mission DIR

2nd i've converted Mp3 song to .ogg format

3rd I've made a file named description.ext and i've put it into mission dir and music dir , to be sure that it is on right place ...

4th i've placed in editor ME(rifleman) and i've named it "unit1" ( without "" )

and i've placed AI PILOTED UH-60 named "heli1"

5th i've placed trigger , in trigger condition is : (unit1 in heli1)

6th trigger activation : playMusic "fortunate_son"

sec :D I GET IT WORKING!!!! HERUEKAAAAA! Thank you a lot guys :D if anyone else have problems with this contact me :D I have description for idiots like ME :P

Share this post


Link to post
Share on other sites

Nice to hear..what was the problem?

Would be nice if you tell how you get it to work now. Maybe other people here can learn if they had the same trouble like you. ;)

Share this post


Link to post
Share on other sites

DAmmit forum ! :D I wrote asay and it says me" You have included 6 images in your message. You are limited to using 5 images so please go back and correct the problem and then continue again.

Images include use of smilies, the BB code tag and HTML <img> tags. The use of these is all subject to them being enabled by the administrator. "

and i haven't included any images !

---------- Post added at 12:40 AM ---------- Previous post was at 12:22 AM ----------

http://leteckaposta.cz/521856610

here is download on my map , check the folders and in game settings of trigger.

It's made to play music immiadetly after mission start .

---------- Post added at 12:48 AM ---------- Previous post was at 12:40 AM ----------

http://docs.google.com/Doc?docid=0AUK6S9Vouu_TZHdyc2gyal8yZjRzeG5qcGc&hl=en

here's description finally

Edited by kyzawarrior

Share this post


Link to post
Share on other sites

Doesn't work for me. I followed the steps strictly, but still no sound. I have also no TrackName in Tracklist of Effects. I used both waypoints and triggers with no success.

Here is my description.ext:

class CfgMusic
{
tracks[]={};

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

I had a messages there were no sound file in my yesterday's attempts. But now there are no errors. Does this problem can be caused with wrong .ogg file configuration?

Share this post


Link to post
Share on other sites

Hi there

here's an example of the description.ext that works.

class CfgMusic
{
// List of tracks (.ogg files without the .ogg extension)
tracks[] = {ALCHEMY_INSTRUM};            [color="Red"]Here you forgot to list the music file name[/color]

// Definition for each sound
class ALCHEMY_INSTRUM
{
	name = "ALCHEMY_INSTRUM"; 
	sound[] = {\music\ALCHEMY_INSTRUM.ogg, db + 0, 1.0};
	titles[] = {0, ""};
};
};

Just replace ALCHEMY_INSTRUM with your music file name and it should work.

Please be aware that you have to shut down ArmA II and restart in case you modified the description.ext otherwise the game won't recognize the modifications you made.

regards

Edited by nettrucker
added content

Share this post


Link to post
Share on other sites

nettrucker, thank you for advice. It doesn't work. I didn't restart ArmA 2 earlyer, so may be I should try these steps one more time. Anyway, I will post more screenshots with my trigger settings and description.ext code to avoid misunderstanding and show the process of adding music step by step in a clear manner.

P.S. I also used a BIS CfgMusic example from wiki-docs. There is no information about requirements of listing the music and it seems from the help docs there is no need to keep same names of "Class", "Name" and "FileName". Am I correct?

Share this post


Link to post
Share on other sites
nettrucker, thank you for advice. It doesn't work. I didn't restart ArmA 2 earlyer, so may be I should try these steps one more time. Anyway, I will post more screenshots with my trigger settings and description.ext code to avoid misunderstanding and show the process of adding music step by step in a clear manner.

P.S. I also used a BIS CfgMusic example from wiki-docs. There is no information about requirements of listing the music and it seems from the help docs there is no need to keep same names of "Class", "Name" and "FileName". Am I correct?

Please post your description.ext in order to understand if there might be a mistake in the declaration. The example of description.ext I posted does work. Concerning the listing of the filenames, well maybe my information is a bit outdated since I learned this stuff way back, when the first OFP CWC was released, so yeah my knowledge might be outdated.

regards:D

Share this post


Link to post
Share on other sites

Ok, here it is:

class CfgMusic
{
tracks[] = {ST_1};

class ST_1
{
	name = "ST_1"; 
	sound[] = {\music\ST_1.ogg, db + 0, 1.0};
	titles[] = {0, ""};
};
};

Still no effect. No ST_1 track in the Tracklist. Any track from the list plays correct.

UPDATED: I found the reason! I placed .ext file in the wrong mission folder, so it was a matter of attention. Nettrucker, thank you very much. :D

Edited by Mocking-bird
That's a Bingo! :D

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  

×