Assetto Corsa Competizione Server Configuration: Difference between revisions
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 | {{#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 | 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 | * '''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>) | * '''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 | * '''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 | 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 | * '''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 | * '''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. | ||
== 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 | 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. | ||
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, anddumpLeaderboards(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.jsonandassistRules.jsonare 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
- How to Create an ACC Server: the setup walkthrough.
- League Race Weekend Guide: turning these settings into a league night.