Insurgency Dedicated Server Setup

Insurgency Dedicated Server Setup

Insurgency Logo

You can created a dedicated insurgency server on both Windows and Linux operating systems.  Server Hardware requirements are pretty minimal for basic servers. a dual core processor, 4GB RAM and a min of 1.5mbps network connection.  You will need less hardware for linux as the operating system does not take as much resources to run.

If you want to skip the heartache of setting up and maintaining a server you can also use a host like gameservers.com for a small fee.  For insurgency dedicated server hosting I would completely recommend gameservers.com network and team..

This Insurgency windows server guide was tested on 64bit Windows 8.1.  It should work fine with any server Distro such as server 2012 standard as well.

  1.  Download SteamCMD and extract to a directory of your choice.
  2. Double click and run the extracted steamCMD.exe program.  This will start the actualy download of the program.
  3. Create a Notepad File in a directory.  Copy and paste the following code into it and change the (yoursteamname) & (yoursteampassword).  You can also edit the paths to your created directories.

 

@echo off
SETLOCAL ENABLEDELAYEDEXPANSION
:: DEFINE the following variables where applicable to your install
SET STEAMLOGIN=<yoursteamname> <yoursteampassword>
SET INSBRANCH=237410
:: For stable use 237410
:: Note, the missing qotation marks, these need to be wrapped around the entire "+app_data......"
SET InsPath=C:\Games\Ins\InsServer
SET STEAMPATH=C:\Apps\Steam
:: _________________________________________________________
echo.
echo You are about to update Insurgency
echo Dir: %InsPath%
echo Branch: %INSBRANCH%
echo.
echo Key "ENTER" To Start Download
pause
%STEAMPATH%\steamcmd.exe +login %STEAMLOGIN% +force_install_dir %InsPath% +"app_update %INSBRANCH%" validate +quit
echo .
echo Your Insurgency is now up to date
echo key "ENTER" to exit
pause

4. Save the notepad file as updater.cmd

5. Double click to run the updater.cmd to start the download of the server files need.  Make sure you make the needed changes first.

Part 2: Insurgency Server Ports

Open the following ports on your firewall/router.  If you have a non public IP (not using a datacenter or purchased a public subnet from your ISP) you will need forward the ports to your server for players to connect to the server from outside.

Ports:

UDP: 27000-27015 (Standard Game traffic)
UDP: 27015-27030 (match making)
TCP: 27014-27050 (Steam Downloads)

Part 3: Insurgency Server Configuration:

Create a server.cfg file and change settings to those that you want.  An example file is in the other tab.

Specail Thanks for a great guide that helped me test: http://steamcommunity.com/app/222880/discussions/2/558746089633436678/

This insurgency linux server guide is for Debian based operating systems such as Ubuntu or Mint.

1. Create Directories and a user to run the server.


cd /home
sudo mkdir ins
cd ins

sudo useradd -g users -d /home/ins -s /bin/bash -c "Insurgency Server" ins

sudo passwd SUPERPASSWORDTHATCANNEVERBEHACKEDBECAUSEMATH

2. Next is to update server file and installed needed secondary assets.


sudo apt-get update
sudo apt-get upgrade
sudo apt-get install lib32z1
sudo apt-get install libglib2.0-0:i386
sudo apt-get install libsm6:i386
sudo apt-get install screen
sudo apt-get install nano

3.  Download SteamCMD installer and install the server files.  This process can take some time depending on your internet connection.  From my 100mbps server it took 3 minutes.


wget http://media.steampowered.com/installer/steamcmd_linux.tar.gz
tar xvfz steamcmd_linux.tar.gz
./steamcmd.sh
login yoursteamusername yourpasswordhere
force_install_dir ./insurgency/
app_update 237410 validate

4. Navigate the the server directory and edit the server.cfg file to the settings you like.  There is a example script in the other tab for this as well as a link to a config generator you can use.

5. Create a Start up Script to start the server.

cd /home/ins/insurgency
touch start.sh
chmod 744 start.sh
nano start.sh

Add the following lines inside the start up script.

screen -m -S ins ./srcds_linux -console +map ministry +maxplayers 24 -ip xxx.xx.xx.xx -port 27015

6. Start the server using the script ./start.sh

specaily thanks for a great guide that I used to test: http://steamcommunity.com/app/222880/discussions/2/648817377579416138/

This is an example configuration.  Please edit it to meet your server requirements.  Just copy and paste it into the server.cfg to get a test server running.  Make sure to at min to change the RCON password.

Also a community made .cfg generator is available at http://insconfig.com/


hostname "Game Server Setup Example Script"
rcon_password "PASSWORDNEEDSTOBESETUP"
sv_password "" //Only set this if you intend to have a private server!

// sv_downloadurl "type-url-here"
// sv_allowdownload 1
// sv_allowupload 1

// mp_coop_lobbysize 8 // sets coop lobby size to 4 players
// maxplayers 32 // sets maxplayers to 40
// map siege_coop hunt // other available maps are contact_coop, uprising_coop, market_coop, district_coop

// ---------------------------------------------------------------
// Server Hud Options
// ---------------------------------------------------------------

// Display death
messagessv_hud_deathmessages 0

// Display kills on the scoreboard
sv_hud_scoreboard_show_kills 1

// Displays the enemy class icon on the scoreboard
sv_hud_scoreboard_show_enemy_classes 1

// Displays the dead icon for the enemy on the scoreboard
sv_hud_scoreboard_show_enemy_deaths 1

// ---------------------------------------------------------------
// Game Mode Options
// ---------------------------------------------------------------

// default mapcycle is "tactical operation" - firefight, vip, search and destroy
mapcyclefile "mapcycle_tactical_operation.txt"

// "sustained combat" mapcycle - push, skirmish, strike
//mapcyclefile "mapcycle_sustained_combat.txt"

// "cooperative" mapcycle - checkpoint, outpost, hunt
//mapcyclefile "mapcycle_sustained_combat.txt"

sv_alltalk 0

// Will a TK'er be punished in the next round? {0=no, 1=removeToken, 2=kill, 3=removeToken+Kill}
mp_tkpunish 3

// Enable kill cams
spec_freeze_enable 0

// Freeze after spawning before round starts (2 seconds default)
mp_round_freezetime 2

// Lobby time between rounds (10 seconds default)
mp_round_lobbytime 10

// Amount of time spawn protection is enabled (5 seconds default)
mp_spawnprotectontime 5

// Auto team balance (on by default)
mp_autoteambalance 1

// Auto scramble teams if one team is constantly dominating the other (on by default)
mp_scrambleteams_auto 1

// The amount of wins in a row one team must get in order to trigger the teams to be scrambled (3 by default)
mp_scrambleteams_auto_windifference 3

// Enable or disable death messages (enabled by default)
sv_hud_deathmessages 0

// Enable or disable friendly fire (disabled by default)
mp_friendlyfire 1

// Set the maximum amount of rounds per map (10 by default)
mp_maxrounds 10

// Set the maximum amount of team wins (5 by default)
mp_winlimit 5

// ---------------------------------------------------------------
// Vote Options
// ---------------------------------------------------------------
// Can people hold votes to kick players from the server?
sv_vote_issue_kick_allowed 1

// How long should a kick vote ban someone from the server? (in minutes)
sv_vote_kick_ban_duration 20

// Can people hold votes to set the next level?
sv_vote_issue_nextlevel_allowed 1

// Allow players to extend the current map
sv_vote_issue_nextlevel_allowextend 0

// Not allowed to vote for a nextlevel if one has already been set.
sv_vote_issue_nextlevel_prevent_change 1

//How many rounds before map voting can begin.
sv_vote_issue_nextlevel_round_count_delay 1

// Can people hold votes to change levels?
sv_vote_issue_changelevel_allowed 1

// Can people hold votes to change the gamemode?
sv_vote_issue_changegamemode_allowed 1

// Can people hold votes to switch the teams?
sv_vote_issue_switch_teams_allowed 1

// Can people hold votes to scramble the teams?
sv_vote_issue_scramble_teams_allowed 1

// Can people hold votes to restart the game?
sv_vote_issue_restart_game_allowed 1

// How long to allow voting on an issue
sv_vote_timer_duration 15

// How long after a vote passes until the action happens
sv_vote_command_delay 2

// Allow voting?
sv_allow_votes 1

// A vote that fails cannot be re-submitted for this long
sv_vote_failure_timer 300

// How often someone can individually call a vote.
sv_vote_creation_timer 120

// The minimum ratio of players needed to vote on an issue to resolve it.
sv_vote_quorum_ratio 0.6

// Allow spectators to vote?
sv_vote_allow_spectators 0

// Suppress listing of disabled issues in the vote setup screen.
sv_vote_ui_hide_disabled_issues 1

// ragdolls
sv_ragdoll_max_count 4

Insurgency has thousands of RCON commands that your can use.  I just listed a few of the most commonly used ones.

rcon_password password – logs into rcon
rcon maps * – lists maps on server
rcon map mapname – changes map
rcon banid 0 STEAM_0:0 – 0 = Perma ban 1440 = one day ban

rcon kick name
rcon say message
rcon clientkick #
rcon changelevel mapname gamemode
rcon mp_restartgame 1

Insurgency Linux Setup

  1. MikeMike03-07-2015

    When I try to run Insurgency via ./srcds_linux I get a Segmentation fault error. Any idea what the cause is or how I can troubleshoot this?

    • NoxNox03-07-2015

      Hmm I do not…. What version of linux are you running? I did this on ubuntu 14.04 64bit I believe….

      It may be that the download was corrupted somewhere as that error is related to C++ code being the issue. My first suggestion is to redownload the server files.

      It could also be something has changed and we need another addon…. Ill retest the guide this evening and let you know. Have a BBQ fest to attend this afternoon!

      Edit: Video is uploaded and added. Issue was with the libgcc. Added the need apt-get installs to guide. Thanks for asking mike!

Leave a Reply