This is useful for replacing questionable materials within old maps.
- Get the map's .bsp (e.g. extract workshop addon)
- Get these programs
- Get https://developer.valvesoftware.com/wiki/GCFScape
- Get https://developer.valvesoftware.com/wiki/VTFEdit
- Associate .vtf files with this program
- Get https://developer.valvesoftware.com/wiki/VIDE
- Open the map's .bsp file in GCFScape and find the materials you wish to replace
- An easy way to do this is to extract the map's materials folder
- You can then either open up .vtf files individually in VTF Edit to see what they look like
- Or copy the files into your gmod folder/addon folder and browse the materials in sandbox
- Make a replacement for the vtf
- Create a PNG/JPEG with the same dimensions
- Import it into VTFEdit (with the same dimensions as the original material)
- Save the file with the exact same name as the material file you are replacing
- Replace the material in the map
- Open VIDE and select "Pakfile lump editor" (last icon on the right, looks like a map and a pencil)
- Open the map's .bsp file
- Click "Add" under Pakfile options
- Select your material
- Click OK (do not click anything else in this menu)
- Set the path to be
/materials/whatever-the-original-path-was
- E.g. if the original material is
/materials/ttt_coolmap/questionable_material.vtf
, then set this to/materials/ttt_coolmap
- E.g. if the original material is
- Click ok & click "Yes" to overwrite
- Click "Save" under BSP options