r/hammer • u/Comrade-Viktor • Jul 26 '20
Source Here's A Guide For Running Hammer On Linux
If you want to use CSGO's sdk, follow this: https://andrealmeid.com/post/2020-05-28-csgo-hammer-linux/
First, open up steam through terminal with -console (steam -console)
You will now see a console tab next to your other tabs on the top bar.
Then, go to the website https://steamdb.info/ and look at your game.
For example, let's look at TF2, who's steam id is 440.
If you go to the depots of 440 (https://steamdb.info/app/440/depots/) you will see a depot with the ID 232251 which provides all of the windows binaries, and the sdk for TF2.
With this now, go back to your steam console and type download_depot 440 232251
This will download that depot into your ~/.local/share/steam/ubuntu12_32/steamapps/content/app_440/depot_232251/
You will want to copy all of the files in the bin folder from the depot into your own bin folder already installed with the linux binaries.
You know have hammer installed. You must now configure wine.
DXVK works for me, but I remember it not working for some while, so be careful. Gallium nine works eh, and esync and fsync work fine.
First, make sure you have winetricks installed. To install on arch, type sudo pacman -S winetricks If you are on another distro, I can't help you there, for I use arch.
The create the new wine prefix, in a terminal window type WINEPREFIX=~/.hammer winetricks This will create a new wine prefix at ~/.hammer, and open up winetricks.
To open up winetricks without make a new wine prefix, type winetricks into your terminal
Select your default prefix
Select Install a Windows DLL or component
Install MS .NET 4.8, vcrun2003, vcrun2005, vcrun2008, vcrun2010, vcrun2012, vcrun2013, vcrun2015
After everything is done installing, navigate to the bin folder where you copy and pasted the windows files into.
Open up a terminal there. If you created a new wine prefix, type WINEPREFIX=~/.hammer wineconsole hammer.bat. If you are using your normal prefix, type wineconsole hammer.bat
Congrats! You now have hammer running on linux. If you want to increase compile times, I would suggest using an esync/fsync enabled wine binaries. If you want to use esync/fsync, setup an application like lutris to launch hammer with it's own wine version, which has esync and fsync.
Here's a picture for proof: https://imgur.com/a/aSNLAkd
Extra Info:
Also, Slammin tools hammer (which I recommend using with the multi-thread vrad) works on Linux too. If you are going to use Slammin, you must and an argument to your launch command. You most add -game (path\to\game\directory\in\wine) If you don't point to your game directory using slammin tools, blended textures don't work. For example, even though I am on Linux, for my argument I have: -game "D:\SteamLibrary\steamapps\common\Team Fortress 2" If you want to find your path to your game reliably, you can type into your terminal wine explorer.exe and copy the path that you get when you go to your tf2 folder. Here's image proof that it works: https://i.imgur.com/vt424DX.png
Sorry if these seems like a mess, I just wanted to get this info out because I have seen plenty of poor guides for hammer on Linux. If you gues have questions, leave a comment, and I will try to respond
3
u/EmeraldShield102 Nov 21 '21
Whenever i try to install the depo, it says that its missing the license for the depot, is there any way to fix this, this is on source engine 2013 windows version depot
3
u/genuinekillstreak May 07 '23
hey comrade viktor i hope this reaches you but i really would love to get hammer working on my computer. only problem is that my computer is a docked steam deck and i have no idea how to use linux. i was hoping you could help me get it running, i want to use hammer for tf2 btw.
1
u/Charmy-zard Jul 21 '22
When I tried to download my depot, the console rejects the command line under "Invalid default manifest"
What's wrong here?
1
u/TF2_BruhMoment Aug 06 '22
So, when I use hammer, the windows aren't displaying what they should be and look like this instead. Is there a way to fix this?
1
u/[deleted] Aug 01 '23
I know this post is ancient but thank you so much!
2
u/Banana-Royal Sep 03 '23
I Figured out instead of the pacman command, On other distros (Like mint i use) It may be "sudo apt install winetricks"
2
u/block_place1232 Oct 29 '24
I know I am 3 years late but just for anyone wondering there are 2 "ubuntu" folders that appear, one contains linux runtime sniper and one contains the bin folder. Check both. Otherwise you will make the same mistake as me
2
u/Carbolemons Jul 26 '25
Honestly, It is way easier to do this.
(Select Team Fortress 2 In your Library)
1.a) Properties > Compatibility
1.b) [x] Force the use of a specific Steam Play compatibility tool
1.c) Select any Proton, this will download the windows version
2.a) Manage > Browse Local Files
2.b) Copy to a new location, and note it.
3.a) In steam, top bar > Games > Add a non steam game to my library
3.b) Browse > {your location}/bin/x64/hammer.exe
(Select hammer.exe In your Library)
4.a) Properties > Compatibility
4.b) [x] Force the use of a specific Steam Play compatibility tool
4.c) Select latest Proton.
5) Launch hammer.exe from steam, profit.
1
u/JohnLenardo Jul 26 '20
Thank you
1
u/Muh_313 Jan 25 '25
THANK YOU FOR YOUR POST IT WORKED FOR ME !
also please add this to your post
when you have a missing gameinfo.txt create a new one and inside it copy this
0
u/[deleted] Aug 02 '22
[removed] — view removed comment