Setting up a LAN server
There are 4 steps for setting up a CS2KZ LAN server:
- Server setup: Setting up the actual server itself.
- Metamod setup: Installing and setting up Metamod: Source.
- KZ plugins: Adding essential plugins to make KZ work properly.
- Maps: Adding KZ maps to the server.
WARNING
This guide is ONLY for Windows devices
Server setup
1. Preparation
Create a folder called
cs2kz_serveron the drive you want the server to be on.Inside of
cs2kz_servercreate another folder calledsteamcmd
DANGER
Note that the folder which will be used for the server is REQUIRED to be on a drive with a least 35GB of free space!
NOTE
The main folder (cs2k_server) can be named anything you want, the name given in this guide is to make the rest of the instructions more simple.
2. Installing SteamCMD
Navigate to the SteamCMD Download Page.
Under step
[1]click the download link to download the zip file.Extract the contents of the zip file into the
steamcmdfolder.
3. Installing the server
Locate
SteamCMD.exein the folder it was extracted to and run it. It will install all of the required Steam components.Once it's done, type
login anonymousin the terminal that was opened and press enter.Next type in
app_update 730 validateand press enter. This will begin the installation of the server and may take a very long time depending on your internet and drive speeds.
DANGER
Do NOT close the terminal until it outputs Success! App '730' fully installed.!
4. Adding a Steam GSLT token
Navigate to Steam GSLT tokens (log in with Steam if you aren't already).
At the bottom under
Create a new game server accountset the App ID as730and clickCreateKeep this window open as we will need the token for the next step.
5. Running the server
Navigate back to the
cs2kz_serverfolder and create a new file calledstart.bat.Right click
start.bat, clickEdit, and add this text into it:
cd ".\steamcmd\steamapps\common\Counter-Strike Global Offensive\game\bin\win64\"
start cs2.exe -dedicated +map de_dust2 +sv_setsteamaccount YOUR_TOKEN_HEREWARNING
Ensure that you replace YOUR_TOKEN_HERE with your Steam GSLT token.
- You should now be able save the file, close the text editor, and run it by double-clicking on it. It should run a terminal. If you get a prompt to give CS2 access through your firewall, press yes.
6. Connecting to the server
WARNING
You have to run your own game before running the server, otherwise it will not let you launch your game!
You can connect to the server by either:
- Opening the in-game console and typing in
connect localhost - Opening the in-game Community Server Browser and navigating to the
LANtab, and pressing connect on the server
Metamod setup
Installing Metamod: Source
Open Metamod: Source (Dev 2.0x) Downloads and download the latest build for your operating system (Windows/Linux).
You should have downloaded a
zip(Windows) ortar.gz(Linux) file, extract it and move the wholeaddonsfolder into the\csgo\folder of the server.
INFO
The \csgo\ folder can be found in:
\cs2kz_server\steamcmd\steamapps\common\Counter-Strike Global Offensive\game\If you have followed this guide exactly as explained.
Open the
gameinfo.gifile in a text editor (such as notepad), the file can be found in the same\csgo\folder.Ignore any warnings about editing the file, and add the following to the top of the section with similar inputs and save the file:
Game csgo/addons/metamodWhen complete, the file should look like this:
"GameInfo"
{
// ********************************************************************************
// ********************************************************************************
// ********************************************************************************
// DO NOT EDIT THIS FILE DIRECTLY - YOU PROBABLY WANT TO EDIT CSGO_CORE/GAMEINFO.GI
// ********************************************************************************
// ********************************************************************************
// ********************************************************************************
game "Counter-Strike 2"
title "Counter-Strike 2"
LayeredOnMod csgo_imported
FileSystem
{
SearchPaths
{
Game_LowViolence csgo_lv // Perfect World content override
Game csgo/addons/metamod
Game csgo
Game csgo_imported
Game csgo_core
Game core
Mod csgo
Mod csgo_imported
Mod csgo_coreKZ plugins
Installing the KZ plugin
Open cs2kz-metamod releases and download the latest
(pre-) releasefor your operating system.Extract the
zip(Windows) ortar.gz(Linux), then drag theaddonsandcfgfolders into the\csgo\folder (The same folder used in the Metamod setup step).
Installing optional plugins
Jumpstat/Quake sounds support
Open MultiAddonManager releases and download the latest release for your operating system (Windows/Linux).
Extract the
zip(Windows) ortar.gz(Linux), then drag theaddonsandcfgfolders into the\csgo\folder.
Database support
Open SQLMM releases and download the latest release for your operating system (Windows/Linux).
Extract the
zip(Windows) ortar.gz(Linux), then drag theaddonsandcfgfolders into the\csgo\folder.
Language support
Open GetClientCvarValue releases and download the latest release for your operating system (Windows/Linux).
Extract the
zip(Windows), then drag theaddonsandcfgfolders into the\csgo\folder.
Maps
Open up Steam Workshop and look for a map or collection of maps
Edit the
start.bat(created in Server Setup) and add either+host_workshop_mapor+host_workshop_collectioncommand along with theIDof the map/collection to the 2nd row on the file. If you've followed this guide exactly as instructed it should look something like this:
cd ".\steamcmd\steamapps\common\Counter-Strike Global Offensive\game\bin\win64\"
start cs2.exe -dedicated +map de_dust2 +sv_setsteamaccount GSLT_TOKEN +host_workshop_map MAP_IDcd ".\steamcmd\steamapps\common\Counter-Strike Global Offensive\game\bin\win64\"
start cs2.exe -dedicated +map de_dust2 +sv_setsteamaccount GSLT_TOKEN +host_workshop_collection COLLECTION_IDReplacing MAP_ID/COLLECTION_ID with the correct ID & GSLT_TOKEN with your token.
INFO
Although maps can be manually added into files, FastDL does not exist for CS2, so using Steam Workshop instead is recommended.
WARNING
Currently the Steam Workshop doesn't require you to use an api key for CS2 maps, but this could change in the future.