I'm making a standalone project using GZDoom v4.11.3 and I want to add custom step sounds. According to the wiki, this can be done by defining RightStepSound and LeftStepSound in the TERRAIN lump, and so I did. However, GZDoom throws the following error when I try to launch the game:
Execution could not continue.
Script error, "MyStandaloneGame.ipk3:terrain.lmp" line 3:
Unknown keyword 'LeftStepSound'
Here's the entire TERRAIN lump file:
Terrain Generic
{
LeftStepSound "Footsteps/GenericLeft"
RightStepSound "Footsteps/GenericRight"
StepVolume 1.0
}
DefaultTerrain Generic
The sounds are defined in the SNDINFO lump. What could be the issue? I'm using SLADE v3.2.4 to edit my files, if that helps.
GZD 4.11.3: Unknown keyword 'LeftStepSound'
Moderator: GZDoom Developers
Forum rules
Contrary to popular belief, we are not all-knowing-all-seeing magical beings!
If you want help you're going to have to provide lots of info. Like what is your hardware, what is your operating system, what version of GZDoom/LZDoom/whatever you're using, what mods you're loading, how you're loading it, what you've already tried for fixing the problem, and anything else that is even remotely relevant to the problem.
We can't magically figure out what it is if you're going to be vague, and if we feel like you're just wasting our time with guessing games we will act like that's what you're really doing and won't help you.
Contrary to popular belief, we are not all-knowing-all-seeing magical beings!
If you want help you're going to have to provide lots of info. Like what is your hardware, what is your operating system, what version of GZDoom/LZDoom/whatever you're using, what mods you're loading, how you're loading it, what you've already tried for fixing the problem, and anything else that is even remotely relevant to the problem.
We can't magically figure out what it is if you're going to be vague, and if we feel like you're just wasting our time with guessing games we will act like that's what you're really doing and won't help you.
-
- Posts: 2
- Joined: Sat Dec 23, 2023 1:37 pm
- Graphics Processor: nVidia with Vulkan support
-
- Posts: 1341
- Joined: Tue Jul 15, 2003 4:18 pm
Re: GZD 4.11.3: Unknown keyword 'LeftStepSound'
The keyword names are actually RightStepSounds and LeftStepSounds (with an 's' on the end of each).
EDIT: Fixed in the wiki.
EDIT: Fixed in the wiki.
-
- Posts: 2
- Joined: Sat Dec 23, 2023 1:37 pm
- Graphics Processor: nVidia with Vulkan support
Re: GZD 4.11.3: Unknown keyword 'LeftStepSound'
Yeah, it's working now. Thank you!
One thing to note, the TERRAIN lump must have the RightStepSounds and LeftStepSounds, with an "s" at the end, but in code, the RightStepSound and LeftStepSound should be used, without an "s". For example:
Terrain = GetFloorTerrain();
A_PlaySound(Terrain.LeftStepSound);
Just thought I'd point that out in case somebody stumbles upon this thread.
One thing to note, the TERRAIN lump must have the RightStepSounds and LeftStepSounds, with an "s" at the end, but in code, the RightStepSound and LeftStepSound should be used, without an "s". For example:
Terrain = GetFloorTerrain();
A_PlaySound(Terrain.LeftStepSound);
Just thought I'd point that out in case somebody stumbles upon this thread.