Skip to content

Instantly share code, notes, and snippets.

@docteurklein docteurklein/README.md
Last active Apr 10, 2016

Embed
What would you like to do?
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
You can’t perform that action at this time.