Skip to content

Instantly share code, notes, and snippets.

@docteurklein
Last active April 16, 2023 23:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save docteurklein/f9867744e8cf6fa2df01fb5fcdc647d9 to your computer and use it in GitHub Desktop.
Save docteurklein/f9867744e8cf6fa2df01fb5fcdc647d9 to your computer and use it in GitHub Desktop.
install a linux hl2:ep2 sourcemod

install an hl2:ep2 sourcemod on linux

  1. go to ~/.steam/steam/steamapps/sourcemods
  2. put install.sh and gameinfo.txt in this folder (and config.cfg if you have one)
  3. downldoad a mod archive (example: hl2-ep2-sp-6x10mc-doorville.7z at http://www.runthinkshootlive.com/posts/doorville/)
  4. run ./install.sh hl2-ep2-sp-6x10mc-doorville.7z doorville
  5. restart steam
  6. enjoy
"GameInfo"
{
game "__NAME__"
title "__NAME__"
type singleplayer_only
FileSystem
{
SteamAppId 420
SearchPaths
{
game+mod |gameinfo_path|.
platform |gameinfo_path|.
game_lv hl2/hl2_lv.vpk
game+mod ep2/ep2_english.vpk
game+mod ep2/ep2_pak.vpk
game |all_source_engine_paths|episodic/ep1_english.vpk
game |all_source_engine_paths|episodic/ep1_pak.vpk
game |all_source_engine_paths|hl2/hl2_english.vpk
game |all_source_engine_paths|hl2/hl2_pak.vpk
game |all_source_engine_paths|hl2/hl2_textures.vpk
game |all_source_engine_paths|hl2/hl2_sound_vo_english.vpk
game |all_source_engine_paths|hl2/hl2_sound_misc.vpk
game |all_source_engine_paths|hl2/hl2_misc.vpk
platform |all_source_engine_paths|platform/platform_misc.vpk
mod+mod_write+default_write_path |gameinfo_path|.
game+game_write |gameinfo_path|.
gamebin episodic/bin
game |all_source_engine_paths|episodic
game |all_source_engine_paths|hl2
platform |all_source_engine_paths|platform
}
}
}
#!/bin/sh
set -xeo pipefail
file-roller --force -e $2.tmp $1
rm -f $2.tmp/*.txt
mv $2.tmp/* $2
rm -rf $2.tmp
rm -f $2/GameInfo.txt
cp gameinfo.txt $2
sed -i s/__NAME__/$2/g $2/gameinfo.txt
cp config.cfg $2/cfg/config.cfg
cp videoconfig_linux.cfg $2/videoconfig_linux.cfg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment