[Issue] Custom Map Sounds not working when on an server.

Officer Ushanka ツ

L1: Registered
Oct 21, 2015
14
0
Hello, I would like to report this issue that has been annoying me for a bit now.
I'm running on a Windows 10 computer and I'm not sure when this started happening but it was pretty random.
The problem still persist today, here is what's wrong.

The issue starts with me on an server with no scripts that modify the commands and etc.
Now take this for example.

If I was "hosting" an server by typing "map an_random_custom_map_with_custom_sounds_in_it",
and hit an button then custom music will begin to play, no issue.

But if it was running on some other community server with the same map, If that same button was hit then
I would not hear the custom music.

So if you know whats wrong or need more details on what my current console commands are set to, notify me!

EDIT: also i wasn't sure where to post this too!
 

Micnax

Back from the dead (again)
aa
Apr 25, 2009
2,109
1,585
Have you packed the sound file into your map .bsp? Any custom content that isn't from the original TF2 base files needs to be packed into your .bsp using either PackBSP, Pakrat or CompilePal. That way the sound can be played by the map when your button is pushed.
 

MOCOLONI

L6: Sharp Member
Dec 16, 2014
373
89
Have you packed the sound file into your map .bsp? Any custom content that isn't from the original TF2 base files needs to be packed into your .bsp using either PackBSP, Pakrat or CompilePal. That way the sound can be played by the map when your button is pushed.
Pakrat no longer works on recent TF2 versions, at least for me. The best options would be between CompilePal and VIDE
 

Officer Ushanka ツ

L1: Registered
Oct 21, 2015
14
0
Yes, I'm aware that you need to pack the sound into the map in order to play it. (I use VIDE to pack custom content)

On the same map but on a community server that I'm not hosting from my computer, When the button is pushed its has an very small chance of playing and stopping shortly after.
I've already tried reinstalling TF2 completely and it didn't work.
I think the problem is something to do with the current console commands I have it set to right now. (All of the commands are default)

EDIT: I could upload an video demonstrating the issue.
 

Diva Dan

hello!
aa
Mar 20, 2016
1,024
1,951
I think the problem is something to do with the current console commands I have it set to right now. (All of the commands are default)

If your music or sounds requires console commands to execute, make sure the server has "sv_allow_point_servercommand always" so anything using a point_servercommand works

You also say that you have something connected to console commands but also say that server has "no scripts that modify the commands" which is pretty confusing, I'm not sure what you mean by that

What are you using to play your sound?
 

Officer Ushanka ツ

L1: Registered
Oct 21, 2015
14
0
When I said "no scripts that modify the commands" I meant it like "I have no autoexec file" I could see how that was confusing, Sorry!
I use an ambient_generic to play sounds.

And when I do this command "map custom_sounds" and hit the button it works and I'm able to hear it.
But when on an completely different community server with the same map when I hit the button I'm unable to hear it.

Lastly, sv_allow_point_servercommand was set to "official". Now I've changed it to "always".
I'm going to test it and see if the issue is still there.
 

Diva Dan

hello!
aa
Mar 20, 2016
1,024
1,951
Okay, now I hear ya! The only command you are using is to run the map, now I understand. ambient_generic should work fine. Make sure your sounds are in tf/sounds/mapname/sound.wav.
 

Diva Dan

hello!
aa
Mar 20, 2016
1,024
1,951
It should only really change anything if the map has a point_servercommand entity- it's an entity that lets you run a console command as a server admin through the map as if cheats were on. I wouldn't expect it to make a difference but if it did, problem solved!
 

Officer Ushanka ツ

L1: Registered
Oct 21, 2015
14
0
My sounds are in the correct path. (tf/sound/custom_sound_test/sound.wav)

It works properly, just that everyone else can hear it except me, If I was on some other server with the same map.
I play on custom maps alot, and they have custom sounds in it. I think it has to do something with TF2 or something else...
 

Pocket

Half a Lambert is better than one.
aa
Nov 14, 2009
4,694
2,579
Have you tried emptying your sound cache?
 

worMatty

Repacking Evangelist
aa
Jul 22, 2014
1,257
999
Did you delete all instances of the sound.cache file within all the directories in the TF2 directory? There is one in each place where sounds would be. I advise doing a search in Windows File Explorer and deleting them all at once.
 

Officer Ushanka ツ

L1: Registered
Oct 21, 2015
14
0
It didn't work but I think that I've found the issue.
In the console I keep getting an console error that is almost constantly repeating it's self.

"imgay\elitebeat_count_3.wav", file probably missing from disk/repository
Failed to load sound "imgay\elitebeat_count_2.wav", file probably missing from disk/repository
Failed to load sound "imgay\elitebeat_count_1.wav", file probably missing from disk/repository

I play on community servers abit so maybe these sounds didn't download properly?
How to you re download them?

EDIT: Nevermind, this also doesn't fix the issue
 
Last edited:

worMatty

Repacking Evangelist
aa
Jul 22, 2014
1,257
999
Please provide a copy of the BSP along with a screenshot and directions on how to get to the music buttons.
 

Officer Ushanka ツ

L1: Registered
Oct 21, 2015
14
0
This is what I do to get custom sounds too work
1. I export an sound to its proper location so it can appear in the "Sound Source Browser"
2. I loop it in Waveosaur.
3. I double check if the Project Rate is set to 44100. (Well I check it before exporting it)
4. Make an ambient_generic and go under the "Sound Name" Propperty.
5. In the Source Resource Browser I refresh the list then find the sound.
6. I created an output (on the func_button) with these settings
Capture.PNG
7. Used VIDE to pack custom content
8. Loaded the map by console (map custom_sound)

BSP: custom_sounds.bsp

EDIT: I also hear the sound too, but I bet If this map was running on an community server I wouldn't be able to hear it. (Also sometimes when I was on community servers an custom sound would play but quickly fades out.)
 

Attachments

  • custom_sounds.bsp
    38.1 MB · Views: 409