Getting_started/server_conf
One key value pair per line. Lines that start with # and unknown keys are ignored. A port given on the command line (Server 2302) overrides the file.
| Key | Default | Meaning |
|---|---|---|
listen_port (or port) | 2301 | UDP port players connect to. |
server_name | Liberty United 0.1 Server | Name shown in the server browser (max 63 characters). |
password | (none) | Join password. Leave empty/none for a public server. Can be changed from scripts with SetPassword. |
max_players | 100 | Player limit, clamped to 2-255. |
gamemode_name | (blank) | Gamemode text in the browser. |
owner / website | (blank) | Shown in the browser server info. |
announce | yes | yes/no - send the server to the public master list. |
auto_update | yes | (v0.5.3+) yes/no - the server checks for a new release at startup and every 5 minutes, downloads it in the background and restarts with it as soon as no player is online (NPCs do not count). Same folder, same command line; on Linux even the same process id, so screen sessions and service managers keep it. |
auto_update_url | LU update host | (v0.5.3+) Where the update manifest is read (http only). Leave it out for the official releases. |
default_scoreboard | yes | Built-in TAB scoreboard. Set no if you draw your own. |
vehicle_respawn_time | (engine default) | Seconds before a wrecked vehicle respawns. |
pickup_respawn_time | 0 | Seconds before a collected pickup respawns (0 = instantly). |
lag_comp | off | Lag compensation for bullet hits (hit events relayed by the server). |
voice_chat | off | Proximity / channel voice chat (Opus). Players talk with a push-to-talk key (default V) or an open microphone; see player.AllowVoiceChat, VoiceChannel, VoiceDistance. |
traffic_sync | off | Synchronised ambient pedestrians and traffic. See the Traffic chapter. |
stream_objects | off | (v0.5.5+) on = custom map objects (Script.xml <object>) that a player does not have yet are downloaded WHILE he plays, nearest to him first: the join only waits for vehicles, skins, glass, far (LOD) models, day/night objects and road pieces with traffic paths (so ambient traffic works as before). Objects appear as they arrive, a bar at the bottom of the screen shows the progress, and a player whose surroundings are still missing is held in place (also right after a spawn or a teleport) until they are there. A player who already has the files joins exactly as before. |
traffic_ped_density / traffic_car_density | 0.25 | 0 to 3. How crowded the roads are (1.0 can lag). |
traffic_radius | 100 | Metres (20-500). Players closer than this share one traffic generator. |
cinema_ffmpeg / cinema_ytdlp / cinema_ytdlp_args | ffmpeg / yt-dlp / (empty) | (v0.5-rc3+) The programs the cinema screens (CreateCinema / PlayCinema) use. With the default names the server first uses the copy that sits NEXT TO the server (ffmpeg.exe / yt-dlp.exe beside Server.exe, ./ffmpeg / ./yt-dlp beside the Linux Server) and only then the one in PATH; a different value is used as it is. cinema_ytdlp_args adds yt-dlp options, space separated (for YouTube it needs a JavaScript runtime: --js-runtimes node). |
duplicate_names | off | (v0.5.1+) off = a player whose name is already online is refused at join with "The name you chose is already occupied on this server". on = two players may share a name. |
crouch | off | (v0.5-rc3+) on = the players can crouch with the X key (see lu_crouch.ini on the client). Default off: the key does nothing, and a crouch flag in a sync packet is stripped by the server, so nobody shows crouched. |
server_side_traffic | off | (v0.5-rc3+) on = the SERVER decides who simulates the traffic instead of the nearest player: the lowest-ping player of a group generates and owns it (a player with a high ping counts as farther away, 0.5 m per ms above 80 ms), so cars no longer freeze and jump around a laggy player. See the Traffic chapter. |
traffic_debug | off | Extra traffic logging. |
islands | on | (v0.3.1-r5+) on = all islands unlocked (the Portland - Staunton bridge is repaired); off = the damaged bridge of the original game start. Scripts can change it at run time with SetIslands(). |
passenger_key | on | (v0.3.1-r5+) The shortcut that enters the nearest vehicle as a passenger: G on PC, holding the enter button on a pad, the RIDE button on Android. off disables it (a normal enter still works). |
traffic_passenger | on | (v0.3.1-r5+) off stops players from riding along as a passenger with an AI driver (a traffic car or a server NPC). |
anticheat | on | (v0.4.9+) off switches the whole anti-cheat off (no server checks, the clients do not scan). See the onPlayerCheat event. |
ac_exclude | (none) | (v0.4.9+) Detections that are NOT checked, numbers separated by commas, e.g. ac_exclude 2,4. The clients are told and do not scan for them either. 1 CLEO, 2 debugger, 3 window title, 4 memory modification, 5 speed (client timers), 6 speed (server clock), 7 health, 8 armour, 9 weapon, 10 ammo, 11 hardware breakpoints. |
NoteKeys such as
sync_radius, weather, rcon found in very old server.conf files are no longer read. Use scripts (SetWeather, SetServerRule, ...) instead.Categories: Getting started