Problems with sounds.

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
antaran
Posts: 7
Joined: Fri Mar 19, 2004 9:38 am
Location: Torun
Contact:

Problems with sounds.

Post by antaran »

Greetings everybody.
I am green in zdoom editing (started 3 days ago), and I have one simple question:
void soundsequence(str name); in this function as the 'name' what must I type? If I type for example dsbarexp for barrel sound ACC tells me about undefined string. Also sound sequences number doesnt work. Somebody help me!
User avatar
HotWax
Posts: 10002
Joined: Fri Jul 18, 2003 6:18 pm
Location: Idaho Falls, ID

Post by HotWax »

You're trying to give the function the literal name of the sound. Instead, you need to give it the "nice name" entry defined in SNDINFO. You can find SNDINFO in ZDoom.wad in your ZDoom folder. It's just a plain text lump, and it looks something like this:

Code: Select all

.
.
.

// Boss Brain

brain/sight			dsbossit
brain/pain			dsbospn
brain/death			dsbosdth
brain/spit			dsbospit
brain/cube			dsboscub
brain/cubeboom			dsfirxpl
$alias brain/spawn		misc/teleport


//============================================================================
//
// WORLD SOUNDS
//
//===========================================================================

world/barrelx			dsbarexp

world/drip			dsempty
world/watersplash		dsempty
world/sludgegloop		dsempty
world/lavasizzle		dsempty
.
.
.
As you can see from the above snippet, dsbarexp is defined as "world/barrelx" (and a few other things, too -- that sound is also used for rocket explosions). So, if you wanted dsbarexp to play, you would use this line in a script:

soundsequence("world/barrelx");

That's all there is to it.
User avatar
randi
Site Admin
Posts: 7749
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Post by randi »

Sound sequences are defined in the SNDSEQ lump. There are only a few stock ones with ZDoom, but you can define your own.

It also sounds like you weren't putting quotes around your strings. They're not considered strings if they don't have quotes around them.

Wrong:

Code: Select all

soundsequence (dsbarexp)
Right:

Code: Select all

soundsequence ("DoorOpenNormal")
User avatar
HotWax
Posts: 10002
Joined: Fri Jul 18, 2003 6:18 pm
Location: Idaho Falls, ID

Post by HotWax »

Heh, I didn't even notice he was using soundsequence. From the sound of it (no pun intended), he's actually just wanting to play a single sound.

See here
antaran
Posts: 7
Joined: Fri Mar 19, 2004 9:38 am
Location: Torun
Contact:

Post by antaran »

Thanx a lot! Now it work's great!
Locked

Return to “Editing (Archive)”