How to Set Up AI Traffic on an Assetto Corsa Server

Turn a traffic-ready map into a live cruising server by detecting its AI lane, assigning traffic cars, tuning how vehicles spawn and drive, and testing the result.

Assetto Servers Traffic tab showing a detected bundled AI lane and traffic-capable car slots
The Traffic tab keeps AI lane detection, traffic slots, and AssettoServer traffic settings in one workflow.

The quick answer

How do you set up AI traffic on an Assetto Corsa server?

Select a traffic-ready map and its exact layout in Content, then set at least one car entry to AUTO or FIXED. Open Traffic and let the panel scan for fast_lane.ai or fast_lane.aip. Use the bundled lane when one is detected, or upload a custom primary lane. Turn on AI traffic, begin with the default traffic and spawning values, press Apply Traffic Settings, restart the server, and join to test the lane direction, spawn behavior, gaps, and speed.

A working traffic server needs both pieces: a valid primary AI lane for the selected layout and at least one traffic-capable car slot. Enabling the toggle without both will not produce traffic.

Step 1

Choose a traffic-ready map, layout, and car set

Open Content and choose the map, exact layout, and cars for the cruise. Traffic data belongs to a specific layout, so two layouts from the same map can have different AI-lane support.

01

Select the exact layoutChoose the road or traffic layout that contains a usable AI spline.

02

Add lightweight traffic carsUse stable car versions that load reliably and fit the intended road speeds.

03

Keep player cars availableLeave enough normal entries for the people joining the server.

04

Apply the Content selectionSave the map, layout, cars, skins, and entry list before opening Traffic.

Need the content first?

Follow the guides for adding an Assetto Corsa track and adding cars to the server, then return here to configure traffic.

Step 2

Mark traffic-capable car slots in Content

In the Current Entry List, use the AI selector on the rows intended for traffic. The Traffic tab counts AUTO and FIXED entries as traffic-capable slots.

AI valueUse it forTraffic result
AUTOA slot AssettoServer may automatically assign to traffic.Counted under Automatic on the Traffic tab.
FIXEDA slot reserved as a fixed AI entry.Counted under Fixed on the Traffic tab.
Blank or NONEA normal player entry or a slot excluded from AI traffic.Not counted as traffic-capable.
Do not convert every slot without checking capacity

Keep enough entries for players. The Players group also has a Soft player limit that can preserve room for AI when the server becomes busy.

Step 3

Open Traffic and scan the selected layout

Select the Traffic tab. The panel checks the selected layout's AI directory and reports its source and files. Use Re-scan after changing or replacing traffic data.

Traffic tab showing Monza Grand Prix, a detected fast_lane.ai file, and automatic and fixed traffic slots
A green Detected status means the selected layout has a usable primary lane; the slot summary confirms whether cars can spawn as traffic.
01

Detected · BundledThe chosen layout already contains a usable AI lane.

02

Detected · CustomA server-specific uploaded lane is overriding the bundled files.

03

Installing bundled splineThe panel found traffic files in the map archive and is copying them into place.

04

No AI lane detectedThe selected layout needs a custom primary lane before traffic can be enabled.

Step 4

Use the bundled lane or upload a custom AI spline

If the scan detects a bundled lane, use it for the first test. When the layout has no lane—or a custom traffic setup requires different routing—press Upload AI Lane.

  1. 1
    Include one primary lane.

    Upload fast_lane.ai or fast_lane.aip. The primary lane is required.

  2. 2
    Add optional side-road lanes.

    A multi-spline setup can include additional .ai files for connected roads.

  3. 3
    Add the optional traffic config.

    Include config.yml or config.yaml when the spline package was designed with one.

  4. 4
    Confirm the custom status.

    Wait for the upload and verify that the Traffic tab lists the expected primary and side-road files.

A normal racing line is not always a good traffic lane

Traffic maps often use purpose-built splines for multiple road lanes, intersections, or two-way travel. Test the lane package supplied for that exact map and layout.

Step 5

Enable AI traffic and verify the slot summary

Turn on AI traffic only after the status shows a detected lane. Before applying, check that Traffic-capable slots is greater than zero and that the Automatic and Fixed totals match the Content entry list.

Start small

Use a few AI slots and the default density for the first run. Add more cars after the server stays stable and traffic moves cleanly through the full route.

Step 6

Tune traffic flow, spawning, driving, and player behavior

The default AiParams are a safer baseline than changing every field at once. Make one group of changes, apply it, and test before continuing.

Assetto Servers Traffic settings showing traffic flow, spawning, driving behavior, and player controls
Traffic Flow controls density, speed, lane behavior, and direction; the remaining groups control spawning, driving behavior, and interaction with players.
GroupMain controlsFirst adjustment to make
Traffic FlowDensity, maximum speed, speed variation, AI gaps, lane width, two-way traffic, and wrong-way spawning.Set the intended maximum speed and leave density at 1 for the baseline test.
SpawningMinimum and maximum spawn distance, separation, player safety gap, and spawn protection.Increase the player safety gap if vehicles appear too close to drivers.
Driving BehaviorAcceleration, deceleration, cornering, spline height, camber smoothing, and update rate.Keep defaults unless traffic brakes late, corners poorly, or sits above or below the road.
PlayersNo-despawn radius, forward offset, AFK timeout, spline distance, and soft player limit.Use the soft limit when player joins should not consume every traffic slot.
Advanced OverridesHourly density and structured lane, area, and car-specific overrides.Leave these blank until the basic traffic route works.
Higher density is not a simple car-count control

The panel warns that Traffic density values above 1 can be unstable on busy servers. Increase it gradually and watch CPU, memory, collisions, and spawn behavior.

Step 7

Apply Traffic Settings, restart, and test the full route

Press Apply Traffic Settings. The panel writes EnableAi and AiParams to cfg/extra_cfg.yml; the saved changes take effect after the next server restart.

  1. 1
    Restart the server.

    Wait for the server to return online before joining.

  2. 2
    Join as a normal player.

    Drive far enough for traffic to spawn and complete the entire intended route.

  3. 3
    Watch both travel directions.

    Verify two-way and wrong-way behavior only when those options are intentionally enabled.

  4. 4
    Test with multiple players.

    Confirm AI slots remain available and traffic stays stable near more than one driver.

Step 8

Fix common Traffic Tab problems

ProblemLikely causeWhat to do
No AI lane detectedThe exact layout has no fast_lane.ai or fast_lane.aip.Choose the traffic layout or upload its matching primary lane.
Traffic is enabled but no cars appearNo entry uses AUTO or FIXED, or the server was not restarted.Configure traffic-capable slots, apply again, and restart.
Cars drive in the wrong directionThe lane package or direction settings do not match the map.Verify the intended spline and review Two-way traffic and Wrong-way spawning.
Cars spawn too closeSpawn distances or the Player spawn safety gap are too small.Increase the relevant safety values and retest with multiple players.
Traffic disappears after changing the mapTraffic is disabled when the selected map or layout changes for safety.Open Traffic, scan the new layout, verify its lane and slots, then enable and apply again.
Custom lane is worse than the bundled laneThe override was made for another map version or layout.Use Remove Custom Files to restore bundled originals where available, then re-scan.
Separate content errors from traffic errors

If a player cannot join at all, first rule out mismatched cars or maps with the checksum failed troubleshooting guide.

FAQ

Assetto Corsa AI traffic questions

What is fast_lane.ai?

It is the primary AI spline for a track layout. AssettoServer uses that route data to place and move traffic. The Traffic tab also accepts fast_lane.aip.

Does every Assetto Corsa map support traffic?

No. The selected layout needs a compatible primary AI lane, and more complex traffic maps may need side-road splines or a matching config.yml.

What is the difference between bundled and custom traffic files?

Bundled files come from the selected map archive. Custom files are server-specific overrides uploaded through the Traffic tab. Removing a custom override restores backed-up bundled files when they are available.

Why does the Traffic tab show zero traffic-capable slots?

No Content entry is set to AUTO or FIXED. Open Configure Car Slots in Content, change the intended AI rows, apply the Content selection, and return to Traffic.

Can I run two-way traffic?

Yes, but the spline package and layout need to support the intended directions. Enable Two-way traffic only after the one-direction baseline works, then drive the full route in both directions.

Do Traffic settings require a restart?

Yes. Apply Traffic Settings saves the values to cfg/extra_cfg.yml, and they take effect after the next server restart.

Why was traffic disabled when I changed the track layout?

The panel disables traffic after a map or layout change so a spline from the previous selection cannot run on the wrong road. Scan and re-enable traffic for the new layout.

Build a stable traffic server

Start with one lane, a few AI cars, and the defaults

Confirm the baseline route first, then increase density, add side roads, or tune advanced behavior one change at a time.