packed soundscripts dont work in portal 2 correctly
When packing sound scripts into BSP, even when also packing a modified manifest along with them, portal 2 ignores them and acts the same as if those sound scripts were missing.
this makes the sound script packing functionality of comp_precache_sound and comp_pack_rename as well as just comp_pack all pointless, as portal 2 doesn't read the packed scripts even though I've verified they are indeed packed correctly.
As a workaround, I've noted that using comp_pack's generic packing to pack maps\[mapname_here]_level_sounds.txt directly into the BSP works perfectly; and so does packing it directly with bspzip.
I'd like to suggest that the sound script-related packing stuff combine all required sound scripts into a single maps/[mapname]_level_sounds.txt and then pack it, rather than packing a manifest and the individual soundscripts, since that doesn't work.
an update: so apperently the suggested alternative doesn't work either. I'm trying to figure out which way does if any... will keep editing this post if/as I find anything.
edit: here are my findings and they are weird cause it seems to work only if the soundscript entry exists in the per-map manifest as well as the normal script, but not dependent on the manifest somehow.

edit 2: nevermind; seems to only work with all 3. oops. weird though
Are you executing sv_soundemitter_flush with a point_servercommand? That's required to make the manifest get re-read.
Sure aren't. wasn't documented anywhere. would be great if the compiler did this somehow
Well it's a little tricky since coop needs to be done differently (not 100% sure which command/ent is the right one to use there), and the workaround is only necessary for the workshop - you can use level_sounds elsewhere.
hmm, true... thanks for the help though. I've been trying like crazy to fix my workshop port of my mod and people just keep complaining about dr. kliener. :P
I'm getting frustrated trying to figure out why in the actual DANG it works on my end but breaks on workshop. even manually packing everything right via bspzip fails even if it works fine on my end, heck, even after trying the command it still fails.
Sorry to excavate this old issue, but it was never closed, so may as well post this update:
I tried doing the sv_soundemitter_flush workaround. it does not work; at least not just by sending the command just by itself. im obviously doing something wrong, but i dont know what it is.
I've seen some maps on workshop immediately reload the map when you first spawn, presumably to fix this exact issue, but when i tried to set that it up just infinitely looped and never let me play.
is there a tutorial somewhere I can follow that would help me implement the workaround correctly?
edit: this is what i attempted
