Left 4 Dead 2

Left 4 Dead 2

Not enough ratings
How to Make a Custom Sound Addon
By noahthenova
a straight to the point tutorial on how to replace in-game sounds with your own sounds in Left 4 Dead 2

I didn't include images because they would make the guide page WAY longer than it needs to be. I may include a few later on if enough people ask for them though.
   
Award
Favorite
Favorited
Unfavorite
Setting Up
-----------------------------------------------------------------------------------------------------
BEFORE STARTING ANY OF THE STEPS OF THE ADDON CREATION PROCESS, MAKE SURE YOU HAVE DOWNLOADED THE LEFT 4 DEAD 2 AUTHORING TOOLS FROM STEAM.

To do this, follow these 4 steps:
  • Click on "Library" on the top left corner of the Steam application window, and then select "Home" from the dropdown menu
  • Click on the Box above the search bar on the upper left hand side of the Steam window, and click on the row which has the title "Tools" to make sure it has a blue check mark on its left side
  • Use the search bar above the list of applications or scroll down until you see "Left 4 Dead 2 Authoring Tools"
  • Right or left-click on "Left 4 Dead 2 Authoring Tools" and then click "Install" and go through the process to install the tools

Downloading the Left 4 Dead 2 Authoring Tools will allow you to package your addon folder for use in-game and upload your addon to the Steam workshop, so they are essential for this tutorial.
-----------------------------------------------------------------------------------------------------

You will first want to download 2 programs before you start creating the addon:

You may also need to download these tools if GCFScape has problems:

You can find all the sound files by going to steam → steamapps → common → Left 4 Dead 2 → left4dead2 (plus its dlc folders) and opening the "sounds" folder within there.

Now create a folder path leading to the sound file(s) you want to replace. For example, if you wanted to replace the impact and swing sounds for the Machete, you would create this folder path: ([your addon name] → sound → weapons -> machete) Also make sure to include the specific sounds you are going to replace within your addon folder path, in their proper locations.

Afterwards, find the sound that you want to replace the default sound, and have it ready for the next part of the addon-making process.
Creating the Addon
1. In Audacity
  • Open Audacity and load in both the sound you want to replace and your custom sound by either dragging both sounds into the program, by going to File → Import and then clicking "Audio" in the list, or by going to File → Open

  • Make the format and sample rate of the custom sound the same as that of the sound which it is replacing, and make sure the custom sound is the same length as the original sound

  • Delete the original sound that is being replaced, and then go to File → Export and save the audio file that you are exporting as the same file type of the file you are replacing. Save this custom sound to the same location of the sound that you are replacing

2. On Computer
  • Drag your addon folder into vpk.exe, which is located at steam → steamapps → common → Left 4 Dead 2 → bin → vpk.exe (I recommend making a shortcut of vpk.exe somewhere that's it's easy and convenient to access) A .vpk (Valve package) file of your addon folder will then be created in the same area that vpk.exe (or its shortcut) is located

  • Drag the .vpk file of your addon into the folder "addons", located at steam → steamapps → common → Left 4 Dead 2 → left4dead2 -> addons

  • Test your custom flashlight in-game

OPTIONAL: Adding Details and Image of Addon to In-Game List

Addon Details
  • Create a text file called "addoninfo" and set it up like this (copy&paste text block below):

    "AddonInfo"
    {
    addonSteamAppID 550 ------ (don't change; ID is specific to Left 4 Dead 2)
    addontitle "title goes here"
    addonversion version number goes here (1,2, etc.)
    addonauthor "author goes here"
    addonDescription "description goes here"
    }

  • Place the addoninfo file into the main folder of your addon (e.g. addon name → addoninfo)
Addon Image
  • Find an image of your choosing (.jpg and .png for example) and name it "addonimage"

  • Place this image within the main folder for your addon
Uploading to the Workshop
Open the Left 4 Dead 2 Authoring Tools Steam app

Click the "+" symbol or go to File → Publish New Add-on

Select the .vpk file of the addon that you want to upload to the workshop, title the addon, and add an image for it. Add a description and tags as well if you feel like it

Accept the terms of the Steam License Agreement and click on the "Upload" button on the in the bottom right area of the window
8 Comments
noahthenova  [author] 13 Jul @ 7:32am 
NOTICE: I WILL NO LONGER OFFER HELP IN THIS GUIDE'S COMMENTS, AS DOING THIS CAN BE EXHAUSTING. NEW COMMENTS/REPLIES ASKING QUESTIONS ABOUT THIS GUIDE WILL BE DELETED. IF PEOPLE PERSIST, THEN I MAY DISABLE THE COMMENT SECTION TOO. TO SUPPORTERS OF KEEPING NEW QUESTIONS, THE IDEA THAT VISITORS COULD ANSWER OTHERS' QUESTIONS DOESN'T HOLD UP, AS THIS RARELY EVER HAPPENS OR LEADS TO DETAILED REPLIES. DISRESPECTFUL OPINIONS ON THIS CHANGE WILL ALSO BE DELETED. I'M SORRY IF THIS COMMENT SEEMS OVER THE TOP; I JUST WANT TO MAKE SURE THAT PEOPLE NOTICE IT AND UNDERSTAND THIS COMMENT MODERATION CHANGE.
noahthenova  [author] 17 Jun @ 1:22pm 
NOTICE: I WILL NO LONGER OFFER HELP IN THIS GUIDE'S COMMENTS, AS DOING THIS CAN BE EXHAUSTING. IF YOU HAVE ANY IMPORTANT QUESTIONS RELATED TO THE TUTORIAL, REACH OUT TO ME ON Threads (SEE LINKS), WHERE I HAVE DEDICATED A POST TO PROVIDING PEOPLE WITH TUTORIAL HELP. NEW COMMENTS/REPLIES ASKING QUESTIONS ABOUT THIS GUIDE WILL BE DELETED. IF PEOPLE PERSIST, THEN I MAY DISABLE THE COMMENT SECTION TOO. TO SUPPORTERS OF KEEPING NEW QUESTIONS, THE IDEA THAT VISITORS COULD ANSWER OTHERS' QUESTIONS DOESN'T HOLD UP, AS THIS RARELY EVER HAPPENS OR LEADS TO DETAILED REPLIES. DISRESPECTFUL OPINIONS ON THIS CHANGE WILL ALSO BE DELETED.
noahthenova  [author] 20 Aug, 2024 @ 6:07pm 
@Migpi

Possible problems:

- you might have another sound addon that conflicts with the one you're making
- you might have named the custom sound file differently from the sound you're replacing
- the folder paths in your main addon folder aren't named correctly/are organized incorrectly
- you might not have saved your sound file with the same file extension as the original
- the audio settings for your sound might not be set up correctly in Audacity/your audio editor
- the packaged .vpk file of your custom addon maybe wasn't placed in the "addons" folder

The fact that you created the music that you want to use shouldn't be a problem, as long it's saved as the same file type as the sound you're replacing. In the case that you're trying to make an addon that contains a separate/standalone sound that doesn't replace any of the default game sounds, or that does replace a default sound with a custom-named sound file, I can't help you with that.

I hope you find some of this info useful.
Migpi 4 Aug, 2024 @ 11:32pm 
Please help me, I have an error.
When I created the addon and uploaded it to l4d2 everything was fine, but when I tested it there was no sound. Can you tell me why? (I created the music, not the sound, maybe that's the mistake?) Thank you in advance.
noahthenova  [author] 5 Apr, 2024 @ 9:44am 
@KnightOfDude Modding survivors' voice lines is the same as making other sound mods, in that you make the folder path to the voice files, and then replace what voice sound files you want to.

People making addons that are bundled with other unwanted mods, and not letting you know about these other mods before installation is strange, if you ask me. I have in the past seen mod makers bundle files unrelated to their main addon within its .vpk file, and I have just seen it as either shameless promoting or them using their mod-making freedom to get across what they think is an important message to users, at the cost of increased addon file size.

In your case, it's good that you extracted the voice pack, as having a bunch of manually installed conflicting mods would be really inconvenient. Just taking the voice pack's .vpk file and putting it into the L4D2 "addons" folder should be fine. The extra mods that you don't want should be able to be deleted or moved wherever without problems.
KnightOfDude 3 Apr, 2024 @ 9:27am 
New to modding but is there anything i need to be aware of when trying to mod survivors voice lines? Been trying to find a specific voice pack but apparently the author put it a zip file with various other mods that ruins my other mods cuz it also requires you to install the mods manually and some of them just overrides the other mods while not being able to be disabled through the addons menu. And so here I am extracting only the voice pack i wanted and intend to put it up on the character i want it to be on.
noahthenova  [author] 26 Jul, 2022 @ 10:08pm 
@Tintin You have to replace the Tank sounds "tank.wav" and "taank.wav" with your custom sounds, making sure that the audio rate, sound lengths, and sound format are the same in Audacity. A thing I've found strange is how it seems that the sound "tank" will play as the regular Tank music pretty much all the time, and I'm honestly not sure when "taank" plays. Maybe I do hear "taank", but so rarely, that I barely notice it. Also, I think the sounds "midnighttank.wav" and "onebadtank.wav" only play in the concert map, just so you know.

Also, the Tank's music will repeat by itself when the sound ends; you don't need to loop it. If you want to make your custom sound longer than the original, I wouldn't do that, because bad sound glitches will likely happen. If you really want to loop the custom sound somehow without having it automatically repeat, I would say that you copy and paste part of it in Audacity until it reaches the same length (or a shorter one) than the original.
Zotac 25 Jul, 2022 @ 5:22pm 
Good tutorial; but what if I wish to make music for the Tank? How should I go about looping his theme in a sound addon?