Arma 3
Toto téma bylo uzamčeno
How to add custom music for mission?
Trying to make a mission using editor. How can i add my own custom music i want to use it for a specific part of the mission. Thanks in advance
< >
Zobrazeno 115 z 27 komentářů
Whit the obects on the spawn list
How does that work? I would also like to know how to add music to missions, ur what do objects have to do with it?
Aug Bond původně napsal:
How does that work? I would also like to know how to add music to missions, ur what do objects have to do with it?

after 6 hours of searching through peoples faulty work and errors and the youtube videos that dont work i finally found it..... I didnt sleep all night until i found the proper script and steps to get it to work.

class CfgMusic
{
sounds[] = {01,02};
class 01
{
name = "01";
sound[] = {"music\sound1.ogg", db+10, 1.0};
titles[] = {0,""};
};
class 02
{
name = "02";
sound[] = {"music\sound2.ogg", db+10, 1.0};
titles[] = {0,""};
};


};

Place this in your description.ext in your documentary>arma3>mission>YOURMISSIONFILE

"Then place your music files in your mission folder in a subfolder named music, so sound1.ogg would be placed "C:\Users\YOURPCNAME\Documents\Arma 3\missions\YOURMISSIONNAME.Stratis\music\sound1.ogg"

Then to trigger the sound create a trigger in the editor, choose effects and music. scroll down to the bottom of the music list and you will see 01 and 02 the names of my music files as defined above, choose which one you want. Then just set your trigger to what ever you want to trigger your sound and preview your mission. You should hear your music files when you activate the trigger. you can adjust the volume of your music by editing the bit in description.ext "db+10".

Set your trigger condition to true to just activate your music straight from mission start.

Hope that helps "

you have to use trigger to make it work! I can't believe i stayed up all night doing this crap. I was getting a bunch of errors with what other people were telling me to do. It was saying missing files and crap... Also convert your mp3 file into OGG (free easy and fast) then put it in a folder called "music" within your mission folder.
Naposledy upravil Puppet Pal Clem; 20. led. 2017 v 4.21
Aug Bond původně napsal:
How does that work? I would also like to know how to add music to missions, ur what do objects have to do with it?

tell me if it works for you, i will help if it doesn't
Works for me!
Laqueesha původně napsal:
Works for me!

Sweet, glad it helped you out buddy ;)
I'm having some trouble. I tried both with ogg and wav files, but the game doesn't find the tracks I add.
Floppy původně napsal:
I'm having some trouble. I tried both with ogg and wav files, but the game doesn't find the tracks I add.
Make sure you don't do a direct conversion of the file format(e.g. directly converting a mp3 file into an ogg file by renaming it.), it considers it as an unrecognized format and will not play the track. Make sure you do the conversion via online engines. Also make sure you give your track a name(e.g. name = "Run Through The Jungle") then only you'd be able to find where your track goes.
thanks for helping out the community OP.
Messing around with the CfgMusic is the only way to add new music to the game. However, if you wish to use existing music, there are easier ways.

If you are looking to play music at a particular point in a mission, or when players reach a particular position consider using a trigger. Select the music to be played when the Condition of the trigger is true.

I will often have the trigger play "Mission Accomplished" music whenever a player completes a task.

Or if you want more dynamic music, to change whenever the Mode of the player changes, consider using the BIS_fnc_jukebox function. When players are in Stealth mode you can have the mission play one type of music, and when they switch into Combat mode play a completely different type of music.

Run from your init.sqf for example,
private ["_stealth","_combat","_safe","_param","_val"]; _stealth = ["Track11_StageB_stealth","BackgroundTrack01_F_EPB"]; _combat = ["Track_O_16","LeadTrack05_F","Track10_StageB_action"]; _safe = ["Track_C_03","Track_C_12","Track_C_20","Track_O_08"]; _param = [_stealth, _combat, _safe, 1, 3, 10, 1, false]; _val = ["initialize", _param] call BIS_fnc_jukebox;

The list of music titles was kept short for example purposes. If your music title list is long enough, it could play different music for the entire duration of the mission without repeating.
Naposledy upravil Alaskan Glitch; 31. pro. 2020 v 8.56
You guys don't explain well your tutorials. What this is intetended for: Zeus mode. Single Missions, Multiplayer, Editor? By the way how do I play my song anytime I want, is there "press a button and it will play" also change tracks. I really don't get it with this tutorial
gbr000 původně napsal:
You guys don't explain well your tutorials. What this is intetended for: Zeus mode. Single Missions, Multiplayer, Editor? By the way how do I play my song anytime I want, is there "press a button and it will play" also change tracks. I really don't get it with this tutorial

First, this is a thread about adding custom music to missions, not a tutorial. It doesn't matter if the mission uses Zeus, is single-player, or multiplayer.

Second, Doldrey explained how to add new custom music to your missions very well. So well, in fact, that all I could contribute was how to play existing music in your missions.

As far as playing your song anytime you want, if it doesn't already exist in the game I would advise following Doldrey's example, and then learn how to write scripts in order to develop your own audio-player user-interface.
gbr000 15. zář. 2022 v 15.26 
I'm programmer so I know how to write a language, since I'm new to Arma I have to know where to start. Apex there's a radio which plays no music. I was thinking about modifying its folder. idk which language Arma uses. Is it Open Source? Or is it pure hackery ppl are making.

2nd options would be using Steam Overlay
gbr000 původně napsal:
I'm programmer so I know how to write a language, since I'm new to Arma I have to know where to start. Apex there's a radio which plays no music. I was thinking about modifying its folder. idk which language Arma uses. Is it Open Source? Or is it pure hackery ppl are making.

2nd options would be using Steam Overlay
I would start here, with the Eden Editor:

https://community.bistudio.com/wiki/Category:Eden_Editor

BIS has developed the scripting language for Arma III since 2000, beginning with Operation Flashpoint released in 2001. It is a culmination of 20+ years of development. There are 2,500+ commands, and 2,000+ functions in their scripting language.

The Description.ext file that Doldrey mentioned above controls the information about your mission, and the init.sqf file initializes your mission. Other script files can also be called through event handlers or triggers.

This is the core of Arma III. What the game is all about - The Eden Editor. Granted, you can simply play missions already created by others and never create one yourself, but that is a waste of Arma III's capabilities.

Arma III is not a first-person shooter game. It is platform from which first-person shooter games are created.

Concerning your radio suggestion, this 12 minute YouTube video may be of some assistance:
Make a multiplayer radio play music with say3D
Naposledy upravil Alaskan Glitch; 15. zář. 2022 v 20.31
Set it up as instructed, can see my .ogg file in the list under music in triggers, select it and nothing plays, silence. it plays all other in game music fine, but not my custom song, despite it being there in the list, advice?
< >
Zobrazeno 115 z 27 komentářů
Na stránku: 1530 50