Soldier Front · Dragonfly, 2004 · Soldier Front Legacy by TeamVanilla, 2026

Build 1 · protocol 24

OpenSFSoldier Front Legacy
Contents

Docs Running a server

server.cfg

Every setting in server.cfg, what it takes, and how the server checks it.

server.cfg sits beside the server and holds its settings, one name = value a line. Every value is checked when the server starts: one that is out of range stops the server with the line and the reason, never a guess. --check says the same without starting it.

The settings

SettingWhat it is
server_idthe server's id, written by --register (registering)
name3 to 48 characters, shown in the list. A name may not claim to be official: not Official, Team Vanilla, SFLegacy or Staff
motdthe message every player reads on joining, at most 200 characters. Also edited in the game (F9, Channels)
regiona word or two for the list, at most 24 characters
bind_addresswhich of this machine's addresses to listen on. Empty: all of them
portthe UDP port, 27240 to begin with. It also answers the list's "who is there?"
public_addressthe address players reach the server at, when that is not the one Team Vanilla sees its heartbeat come from. Empty: that one. A host name (a dynamic DNS name) works too
public_portthe outside port, when your router forwards a different one to port
max_players1 to 512
reserved_slotsslots kept for staff
min_rank, max_rankwho may join: ranks 0 (Private) to 74, the real rank, never a Fake Rank Mark's
min_kdthe lowest kill/death ratio that may join (0: anyone)
passworda private server: players type it to join
listedyes or no. No: off the list, and friends still join by address
client_datathe Soldier Front game data folder. Empty: data/ beside the server
upload_kbpsthe most of your upload pack downloads may use, in all
max_downloadershow many players download packs at once; the rest wait their turn
log_dayshow many days of logs are kept

As it comes

server_id =

name = My Soldier Front Server
motd = Welcome!
region =

bind_address =
port = 27240
public_address =
public_port =

max_players = 128
reserved_slots = 4

min_rank = 0
max_rank = 74
min_kd = 0

password =
listed = yes

client_data =

upload_kbps = 4000
max_downloaders = 4

log_days = 14

A lost server.cfg is written again, with these values, by --defaults, which leaves every file that is there as it is.

What is not in it

  • The Owner. Ownership is the registration at Team Vanilla, not a line in a file: losing server.cfg never loses the server, and editing it never grants it.
  • Staff: staff.cfg, or the game's staff panel (staff).
  • Channels: channels.cfg (channels).
  • The shop: shop.cfg (the server's shop).
  • The key: server.key, made on the first run and never shared.