Hammer++ for Linux

From Valve Developer Community
Jump to: navigation, search
Hammer++
Dead End - Icon.png
This article has no links to other VDC articles. Please help improve this article by adding links that are relevant to the context within the existing text.
January 2024
Icon-broom.png
This article or section needs to be cleaned up to conform to a higher standard of quality.
For help, see the VDC Editing Help and Wikipedia cleanup process. Also, remember to check for any notes left by the tagger at this article's talk page.

Note:

Hammer, and by extension Hammer ++, are native Windows applications. Compatibility with Linux is limited by the compatibility tools, not Hammer or Hammer++.

  • Chances are, most bugs you experience will be platform specific - do not report these bugs to the issue tracker.

Hammer for CS:GO

Hammer++ running on Manjaro

Arch Based Distros:

  1. Manjaro Linux, 5.17.15-1 Kernel (Build 8861, 6/26/22)
  2. ... to come later

Deb Based Distros:

  1. ... to come later

RPM Based Distros

  1. ... to come later

Installation

  1. Install CS:GO for Linux as normal.
  2. Proceed to install the CS:GO SDK with Proton 7.0.3 enabled under compatibility settings.
  3. In the launch options, for NVIDIA users, paste in the following: PROTON_ENABLE_NVAPI=1 PROTON_USE_WINED3D=1 %command%
  4. In the launch options, for AMD users, you should be good with just: PROTON_USE_WINED3D=1 %command%
  5. From this point, you should be able to launch the SDK and launch Hammer without error.
  6. Install Hammer++ as normal. (Arch based distros are under /home/.local/share/Steam/... and NOT in /home/.steam/!)
  7. Replace hammer.exe with hammerplusplus.exe.

Troubleshooting

Steam may not have downloaded some of the Windows files necessary for Hammer. You can open the Steam console (steam://open/console) and type: download_depot 732

Known issues =

  • Using expert compile options will not succesfully run and compile a map. You will need to append .vmf to the end of each instance of $file in the command parameters.
  • Opening the Options menu under Tools > Options will cause an access violation. A fix is not known at the moment. Most settings are available under bin/hammerplusplus/hammerplusplus_settings.ini


Hammer for CS:S through Wine + Winetricks

Installation

  1. Install CS:S on steam
  2. Right click CS:S in Steam -> Select Properties -> Compatibility -> Force the use of a specific Steam Play compatibility tool -> Proton Experimental
  3. Update the game to download the Windows version of CS:S
  4. Copy the entire game directory to a new location
  5. Uncheck Force the use of a specific Steam Play compatibility tool to reinstall the Linux version of CS:S
  6. Download Hammer++ and extract it
  7. Copy the contents of the Hammer++ 'bin' directory into the Windows CS:S 'bin' directory
  8. Run 'winetricks --gui'
  9. Create a new wine prefix called "HammerPlusPlus"
  10. Install 'dxvk' to the Wine prefix
  11. Enable the following Wine prefix settings Prevent the window manager from decorating windows and Prevent the window manager from controlling windows
  12. Run hammerplusplus.exe using the new Wine prefix.
Note.pngNote:Maps will compile to the windows version of CS:S by default, requiring being moved to play them.
Warning.pngWarning:It's required to have the 'Don't run the game after compiling' option on if installing through this process else the game will run through Wine.

(Optional) Create a shortcut or alias to open HammerPlusPlus using the Wine prefix. Example:

   ```sh
   #!/bin/sh
   WINEPREFIX="$HOME/.local/share/wineprefixes/HammerPlusPlus" wine "/opt/css-sdk/Counter-Strike Source/bin/hammerplusplus.exe"
   ```