This guide covers how to set up and configure your CS2D dedicated server hosted with Legion Hosting. CS2D is a 2D top-down multiplayer shooter inspired by Counter-Strike, featuring bomb defusal, hostage rescue, capture the flag, and more. For admin commands and server management, see CS2D Server Admin Guide.
1. Accessing Your Server
- Log in to GPanel.
- Select your CS2D server from the server list.
- Your server IP and port are displayed on the Console tab. See How to Find Your Server IP and Port for details.
2. Startup Variables
Configure these settings from the Startup tab in GPanel:
| Variable | Env Name | Default | Description |
|---|---|---|---|
| Server Name | SERVER_NAME |
CS2D Server | Server name displayed in the server list (max 64 characters). |
| Server Password | SERVER_PASSWORD |
(empty) | Password to join the server. Leave blank for public access. |
| Max Players | SERVER_PLAYERS |
12 | Maximum number of players. |
3. Configuration File
The main configuration file is sys/server.cfg. The panel automatically manages port, server name, password, and max players in this file.
sv_hostport 36963
sv_name CS2D Server
sv_password
sv_maxplayers 12
sv_hostport, sv_name, sv_password, and sv_maxplayers values are managed by the panel. Add your custom settings below these lines.
Additional settings you can add to sys/server.cfg:
| Setting | Description |
|---|---|
sv_gamemode [mode] |
Game mode (0=standard, 1=deathmatch, 2=TDM, 3=CTF, 4=domination). |
sv_map [map] |
Starting map name. |
sv_friendlyfire [0/1] |
Enable or disable friendly fire. |
sv_rcon [password] |
RCON password for remote admin access. |
mp_roundtime [seconds] |
Round time limit in seconds. |
mp_freezetime [seconds] |
Freeze time at round start. |
mp_startmoney [amount] |
Starting money for players. |
4. Connecting to Your Server
- Download CS2D from cs2d.com (it is free to play).
- Launch CS2D.
- Go to Play Online and use the server browser, or select Join by IP.
- Enter your server IP and port from GPanel.
- Enter the password if one is set.
5. First-Time Setup Checklist
- Set your
SERVER_NAMEin the Startup tab. - Edit
sys/server.cfgto configure game mode, RCON password, and round settings. - Start the server and wait for
----- Server started -----in the console. - Connect with CS2D and verify the server is working.
Related Articles
Need Help?
If you run into issues with your CS2D server, open a support ticket and include your server IP, a description of the problem, and any error messages from the GPanel console.