H11Z3 0 Posted April 9, 2023 Hello, I'm new to Arma 3 and I wanted to make a mission for my friends however, I ran into a problem whilst creating the sound as I wanted a custom song/music. everytime I walk into the trigger it shows an error saying "sound music1 not found" (music1 being the folder of the OGG file [the music]) ===========================================================Code: class CfgMusic { tracks[]={music1}; class track1 { name="music1"; sound[] = {\music\music1.ogg, db+10, 1.0}; }; }; ============================================================ any help will be great thanks -H11Z3 Share this post Link to post Share on other sites
Harzach 2517 Posted April 9, 2023 15 minutes ago, H11Z3 said: music1 being the folder You have it as just "music" in your cfg: sound[] = {\music\music1.ogg, db+10, 1.0}; Share this post Link to post Share on other sites
H11Z3 0 Posted April 9, 2023 Like this? =========================================== class CfgMusic { tracks[]={music1}; class track1 { name="music1"; sound[] = {\music\music.ogg, db+10, 1.0}; }; }; ============================================ It didn't work when I tested i. Share this post Link to post Share on other sites
Harzach 2517 Posted April 9, 2023 You are also missing quotes around the filepath, Anyway, check the example on the Biki: https://community.bistudio.com/wiki/Description.ext#CfgMusic class CfgMusic { tracks[] = {}; class track1 { name = "music1"; sound[] = { "\music1\music1.ogg", db+10, 1.0 }; }; }; Share this post Link to post Share on other sites
Harzach 2517 Posted April 9, 2023 2 minutes ago, H11Z3 said: Like this? If your folder is named "music1" as you stated in your first post, then changing the name of the file to something different won't help. If the folder is named "music1" and the file is named "music1.ogg" then the filepath would be sound[] = { "\music1\music1.ogg", db+10, 1.0 }; Share this post Link to post Share on other sites
H11Z3 0 Posted April 9, 2023 oh ok I understand now, so the file path is. H11Z3 - Missions - (mymission) - sound (The folder name within the mission) - then the ogg file (music1) ========================================================================================= class CfgMusic { tracks[]={music1}; class track1 { name="music1"; sound[] = {"\sound\music1.ogg", db+10, 1.0}; }; }; ========================================================================= Share this post Link to post Share on other sites
Harzach 2517 Posted April 9, 2023 Off-topic, but skip the weird formatting and paste your code in code blocks: class CfgMusic { tracks[]={music1}; class track1 { name="music1"; sound[] = {"\sound\music1.ogg", db+10, 1.0}; }; }; Share this post Link to post Share on other sites
H11Z3 0 Posted April 9, 2023 My apologies I didn't know, the code still does not work not sure about the error now. class CfgMusic { tracks[]={music1}; class track1 { name="music1"; sound[] = {"\sound\music1.ogg", db+10, 1.0}; }; }; Share this post Link to post Share on other sites
Harzach 2517 Posted April 9, 2023 26 minutes ago, Harzach said: check the example on the Biki class CfgMusic { tracks[] = {}; class track1 { name = "music1"; sound[] = {"\sound\music1.ogg", db+10, 1.0}; }; }; Share this post Link to post Share on other sites
H11Z3 0 Posted April 9, 2023 Could the file path be getting confused as I'm using a custom map? Share this post Link to post Share on other sites
Harzach 2517 Posted April 9, 2023 No, that's not relevant. Where are you placing this code? Share this post Link to post Share on other sites
H11Z3 0 Posted April 9, 2023 the code is in the selected map folder which falls under missions, the script is not in the folder "sound" but where the "mission.sqm" is Share this post Link to post Share on other sites
Harzach 2517 Posted April 9, 2023 What file is the code in? It needs to be in description.ext. Share this post Link to post Share on other sites
H11Z3 0 Posted April 9, 2023 is the description with a capital or not or does it not matter? but yes the code is in "Description.ext" Share this post Link to post Share on other sites
Harzach 2517 Posted April 9, 2023 Make a simple repro mission with no mods, VR terrain with just a unit and a trigger. If it doesn't work, share the mission here. Share this post Link to post Share on other sites