SNDINFO new format (equals sign) doesn't work with everything

Is there something that doesn't work right in the latest GZDoom? Post about it here.

Moderator: GZDoom Developers

Forum rules
Please construct and post a simple demo whenever possible for all bug reports. Please provide links to everything.

If you can include a wad demonstrating the problem, please do so. Bug reports that include fully-constructed demos have a much better chance of being investigated in a timely manner than those that don't.

Please make a new topic for every bug. Don't combine multiple bugs into a single topic. Thanks!
User avatar
Nash
 
 
Posts: 17368
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia

SNDINFO new format (equals sign) doesn't work with everything

Post by Nash »

Code: Select all

// Pain (falling damage)
$playersound player male *pain-Falling = "sounds/player/male/pain-Falling.wav"

// Pain (drowning)
player/male/drowning_1 = "sounds/player/male/pain-Drowning_1.wav"
Gives an error:
Expected '=', got 'player/male/drowning_1'.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 48666
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: SNDINFO new format (equals sign) doesn't work with everything

Post by Graf Zahl »

It only works for "sound_id = sound_file"

anything prefixed with a '$' was not changed.
The reason here was simply to allow a more robust parsing option that emits an error if such an assignment is incomplete.
User avatar
Nash
 
 
Posts: 17368
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia

Re: SNDINFO new format (equals sign) doesn't work with everything

Post by Nash »

So [not a bug] then?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 48666
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: SNDINFO new format (equals sign) doesn't work with everything

Post by Graf Zahl »

If the second one works it's not a bug.

Return to “Bugs [GZDoom]”