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

Discussion in 'Team Fortress 2 Talk' started by Officer Ushanka ツ, Mar 12, 2017.

  1. Officer Ushanka ツ

    Officer Ushanka ツ L1: Registered

    Messages:
    14
    Positive Ratings:
    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!
     
  2. Micnax

    aa Micnax I maek map

    Messages:
    2,065
    Positive Ratings:
    1,521
    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.
     
  3. MOCOLONI

    MOCOLONI L5: Dapper Member

    Messages:
    243
    Positive Ratings:
    60
    Pakrat no longer works on recent TF2 versions, at least for me. The best options would be between CompilePal and VIDE
     
    • Thanks Thanks x 1
  4. Officer Ushanka ツ

    Officer Ushanka ツ L1: Registered

    Messages:
    14
    Positive Ratings:
    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.
     
  5. Diva Dan

    aa Diva Dan hello!

    Messages:
    857
    Positive Ratings:
    1,467
    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?
     
    • Agree Agree x 1
  6. Officer Ushanka ツ

    Officer Ushanka ツ L1: Registered

    Messages:
    14
    Positive Ratings:
    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.
     
  7. Diva Dan

    aa Diva Dan hello!

    Messages:
    857
    Positive Ratings:
    1,467
    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.
     
  8. Officer Ushanka ツ

    Officer Ushanka ツ L1: Registered

    Messages:
    14
    Positive Ratings:
    0
    I think sv_allow_point_servercommand always fixed the issue... Is it possible for it to be a solution?
     
  9. Diva Dan

    aa Diva Dan hello!

    Messages:
    857
    Positive Ratings:
    1,467
    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!
     
  10. Officer Ushanka ツ

    Officer Ushanka ツ L1: Registered

    Messages:
    14
    Positive Ratings:
    0
    Never mind, It still don't work
     
  11. Diva Dan

    aa Diva Dan hello!

    Messages:
    857
    Positive Ratings:
    1,467
    Are you sounds located in the spot I said? Also I'd recommend packing with compilepal because it's super easy
     
  12. Officer Ushanka ツ

    Officer Ushanka ツ L1: Registered

    Messages:
    14
    Positive Ratings:
    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...
     
  13. Diva Dan

    aa Diva Dan hello!

    Messages:
    857
    Positive Ratings:
    1,467
    I'm not sure what I would do at this point other than restarting tf2, steam, and your computer- maybe do alt+p in hammer and see if there are any issues
     
  14. Pocket

    aa Pocket func_croc

    Messages:
    4,489
    Positive Ratings:
    2,377
    Have you tried emptying your sound cache?
     
  15. Officer Ushanka ツ

    Officer Ushanka ツ L1: Registered

    Messages:
    14
    Positive Ratings:
    0
    Yes, I have already tried deleting sound.cache . It didn't work for me sadly.
     
  16. worMatty

    aa worMatty Repacking Evangelist

    Messages:
    1,072
    Positive Ratings:
    836
    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.
     
  17. Officer Ushanka ツ

    Officer Ushanka ツ L1: Registered

    Messages:
    14
    Positive Ratings:
    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: Mar 17, 2017
  18. worMatty

    aa worMatty Repacking Evangelist

    Messages:
    1,072
    Positive Ratings:
    836
    Please provide a copy of the BSP along with a screenshot and directions on how to get to the music buttons.
     
  19. Officer Ushanka ツ

    Officer Ushanka ツ L1: Registered

    Messages:
    14
    Positive Ratings:
    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.)
     

    Attached Files: