JBMod / jbmod

Official bug tracker and request tracker for JBMod
https://www.jbmod.com/
14 stars 1 forks source link

Packed sounds not working on maps from the workshop #37

Open Imakesoftware2 opened 1 year ago

Imakesoftware2 commented 1 year ago

Describe the bug When running a map from the workshop with packed sounds they don't play.

To Reproduce Steps to reproduce the behavior:

  1. Have a map with packed sounds
  2. Open JBMod
  3. Run map

Expected behavior Sound playing from a packed map

Additional context Cannot figure out which search path sound/maps/jb_the_stairs/peter_fall.wav came from. Absolute path is STEAM_FOLDER/steamapps/workshop/content/2158860/2909732918/maps/jb_the_stairs.bsp/sound/maps/jb_the_stairs/peter_fall.wav Failed to load sound "maps/jb_the_stairs/peter_fall.wav", file probably missing from disk/repository

TEAMJBMOD commented 1 year ago

I don't think there's a good fix for this at this time. Workshop support is hacked in and without engine access it can't be integrated as deeply as other games.

The sound cache maintains its own list of search paths which it builds before we're able to add workshop content.

You can work around this by running snd_restart after launching the game. I'm hesitant to do that automatically since it adds quite a bit of load time.