Skip to content

darvil82/HAInstaller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hammer Addons

TeamSpen's Hammer Addons Installer

Features

Automatic installer for TeamSpen's Hammer Addons, featuring:

  • Find the user's Steam library location.
  • Game selector which displays what games the user has installed, and compatible with the addons.
  • Download the latest files from TeamSpen's repository.
  • Add the compile commands for the Hammer compile steps.
  • Append the required 'Hammer' folder in "gameinfo.txt".
  • Modify "srctools.vdf" with the correct game.

HAInstaller

usage: HAInstaller.py [-h] [-a ARGS] [-g GAME] [-v VERSION] [--skipCmdSeq] [--skipGameinfo] [--skipDownload] [--verbose]
                      [--ignoreHammer] [--chkup]

optional arguments:
  -h, --help            show this help message and exit
  -a ARGS, --args ARGS  Arguments for a hammer compile step. Default are '--propcombine $path\$file'
  -g GAME, --game GAME  The name of the game folder in which the addons will be installed.

  --skipCmdSeq          Do not modify the CmdSeq.wc file.
  --skipGameinfo        Do not modify the gameinfo.txt file.
  --skipDownload        Do not download any files.
  --verbose             Show more information of all the steps.
  --ignoreHammer        Do not check if Hammer is running.
  --chkup               Check for new versions of the installer.

Download

There is a standalone executable available at the releases page. Or you can download the script directly (It requires at least Python 3.9, and the libraries in the requirements.txt file).

Note: The binary will most likely be detected as a virus. But it obviusly isn't (I swear).

Special Thanks

  • TeamSpen for creating the addons and srctools.