This is an old revision of the document!
Table of Contents
GMod 9 Server Setup
What does this do?
This guide will create a fully working install of source dedicated server running gmod9:
- The blue container (models/props_junk/TrashDumpster02.mdl) will not be weightless anymore
- Tripmines and Stunsticks will work properly
- Jeeps and Airboats can be spawned
- Airboat steering isn't broken anymore
- NPCs no longer die instantly
- NPC Animations (sort of) work again
Things you need
- GMod9 Server files
File locations
This guide assumes the following locations:
steamcmd.exe location:
D:\games\steamcmd\steamcmd.exesrcds 2006 location:
D:\games\server_final\source sdk base 2006 location:
D:\games\sdk_base_2006\half life 2 deathmatch dedicated server location:
D:\games\hl2mp_server\Final GMod9 gameinfo.txt location:
D:\games\server_final\gmod9\gameinfo.txt
How to install
Download steamcmd to
D:\games\steamcmd\steamcmd.exe(hldsupdatetool was replaced by this when the steampipe update arrived)Download the required content like this (3 folders will be created):
steamcmd.exe +login anonymous +force_install_dir ../server_final +app_update 205 validate +quit steamcmd.exe +login anonymous +force_install_dir ../sdk_base_2006 +app_update 215 validate +quit steamcmd.exe +login anonymous +force_install_dir ../hl2mp_server +app_update 232370 validate +quit
Delete the contents of
D:\games\server_final\hl2\We delete this because this hl2 content folder is incompleteExtract all
*_dir.vpkfiles fromD:\games\sdk_base_2006\vpks\toD:\games\server_final\hl2\This will make sure gmod9 has access to all required hl2 contentExtract all
*_dir.vpkfiles fromD:\games\hl2mp_server\hl2mp\toD:\games\server_final\hl2mp\This will make sure gmod9 has access to all required hl2mp contentCopy all files (excluding .vpk files) from
D:\games\hl2mp_server\hl2mp\toD:\games\server_final\hl2mp\This will also make sure gmod9 has access to all required hl2mp content*Extract the GMod9 server files so that the final path looks like this:
D:\games\server_final\gmod9\Delete
vstdlib_s.dll,tier0_s.dll, andsteamclient.dllfromD:\games\server_final\Replace the contents of
D:\gamdes\server_final\gameinfo.txtwith the contents from Attachment 1 (See Attachments)Create the file
D:\games\server_final\gmod9\autoexec.cfgand add the contents from from Attachment 2 (See Attachments)Run srcds.exe like this:
srcds.exe -insecure -nohltv -flushlog -port 27015 -console -game gmod9 -maxplayers 16 +map gm_construct
Additional infos
Here's some info on what various numbers/names actually mean:
| vpk | content |
|---|---|
| depot_206_dir.vpk | materials |
| depot_207_dir.vpk | models |
| depot_208_dir.vpk | sound |
| depot_212_dir.vpk | cfg,media,expressions,resource,scripts,shaders |
| depot_215_dir.vpk | sourcetest |
| appid | content |
|---|---|
| 205 | srcds |
| 215 | source sdk base 2006 |
| 232370 | half life 2 deathmatch dedicated server |
Attachments
HL2MP Content fix - gameinfo.txt
"GameInfo" { game "Garry's Mod 9" title "Garry's Mod" title2 "Nine" "developer" "TEAM GARRY" "developer_url" "http://gmod.garry.tv/" "icon" "v" "manual" "http://gmwiki.garry.tv"
hidden_maps
{
"test_speakers" 1
"test_hardware" 1
}
FileSystem
{
SteamAppId 220 // This will mount all the GCFs we need (240=CS:S, 220=HL2).
ToolsAppId 211 // Tools will load this (ie: source SDK caches) to get things like materials\debug, materials\editor, etc.
SearchPaths
{
Game |gameinfo_path|.
Game hl2
Game hl2mp
}
}
}
2. Server list fix - autoexec.cfg
// Fixes sv_master_legacy_mode 0 heartbeat setmaster add hl2master.steampowered.com:27011 setmaster add hl2master.steampowered.com:27015 sv_master_legacy_mode 1 heartbeat
> Credit: > [l337Espeon](https://steamcommunity.com/id/l337espeon/) from [FaceWAN.com](https://facewan.com) > [This github issue](https://github.com/ValveSoftware/Source-1-Games/issues/1670) > [Nafrayu](https://steamcommunity.com/id/nafrayu)
