-
-
Notifications
You must be signed in to change notification settings - Fork 72
/
config_ini_default.go
121 lines (114 loc) · 3.95 KB
/
config_ini_default.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
package servermanager
// ConfigIniDefault is the default server config (ish) as supplied via the assetto corsa server.
func ConfigIniDefault() ServerConfig {
return ServerConfig{
GlobalServerConfig: GlobalServerConfig{
Name: "Assetto Corsa Server",
Password: "",
AdminPassword: "",
UDPPort: 9600,
TCPPort: 9600,
HTTPPort: 8081,
ClientSendIntervalInHertz: 18,
SendBufferSize: 0,
ReceiveBufferSize: 0,
KickQuorum: 85,
VotingQuorum: 80,
VoteDuration: 20,
BlacklistMode: 1,
RegisterToLobby: 1,
UDPPluginLocalPort: 0,
PreventWebCrawlers: 0,
UDPPluginAddress: "",
AuthPluginAddress: "",
NumberOfThreads: 2,
ShowRaceNameInServerLobby: 1,
ServerNameTemplate: defaultServerNameTemplate,
ShowContentManagerJoinLink: 1,
SleepTime: 1,
RestartEventOnServerManagerLaunch: 1,
ContentManagerWelcomeMessage: defaultContentManagerDescription,
ShowEventDetailsPopup: true,
},
CurrentRaceConfig: CurrentRaceConfig{
Cars: "lotus_evora_gtc",
Track: "ks_silverstone",
TrackLayout: "gp",
SunAngle: 48,
PickupModeEnabled: 1,
LoopMode: 1,
RaceOverTime: 180,
FuelRate: 100,
DamageMultiplier: 0,
TyreWearRate: 100,
AllowedTyresOut: 3,
ABSAllowed: 1,
TractionControlAllowed: 1,
StabilityControlAllowed: 0,
AutoClutchAllowed: 0,
TyreBlanketsAllowed: 1,
ForceVirtualMirror: 1,
LegalTyres: "H;M;S",
LockedEntryList: 0,
RacePitWindowStart: 0,
RacePitWindowEnd: 0,
ReversedGridRacePositions: 0,
TimeOfDayMultiplier: 0,
QualifyMaxWaitPercentage: 200,
RaceGasPenaltyDisabled: 1,
MaxBallastKilograms: 50,
MaxClients: 18,
StartRule: 2, // drive-thru
RaceExtraLap: 0,
MaxContactsPerKilometer: -1,
ResultScreenTime: 90,
DriverSwapEnabled: 0,
DriverSwapMinTime: 120,
DriverSwapDisqualifyTime: 30,
DriverSwapPenaltyTime: 0,
DriverSwapMinimumNumberOfSwaps: 0,
DriverSwapNotEnoughSwapsPenalty: 0,
Sessions: map[SessionType]*SessionConfig{
SessionTypePractice: {
Name: "Practice",
Time: 10,
IsOpen: 1,
},
SessionTypeQualifying: {
Name: "Qualify",
Time: 10,
IsOpen: 1,
},
SessionTypeRace: {
Name: "Race",
IsOpen: 1,
WaitTime: 60,
Laps: 5,
},
},
DynamicTrack: DynamicTrackConfig{
SessionStart: 100,
Randomness: 0,
SessionTransfer: 100,
LapGain: 10,
},
Weather: map[string]*WeatherConfig{
"WEATHER_0": {
Graphics: "3_clear",
ChampionshipPracticeWeather: weatherAny,
BaseTemperatureAmbient: 26,
BaseTemperatureRoad: 11,
VariationAmbient: 1,
VariationRoad: 1,
WindBaseSpeedMin: 3,
WindBaseSpeedMax: 15,
WindBaseDirection: 30,
WindVariationDirection: 15,
},
},
},
}
}
const defaultServerNameTemplate = "{{ .ServerName }} - {{ .EventName }}"
const defaultContentManagerDescription = "{{ .Track }} {{ with .TrackLayout }}({{ . }}){{ end }} " +
"- an event hosted by {{ .ServerName }}<br><br>{{ .EventDescription }}<br>{{ .ChampionshipPoints }}<br>{{ .CarDownloads }}<br>{{ .TrackDownload }}"