This guide covers how to set up your Soldat 2 dedicated server on Legion Hosting, configure startup variables, and connect players. Soldat 2 is the sequel to the classic 2D deathmatch shooter, featuring real guns, ragdoll physics, and physics-based movement. For admin commands, RCON, and game configuration, see Soldat 2 Admin and Commands Guide.
1. First Start
- Log in to GPanel and select your Soldat 2 server.
- Go to the Startup tab and configure the variables (see the table in Section 2).
- Set SERVER_NAME to your desired server name (no spaces).
- Set RCON_PASSWORD to a secure password for remote administration.
- Return to the Console tab and click Start.
- Wait for the console to display
ALL RULES SCRIPTS INITIALIZED. The first launch generates theautoconfig.iniconfiguration file.
SERVER_NAME variable does not support spaces. Use underscores or hyphens instead (e.g., My-Soldat2-Server).
2. GPanel Startup Variables
The following variables are available in the GPanel Startup tab.
| Variable | Default | Description |
|---|---|---|
SERVER_NAME |
PterodactylServer |
Server name shown in the master list (max 50 chars, no spaces). |
MAX_PLAYERS |
12 |
Maximum number of players (1-12). |
SERVER_PASSWORD |
ServerPassword |
Password to join the server. Clear this to make the server public. |
RCON_PASSWORD |
RconPassword |
Password for RCON (remote console) access. |
RCON_PORT |
0 |
RCON WebSocket port. Set to 0 to disable RCON. |
WEBSOCKETS_PORT |
0 |
WebSockets port for browser connections. Set to 0 to disable. |
GREET_MESSAGE |
Welcome! Be friendly and have fun! |
Message shown to players when they join (max 200 chars). |
ADMIN_PLAYFAB_ID |
IDHere |
Your PlayFab ID for admin privileges. Find it in the server logs when you connect. |
3. Server Configuration (autoconfig.ini)
The main server configuration file is:
autoconfig.ini
Open this file using the Files tab in GPanel or connect via SFTP. The file uses INI format.
autoconfig.ini are automatically overwritten by GPanel startup variables on each server start. Use the Startup tab for primary settings.
Key Settings
| Setting | Description |
|---|---|
GameServerConfig.Name |
Server name (managed by SERVER_NAME variable). |
GameServerConfig.Port |
Server port (managed by GPanel). |
GameServerConfig.MaxPlayers |
Max player count (managed by MAX_PLAYERS variable). |
GameServerConfig.GreetMessage |
Welcome message (managed by GREET_MESSAGE variable). |
GameServerConfig.AdminPlayfabId |
PlayFab ID of the server admin. |
GameServerConfig.ServerPassword |
Join password (managed by SERVER_PASSWORD variable). |
GameServerConfig.RconPassword |
RCON password (managed by RCON_PASSWORD variable). |
4. How Players Connect
- Launch Soldat 2.
- From the main menu, select Play Online.
- Browse the server list to find your server by name, or use direct connect.
- If the server has a password, enter it when prompted.
5. Finding Your PlayFab ID
To get admin privileges in-game, you need to set your PlayFab ID in the ADMIN_PLAYFAB_ID variable.
- Start the server and connect to it as a player.
- Check the GPanel console output. When you join, a log message will appear showing your PlayFab ID in the format:
1 YOUR_NAME joined the server [YOUR_PLAYFAB_ID]. - Copy the PlayFab ID and set it in the
ADMIN_PLAYFAB_IDstartup variable. - Restart the server for the change to take effect.
Related Articles
Need Help?
If you run into issues with your Soldat 2 server, open a support ticket and include your server IP, a description of the problem, and any relevant error messages from the GPanel console.