keeperfx icon indicating copy to clipboard operation
keeperfx copied to clipboard

Few notices about audio

Open CashDiver opened this issue 1 month ago • 11 comments

I play 1_2_0_4743_Alpha-patch for now, maybe the issue was fixed in later releases but I've noticed it in all versions. Game won't start with edited voice translation, I take the speech_rus file from the Stream localization and it works fine but some of its phrazes are distorted, inappropriate quality. I edited them through Audacity with help of Bullfrog Utils Sound Extractor and DKSound and now the Stream localization works correctly but only in Stable Release. Alpha Patches don't accept it, the game freezes before intro. Maybe it can be useful.

A bit offtopic, could it be the DKSound corruption of sound files? For example Dragoonlich edited sound.dat doesn't play the alternative sounds at the end although they are available through DKSound.

CashDiver avatar Nov 15 '25 23:11 CashDiver

So, to understand correctly:

  1. You play the game in russian
  2. If you just play the alpha patches, everything is correct, in russian too
  3. If you play a different russian speech.dat file, it works on stable, but not on alpha

correct?

Loobinex avatar Nov 16 '25 00:11 Loobinex

Yes.

CashDiver avatar Nov 16 '25 09:11 CashDiver

@CashDiver Could you zip up and attach the file you use that works on the stable but not the alpha?

Loobinex avatar Nov 16 '25 10:11 Loobinex

speech_rus.zip here is the speech.dat I always use, this Stream localization works on Alphas too. Few of phrazes sound distorted, these are Scavenger messages, etc.

speech_rus (stream corrected).zip and here is Stream with corrections as writen above, it works on Stable but Alphas don't accept it, they freeze at intro.

CashDiver avatar Nov 16 '25 10:11 CashDiver

@CashDiver

The speech_rus.zip file you provided has some of the samples using the MSADPCM codec. It appears my implementation isn't capable of properly decoding those samples, apologies.

In the mean time, here is a fixed version of speech_rus (stream corrected).zip. The file you provided has a corrupted index and claims it contains 840 samples (there are supposed to be 126). speech_rus fixed.zip

xtremeqg avatar Nov 16 '25 22:11 xtremeqg

Thanks a lot, the fixed file works fine, I think the issue is solved.

@xtremeqg It seems like DKSound isn't much effective in samples changing, could you please specify the apps you use for sounds dat files? For example, how to include more samples in sound dat without disrupting its structure, it's not obvious how to search and match them through Hex Editor. If the stuff is complicated you possibly could suggest where to start.

CashDiver avatar Nov 17 '25 16:11 CashDiver

Thanks a lot, the fixed file works fine, I think the issue is solved.

@xtremeqg It seems like DKSound isn't much effective in samples changing, could you please specify the apps you use for sounds dat files? For example, how to include more samples in sound dat without disrupting its structure, it's not obvious how to search and match them through Hex Editor. If the stuff is complicated you possibly could suggest where to start.

I do not think xtreme used that, but for keeperfx there is the sndbanker application that builds all the sound files from the sfx source files: https://lubiki.keeperklan.com/tools/keeperfx_toolspkg.7z

Loobinex avatar Nov 17 '25 18:11 Loobinex

@Loobinex Thanks, it's just an awesome present, there shall be no rest for this tool.

CashDiver avatar Nov 17 '25 23:11 CashDiver

I am reopening it. Xtreme said he would look into the MSADPCM codec thing.

Loobinex avatar Nov 20 '25 17:11 Loobinex

An access was lost for a while, apologies for the delay. I didn't distinguish samples by codecs, my suspicion was the wrong bitrate. I unpacked the Stream sound.dat with Bullfrog Utils Sound Extractor and found some inappropriate files. Then I converted them with Audacity and imported with DKSound.

CashDiver avatar Nov 24 '25 06:11 CashDiver

...

A bit offtopic, could it be the DKSound corruption of sound files? For example Dragoonlich edited sound.dat doesn't play the alternative sounds at the end although they are available through DKSound.

DKSOUND is a rather problematic programme. Perhaps it is me who does not understand how it works. The sounds I have put on sound.dat are normally usable. But if you add or remove sounds or save them in some way, DKSOUND sometimes messes things up. Among the strange things DKSOUND does is the allocation of sounds that can be put in one slot, but for some reason cannot be put in others. So you may find sounds for a certain creature scattered around chaotically because it was not possible to put them together. Even the length of the sound, which seemed to me to be a problem in certain sounds, is irrelevant (within certain limits) and does not cause any major problems except for the slot that DKSOUND likes for itself. If you have problems with custom sound.dat, we can also talk on Discord. I used DKSOUND version 1.2.

Dragonlich8 avatar Dec 02 '25 09:12 Dragonlich8