GZD 4.11.3: Unknown keyword 'LeftStepSound'

Need help running various source ports? Did your computer break? Ask here.

Moderators: GZDoom Developers, LZDoom Developers, UZDoom Developers

Forum rules
Please be as descriptive as possible in your posts (list your hardware and operating system, the version of the source port you are using, any mods you are running and how they're being loaded, etc.)
This will help others to give you a solution!
User avatar
Nakotuhin
Posts: 2
Joined: Sat Dec 23, 2023 1:37 pm
Graphics Processor: nVidia with Vulkan support

GZD 4.11.3: Unknown keyword 'LeftStepSound'

Post by Nakotuhin »

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.
User avatar
AFADoomer
Posts: 1345
Joined: Tue Jul 15, 2003 4:18 pm

Re: GZD 4.11.3: Unknown keyword 'LeftStepSound'

Post by AFADoomer »

The keyword names are actually RightStepSounds and LeftStepSounds (with an 's' on the end of each).

EDIT: Fixed in the wiki.
User avatar
Nakotuhin
Posts: 2
Joined: Sat Dec 23, 2023 1:37 pm
Graphics Processor: nVidia with Vulkan support

Re: GZD 4.11.3: Unknown keyword 'LeftStepSound'

Post by Nakotuhin »

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.

Return to “Technical Issues”