Source SDK

Source SDK

32 betyg
Configure Hammer for Garry's Mod With All Assets
Av Wazanator
In this guide I will walk you through how to configure Garry's Mods Hammer so that you can mount additional assets such as those found in Counter-Strike Source without having to copy paste them.
   
Utmärkelse
Favorit
Favoritmarkerad
Avfavoritmarkerad
Foreward
This guide will show you how to quickly and effortlessly set up Hammer for Garry's Mod so that it mounts all of your game assets without having to copy paste them.

If you rather watch the video version:

https://youtu.be/kLBIK4_nJiY

If you have any questions feel free to ask here in the comments or the forums here on Steam.

Credit for the thumbnail goes to SpAMCAN0 over on DeviantArt https://www.deviantart.com/spamcan0/art/Valve-s-Hammer-Editor-Logo-390684131
The Tutorial
  1. Right Click Garry's Mod in Steam and choose properties
  2. Click the Local Files tab then Browse Local Files...
  3. In the new window open up the "garrysmod" folder and then open the "cfg" folder
  4. Install NotePad++[notepad-plus-plus.org]
  5. Open mount.cfg with NotePad++
  6. Notice the written comments and the example
  7. Open up Steam and select "Counter-Strike Source"
  8. Right Click "Counter-Strike Source" and choose properties
  9. Click the Local Files tab then Browse Local Files...
  10. In the new window that opens up note the name of it's main folder, "cstrike"
  11. Open the cstrike folder
  12. Copy the directory address
  13. Back in the mount.cfg create a new line inside the brackets and following the example add cstrike
  14. Save the file and close it
  15. In the cfg folder where you found mount.cfg go up two levels till you are back where you started
  16. Open the bin folder
  17. Run Hammer.exe
  18. You will now find Counter-Strike Source assets mounted

NOTE: Running the map will still require your players to have the game installed and mounted properly inside of Garry's Mod

As demoenstrated in the video you can use this method to mount multiple Source Engine games such as Day of Defeat Source and Counter-Strike Global Offensive.

Here is an example of my mount.cfg PasteBin Link[pastebin.com] Ghostbin Link[ghostbin.com]

If you found this tutorial helpful and have $3 to spare I would love your support!

Support Me on Ko-fi[ko-fi.com]

If you are new to mapping be sure to check out my friend TopHATTwaffles wonderful tutorial videos
https://youtu.be/jF3er5lsaeg?list=PL-454Fe3dQH1L38FnKkz_O1CqYx6sKaXk&t=278
26 kommentarer
Wazanator  [skapare] 4 dec, 2024 @ 19:27 
You should not be touching mount.lua, you only need to modify mount.cfg
tobyvictorsmith 4 dec, 2024 @ 16:35 
Any idea what to do after it has changed to mount.lua in a different folder? Looking to add from other Source Games for prototyping my University Project.
Zsombor99 26 nov, 2024 @ 5:45 
@Wazanator I just unpack what I need into the models, materials, sounds, ect. folders, those will be loaded after I restart Hammer. I thought it can't load addons directly without manually unpack them ‒ not just I thought this, it's a common thing.
Wazanator  [skapare] 25 nov, 2024 @ 9:20 
It should be able to mount vpks this way but when I have done addons I have unpacked them first then pointed it at the folder. Give it try with unpacking them perhaps?

Example:

"PropPack" "G:\Programs\steamapps\common\GarrysMod\garrysmod\addons\proppack"
setup2134 24 nov, 2024 @ 12:37 
The workshop content i'm trying to mount looks like this

"custom" "D:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod\addons"
Inside the folder are two .vpks for two different addons i want to mount, is this how it should be formatted out? In hammer it sees the mounted folder but not the .vpk files inside of the mounted folder.
Wazanator  [skapare] 24 nov, 2024 @ 6:45 
Should work. I've used it to mount unpacked addons
setup2134 24 nov, 2024 @ 0:59 
but mounting games like l4d2 and cstrike and hl2 etc works well :steamhappy:
setup2134 24 nov, 2024 @ 0:58 
Can I use mount.cfg to mount custom made VPKs? I tried to mount one and it detected the folder it was in but not the vpk itself
Wazanator  [skapare] 23 nov, 2024 @ 10:19 
Yes, if you check the readme for the Gmod specific version of Hammer++ it mentions this.

-------
--- Other Information ---
If you want to mount content from other games such as Counter Strike Source, you can use Garry's Mod's "mount.cfg" feature.
This mount.cfg file is located in the "Garry's Mod/garrysmod/cfg/" folder. Open it in Notepad and follow the instructions.
-------
setup2134 22 nov, 2024 @ 19:45 
does this work with hammer++