With the right configuration, you can turn your Automobilista 2 game server into exactly the server you need for your races: a custom name, a password for private races, the right number of players, and optional automatic track rotation. In this guide, we’ll show you which settings are available, where to find them in ZapX, and how to add your own lines to server.cfg.
Automobilista 2 reads its settings from the server.cfg file. You don’t need to create this file yourself: your server generates it again every time it starts, using the values you set in ZapX under Configuration > Startup Parameters. That’s why you won’t find server.cfg in the Files tab.
For custom settings that don’t have a startup parameter, add them to the server_custom.cfg file. Your server appends it to server.cfg every time it starts.
After saving, ZapX will prompt you to restart the server. Your changes only take effect after the restart.
| Startup parameter | Description |
|---|---|
| Server name | The name of your server in the in-game server list. Default: ZapX Automobilista 2 Server |
| Server password | Password required to join. Leave blank for a public server. |
| Max. players | The number of players who can race on your server at the same time, up to 32. Default: 32 |
| Secure mode | Checks players joining through Steam, including for VAC bans. Enabled by default. |
| Sports Play mode | Mode for LAN events. Your server won’t appear in the usual server list. Disabled by default. |
| Enable Lua add-ons | Loads Lua add-ons from the lua folder. Disabled by default. |
| Lua add-ons | Comma-separated list of add-ons to load at startup, for example sms_base,sms_rotate. Only applies when Enable Lua add-ons is turned on. Default: sms_base |
Automobilista 2 configuration can’t process double quotation marks \" or backslashes \\. When your server starts, it removes them from Server name and Server password, then writes a notice containing removed unsupported characters to the Console. We recommend avoiding these characters so your password works exactly as entered.
Keep Secure mode enabled and Sports Play mode disabled if you want your server to appear in the regular server list.
You can find the server_custom.cfg file in the Files tab. Your server creates it the first time it starts and never overwrites it afterward. Each line follows the format Schlüssel : Wert. Lines that start with // are comments and are ignored.
Some keys are managed by the panel. Your server skips any lines in server_custom.cfg that begin with these keys:
name, password, maxPlayerCount, secure, sportsPlay, bindIP, hostPort, steamPort, queryPort, enableHttpApi, all keys containing httpApi, enableLuaApi, luaApiAddons, luaAllowedLibraries, luaAddonRoot, luaConfigRoot, luaOutputRoot, logLevel, and eventsLogSize.
The Console will then show server_custom.cfg: skipped … line(s) with keys managed by the panel. Change these values in the Startup Parameters instead.
By default, the first player to join your server selects the track, vehicle class, and race format in the lobby. To have your server decide what to race, use the Lua add-on sms_rotate:
- In the Configuration tab, under Startup Parameters, turn on Enable Lua add-ons and enter
sms_base,sms_rotateunder Lua add-ons. Save and restart your server. - In the Files tab, open
server_custom.cfgand remove the//before thecontrolGameSetup : trueline. Save and restart your server. - After this start, your server creates the
lua_config/sms_rotate_config.jsonfile. Add your rotation there, then restart the server again.
The example rotation included with the add-on contains tracks your server won’t accept. Replace it with your own entries. Find out more in Common Issues.
- The Lua add-ons field only allows letters, numbers,
_, and-. Your server skips other entries and displays a notice in the Console. - Add your own add-ons in the
luafolder in the Files tab. Their settings go inlua_config, and their output goes inlua_output. - The
lua,lua_config, andlua_outputfolders, as well asserver_custom.cfg, are kept after restarts and updates. Updates add new default add-ons without overwriting your custom changes.
Your server has a Web configuration tool for managing settings while it’s running. Find it in Overview: your Username and Password are listed there, and you can launch the tool with Open Web UI. It’s available while your server is running. For example, you can view your server’s status, remove players, and set the configuration for the next session. If you need new login details, use Reset password.
Create a backup before making major changes to server_custom.cfg or your rotation. That way, you can always return to the last working version.
Your Automobilista 2 server is now set up just the way you want it. For instructions on how your drivers can join, see Connect to the server. If something isn’t working as expected, our Common Issues guide can help. If you have any other questions, our support team is available every day! 🙂
