Jump to content

Sign in to follow this  
lonesoldier

Changing sounds for dialog buttons

Recommended Posts

How?

It has <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">soundPush[] = {, 0.2, 1};

soundClick[] = {"ui\ui_ok", 0.2, 1};

soundEscape[] = {"ui\ui_cc", 0.2, 1};

If i replace the ui\ui_ok with a sound ive already defined in my description.ext no sound plays at all. mad_o.gif

Share this post


Link to post
Share on other sites

you have to reference the sound file directly. In fact there stands:

\sounds\ui\ui_ok.wss

and not "ui\ui_ok"

So just give the direct link to your sound.

Share this post


Link to post
Share on other sites

Could you then please post the relevant parts of your description.ext? How is someone supposed to help if he just have to guess?

I would say that you post your base-button-class and your sounds-classes.

Share this post


Link to post
Share on other sites

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class RscButton

{

type = CT_BUTTON;

idc = -1;

style = ST_CENTER;

colorText[] = {0, 0, 0, 1};

font = FontHTML;

sizeEx = 0.025;

soundPush[] = {, 0.2, 1};

soundClick[] = {"ui\ui_ok", 0.2, 1};

soundEscape[] = {"ui\ui_cc", 0.2, 1};

default = false;

};

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgSounds

{

class asylum

{

name = "asylum";

sound[] = {"asylum.ogg", db, 1.0};

titles[] = {0, $STRM_asylum};

};

class avery10

{

name = "avery10";

sound[] = {"avery10.ogg", db-5, 1.0};

titles[] = {0, $STRM_avery10};

};

class horror01

{

name = "horror01";

sound[] = {"horror01.ogg", db, 1.0};

titles[] = {0, $STRM_horror01};

};

class TT0200N

{

name = "TT0200N";

sound[] = {"TT0200N.ogg", db, 1.0};

titles[] = {0, $STRM_TT0200N};

};

class coffboom

{

name = "coffboom";

sound[] = {"coffboom.ogg", db, 1.0};

titles[] = {0, $STRM_coffboom};

};

class achi01

{

name = "achi01";

sound[] = {"achi01.ogg", db-10, 1.0};

titles[] = {0, $STRM_achi01};

};

class lvlbak01

{

name = "lvlbak01";

sound[] = {"lvlbak01.ogg", db-10, 1.0};

titles[] = {0, $STRM_lvlbak01};

};

class rp

{

name = "rp";

sound[] = {"rp.ogg", db, 0.0};

titles[] = {0, $STRM_rp};

};

class launch

{

name = "launch";

sound[] = {"launch.ogg", db, 0.0};

titles[] = {0, $STRM_launch};

};

class start16

{

name = "start16";

sound[] = {"start16.ogg", db, 1.0};

titles[] = {0, $STRM_start16};

};

};

All sounds work fine in-game.

Share this post


Link to post
Share on other sites

Ok, then try following:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

soundClick[] = {"sound\launch.ogg", 0.2, 1};

If this doesnt work, then try a leading backslash. And also consider converting your sound to wav and then try again (I know it sounds odd, but for me this sometimes works!)

Share this post


Link to post
Share on other sites

Hmm, ok cheers mate!!!!!1

Edit: - Nope, it doesnt work sad_o.gif

I tried all the methods you suggested.... rock.gif

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  

×