[SOLVED] Random jumping and landing sounds not working

Ask about editing graphics, sounds, models, music, etc here!
Shaders (GLSL) and SNDINFO questions also go here!

Moderators: GZDoom Developers, Raze Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

[SOLVED] Random jumping and landing sounds not working

Postby Plasmazippo » Mon Dec 20, 2021 1:05 pm

Sorry if this is the million-and-one-th time this is asked, but I'm absolutely stumped.

I've been trying to make a mod for adding customized jumping and landing sounds for my player, but at first the sounds didn't play, and later when I added the sounds to a "sounds" folder, it gave me the dreaded "Sounds that are reserved for players cannot be reassigned" error. I've followed the ZDoom wiki's SNDINFO page to the letter, took a peek into another such mod and even googled other threads of people with the same issue. I legitimately don't understand what I'm doing wrong! :bang:

Here's the contents of the SNDINFO file:
Code: Select allExpand view
//Jumping
$playeralias   player   male   *jump   jump/kick
$playeralias   player   female   *jump   jump/kick
$playeralias   player   other   *jump   jump/kick

$random      jump/kick     { kick1  kick2  kick3 kick4 kick5 }
                        
   kick1         "sounds/kick_01.wav"
   kick2         "sounds/kick_02.wav"
   kick3         "sounds/kick_03.wav"
   kick4         "sounds/kick_04.wav"
   kick5         "sounds/kick_05.wav"

//Light landing, small falls
$playeralias   player   male      *land   jump/land
$playeralias   player   female   *land   jump/land
$playeralias   player   other   *land   jump/land

$random         jump/land   { step1 step2 step3 step4 step5 step6 }

   step1         "sounds/pl_concrete1a.wav"
   step2         "sounds/pl_concrete1b.wav"
   step3         "sounds/pl_concrete2a.wav"
   step4         "sounds/pl_concrete2b.wav"
   step5         "sounds/pl_concrete3a.wav"
   step6         "sounds/pl_concrete3b.wav"

//Hard landing, long drops   
$playeralias   player   male   *grunt   jump/slam
$playeralias   player   female   *grunt   jump/slam
$playeralias   player   other   *grunt   jump/slam

$random         jump/slam   { big1 big2 big3 big4 big5 }
   big1         "sounds/body_big_01.wav"
   big2         "sounds/body_big_02.wav"
   big2         "sounds/body_big_03.wav"
   big4         "sounds/body_big_04.wav"
   big5         "sounds/body_big_05.wav"


This isn't my first time trying to make a player sound mod, but it is the first attempting to use $playeralias to assign random sounds to the action; previously, I only ever used $playersound. By all means, everywhere I looked for reference, this should work, but it doesn't.

If that matters any, the files are in .wav format.
Last edited by Plasmazippo on Thu Dec 23, 2021 10:41 am, edited 1 time in total.
Plasmazippo
 
Joined: 25 Sep 2021
Operating System: Windows 10 ARM
OS Test Version: No (Using Stable Public Version)
Graphics Processor: ATI/AMD with Vulkan Support

Re: Random jumping and landing sounds not working

Postby Plasmazippo » Thu Dec 23, 2021 10:41 am

UPDATE:

Changed the file names to all be 8 characters long, as the wiki says, and it works now. I was trying to practice the longer name pathing as mentioned in the wiki (full path, name between quotes, the whole kit and caboodle), but that was clearly a bust.
Plasmazippo
 
Joined: 25 Sep 2021
Operating System: Windows 10 ARM
OS Test Version: No (Using Stable Public Version)
Graphics Processor: ATI/AMD with Vulkan Support


Return to Assets (and other stuff)

Who is online

Users browsing this forum: No registered users and 1 guest