{{/* gotype: github.com/cj123/assetto-server-manager.RaceTemplateVars */}} {{ define "title" }} {{ if .IsChampionship }} Championship Event {{ else if .IsRaceWeekend }} Race Weekend Session {{ else }} Custom Race {{ end }} {{ end }} {{ define "content" }} {{ $f := .Current }} {{ $trackInfo := trackInfo $f.Track $f.TrackLayout }}

{{ if .IsChampionship }} Championship Event {{ else if .IsRaceWeekend }} Race Weekend Session {{ else }} Custom Race {{ end }}

{{ if .IsChampionship }}

Configure an Event for the {{ .Championship.Name }} Championship.

{{ else if .IsRaceWeekend }}

Configure a Session for the {{ .RaceWeekend.Name }} Race Weekend.

{{ end }}
Track{{ if not (or .IsChampionship .IsRaceWeekend) }} & Cars {{ end }} {{ if .IsEditing }} {{ if $.IsChampionship }} {{ else if $.IsRaceWeekend }} {{ else }} {{ end }} {{ end }}
{{ with $trackInfo }}
{{ $trackInfo.Pitboxes }}
{{ with $.Championship }}
{{ end }}
{{ end }}
{{ $f.Track }} {{ $f.TrackLayout }}
{{ if not (or .IsChampionship .IsRaceWeekend) }} {{ end }}
{{ if $.IsChampionship }} {{ else if $.IsRaceWeekend }} {{ else }} {{ template "cars" dict "CarOpts" $.CarOpts "Current" $f }} {{ end }}
{{ if and .IsChampionship .ChampionshipHasAtLeastOnceRace }}
Save Championship Race

The setup below this panel is identical to the previous race setup that you just configured. This means that if you are happy with those settings, you can go on to create another race. If not, feel free to scroll down and change the configuration of this race.

When this race is saved, it will be added to the {{ .Championship.Name }} Championship. You can add more races below, or, if you're done creating the championship, you can complete its setup here.

{{ end }}
Session{{ if not $.IsRaceWeekend }}s{{ end }}
{{ if $.IsRaceWeekend }}

{{ else }} {{ end }}
{{ range $index, $sessionType := .AvailableSessions }} {{ $hasSession := $f.HasSession $sessionType }} {{ $session := $f.GetSession $sessionType }}
{{ end }}
{{ if not $.IsRaceWeekend }}
Entry List
Maximum number of clients allowed on the server. {{ if gt $.MaxClientsOverride 0 }} Cannot be greater than {{ $.MaxClientsOverride }}. (This value is restricted by your hosting provider.)
{{ end }}
{{ if not .IsChampionship }}

If set to OFF the server starts in booking mode. Warning: in pickup mode you have to list at least one car in the entry list. Note, when Pickup Mode is OFF, sessions with Loop Mode ON or Reversed Grid Positions will require players to rejoin the server when the server loops or progresses to a second race.

Only players already included in the entry list can join the server

If you add an Entrant once, the next time you add an Entrant, the 'name' input will give you suggestions and auto-populate the Entrant's Name, Team and GUID.

{{ template "entrant" }}
{{ end }}
{{ range $index, $entrant := .CurrentEntrants.AsSlice }}
{{ template "entrant" dict "Entrant" $entrant "IsChampionshipEvent" $.IsChampionship }}
{{ else }}
{{ template "entrant" }}
{{ end }}
{{ if not .IsChampionship }}

Car, Skin, Ballast, Restrictor and Fixed Setup from the last Entrant will be cloned into new Entrants.

{{ end }}

Booking Mode is enabled. You cannot configure specific drivers in the EntryList. Pickup Mode will be disabled.

{{ end }}
Assists



At the start of the session or after a pitstop, tyres will have the the optimal temperature.
Weather
{{ if .SolIsInstalled }}
Allows for 24 hour time cycles. The server treats time differently if enabled. Clients also require Sol and Content Manager {{ else }}

Sol isn't installed. Please upload your Sol weathers if you want to use Sol.

{{ end }}
Min speed of the session possible
Max speed of session possible (max 40)
Base direction of the wind (wind is pointing at); 0 = North, 90 = East etc
Variation (+ or -) of the base direction

Each new session will randomly select its weather configuration from the below options.

{{ $weatherIndex := 0 }} {{ $weatherOptions := .Weather }} {{ range $index, $weather := $f.Weather }}
{{ $weatherIndex }}
This value will be added to the final ambient temp. Value can be negative.
Variation of the ambient's temperature. In this example final ambient's temperature can be 16 or 20
Variation of the road's temperature. Like the ambient one
{{ $weather.TrimName $weather.Graphics }}
{{ $weatherIndex = add $weatherIndex 1 }} {{ end }}
Realism
Fuel usage from 0 (no fuel usage) to XXX (100 is the realistic one)
Damage from 0 (no damage) to 100 (full damage)
Tyre wear from 0 (no tyre wear) to XXX (100 is the realistic one)

Force clients to use Virtual Mirrors (does not work in VR)

Dynamic Track

Dynamic Track Presets
% level of grip at session start
Level of randomness added to the start grip
How much of the gained grip is to be added to the next session 100 -> all the gained grip. Example: difference between starting (90) and ending (96) grip in the session = 6%, with session_transfer = 50 then the next session is going to start with 93.
How many laps are needed to add 1% grip
Rules
The max total of ballast that can be added through the admin command
The number of tyres allowed outside of track limits before a penalty is applied. -1 disables.
Maximum number times you can make contact with another car in 1 kilometer. -1 = no limit. (We had mixed results using this in our testing. Use with caution.)
If race has 3 or less laps then the Teleport penalty is enabled.
{{ if and (not $.IsChampionship) (not $.IsRaceWeekend) }}

The server restarts from the first event after the previous event has finished
{{ end }}
Seconds of result screen between racing sessions

When ON, the track's drs_zones.ini will temporarily be replaced with a file that disables DRS across the entire track. This is useful for tracks which do not have any clearly defined zones, or for if you want to race without DRS! Note: this changes actual track files, so if you're using a multi-server setup pointing to the same content folder, this may cause problems if you're running races at the same track simultaneously.
{{ if $.ShowOverridePasswordCard }}
Password Override

If enabled then the server password will be replaced for this event.
{{ end }} {{ if .IsChampionship }}
Save Championship Event
{{ if .IsEditing }}

This edited setup will overwrite the {{ add .EditingID 1 }}{{ ordinal (add .EditingID 1) }} Event in the {{ .Championship.Name }} Championship.

{{ else }}

When this event is saved, it will be added to the {{ .Championship.Name }} Championship. You can add more events below, or, if you're done creating the Championship, you can complete its setup here.

{{ end }}
{{ if not .IsEditing }} {{ else }} {{ end }}
{{ else if $.IsRaceWeekend }}
Save Race Weekend Session
The parent session specifies the session which is used to build the EntryList for this session. The results output of the parent session (plus any applied filters) forms the starting grid for this session. If "No parent" is chosen, then all other choices will be ignored.
{{ if $.RaceWeekend.HasLinkedChampionship }}

Session Points

Each Race Weekend Session and Championship Class has its own points tally. Practice and Qualifying sessions by default have 0 points, but can have points if you want.

{{ $classCount = 1 }}
{{ range $classID, $points := $.RaceWeekendSession.Points }} {{ $class := $.Championship.ClassByID $classID.String }}
{{ template "points" dict "Points" $points "DefaultPoints" $points "IsEditing" true "IsRaceWeekend" true }}
{{ $classCount = add $classCount 1 }} {{ end }}
{{ end }} {{ if .IsEditing }}

This edited setup will overwrite the {{ add .EditingID 1 }}{{ ordinal (add .EditingID 1) }} Session in the {{ .RaceWeekend.Name }} Race Weekend.

{{ else }}

When this Session is saved, it will be added to the {{ .RaceWeekend.Name }} Race Weekend. You can add more sessions below, or, if you're done creating the Race Weekend, you can complete its setup here.

{{ end }}
{{ if not .IsEditing }} {{ else }} {{ end }}
{{ else }}
Save Custom Race
The name above will be used on the Custom Races page.
{{ if not .IsEditing }}
If these fields are both populated then the race will start at a scheduled time. This date/time is in your timezone ().
Visit RRule Generator to generate a recurrence rule. Leave blank if not required. Only valid alongside scheduled time.
{{ end }}
{{ if not .IsEditing }} {{ else }} {{ end }}
{{ end }}
{{ end }}