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_server
on the drive you want the server to be on.Inside of
cs2kz_server
create 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
steamcmd
folder.
3. Installing the server
Locate
SteamCMD.exe
in the folder it was extracted to and run it. It will install all of the required Steam components.Once it's done, type
login anonymous
in the terminal that was opened and press enter.Next type in
app_update 730 validate
and 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 account
set the App ID as730
and clickCreate
Keep this window open as we will need the token for the next step.
5. Running the server
Navigate back to the
cs2kz_server
folder 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_HERE
WARNING
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
LAN
tab, 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 wholeaddons
folder 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.gi
file 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/metamod
When 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_core
KZ plugins
Installing the KZ plugin
Open cs2kz-metamod releases and download the latest
(pre-) release
for your operating system.Extract the
zip
(Windows) ortar.gz
(Linux), then drag theaddons
andcfg
folders 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 theaddons
andcfg
folders 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 theaddons
andcfg
folders 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 theaddons
andcfg
folders 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_map
or+host_workshop_collection
command along with theID
of 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_ID
cd ".\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_ID
Replacing 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.