how do I implement custom soundscapes?

Discussion in 'Mapping Questions & Discussion' started by Infomaniac, Nov 9, 2016.

  1. Infomaniac

    Infomaniac L6: Sharp Member

    Messages:
    341
    Positive Ratings:
    168
    I have a custom soundscape and I'm not sure where to put it, do I put it somewhere in the tf folder?
    thanks.
     
  2. Polymathic Polyphony

    Polymathic Polyphony L3: Member

    Messages:
    127
    Positive Ratings:
    100
    Probably in the custom folder (...\Steam\steamapps\common\Team Fortress 2\tf\custom or somewhere similar). Just remember to read the readme in the folder, and follow those instructions.
     
  3. Infomaniac

    Infomaniac L6: Sharp Member

    Messages:
    341
    Positive Ratings:
    168
    mine didn't come with a readme
     
  4. Polymathic Polyphony

    Polymathic Polyphony L3: Member

    Messages:
    127
    Positive Ratings:
    100
    When the game boots, this folder is automatically scanned for VPK files or
    subfolders. Each subfolder or VPK is added as a search path, so the files
    inside those VPK's or subfolders will override the default game files.

    See gameinfo.txt for more details.

    For example, you might have the following file structure:

    tf/custom/my_custom_stuff/ <<< This subfolder will be added as a search path
    tf/custom/my_custom_stuff/models/custom_model.mdl
    tf/custom/my_custom_stuff/materials/custom_material.vmt
    tf/custom/my_custom_stuff/materials/vgui/custom_ui_thing.res
    tf/custom/some_mod.vpk <<< This VPK will be added as a search path
    tf/custom/another_mod.vpk <<< This VPK will be added as a search path


    Mounting a VPK to the filesystem is more efficient than adding a subfolder,
    as each time the engine needs to open a file, it will need to make a call to the
    operating system to search the folder. VPKs can therefore be searched by the engine
    much more efficiently. Each subfolder is a new search path that must be checked each
    time the engine tries to open a file. So, for optimal load times, always use VPK files
    and don't make any subfolders in this folder!


    Note that the following directory structure is NOT correct:

    tf/custom/models/my_model.mdl

    That will add the directory "tf/custom/models" as a search path, in which case the
    file my_model.mdl actually exists at the root of the game's virtual filesystem.
    Instead, you would use something like:

    tf/custom/my_custom_stuff/models/my_model.mdl

    So in your custom folder, create a folder "custom_soundscapes", and within that folder, create a "soundscapes" folder, and place your custom soundscape in there.
     
    Last edited: Nov 9, 2016
  5. ics

    aa ics http://ics-base.net

    Messages:
    654
    Positive Ratings:
    410
    I use custom soundscapes on one of my maps and i just have the file tf/scripts/soundscapes_mapnamehere.txt and then simply use soundscapes set in that file. Works fine. Remember that you need to have full map filename there without the .bsp.
     
  6. Infomaniac

    Infomaniac L6: Sharp Member

    Messages:
    341
    Positive Ratings:
    168
    thanks everyone.