Knuckle Cracker

Creeper World 4 => Support for Creeper World 4 => Topic started by: 321k on February 22, 2021, 04:12:26 am

Title: PlaySound /PlaySoundLoop
Post by: 321k on February 22, 2021, 04:12:26 am
I've a question regarding the 3 commands
PlaySound / PlaySoundAtPosition vs. PlaySoundLoop.

The sounds in http://knucklecracker.com/wiki/doku.php?id=4rpl:commands:sounds are categorized as "Discrete Sounds" and "Looping Sounds". My expectation was that discrete sounds could be played by PlaySound and looping sounds by PlaySoundLoop.

But most of the "looping sounds" don't work with PlaySoundLoop. They work with PlaySound, but there they play infinetly without chance to ever stop them, one has to restore whole map to a previous state (or is there any hint to clean a map from abandoned sounds?)

On the other hand, the only sound I've found working as intended with PlaySoundLoop is "hum4", which is for some reasons not listet in the wiki document. So I think I just don't understand the underlying concept?
Title: Re: PlaySound /PlaySoundLoop
Post by: Karsten75 on February 22, 2021, 06:58:39 am
Fixed:

https://github.com/KnuckleCracker/CW4-bug-tracker/issues/740
Title: Re: PlaySound /PlaySoundLoop
Post by: 321k on February 22, 2021, 09:56:08 am
Fixed:

https://github.com/KnuckleCracker/CW4-bug-tracker/issues/740

Cool!
Title: Re: PlaySound /PlaySoundLoop
Post by: 321k on February 22, 2021, 10:08:51 am
Wait, one more question, I found in the the programs runtime memory a sound named "hum4", which is not in the wiki list. Is there a way to get names of all sounds without doing reverse search in game memory?