Server Hosting

Hosting a server can be complicated and dangerous if it is done wrong! People could hijack your server and ruin your whole system (especially when you are using insecure passwords or scripts)! DO IT AT YOUR OWN RISK!

General Info

Some important things & facts you should know

What does it take to host a CS2D Server?

Listen Or Dedicated Server?

First of all: Both servers do the same thing! They host a CS2D game and they save it in the serverlist - at least if you do everything correctly! We recommend to use the listen server if it fits your needs (because it is much easier to control)!

Listen Server (CS2D Client, CS2D)

The listen server is the easiest way to host a server. It has many advantages: So whenever you want to host and play at the same time and at the same PC: Use the listen server!

Dedicated Server (cs2d_dedicated)

The dedicated Server is much harder to use than a listen server! Only advantage: Huge disadvantage: You always have to use RCon (remote control) to control a dedicated server. This is more complicated than direct control. Use the dedicated server when you want to host a CS2D game on a real internet server (a root- or v-server) and if you want the server to be online all the time.

How To Host

Host Listen Server

Host Dedicated Server

Important Server Files

sys/server.cfg

This file contains nearly all server settings.

sys/config.cfg and sys/more.cfg

Some additional settings. However most of these settings are for the client and do not affect the server.

sys/bans.lst

A list of all players which are banned from your server.

sys/mapcycle.cfg

A list of maps which will run on your server. The server will automatically cycle through these maps (if settings allow it). You can also add commands which will be executed when a certain map is loaded. Check the comments in this file for details. Only maps in this file can be voted by players!

sys/serverinfo.txt

A welcome message. It will be displayed to everyone who joins your server! You can remove this file (or its contents) if you do not want to have a welcome message.

sys/servertransfer.lst

A list of files which will be sent to all clients which join the server (and which accept these files). Read the comments in this file for details.

sys/logs folder

Contains log files (if logging is enabled). Read them if your server does not work properly. You can delete log files if you do not need them anymore. They do not influence the server.

sys/stats folder

Contains files which are used to save the server stats and player rankings. Simply delete these files to reset the stats/rankings (stop the server while doing this).

sys/core folder

Some (internal) core files (nothing you need to edit or care about).

sys/lua/server.lua

This file will be executed by the CS2D Lua parser whenever you start your server. It allows you to include Lua scripts. This can be done by editting this file with a text editor. Read the comments in this file for details.

sys/lua/wrapper.lua

A wrapper which makes it easier to use CS2D commands in your Lua scripts. Used by many Lua scripts.

sys/usgn.dat

Masterserver connection info. Essential for servers. Otherwise they will not be able to communicate with the U.S.G.N. masterserver (no serverlist entry, no account login).

bots/Standard AI.lua

This file will be executed by the CS2D Lua parser whenever you start your server. It contains the Lua scripts for bots. It is unimportant if you are not using any bots.