This guide shows you how to set the weather, temperature and time of day on your Assetto Corsa server. You also decide how much grip the track has at the start and how quickly it improves with every lap. Everything lives in cfg/server_cfg.ini. You change the time of day in the panel's guided editor, and weather and track grip directly in the file.
Before you start
- An Assetto Corsa server in your customer panel.
- A recent backup under Backups & recovery. A typo in the file can stop the server from starting.
- The basic setup from Assetto Corsa server setup.
Set the time of day in the panel
- Open Game settings → Server Variables.
- Scroll to the "Server configuration" area and open the "Session" group.
- Set a value between
-80and80in the "Sun angle" field. - Save and restart the server.
The value is the angle of the sun. 0 stands for midday. According to the Assetto Corsa Server Manager, 0 is exactly 13:00 and every hour is 16 degrees. So -80 is 8:00 in the morning and 80 is 18:00 in the evening.
| Sun angle | Time |
|---|---|
-80 |
8:00 |
-48 |
10:00 |
0 |
13:00 |
32 |
15:00 |
80 |
18:00 |
If time should keep moving during the session, also set TIME_OF_DAY_MULT in the [SERVER] section of the file. The Server Manager describes it as the multiplier for the time of day. A higher value makes time pass faster. The editor does not have this field.
Open the file
Open Files & worlds → Files and then cfg/server_cfg.ini. The guided editor only changes its own fields in the [SERVER] section. Every other section you add by hand stays in place when you save in the editor.
Set the weather
The weather lives in the [WEATHER_0] section. If it is missing, add it at the end of the file. An example:
[WEATHER_0]
GRAPHICS=3_clear
BASE_TEMPERATURE_AMBIENT=18
BASE_TEMPERATURE_ROAD=6
VARIATION_AMBIENT=2
VARIATION_ROAD=1
WIND_BASE_SPEED_MIN=0
WIND_BASE_SPEED_MAX=10
WIND_BASE_DIRECTION=90
WIND_VARIATION_DIRECTION=15
What the keys mean, according to the Assetto Corsa Server Manager:
| Key | Meaning |
|---|---|
GRAPHICS |
Exactly one folder name from content/weather. The base game includes for example 1_heavy_fog, 2_light_fog, 3_clear, 4_mid_clear, 5_light_clouds, 6_mid_clouds and 7_heavy_clouds. |
BASE_TEMPERATURE_AMBIENT |
The air temperature. |
BASE_TEMPERATURE_ROAD |
Added to the air temperature, may be negative. |
VARIATION_AMBIENT |
Range of the air temperature. |
VARIATION_ROAD |
Range of the road temperature. |
WIND_BASE_SPEED_MIN and WIND_BASE_SPEED_MAX |
Lowest and highest wind speed of the session. The maximum is 40. |
WIND_BASE_DIRECTION |
Direction the wind points to: 0 is north, 90 is east. |
WIND_VARIATION_DIRECTION |
Deviation from the wind direction to either side. |
With air 18 and a range of 2, the air temperature is between 16 and 20 degrees. With road 6, the road is then between 22 and 26 degrees.
Set the track grip
The [DYNAMIC_TRACK] section controls how the track develops across sessions:
[DYNAMIC_TRACK]
SESSION_START=90
RANDOMNESS=0
SESSION_TRANSFER=50
LAP_GAIN=10
SESSION_STARTis the grip at the start of the session in percent.RANDOMNESSadds a random amount to the starting grip.SESSION_TRANSFERsets how much of the gained grip carries over to the next session. Example from the Server Manager: the session starts at 90 and ends at 96. With50, the next session starts at 93.LAP_GAINis the number of laps after which the track gains 1 percent grip.
Save the file and restart the server.
Common errors
| Problem | Cause |
Fix |
|---|---|---|
| The server no longer starts after saving | A typo in the file, for example a missing square bracket in a section name. |
Check the lines or restore the file from the backup. |
| The weather does not change | GRAPHICS does not name an existing folder from content/weather. |
Copy the folder name exactly, including the number and underscore. |
| The time is wrong | "Sun angle" was converted incorrectly. |
Use the table above: 16 degrees per hour, 0 is 13:00. |
| The track always has the same grip | [DYNAMIC_ is missing or SESSION_ is 100. |
Add the section and pick a lower starting value. |
If an error persists, copy the first error lines from the console and open a support ticket.
Next steps
How to switch sessions as admin and kick drivers is covered in Use admin commands on your server. Need a server first? Order one on the Assetto Corsa order page.