Jump to content
Sign in to follow this  
Sandy106

Can I get a bug check on this please?

Recommended Posts

I'm getting an error with this block of script in my description.ext folder which is causing a crash to desktop whenever I load it.

class CfgSounds
{

sounds[] = {};


class ontheground
{
	name = "ontheground"; 
	sound[] = {"\sound\dem1_x01_hid_01.ogg", db+20, 1};
	titles[] = {};
};
class copythat
{
	name = "copythat"; 
	sound[] = {"\sound\dem1_x01_sab_01.ogg", db+20, 1};
	titles[] = {};
};
class youaretasked
{
	name = "youaretasked"; 
	sound[] = {"\sound\dem1_x01_sab_02.ogg", db+20, 1};
	titles[] = {};
};
class solidcopy
{
	name = "solidcopy"; 
	sound[] = {"\sound\dem1_x01_hid_02.ogg", db+20, 1};
	titles[] = {};
};
};

The error is a missing } on line 1290 but I can't figure out which line 1290 even is (I'm using notepad to edit this). Can anyone spot the issue? This is completely holding up the mission I'm trying to create. Thanks.

Share this post


Link to post
Share on other sites

No fault found.. but it is absolutly possible that the error is in another row... =/

Share this post


Link to post
Share on other sites

Get yourself Notepad++, it's free and indispensible for ArmA development :) you can easily find line number, and it will also highlight bracket pairs so you can find problems easier.

Share this post


Link to post
Share on other sites

Finally figured it out, looks like I need one last } at the end of the file after the };

One last qustion, is it possible to play multiple sound files in a row (one after the other) with the playsound command?

Get yourself Notepad++, it's free and indispensible for ArmA development :) you can easily find line number, and it will also highlight bracket pairs so you can find problems easier.

Just downloaded that, it is indeed much better than notepad, thank you.

Share this post


Link to post
Share on other sites

Yes, but you have to time it using sleep. The playSound command is the only one that allows playing different sounds simultaneously. It also supports stereo sounds, but can't have spatialization (won't react to positional and directional changes). Unlike units/objects producing sounds using say/say3d commands, which doesn't support stereo but does support spatialization (at this point - hopefully changes with Arma3 :)).

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  

×