Jump to content
Sign in to follow this  
Reedtech

Description Error Help

Recommended Posts

This is my Description, Below it is what I'm trying to add into it. Any assistance would be aprechiated thanks.

// description.ext settings for revive

///////////////////////////////////////////////////////////////////////////////////////////

respawn = "BASE";

respawndelay = 4;

disabledAI = 0;

#include "revive_sqf\dialogs\config.cpp"

#include "revive_sqf\dialogs\define.hpp"

#include "revive_sqf\dialogs\rev_cam_dialog.hpp"

#include "revive_sqf\dialogs\respawn_button_1.hpp"

#include "revive_sqf\dialogs\respawn_button_2.hpp"

#include "revive_sqf\dialogs\respawn_button_3.hpp"

#include "revive_sqf\dialogs\respawn_button_4.hpp"

#include "revive_sqf\dialogs\respawn_button_1b.hpp"

#include "revive_sqf\dialogs\respawn_button_1c.hpp"

#include "revive_sqf\dialogs\respawn_button_2b.hpp"

#include "revive_sqf\dialogs\respawn_button_3b.hpp"

#include "revive_sqf\dialogs\respawn_button_4b.hpp"

#include "revive_sqf\dialogs\respawn_button_1map.hpp"

#include "revive_sqf\dialogs\respawn_button_2map.hpp"

#include "revive_sqf\dialogs\respawn_button_3map.hpp"

#include "revive_sqf\dialogs\respawn_button_4map.hpp"

#include "revive_sqf\dialogs\OK_map.hpp"

#include "revive_sqf\dialogs\dead_cam_dialog.hpp"

#include "revive_sqf\dialogs\rev_cam_dialog_blank.hpp"

///////////////////////////////////////////////////////////////////////////////////////////

class Params

{

class DayTime

{

//paramsArray[0]

title = "Time Of Day";

values[] = {-6, 0, 8, 13};

texts[] = {"Morning", "Clear day", "Sundown", "Night"};

default = 0;

};

class Revive

{

// paramsArray[1]

title = "Number of Revives:";

values[] = {2000,1000,20,10,7,5};

texts[] = {"No Revive","Infinite - Cadet","20 - Easy ","10 - Normal","7 - Hard","5 - Extreme"};

default = 10;

};

};

Trying to add this into it but I keep getting errors every way I try to.

class CfgSounds

{

class wind

{

name="wind";

sound[]={"wind.ogg",0.09,1.0};

titles[]={};

};

};

Plz someone compile this together so it works properlly. Thanks again.

Share this post


Link to post
Share on other sites

This is a sounds class that works correctly...

class CfgSounds

{

sounds[] = {prison};

class prison

{

name = "prison";

sound[] = {"sounds\prison.ogg", db+0.9, 1.0};

titles[] = {0, ""};

};

};

Edited by Koni

Share this post


Link to post
Share on other sites

But I want to combine the two together without problems, any idea how?

Share this post


Link to post
Share on other sites

I've not played with custom sounds yet, but if you look at the previous posts sound config it had a couple of differences to yours. I would assume that if you made yours similar and added to the bottom of your description.ext it would work.

class CfgSounds

{

sounds[] = {wind};

class wind

{

name="wind";

sound[]={"wind.ogg", db+0.09, 1.0};

titles[] = {0, ""};

};

};

Share this post


Link to post
Share on other sites

heres mine, works all the time, can even use it inside a trigger if you go to voices, for music its under tracks. havnt been able to get it to show in a different grouping (environment, etc)

class CfgSounds
{
sounds[] = {};
 class hollow1
 {
  name = "Nature_Hollow";   // how the sound is referred to in the editor (e.g. trigger effects)
  sound[] = {"Cutscene Intro.ogg", 1, 1};   // filename, volume, pitch
  titles[] = {};
 };
};

Share this post


Link to post
Share on other sites

Looked at your thread the other day can couldn't figure out what the problem was. Now I think i've figured it out, since I suddenly remembered being in exactly same situation:

1. You are using revive right; sure looks like it?

2. You can only have one cfgSounds section (pretty sure on that).

3. Revive has some sounds you are infact including a cfgSound section through the #include preprocessor command; it's copy pastes the content of another file into your description.ext. In that other file there is the cfgSound section.

4. Either move you sound-info into that file or stop including that file and copy it content into decription.ext and merge it with yours.

???????

Profit

Share this post


Link to post
Share on other sites

If this is all correct (seems to be, i have no idea)

// description.ext settings for revive
///////////////////////////////////////////////////////////////////////////////////////////
respawn = "BASE";
respawndelay = 4;
disabledAI = 0;

#include "revive_sqf\dialogs\config.cpp"
#include "revive_sqf\dialogs\define.hpp"
#include "revive_sqf\dialogs\rev_cam_dialog.hpp"
#include "revive_sqf\dialogs\respawn_button_1.hpp"
#include "revive_sqf\dialogs\respawn_button_2.hpp"
#include "revive_sqf\dialogs\respawn_button_3.hpp"
#include "revive_sqf\dialogs\respawn_button_4.hpp"
#include "revive_sqf\dialogs\respawn_button_1b.hpp"
#include "revive_sqf\dialogs\respawn_button_1c.hpp"
#include "revive_sqf\dialogs\respawn_button_2b.hpp"
#include "revive_sqf\dialogs\respawn_button_3b.hpp"
#include "revive_sqf\dialogs\respawn_button_4b.hpp"
#include "revive_sqf\dialogs\respawn_button_1map.hpp"
#include "revive_sqf\dialogs\respawn_button_2map.hpp"
#include "revive_sqf\dialogs\respawn_button_3map.hpp"
#include "revive_sqf\dialogs\respawn_button_4map.hpp"
#include "revive_sqf\dialogs\OK_map.hpp"
#include "revive_sqf\dialogs\dead_cam_dialog.hpp"
#include "revive_sqf\dialogs\rev_cam_dialog_blank.hpp"

///////////////////////////////////////////////////////////////////////////////////////////
class Params
{

class DayTime
{
//paramsArray[0]
title = "Time Of Day";
values[] = {-6, 0, 8, 13};
texts[] = {"Morning", "Clear day", "Sundown", "Night"};
default = 0;
};
class Revive
{
// paramsArray[1]
title = "Number of Revives:";
values[] = {2000,1000,20,10,7,5};
texts[] = {"No Revive","Infinite - Cadet","20 - Easy ","10 - Normal","7 - Hard","5 - Extreme"};
default = 10;
};
};

Then you should add this

class CfgSounds
{
sounds[] = {};
class wind
{
name="wind";
sound[]={"wind.ogg",0.09,1.0};
titles[]={};
};
};

That should work, if not please tell us the specific error (screenshot would be nice). Good luck!

Share this post


Link to post
Share on other sites

// Mission Header

class Header

{

gameType = Coop;

minPlayers = 1;

maxPlayers = 4;

};

onLoadMission = "REVIVE TEST MISSION";

OnLoadMissionTime = FALSE;

// description.ext settings for revive

///////////////////////////////////////////////////////////////////////////////////////////

respawn = "BASE";

respawndelay = 4;

disabledAI = 0;

#include "revive_sqf\dialogs\config.cpp"

#include "revive_sqf\dialogs\define.hpp"

#include "revive_sqf\dialogs\rev_cam_dialog.hpp"

#include "revive_sqf\dialogs\respawn_button_1.hpp"

#include "revive_sqf\dialogs\respawn_button_2.hpp"

#include "revive_sqf\dialogs\respawn_button_3.hpp"

#include "revive_sqf\dialogs\respawn_button_4.hpp"

#include "revive_sqf\dialogs\respawn_button_1b.hpp"

#include "revive_sqf\dialogs\respawn_button_1c.hpp"

#include "revive_sqf\dialogs\respawn_button_2b.hpp"

#include "revive_sqf\dialogs\respawn_button_3b.hpp"

#include "revive_sqf\dialogs\respawn_button_4b.hpp"

#include "revive_sqf\dialogs\respawn_button_1map.hpp"

#include "revive_sqf\dialogs\respawn_button_2map.hpp"

#include "revive_sqf\dialogs\respawn_button_3map.hpp"

#include "revive_sqf\dialogs\respawn_button_4map.hpp"

#include "revive_sqf\dialogs\OK_map.hpp"

#include "revive_sqf\dialogs\dead_cam_dialog.hpp"

#include "revive_sqf\dialogs\rev_cam_dialog_blank.hpp"

///////////////////////////////////////////////////////////////////////////////////////////

class Params

{

class DayTime

{

//paramsArray[0]

title = "Time Of Day";

values[] = {-6, 0, 8, 13};

texts[] = {"Morning", "Clear day", "Sundown", "Night"};

default = 0;

};

class Revive

{

// paramsArray[1]

title = "Number of Revives:";

values[] = {2000,1000,20,10,7,5};

texts[] = {"No Revive","Infinite - Cadet","20 - Easy ","10 - Normal","7 - Hard","5 - Extreme"};

default = 10;

};

};

class CfgSounds

{

class wind

{

name="wind";

sound[]={"wind.ogg",0.09,1.0};

titles[]={};

};

};

heres the error I got.

oayd7r.jpg

Share this post


Link to post
Share on other sites

Check if any of the files you're including already contain a CfgSounds definition.

Share this post


Link to post
Share on other sites

it does.. you have to pull out the revive cfgSounds out of his scripts and put them (merge) with the description.ext cfgSounds.

edit: maybe norrin can be asked to move the cfgSounds back to the description.ext for easier merging with mission makers. :)

Share this post


Link to post
Share on other sites

I found it in config.cpp, going to try and add my custom sound too it now. Will update if it works.

---------- Post added at 08:00 PM ---------- Previous post was at 07:42 PM ----------

I found it in config.cpp, going to try and add my custom sound too it now. Will update if it works.

I added this into the config.cpp

/*

CONFIG.CPP

Taken and adapted from ArmA Group Link II Plus! script by SNKMAN.

********************************************************************************************************************************

Start config.cpp

*/

class CfgSounds

{

sounds[] =

{

Brian_Im_hit, Brian_Im_bleeding,Brian_Medic,Brian_Bastards,Brian_Shit_Man_down,Brian_Oh_no,

Brian_Fuck,Brian_Fuck_it,Brian_Shit,Wind,Brian_Need_help,Brian_A_little_help_here

};

class Brian_Im_hit

{

name="Brian_Im_hit";

sound[]={"revive_sqf\sound\UNIV_v05.ogg",0.05,1.0};

titles[]={};

};

class Brian_Im_bleeding

{

name="Brian_Im_bleeding";

sound[]={"revive_sqf\sound\UNIV_v06.ogg",0.05,1.0};

titles[]={};

};

class Brian_Medic

{

name="Brian_Medic";

sound[]={"revive_sqf\sound\UNIV_v07.ogg",0.05,1.0};

titles[]={};

};

class Brian_Bastards

{

name="Brian_Bastards";

sound[]={"revive_sqf\sound\UNIV_v10.ogg",0.05,1.0};

titles[]={};

};

class Brian_Shit_Man_down

{

name="Brian_Shit_Man_down";

sound[]={"revive_sqf\sound\UNIV_v11.ogg",0.05,1.0};

titles[]={};

};

class Brian_Oh_no

{

name="Brian_Oh_no";

sound[]={"revive_sqf\sound\UNIV_v18.ogg",0.05,1.0};

titles[]={};

};

class Brian_Fuck

{

name="Brian_Fuck";

sound[]={"sound\UNIV_v24.ogg",0.05,1.0};

titles[]={};

};

class Brian_Fuck_it

{

name="Brian_Fuck_it";

sound[]={"revive_sqf\sound\UNIV_v25.ogg",0.05,1.0};

titles[]={};

};

class Brian_Shit

{

name="Brian_Shit";

sound[]={"revive_sqf\sound\UNIV_v31.ogg",0.05,1.0};

titles[]={};

};

class Wind

{

name="Wind";

sound[]={"Revive_sqf\sound\wind.ogg",0.09,1.0};

titles[]={};

class Brian_Need_help

{

name="Brian_Need_help";

sound[]={"revive_sqf\sound\UNIV_v50.ogg",0.05,1.0};

titles[]={};

};

class Brian_A_little_help_here

{

name="Brian_A_little_help_here";

sound[]={"revive_sqf\sound\UNIV_v51.ogg",0.05,1.0};

titles[]={};

};

};

And I removed the soudns from the description and I added the wind.ogg to the sounds folder that is defined via config.cpp and I get this error.

10fxtg7.jpg

Share this post


Link to post
Share on other sites

OK, when you added it to the config.cpp you misplaced one of the closing brackets in the class Wind.

Try using this version (highlighted in RED the one I moved from the bottom):

Start config.cpp

*/

class CfgSounds

{

sounds[] =

{

Brian_Im_hit, Brian_Im_bleeding,Brian_Medic,Brian_Bastards,Brian _Shit_Man_down,Brian_Oh_no,

Brian_Fuck,Brian_Fuck_it,Brian_Shit,Wind,Brian_Nee d_help,Brian_A_little_help_here

};

class Brian_Im_hit

{

name="Brian_Im_hit";

sound[]={"revive_sqf\sound\UNIV_v05.ogg",0.05,1.0};

titles[]={};

};

class Brian_Im_bleeding

{

name="Brian_Im_bleeding";

sound[]={"revive_sqf\sound\UNIV_v06.ogg",0.05,1.0};

titles[]={};

};

class Brian_Medic

{

name="Brian_Medic";

sound[]={"revive_sqf\sound\UNIV_v07.ogg",0.05,1.0};

titles[]={};

};

class Brian_Bastards

{

name="Brian_Bastards";

sound[]={"revive_sqf\sound\UNIV_v10.ogg",0.05,1.0};

titles[]={};

};

class Brian_Shit_Man_down

{

name="Brian_Shit_Man_down";

sound[]={"revive_sqf\sound\UNIV_v11.ogg",0.05,1.0};

titles[]={};

};

class Brian_Oh_no

{

name="Brian_Oh_no";

sound[]={"revive_sqf\sound\UNIV_v18.ogg",0.05,1.0};

titles[]={};

};

class Brian_Fuck

{

name="Brian_Fuck";

sound[]={"sound\UNIV_v24.ogg",0.05,1.0};

titles[]={};

};

class Brian_Fuck_it

{

name="Brian_Fuck_it";

sound[]={"revive_sqf\sound\UNIV_v25.ogg",0.05,1.0};

titles[]={};

};

class Brian_Shit

{

name="Brian_Shit";

sound[]={"revive_sqf\sound\UNIV_v31.ogg",0.05,1.0};

titles[]={};

};

class Wind

{

name="Wind";

sound[]={"Revive_sqf\sound\wind.ogg",0.09,1.0};

titles[]={};

class Brian_Need_help

};

{

name="Brian_Need_help";

sound[]={"revive_sqf\sound\UNIV_v50.ogg",0.05,1.0};

titles[]={};

};

class Brian_A_little_help_here

{

name="Brian_A_little_help_here";

sound[]={"revive_sqf\sound\UNIV_v51.ogg",0.05,1.0};

titles[]={};

};

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  

×