Left 4 Dead 2

Left 4 Dead 2

157 ratings
Modding Tools
By Floh
Modding Tools - Start up with modding by installing the necessary tools
2
2
   
Award
Favorite
Favorited
Unfavorite
1. List of necessary tools
    The following list of tools needed for beginner modding
  • L4D2 Authoring Tools and Source SDK
  • a vpk extraction tool (to extract specific files from L4D2's vpk files)
  • an image tool, such as paint net, gimp or Photoshop, for changing images (vtf files)
  • a VTF converter tool, such as VTFEdit
    The following list of tools needed for advanced modding
  • a general-purpose text and binary-file tool, such as Notepad++
  • a 3D modeling tool, such as Blender, for mesh changes
  • a model decompiler and compiler tool
  • a sound tool, such as Audacity, for voice/sound changes
2. Install Tools found on Steam
You find the Tools on:
Steam --> Library menu --> Tools menu item



Install Left 4 Dead 2 Authoring Tools (provides HLMV and VPK tools):
  • Right-click on Left 4 Dead 2 Authoring Tools
  • click on Install Game
  • follow the installer instructions

Start up the Authoring Tools (double-click) and an additional window open. You will see the following:




Install Source SDK (required for the MDL Decompiler tool):
  • Right-click on Source SDK
  • click on Install Game
  • follow the installer instructions

Start up theSource SDK (double-click) and an additional window open. You will see the following:






On first start you'll get a “copying files please wait…” box come up, so be calm and wait.


3. Shortcut to the model viewer
A shortcut allow using HLMV (model viewer, contained in L4D2 Authoring Tools) without open up the Left 4 Dead 2 Authoring Tools. You only need to have Steam open.
  • create a shortcut to "hlmv.exe"
    found (by default) in "C:\Program Files\Steam\steamapps\common\left 4 dead 2\bin\"

  • match the properties of the shortcut
    - Right-click on the shortcut
    - select properties
    - select the shortcut tab ("Verknüpfung")



    - delete the text in the field: Target ("Ziel")
    - copy & paste into the Target field (by default):

    "C:\Program Files (x86)\Steam\steamapps\common\left 4 dead 2\bin\hlmv.exe" -game "C:\Program Files (x86)\Steam\steamapps\common\left 4 dead 2\left4dead2"
4. Shortcut to VPK-Tool
You need the VPK tool for unpacking and packing of vpk-files (addon-files).
  • create a shortcut to the VPK-Tool (contained in L4D2 Authoring Tools)
    found (by default) in "C:\Program Files (x86)\Steam\steamapps\common\left 4 dead 2\bin"

  • change the name of the shortcut for easier recognition

  • move the shortcut to a convenient location; it should be placed somewhere it is easy to reach,
    so you can drag-and-drop a folder or a vpk file onto it.

    for example: your "SendTo" folder or to any other folder, such as your desktop


To unpack the complete file : drag a vpk file to the vpk shortcut.
To pack: drag a folder to the vpk shortcut.
5. Install VPK Tool: GCFScape
You need the Tool GFScape for looking into a vpk-file from L4D2 without unpacking it. This is useful with the game-files. You don't need to unpack the complete file. You'll be able to select and unpack single files.

Install GCFScape found on "Nem's Tools" website or use the link on this site https://developer.valvesoftware.com/wiki/GCFScape


If you install GCFScape, make sure you associate VPK-Files with GCFScape so they'll open straight away. The files will be given icons if this has been done.

When a vpk-file is opened, the program will appear like this:




6. Install VTF-Tool: VTFEdit
Textures must be converted to the Valve Texture Format (*.vtf) before Source can use them. The third-party tool for this is VTFEdit. It provides a graphical user interface, allows you to change a texture's properties without re-compiling it from scratch, accepts a wide range of image formats, and doesn't require the creation of script files for each and every texture.

install VTFEdit found on "Nem's Tools" website or use the link on this site
https://developer.valvesoftware.com/wiki/VTFEdit


If you open a vtf-file you see something like this:




To convert a picture to vtf-file:
drag a picture to the VTFEdit shortcut

To extract a picture from vtf-file:
open the vtf-file with VTFEdit an export the content (File --> Export)



7. Install Text and Binary-File Tool: Notepad++
Notepad++ is a tool that can be used for editing both groups of files (text or binary files). It is mainly a text editor, but you can install a plugin for hex-editing binary format or a plugin in, called "language" files that allow custom highlighting to make files easier to read and edit.
  • install Notepad++ found on "notepad-plus-plus" website or use the link on this site
    https://developer.valvesoftware.com/wiki/Notepad%2B%2B_VDF_languages

  • Install the Valve Data Format Languages for Notepad++

    1. download the Valve Data Format Languages for Notepad++ by using the link on this site
    https://developer.valvesoftware.com/wiki/Notepad%2B%2B_VDF_languages

    2. extract the archive to %APPDATA%/Notepad++/
    %APPDATA% should automatically resolve to a full path.

  • install the HEX-Editor plugin in Notepad++

    1. open Notepad++.
    2. klick on Plugins > Plugin Manager > Show Plugin Manager menu item



    3. click on "Settings" button at bottom-left corner of the Plugin Manager window
    4. checkmark the "Show unstable plugins" box



    5. click the "OK" button
    6. checkmark the HEX-Editor plugin in the list under the "Available" tab
    7. click the "Install" button at near bottom-right
    8. click the "Close" button at bottom-right
    9. you might need to re-open Notepad++ before using the plugin
8. 3D Modeling Tool: Blender
Use a 3D modeling tool for editing meshes, texture uv-maps, and related.
9. Model-Compiler/Decompiler: Crowbar
Crowbar is a tool written by ZeqMacaw for decompiling and compiling L4D2 survivor models. There are also other tools, but the use of Crowbar is very easy and error-free.

Install Crowbar use the link on this site
http://gtm.steamproxy.vip/groups/CrowbarTool





10. Sources and Credits
Special Thanks to

ZeqMacaw's for his guide:
Tidbits: Modding a Left 4 Dead 2 Survivor

Splinks for his guide: Custom Survivor Replacement
http://gtm.steamproxy.vip/sharedfiles/filedetails/?id=142457190





14 Comments
UwUbercharged 4 Apr @ 12:42pm 
I HIGHLY RECOMMEND Crowbar compiler tool, as it replaces both gcfscape and the default decompiler. It has default file paths and more
I microwaved my son 18 Jan @ 7:57am 
this work after the last stand update?
Ballin330 18 Mar, 2024 @ 11:58am 
i want lego star wars megaphone blaster
Undead Celeste 6 Sep, 2022 @ 5:19pm 
How could I make a mod so I can have a bigger mag?
Warlord-Max 24 Jun, 2022 @ 4:57pm 
Is there anyway to edit any sound files that are in 44100hz as well as some weapons scripts too? It was such a pain in the ass to deal with, and it's been a while since I've done it which was like two years ago, by the way.
32anChips 23 Aug, 2021 @ 4:36am 
Im trying extract the skin of the Jimmy Gibbs car but I cannot convert it to a vtf like you say - drag an drop. for some reason it says error loading.
also i can not even view the model i want to export to blender, the none damaged model.
its there but it has no file association.
it is very frustrating, i have not got a clue what im doing, even with this tutorial
Tracksuit 5 Mar, 2019 @ 7:26am 
ill i wanted to add was a little meme
TimelordMagnums357v2 18 Dec, 2018 @ 9:05pm 
Is there a mapping tool that will give you a full lay out of all the models or models and textures that are included in a campaign. Vide is very useful, so is map analyst. However, neither give me a complete list of models that are being used in a campaign. I port l4d1 over to l4f2 and since hammer doesn't always flag invisible models I wondered if I could print the list so I can replace them either way?
Alivebyte! 15 Mar, 2018 @ 2:30pm 
Better use Crowbar to decompile models instead of Source SDK...