Jump to content
Sign in to follow this  
unacknowledged

[HELP]Continous Error

Recommended Posts

Hey BI Forums,

I have an issue to do with sound.

Should be known I'm not very good at scripting or anything of the sort so please be patient with me!

Basically, I'm trying to use the Loudspeaker Playlist which can be found here

But.... Upon adding the lines I want in my Description.ext I get this error.

This is my Description.ext Music section.

NOTE There is no other lines of Sound/Music within my Description.ext so the error is baffling me.

//=============================================================Music=====================================================================>

class CfgSounds

{

sounds[] =

{

track1,track2

};

class track1

{

name="track1";

sound[]={"Music\track1.ogg",0.3,1};

titles[]={};

};

class track2

{

name="track2";

sound[]={"Music\track2.ogg",0.3,1};

titles[]={};

};

};

//=============================================================Music=====================================================================>

Share this post


Link to post
Share on other sites

From that error message it appears you have cfgSounds already defined somewhere else in your description.ext. Any chance you can post the entire file?

Share this post


Link to post
Share on other sites

Here is my entire Description.ext

//=============================================================Description================================================================>

Debriefing = 1;

OnLoadIntro = "Joint Aircraft Coalition";

OnLoadIntroTime = 1;

OnLoadMissionTime = 1;

onLoadMission = "Joint Aircraft Coalition";

Saving = 0;

loadScreen = "Images\Img.paa";

//=============================================================Description================================================================>

class Header

{

gameType = Coop;

minPlayers = 1;

maxPlayers = 14;

};

respawn = "BASE";

respawndelay = 2;

respawnDialog = 0;

disabledAI = 1;

disableChannels[]={1,2,3,4,5,6};

aiKills = 1;

respawnBackWest[] = {"UKSF_wdl_Bergan2"};

respawnWeaponsWest[] = {"RH_mp5a4eot"};

respawnMagazinesWest[] = {"30Rnd_9x19_MP5","30Rnd_9x19_MP5","30Rnd_9x19_MP5","30Rnd_9x19_MP5","30Rnd_9x19_MP5","30Rnd_9x19_MP5","30Rnd_9x19_MP5","30Rnd_9x19_MP5","30Rnd_9x19_MP5","30Rnd_9x19_MP5","30Rnd_9x19_MP5","SmokeShellGreen","SmokeShellRed"};

//=============================================================Scripts====================================================================>

#include "Scripts\unitCaching\description.ext"

#include "Scripts\sonicboom\sounds.hpp"

#include "mission_settings\dialog\common.hpp"

#include "mission_settings\dialog\mission_settings.hpp"

#include "Scripts\=BTC=_Logistic\=BTC=_Lift\=BTC=_Hud.h"

//=============================================================Scripts====================================================================>

//=============================================================Paramaters================================================================>

class Params

{

class TimeOfDay {

title = "Time of Day";

values[] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,99};

texts[] = {"0000","0100","0200","0300","0400","0500","0600","0700","0800","0900","1000","1100","1200","1300","1400","1500","1600","1700","1800","1900","2000","2100","2200","2300","Random"};

default = 12;

};

};

//=============================================================Paramaters================================================================>

//=============================================================Music=====================================================================>

class CfgSounds

{

sounds[] =

{

track1,track2

};

class track1

{

name="track1";

sound[]={"Music\track1.ogg",0.3,1};

titles[]={};

};

class track2

{

name="track2";

sound[]={"Music\track2.ogg",0.3,1};

titles[]={};

};

};

//=============================================================Music=====================================================================>

Share this post


Link to post
Share on other sites

My guess is that this file:

#include "Scripts\sonicboom\sounds.hpp"

already has a cfgSounds section in it causing the error.

The easiest way would probably be to add the custom track stuff to that sounds.hpp file under the existing cfgSounds entry. I'm a bit tired today hopefully I've explained that properly :p

Share this post


Link to post
Share on other sites

Well originally, I thought the exact same thing. But upon looking inside the .hpp it doesn't use the same sound types ( I sound like a retard I know, but in this area I am.) I will post the .hpp of that.

class CfgSounds

{

class sonicboom_sonicboom_razovavlna

{

name = "";

sound[] = {"SonicBoom\sounds\sonicboom_01.wss", 5, 1};

titles[] = {};

};

class sonicboom_sonicboom_razovavlna_far

{

name = "";

sound[] = {"SonicBoom\sounds\sonicboom_01_far.wss", 3, 1};

titles[] = {};

};

class sonicboom_sonicboom_01

{

name = "";

sound[] = {"SonicBoom\sounds\sonicboom_02.wss", 9, 1};

titles[] = {};

};

class sonicboom_sonicboom_01_far

{

name = "";

sound[] = {"SonicBoom\sounds\sonicboom_02_far.wss", 6, 1};

titles[] = {};

};

class sonicboom_sonicboom_02

{

name = "";

sound[] = {"SonicBoom\sounds\sonicboom_03.wss", 9, 1};

titles[] = {};

};

class sonicboom_sonicboom_02_far

{

name = "";

sound[] = {"SonicBoom\sounds\sonicboom_03_far.wss", 6, 1};

titles[] = {};

};

class sonicboom_sonicboom_03

{

name = "";

sound[] = {"SonicBoom\sounds\sonicboom_04.wss", 9, 1};

titles[] = {};

};

class sonicboom_sonicboom_03_far

{

name = "";

sound[] = {"SonicBoom\sounds\sonicboom_04_far.wss", 6, 1};

titles[] = {};

};

};

My guess is that this file:

#include "Scripts\sonicboom\sounds.hpp"

already has a cfgSounds section in it causing the error.

The easiest way would probably be to add the custom track stuff to that sounds.hpp file under the existing cfgSounds entry. I'm a bit tired today hopefully I've explained that properly :p

Share this post


Link to post
Share on other sites

Ok so I would just add the tracks to that file like so:

class CfgSounds
{
sounds[] = {track1,track2};

class track1
{
	name="track1";
	sound[]={"Music\track1.ogg",0.3,1};
	titles[]={};
};

class track2
{
	name="track2";
	sound[]={"Music\track2.ogg",0.3,1};
	titles[]={};
};

class sonicboom_sonicboom_razovavlna
{
	name = "";
	sound[] = {"SonicBoom\sounds\sonicboom_01.wss", 5, 1};
	titles[] = {};
};

class sonicboom_sonicboom_razovavlna_far
{
	name = "";
	sound[] = {"SonicBoom\sounds\sonicboom_01_far.wss", 3, 1};
	titles[] = {};
};

class sonicboom_sonicboom_01
{
	name = "";
	sound[] = {"SonicBoom\sounds\sonicboom_02.wss", 9, 1};
	titles[] = {};
};

class sonicboom_sonicboom_01_far
{
	name = "";
	sound[] = {"SonicBoom\sounds\sonicboom_02_far.wss", 6, 1};
	titles[] = {};
};

class sonicboom_sonicboom_02
{
	name = "";
	sound[] = {"SonicBoom\sounds\sonicboom_03.wss", 9, 1};
	titles[] = {};
};

class sonicboom_sonicboom_02_far
{
	name = "";
	sound[] = {"SonicBoom\sounds\sonicboom_03_far.wss", 6, 1};
	titles[] = {};
};

class sonicboom_sonicboom_03
{
	name = "";
	sound[] = {"SonicBoom\sounds\sonicboom_04.wss", 9, 1};
	titles[] = {};
};

class sonicboom_sonicboom_03_far
{
	name = "";
	sound[] = {"SonicBoom\sounds\sonicboom_04_far.wss", 6, 1};
	titles[] = {};
};
};

Share this post


Link to post
Share on other sites

Isn't there a way around this though? I would prefer to use the script for the Loudspeaker without having to meddle with that .hpp

Share this post


Link to post
Share on other sites

AFAIK no.. cfgSounds can only be defined once.. you will get that error if you have it defined in multiple locations.  Only way is to merge the info into one cfgSounds section.

Share this post


Link to post
Share on other sites

Can you add me on Steam? I could use quite a bit of help with this and a few other thing's.

 

AFAIK no.. cfgSounds can only be defined once.. you will get that error if you have it defined in multiple locations.  Only way is to merge the info into one cfgSounds section.

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  

×