Jump to content
The Dark Mod Forums

Sound Problem When Reading Notes


thigikna

Recommended Posts

I had a problem with my game where there was no audio, but there was a thread I found a while ago that fixed it by setting your headphones frequency to 44100 hz, which restored the sound, but there's still one more problem. Whenever I change pages in a note, the sound would mute, and I would have to restart the game to get it working again. This isn't really a deal breaker, but it basically means if I want to read a note in a mission (usually with useful information about loot spots in the level), I have to quit the game afterwards or I won't be able to play the game. Really kills the mood of the game for me, so I've been scouring the internet for solutions. I tried both the official and unofficial installers, I tried downloading the game from ModDB, but still nothing. I did however, find an old 2.08 build of the game on ModDB. I figured at this point my computer just doesn't like the 2.09 version so I would download that version and hopefully it would work. And something interesting happened. I loaded up the training mission and read the book to check if it was working, and this awful compressed (very loud) page turn sound effect played that nearly blew my eardrums out. So the sound was working at least, but it's almost worse now that my ears are getting blasted every time I read a note! My theory is that this sound effect was (rightfully) taken out of the game, and some line of code still refers to it playing, but I know nothing about coding so I wouldn't know how to fix it. If anyone finds a solution please respond ASAP. I've played all the Thief games and Dark Mod is the only reason I keep living.

Link to comment
Share on other sites

13 hours ago, thigikna said:

there was a thread I found a while ago that fixed it by setting your headphones frequency to 44100 hz, which restored the sound

Yes, I recall report about such strange behavior.
I have 48 KHz 24-bit setting, and never had any problems with TDM sound.

Maybe there is some bug in resampler, which does not always happen.

Quote

I tried both the official and unofficial installers, I tried downloading the game from ModDB, but still nothing.

Yes, it is definitely not an installation problem: the game simply does not work well on your system.

Unfortunately, it is quite likely a bug in OpenAL library. A bug in TDM is also a possibility, of course.
I'm afraid the last version without OpenAL was 2.05. You can get it via tdm_installer, and it will work perfectly... but it is quite old for today.

Quote

Whenever I change pages in a note, the sound would mute, and I would have to restart the game to get it working again.

I have heard reports like "does not work" and "constant noise", but this behavior is damn strange!
Definitely worth investigating.

Quote

This isn't really a deal breaker, but it basically means if I want to read a note in a mission (usually with useful information about loot spots in the level), I have to quit the game afterwards or I won't be able to play the game. Really kills the mood of the game for me

Yes, it is of course unplayable in such state.

Quote

I loaded up the training mission and read the book to check if it was working, and this awful compressed (very loud) page turn sound effect played that nearly blew my eardrums out.

Sorry for that.
Good god this is not teledildonics hardware! 😌

Quote

My theory is that this sound effect was (rightfully) taken out of the game, and some line of code still refers to it playing

I don't think this sound was changed from 2.08 to 2.09.

It is more likely that there is a bug which fills sound buffer with garbage data. Garbage data is an interesting thing: it can be correct data, all zeros, some infinite values, or very low values, ... pretty much everything, depending on some random factors.

Quote

I've played all the Thief games and Dark Mod is the only reason I keep living.

Whoa! That's the spirit!

Unfortunately, such issues can take days to debug without any result in the end 😭 So I'm afraid you will need your patience a lot.

Link to comment
Share on other sites

  1. Do you run TheDarkModx64.exe ?
  2. Do you use Windows 10?
  3. Could you please write which CPU do you have?
  4. Which FM did you play, which book did you read? I guess the problem happens everywhere, but please bring at least one example for clarity.
  5. About the loud sound: was it some weird noise, or was it intended sound just too loud?
Link to comment
Share on other sites

Could you please download the attached batch file and use it to start TDM (version 2.09)?
It sets two environment variables which enable OpenAL internal logging.

When playing, please get to the location where this bad sound happens (or where it is missing), and let it trigger.
After that, create condump, then finish game and exit.

Please provide:

  1. File "openal_log.txt" in the TDM directory: it must be created if you start TDM via attached script.
  2. The condump file that you recorded.

P.S. Note that you can have both TDM 2.08 and 2.09 side-by-side.
Or you can switch between versions pretty easily using tdm_installer.

run_with_openal_log.cmd

Link to comment
Share on other sites

And one more thing to try.

Try to set cvar "s_force22kHz 1" in console immediately after you start TDM.
Then try to play game.

Does normal sounds play well? Or you get the same problems with more sounds now?
In particular, do rat squeaks play properly? (e.g. at the beginning of Saint Lucia or New Job FMs)

 

Link to comment
Share on other sites

Hello, thank you for all the replies. I just woke up but i have school in a bit so it may be a while before I can test these things. I can give you my specs tho.

1. I tried both the x64 file and the non-recommended 32-bit file from the official website.

2. Windows 10

3. CPU: i7-6700 (still have a shitty pre-built from a couple years ago I decked out with more ram and a new graphics card)

4. I tried the training mission, A New Job, and found a random fan mission, Business As Usual. The same effect happened in all three.

5. It was just a page turn sound effect, but it was mixed way louder than any of the other sound effects. Would have been fine if it was quieter. If you're still curious I can record a video of the sound, but that will have to happen after school. I will test these things out as soon as I get the chance.

Link to comment
Share on other sites

OK, I just tried both things you suggested. First I used your .bat file and got the necessary logs:

openal_log.txtmy_nasty_issue.txt

Second, when I put that command in the console and started A New Job, the sound worked fine for a couple of seconds, but once I turned the corner of the first alleyway the sound stopped. I did some more testing with this command on and I found that jumping on wooden surfaces causes the sound to cut out. Hopefully my logs tell you something helpful.

  • Thanks 1
Link to comment
Share on other sites

6 hours ago, thigikna said:

Second, when I put that command in the console and started A New Job, the sound worked fine for a couple of seconds, but once I turned the corner of the first alleyway the sound stopped. I did some more testing with this command on and I found that jumping on wooden surfaces causes the sound to cut out. Hopefully my logs tell you something helpful.

Just to clarify: the sound stops from jumping on wooden surface if "s_force22kHz 1" is set. But does not stop from jumps on wooden surface when this cvar is not set, right?

 

P.S. You might also want to disable EFX and HRTF in sounds settings, then restart game.
The is some small chance that it would fix the problem.

Link to comment
Share on other sites

I managed to reproduce the problem (maybe another one, but definitely a problem) on my machine by setting resampler=bsinc24 in OpenAL config, plus "s_force22kHz 1" in game console on start.

Please try the following:

  • Open "C:\Users\Miles\AppData\Roaming\alsoft.ini", in text editor.
  • Find line "resampler = bsinc24".
  • Add a sharp at the beginning of this line, aka "#resampler = bsinc24".
  • Now start TDM again and check.

If you start TDM with "run_with_openal_log.cmd", then you can later check "openal_log.txt": it must not contain the following line:

AL lib: (II) LoadConfigFromFile: found 'resampler' = 'bsinc24'

Most likely you will be able to set 48 KHz frequency back if you like.

Link to comment
Share on other sites

Wow! Amazing what a single character can do! It fixed it!

You were right, the loud sound I was hearing in the 2.08 version was intended, just super loud for no reason. Not only that, but the game seems to load twice as fast now than it used to (somehow?). I very much appreciate your help in all this.

BTW, sorry I didn't get to respond last night, it was already late when I saw and responded to your message. But I just woke up and things are working as intended :D

Link to comment
Share on other sites

  • 1 month later...

I just updated to 2.09 and had the same problem. Thankfully the

  • Add a sharp at the beginning of this line, aka "#resampler = bsinc24".

fixed it for me too. Thank you! Will this have any negative effect on the 3d audio in The Dark Mod?

"Einen giftigen Trank aus Kräutern und Wurzeln für die närrischen Städter wollen wir brauen." - Text aus einem verlassenen Heidenlager

Link to comment
Share on other sites

  • 2 months later...
  • 3 months later...

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.   Paste as plain text instead

  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.

  • Recent Status Updates

    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 2 replies
    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
    • The Black Arrow

      I wanna play Doom 3, but fhDoom has much better features than dhewm3, yet fhDoom is old, outdated and probably not supported. Damn!
      Makes me think that TDM engine for Doom 3 itself would actually be perfect.
      · 6 replies
    • Petike the Taffer

      Maybe a bit of advice ? In the FM series I'm preparing, the two main characters have the given names Toby and Agnes (it's the protagonist and deuteragonist, respectively), I've been toying with the idea of giving them family names as well, since many of the FM series have named protagonists who have surnames. Toby's from a family who were usually farriers, though he eventually wound up working as a cobbler (this serves as a daylight "front" for his night time thieving). Would it make sense if the man's popularly accepted family name was Farrier ? It's an existing, though less common English surname, and it directly refers to the profession practiced by his relatives. Your suggestions ?
      · 9 replies
    • nbohr1more

      Looks like the "Reverse April Fools" releases were too well hidden. Darkfate still hasn't acknowledge all the new releases. Did you play any of the new April Fools missions?
      · 5 replies
×
×
  • Create New...