Contagion

Contagion

56 ratings
Dedicated server for Contagion
By Bloody Foxy
A full guide for configuring Contagion server (exept for SourceMod, there are a lot of guides).
   
Award
Favorite
Favorited
Unfavorite
Ports configuration
You may need to make a Port Forwarding / Virual Server exception for ports (if using NAT).

UDP 1200 (Friends Network) UDP 27000 to 27015 (Gameport) UDP 27020 TCP 27030 to 27039 TCP 27015 (SRCDS Rcon port)

PortForward[portforward.com] may help you if you don't know how to do it. Also there is a good free util that tests ports (opened/closed).
Dynamic DNS
Dynamic IP adress is not a big problem if you see your server can be seen is server list. However it changes when your connection session is ended or you reboot your networking interface. If your friends like to connect you via IP there will be a problem/

Dynamic DNS can help you. Or even if you have Static IP it can give a nice DNS-adress to remember. For examble, mine is bloodyfoxy.dyndns.org

You can configure DDNS on your router. See what DDNS providers are supported by your device. All devices support DynDNS DDNS services (common standard? :-D) which you can use free.

DynDNS
Goto http://dyn.com/dns and create account, then you can create 2 hostnames for free. You need update them every month so look carefully at your e-mail inbox with notification).

For those who have Dynamic IP: You need to download an update client[dyn.com] which changes the DNS record when your IP is changes also.
Getting server files via steamcmd
Using Steam Console Client is better then using steam because no one will ask you why are you playing Contagion 24/7 and you may use your steam account on different computer.
  • Follow instructions on this page.
  • Execute steamcmd or give commands directly.
    steamcmd.exe +login STEAMACCOUNT +app_update 238430 validate +quit
    You may also add force_install_dir flag to install to different location. For more information follow link mentioned in list.
Launch script
contagionds_launch.bat is really scary and with typos.

start "" contagionds.exe -game "..\ContagionBeta\contagion" -console -dedicated -insecure +map cx_AuroraEstates -ip 192.168.1.2 -port 27015
It will launch scrds (contagionds) in an window without cmd window you need to close.

Autorestart:
@echo off cls echo Protecting srcds from crashes... echo If you want to close contagionds and this script, close the srcds window and type Y depending on your language followed by Enter. title contagionds Watchdog ..\..\..\steamcmd.exe +login STEAMACCOUNT +app_update 238430 validate +quit :contagionds echo (%time%) contagionds started. start /wait contagionds.exe -game "..\ContagionBeta\contagion" -console -dedicated -insecure +map ce_roanokepd -ip 192.168.1.2 -port 27015 echo (%time%) WARNING: contagionds closed or crashed, restarting. goto contagionds

We gonna check for updates or file corruptions first and then launch server.
You may start more servers on one machines using different ports (27000-27015), IPs (if you have more then one Internet/LAN connection on your machine).
You may wish using different configurations for different servers. You can do it adding "+servercfgfile configfile.cfg" parameter for contagionds.
Server config file
Goto ContagionBeta\contagion\cfg and create a file named server.cfg
Contents of my server.cfg:
// General Settings // // Hostname for server. hostname Bloody Foxy's Server [RU, Saint-Petersburg] //Server password //uncomment to use sv_password PASSWD //Tags sv_tags autorestart, not 24/7 // Overrides the max players reported to prospective clients sv_visiblemaxplayers 12 // Set to lock per-frame time elapse host_framerate 0 // Set the pause state of the server setpause 0 // Control where the client gets content from // 0 = anywhere, 1 = anywhere listed in white list, 2 = steam official content only sv_pure 0 // Is the server pausable sv_pausable 0 // Type of server 0=internet 1=lan sv_lan 0 // Collect CPU usage stats sv_stats 1 // Execute Banned Users // //exec banned_user.cfg //exec banned_ip.cfg //writeid //writeip // Contact & Region // // Contact email for server sysop sv_contact darkbloodyfoxy@gmail.com // The region of the world to report this server in. // -1 is the world, 0 is USA east coast, 1 is USA west coast // 2 south america, 3 europe, 4 asia, 5 australia, 6 middle east, 7 africa sv_region 3 // Rcon Settings // // Password for rcon authentication rcon_password mypassword // Number of minutes to ban users who fail rcon authentication sv_rcon_banpenalty 1440 // Max number of times a user can fail rcon authentication before being banned sv_rcon_maxfailures 5 // Log Settings // // Enables logging to file, console, and udp < on | off >. log on // Log server information to only one file. sv_log_onefile 0 // Log server information in the log file. sv_logfile 1 // Log server bans in the server logs. sv_logbans 1 // Echo log information to the console. sv_logecho 1 // Rate Settings // // Min bandwidth rate allowed on server, 0 == unlimited sv_minrate 0 // Max bandwidth rate allowed on server, 0 == unlimited sv_maxrate 20000 // Client CVARS // // Restricts spectator modes for dead players //mp_forcecamera 0 // toggles game cheats sv_cheats 0 // Communications // // enable voice communications sv_voiceenable 1 // Players can hear all other players, no team restrictions 0=off 1=on sv_alltalk 1

You may also add "exec config.cfg" to your server.cfg for an config chain. Useful if you have more then one server.
Listen server
*.bat contents:
start "" contagion.exe -game contagion -console -dedicated -insecure +map ce_roanokepd -ip 192.168.1.2 -port 27015

Laggy and crashes ~once per 30-40 minutes (MB cause a lot of clients connected). Also it starts the game and you're on the server as player (and have admin permissions too). If you leave the game the server will shut down.

Also copy and paste everything from your server.cfg to listenserver.cfg.
Installing MetaMod and SourceMod
Get MetaMod[www.sourcemm.net] and extract to contagion/addons. Then get SourceMod[www.sourcemod.net] and extract in same directory. Also create a VDF here[www.sourcemm.net] (game folder is "contagion").

Read focumentation, search plugins, install 'em. You may also use Mani Admin Plugin[www.mani-admin-plugin.com] instead of SourceMod.

If you are using Gameservers.com hosting
You cannot upload the heart of MetaMod - server.dll due to limitations. Create a support ticket and ask to install MetaMod and SourceMod plugins.
Want rent your own server?
There are 2 ways of renting.

VPS Server
Pros:
+ You may host 1+ servers on different IP's or hosts
+ Find a hosting with RDP and VNC. You can manage everything!
+ May be used as web-server also or... Damn, it's VPS!
+ Very good for hosting multiple servers if you know how to get cashfrom it (selling VIP and admin privileges).
+ Can use FTP (if you do a server first) and configure scripts, install plugins of course.

Cons:
- Price is high for powerfull configurations.
- You know nothing about managing servers running Windows.
- Difficult to find a server with low ping
- Old OSes (usually XP/Server 2003, somitemes 7/Server 2008) or installing your own OS which takes a lot of time

Game server ($ per slots)
Buy one from Gameserver.com. Click here! Let me earn some money as donation for this article[www.gameservers.com]

Pros:
+ 7.95$ dor one stable server
+ Can use FTP and configure scripts, configs, install plugins.
+ Very simple to use
+ Easy to update
+ Runs very fast

Cons:
- Not as flexible as VPS
- Hosting a lot of servers? VPS still better. 1,2,3? Rent a game server.
- Sometimes VNC seems better then managing trough RCON protocol... I mean remote administrating.
Troubleshooting
Can't launch Contagion through Steam when contagionds is runnung
Launch contagion.exe from game folder. You may also make a symbolic link to contagion.exe and put it on your Desktop (make a shortcut).
45 Comments
Harry [TW] 18 Dec, 2024 @ 11:18am 
I install sourcemod 1.12 latest version and meta 1.11 latest version on my local server, and set -insecure in launch options.

In game console, it says
---
Plugin did not contain ISERVERPLUGINCALLBACKS003 interface. Trying an older version...
Plugin did not contain ISERVERPLUGINCALLBACKS002 interface. Trying an older version...
Failed to find ISERVERPLUGINCALLBACKS001 interface for IServerPluginCallbacks. Unloading module "../contagion/addons/metamod/bin/server".
Plugin did not contain ISERVERPLUGINCALLBACKS003 interface. Trying an older version...
Plugin did not contain ISERVERPLUGINCALLBACKS002 interface. Trying an older version...
Failed to find ISERVERPLUGINCALLBACKS001 interface for IServerPluginCallbacks. Unloading module "addons/metamod/bin/win64/server".
---

Is not working anymore?
One death guy 23 Dec, 2017 @ 9:01am 
hey guys I recently tried to play with Hamachi and I still couldnt connect with my friend. We had diagnosed and the connection was ok, no problems. We could play LAN in other game no problem. But in Contagion nothing would work. It gave only connection failed after 4 times, or server would simply be unavailable to connect.
Shellshock 27 Nov, 2015 @ 12:10pm 
Ah, alright. Thanks!
Bloody Foxy  [author] 27 Nov, 2015 @ 7:21am 
Yes. But only hosts in your Hamachi's VPN could connect and play.
Shellshock 27 Nov, 2015 @ 12:00am 
Would Hamachi work as an alternative?
Bloody Foxy  [author] 15 Jun, 2015 @ 3:16pm 
Well... Notifications in Steam are still alive)
If you're using a Gameservers hosting try reqesting an update. I prefer to host on my own however I've shut down servers for some time today.
Bean 15 Jun, 2015 @ 1:51pm 
Looks like Gameservers just didnt have thier end updated yet. But thanks for the reply didn't think I would get one from you considering it has been almost a year sense the last one on this page haha.
Bloody Foxy  [author] 15 Jun, 2015 @ 8:57am 
Maybe game cache incosistency (client-side problem)?
Bean 14 Jun, 2015 @ 1:04pm 
What needs to be updated in order for this to be fix for people joining the game. People who join get error : "Server is enforcing consistency for this file: Scripts/weapon_manifest.txt". Is this part of meta mod and source mod?
Rat-Panko-Chinkorec 23 Oct, 2014 @ 4:01pm 
"#contagion plugin blocked title" is the problem I get when my friend is joining. What do?