Assetto Corsa Competizione Server Configuration: Difference between revisions

From Survival Servers
Jump to navigation Jump to search
ACC launch guide
 
[wiki:wiki-operator] Reworded to the house writing rules; facts that were wrong today corrected (approved by Ryan, Nov 17)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
The Assetto Corsa Competizione dedicated server reads its entire configuration from a set of JSON files in <code>server/cfg</code>. This guide explains what each file controls, the encoding rule that breaks most self-hosted servers, the difference between Public and Private Multiplayer, and which files are safe to hand-edit on a hosted server.
{{#seo:
|title=ACC Server Configuration: JSON Files and Admin Commands
|description=How an Assetto Corsa Competizione server is set up: the seven JSON files in server/cfg, the UTF-16 LE rule, public vs private servers and admin commands.
}}
The Assetto Corsa Competizione dedicated server reads all its settings from JSON files in <code>server/cfg</code>.


== The encoding rule that breaks most ACC servers ==
== The encoding rule that breaks most ACC servers ==


The Kunos Server Admin Handbook prints this warning in red for a reason: every ACC config file must be saved as '''UTF-16LE with BOM'''. A file saved as plain UTF-8 can be silently ignored or stop the server from starting. The parser is also strict about types: a string where a number belongs, or an implausible value, can make the server refuse to boot, and the reason is written to <code>server/log</code>. On a SurvivalServers ACC server the panel's Server Config tool writes every managed file with the correct encoding automatically, so you only need to care about this when editing <code>entrylist.json</code> or <code>bop.json</code> by hand.
The Kunos Server Admin Handbook prints this warning in red: every ACC config file must be saved as '''UTF-16LE with BOM'''. A file saved as plain UTF-8 may seem to work, but the server reads its values wrong. The server is also strict about values: text where a number belongs, or a value that makes no sense, can stop the server from starting. The reason is written to <code>server/log</code>.


== The seven configuration files ==
== The seven configuration files ==


* '''configuration.json''': the network layer. <code>udpPort</code> (car position streaming and ping), <code>tcpPort</code> (connection handshake), <code>maxConnections</code> (total sockets including spectators), <code>registerToLobby</code> (1 = visible in the in-game Server List), <code>lanDiscovery</code>. On a hosted server the ports and lobby registration are managed for you.
* '''configuration.json''': the network settings. <code>udpPort</code> (car position streaming and ping), <code>tcpPort</code> (connection handshake), <code>maxConnections</code> (total connections, spectators included), <code>registerToLobby</code> (1 = visible in the in-game Server List), <code>lanDiscovery</code>. On a rented server, we set the ports and lobby registration for you.
* '''settings.json''': server identity and entry gates. Server name, join password (<code>password</code>), admin password (<code>adminPassword</code>), spectator password, car group (<code>FreeForAll</code>, <code>GT3</code>, <code>GT4</code>, <code>GT2</code>, <code>GTC</code>, <code>TCX</code>), Safety and Racecraft rating requirements, track medal requirement, race locking, automatic disqualification, formation lap type, and <code>dumpLeaderboards</code> (writes a results file after every session, the raw material for league standings).
* '''settings.json''': server identity and entry gates. Server name, join password (<code>password</code>), admin password (<code>adminPassword</code>), spectator password, car group (<code>FreeForAll</code>, <code>GT3</code>, <code>GT4</code>, <code>GT2</code>, <code>GTC</code>, <code>TCX</code>). It also holds the Safety and Racecraft rating requirements, track medal requirement, race locking, automatic disqualification, formation lap type, and <code>dumpLeaderboards</code> (writes a results file after every session, which you can use for league standings).
* '''event.json''': the race weekend itself. Track selection, the sessions list (see below), ambient temperature, cloud cover, rain, weather randomness, and the pre-race, post-qualifying, and post-race timers.
* '''event.json''': the race weekend itself. Track selection, the sessions list, ambient temperature, cloud cover, rain, weather randomness, and the pre-race, post-qualifying, and post-race timers.
* '''eventRules.json''': league race rules. Pit window length, mandatory pit stop count, refuelling and tyre change requirements, driver stint limits, driver swap rules, and tyre set count. '''Private Multiplayer only.'''
* '''eventRules.json''': league race rules. Pit window length, mandatory pit stop count, refuelling and tyre change requirements, driver stint limits, driver swap rules, and tyre set count. '''Private Multiplayer only.'''
* '''assistRules.json''': assist restrictions. Stability control cap, autosteer, ideal line, automatic lights, wipers, engine start, pit limiter, gears, and clutch. '''Private Multiplayer only.'''
* '''assistRules.json''': assist restrictions. Stability control cap, autosteer, ideal line, automatic lights, wipers, engine start, pit limiter, gears, and clutch. '''Private Multiplayer only.'''
Line 15: Line 19:
* '''bop.json''': per-track, per-car Balance of Performance. Same guide.
* '''bop.json''': per-track, per-car Balance of Performance. Same guide.


The sessions array in <code>event.json</code> defines your looping weekend: each session has a type (practice, qualifying, or race), a duration in minutes, an in-game start hour, a day of the simulated weekend (Friday, Saturday, or Sunday), and a time multiplier. One hard rule from the game itself: the weekend must contain at least one non-race session or the server will not start.
The sessions list in <code>event.json</code> sets up your looping weekend. Each session has a type (practice, qualifying, or race), a duration in minutes and an in-game start hour. It also has a day of the simulated weekend (Friday, Saturday, or Sunday) and a time multiplier. One hard rule from the game itself: the weekend must contain at least one non-race session or the server won't start.


== Public vs Private Multiplayer ==
== Public vs Private Multiplayer ==
Line 21: Line 25:
Setting a join password changes what your server is:
Setting a join password changes what your server is:


* '''Public''' (no password): visible and joinable by anyone in the Server List. The grid caps at 30 cars and additionally clamps to the track's pit box count. <code>eventRules.json</code> and <code>assistRules.json</code> are ignored. Rating and medal gates still apply.
* '''Public''' (no password): visible and joinable by anyone in the Server List. The grid caps at 30 cars and also clamps to the track's pit box count. <code>eventRules.json</code> and <code>assistRules.json</code> are ignored. Rating and medal gates still apply.
* '''Private''' (password set): only your people join. The race rules and assist restriction files take effect, and the car cap can exceed 30 up to the track's private limit (Spa allows 82).
* '''Private''' (password set): only people with the password can join. The race rules and assist restriction files take effect, and the car cap can exceed 30 up to the track's private limit (Spa allows 82).


If a race rule seems to be ignored, this is almost always why: the server has no password and is running as Public Multiplayer.
If a race rule seems to be ignored, this is almost always why: the server has no password and is running as Public Multiplayer.
== What the panel manages vs what is yours ==
On a hosted server, the Server Config tool owns <code>configuration.json</code>, <code>settings.json</code>, <code>event.json</code>, <code>eventRules.json</code>, and <code>assistRules.json</code>: they are re-generated from your saved panel choices on every start, so hand edits to those five do not survive a restart. <code>entrylist.json</code> and <code>bop.json</code> are the opposite: the panel ships valid empty defaults once and never overwrites them, because they are your league's data. Edit those two through the File Manager.


== In-game admin commands ==
== In-game admin commands ==


With the admin password from <code>settings.json</code>, any connected driver can log in as admin from the in-game chat by typing <code>/admin yourpassword</code>. After that, <code>/next</code> skips to the next session, <code>/restart</code> restarts the current session, and <code>/kick</code> removes a driver. Handy for race control on league nights without touching the panel.
With the admin password from <code>settings.json</code>, any connected driver can log in as admin from the in-game chat by typing <code>/admin yourpassword</code>. After that, <code>/next</code> skips to the next session, <code>/restart</code> restarts the current session, and <code>/kick</code> removes a driver.


== Related guides ==
== Related guides ==
Line 38: Line 38:
* [[How_to_Create_an_Assetto_Corsa_Competizione_Server_Guide|How to Create an ACC Server]]: the setup walkthrough.
* [[How_to_Create_an_Assetto_Corsa_Competizione_Server_Guide|How to Create an ACC Server]]: the setup walkthrough.
* [[Assetto_Corsa_Competizione_League_Race_Weekend_Guide|League Race Weekend Guide]]: turning these settings into a league night.
* [[Assetto_Corsa_Competizione_League_Race_Weekend_Guide|League Race Weekend Guide]]: turning these settings into a league night.
All of this is a typed form with safe ranges on our [https://www.survivalservers.com/services/game_servers/assetto_corsa_competizione/ Assetto Corsa Competizione server hosting] panel, including seven league presets and a sessions builder.

Latest revision as of 08:40, 17 November 2026

The Assetto Corsa Competizione dedicated server reads all its settings from JSON files in server/cfg.

The encoding rule that breaks most ACC servers

The Kunos Server Admin Handbook prints this warning in red: every ACC config file must be saved as UTF-16LE with BOM. A file saved as plain UTF-8 may seem to work, but the server reads its values wrong. The server is also strict about values: text where a number belongs, or a value that makes no sense, can stop the server from starting. The reason is written to server/log.

The seven configuration files

  • configuration.json: the network settings. udpPort (car position streaming and ping), tcpPort (connection handshake), maxConnections (total connections, spectators included), registerToLobby (1 = visible in the in-game Server List), lanDiscovery. On a rented server, we set the ports and lobby registration for you.
  • settings.json: server identity and entry gates. Server name, join password (password), admin password (adminPassword), spectator password, car group (FreeForAll, GT3, GT4, GT2, GTC, TCX). It also holds the Safety and Racecraft rating requirements, track medal requirement, race locking, automatic disqualification, formation lap type, and dumpLeaderboards (writes a results file after every session, which you can use for league standings).
  • event.json: the race weekend itself. Track selection, the sessions list, ambient temperature, cloud cover, rain, weather randomness, and the pre-race, post-qualifying, and post-race timers.
  • eventRules.json: league race rules. Pit window length, mandatory pit stop count, refuelling and tyre change requirements, driver stint limits, driver swap rules, and tyre set count. Private Multiplayer only.
  • assistRules.json: assist restrictions. Stability control cap, autosteer, ideal line, automatic lights, wipers, engine start, pit limiter, gears, and clutch. Private Multiplayer only.
  • entrylist.json: your league roster with reserved race numbers, forced cars, ballast, and admin rights. Covered in the Entry List and BoP guide.
  • bop.json: per-track, per-car Balance of Performance. Same guide.

The sessions list in event.json sets up your looping weekend. Each session has a type (practice, qualifying, or race), a duration in minutes and an in-game start hour. It also has a day of the simulated weekend (Friday, Saturday, or Sunday) and a time multiplier. One hard rule from the game itself: the weekend must contain at least one non-race session or the server won't start.

Public vs Private Multiplayer

Setting a join password changes what your server is:

  • Public (no password): visible and joinable by anyone in the Server List. The grid caps at 30 cars and also clamps to the track's pit box count. eventRules.json and assistRules.json are ignored. Rating and medal gates still apply.
  • Private (password set): only people with the password can join. The race rules and assist restriction files take effect, and the car cap can exceed 30 up to the track's private limit (Spa allows 82).

If a race rule seems to be ignored, this is almost always why: the server has no password and is running as Public Multiplayer.

In-game admin commands

With the admin password from settings.json, any connected driver can log in as admin from the in-game chat by typing /admin yourpassword. After that, /next skips to the next session, /restart restarts the current session, and /kick removes a driver.

Related guides