Jump to content

Recommended Posts

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
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

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
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

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

Off-topic, but skip the weird formatting and paste your code in code blocks:

 

tfleVif.png

 

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

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
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

Could the file path be getting confused as I'm using a custom map?

 

Share this post


Link to post
Share on other sites

No, that's not relevant.

 

Where are you placing this code?

Share this post


Link to post
Share on other sites

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

What file is the code in? It needs to be in description.ext.

Share this post


Link to post
Share on other sites

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×