Jump to content

problems with sound and sprites (Double Trouble)


K_Doom

Recommended Posts

Hi guys, today I was modifying one of the weapons I got from the realm667 website called "Repeater". As weapons based on plasma / laser ammunition are projectiles, I see no reason why this weapon is hitcan, I like to see projectiles flying. So I modified a new projectile so that the gun had it, the problem is that when I shoot close to objects or a wall, the sound of the shot is muted / muffled by the sound of the projectile's collision, something that doesn't happen, for example, with the Plasma riffle (vanilla). I still don't quite understand all the sound/sndinfo properties, but from what I've tested, nothing has worked.

 


This is the Repeater video demonstrating the "buggy" ⬇

test - Final Doom_ Plutonia Experiment 2021-10-10 21-41-11.rar
 


Another problem I had with the same weapon is that collision sprites in the "Death:" state appear differently than they should.

For example; these are the default Repeator sprites:

 

                                                                 Rcreenshot_Doom_20211010_213125.png.3d79aac8fad21d44bd8b965095db2590.png

 

 

And these are the Repeater sprites that I modified:

 

                                                                 1908923590_Rcreenshot_Doom_20211010_213208(1).png.d1c307eda78b305626fe223d2905cd88.png

 

 

The strangest thing about all this is that their Decorate file is the same and the sprites are also the same. However, both appear in the game in different ways.

Below the image of both decorates;

 

                                                                                      Modified Decorate:

 

                                                                 Capturar.JPG.3e4124a19e81c8fb714953bfbbe1e928.JPG

 

 

                                                                                       Original Decorate:

 

                                                      CapturarV.JPG.2e8a7dbace7a93da441fdaf412cce750.JPG

 

 

In case you want to take a closer look here are the wads;

 

This is the wad where I modify and test before deploying to the official map. I haven't organized the files into folders yet, but modified decorate file [Repeater] is second from top to bottom ⬇

TEST2.rar

 

 

Also the original Repeater wad, in case you need to do a comparison ⬇

Repeater.rar

 

 

That's all, I'll thank you for any tips and thanks for your attention👋

 

 

 

Edited by K_Doom
wrong format

Share this post


Link to post
  • 1 month later...

I see you're using A_PlaySound instead of A_StartSound, so the game might be not be managing the sound channels properly.

 

If you use A_StartSound, you can actually force your sound into a specific channel (it's 2nd parameter after the sound name). Default just uses the next unused sound channel, so just changing to A_StartSound may do the trick, but if that doesn't work fiddling with the channels is probably worth a try.

 

Alas, I got an error when I tried to open your .rar :( So you'll have to test that out on your end.  Hope it helps!

Share this post


Link to post
3 hours ago, Burgish_Nilwert said:

Vejo que você está usando A_PlaySound em vez de A_StartSound, então o jogo pode não estar gerenciando os canais de som corretamente.

 

Se você usar A_StartSound, você pode realmente forçar seu som em um canal específico (é o segundo parâmetro após o nome do som). O padrão usa apenas o próximo canal de som não utilizado, então apenas mudar para A_StartSound pode resolver o problema, mas se isso não funcionar, provavelmente vale a pena tentar mexer nos canais.

 

Infelizmente, recebi um erro quando tentei abrir seu .rar :( Então você terá que testar isso do seu lado. Espero que ajude!

Thanks for that, A_StartSound really solves the problem, but inside UDB. When I try to run the map to play in GZDoom it shows an error that doesn't recognize this function. Which is weird since it's not deprecated.

Share this post


Link to post

That's too bad, but at least we found out the problem is definitely the sound channels.

 

A_StartSound isn't deprecated, but in Slade DECORATE language it isn't highlighted, even though it works in game.

 

image.png.e841ebe4351e095ec74fde2632b5f196.png

 

...which makes me think there might be version compatibility issues.  I'm running GZDoom 4.5, if that helps.  Or you could always try uninstalling/reinstalling GZDoom if you haven't tried that already.

Edited by Burgish_Nilwert

Share this post


Link to post
3 hours ago, Burgish_Nilwert said:

That's too bad, but at least we found out the problem is definitely the sound channels.

 

A_StartSound isn't deprecated, but in Slade DECORATE language it isn't highlighted, even though it works in game.

 

image.png.e841ebe4351e095ec74fde2632b5f196.png

 

...which makes me think there might be version compatibility issues.  I'm running GZDoom 4.5, if that helps.  Or you could always try uninstalling/reinstalling GZDoom if you haven't tried that already.

I'll try, I hope it works.

Share this post


Link to post
2 hours ago, Kan3 said:

Wait... Aren't you the same guy who asked this same question a while ago? What happened?

Haha, yes it's me friend. Unfortunately, I have to repost my questions in several places as they seem to be the only way for someone to answer...

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...