Skip to content

Automobilista 2: Server Configuration

Learn how to set your Automobilista 2 server name, password, player limit, secure mode, and Lua add-ons, and how to add custom server.cfg lines.

25 November 20264 min read9 Views0 helpful

Introduction

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.

How configuration works

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 parameters at a glance

Startup parameterDescription
Server nameThe name of your server in the in-game server list. Default: ZapX Automobilista 2 Server
Server passwordPassword required to join. Leave blank for a public server.
Max. playersThe number of players who can race on your server at the same time, up to 32. Default: 32
Secure modeChecks players joining through Steam, including for VAC bans. Enabled by default.
Sports Play modeMode for LAN events. Your server won’t appear in the usual server list. Disabled by default.
Enable Lua add-onsLoads Lua add-ons from the lua folder. Disabled by default.
Lua add-onsComma-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
Important

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.

Tip

Keep Secure mode enabled and Sports Play mode disabled if you want your server to appear in the regular server list.

Custom settings in server_custom.cfg

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.

Track rotation with sms_rotate

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:

  1. In the Configuration tab, under Startup Parameters, turn on Enable Lua add-ons and enter sms_base,sms_rotate under Lua add-ons. Save and restart your server.
  2. In the Files tab, open server_custom.cfg and remove the // before the controlGameSetup : true line. Save and restart your server.
  3. After this start, your server creates the lua_config/sms_rotate_config.json file. Add your rotation there, then restart the server again.
Info

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.

Lua add-ons and their folders

  • 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 lua folder in the Files tab. Their settings go in lua_config, and their output goes in lua_output.
  • The lua, lua_config, and lua_output folders, as well as server_custom.cfg, are kept after restarts and updates. Updates add new default add-ons without overwriting your custom changes.

Web configuration tool

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.

Tip

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.

Conclusion

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! 🙂

FAQ

Frequently asked questions

In the Configuration tab under Startup Parameters, you can set the server name, server password, max. players, secure mode, Sports Play mode, and Lua add-ons. Add custom server.cfg lines to the server_custom.cfg file in the Files tab.
Your server generates server.cfg from the startup parameters each time it starts. Add custom settings to server_custom.cfg instead. Your server appends this file at every startup and never overwrites it.
Your server skips keys managed by the panel in server_custom.cfg, such as name, password, maxPlayerCount, secure, sportsPlay, the ports, and Lua options. Change these values in the startup parameters instead.

Feedback

Was this article helpful?

Your feedback helps us prioritize and improve content.

0 of 0 people found this article helpful.

Personal support

Need more help than the guide provides?

Our ZAP-Hosting support team knows your product — briefly describe your issue and we'll help you personally.

Zappy knows this guide and answers you right in the chat.