Returns an array of all processes. Each array element is an object containing ProcessState
and GameSetting
GET /dedi/
[
{
"ProcessState": {
"Running": false, // true if the server is online
"Port": 0,
"TimePort": 0,
"PlayersOnServer": 0, // amount of players registered
"[TimeLeft](<https://giddy-alarm-4d1.notion.site/dedi-cd685f8db262442f88fa23e7654f366b>)": 0, // Timeleft for this session in milliseconds
"SessionTime": 0,
"[SessionTimeLeft](<https://giddy-alarm-4d1.notion.site/dedi-cd685f8db262442f88fa23e7654f366b>)": 0,
"[CurrentSession](<https://giddy-alarm-4d1.notion.site/dedi-cd685f8db262442f88fa23e7654f366b>)": 0, // Is this right? 0: Practice, 256: Qualifying, 769: Racing, 770: Warmup
"Players": null // Array of Player objects. Ordered by moment the player has joined.
},
"GameSetting": {
"Id": 151853, // ProcessId (to use in e.g. /dedi/id:)
"Name": "test", // the name of the server as it is visible in the game's server browser
"Password": "test", // If set, password required to enter the game. I noticed that you are not alerted by the game if you have entered a wrong password.
"Thumbnail": null,
"Experience": 2481,
"DriveAssistPreset": 0,
"DriveAssistTransmission": -1,
"DriveAssistEsp": -1,
"DriveAssistSteer": -1,
"DriveAssistBrake": -1,
"DriveAssistTractionControl": -1,
"DriveAssistRaceline": -1,
"DriveAssistAutopit": -1,
"TrackLayouts": [
{
"LayoutId": 267,
"EventPackId": 0,
"Sessions": {
"WarmupDuration": 0,
"Qualify": {
"Duration": 3,
"Laps": 0,
"TimeOfDay": 2,
"SessionType": 1
},
"Practice": {
"Duration": 0,
"Laps": 0,
"TimeOfDay": 2,
"SessionType": 1
},
"Race1": {
"Duration": 5,
"Laps": 0,
"TimeOfDay": 2,
"SessionType": 1
},
"Race2": {
"Duration": 0,
"Laps": 0,
"TimeOfDay": 2,
"SessionType": 1
},
"Race3": {
"Duration": 0,
"Laps": 0,
"TimeOfDay": 2,
"SessionType": 1
}
}
}
],
"ReverseStartOrderPlaces": 0,
"Cars": [
252
],
"Liveries": [
257,
1934,
1936,
1937,
1939,
1940,
3306,
3307,
3308,
3309,
3310,
3311,
3314,
3315,
3298,
3299,
3300,
3301,
3302,
3303,
3312,
3313,
3304,
3305
],
"MaxNumOfPlayers": 24,
"FuelUsage": 0,
"TireWear": 0,
"Damage": 0,
"RaceFinishDuration": 30,
"FlagRules": 0,
"CutRules": 0,
"StateReportInterval": 3000,
"KickNonReadyClientsTime": 0,
"CompressionLevel": 3,
"WreckerPrevention": 0,
"MandatoryPitstop": 0,
"NonReadyPitlaneStartDelay": 0,
"StayInPracticeSessionIfEmpty": 0,
"AllowPlayersJoinInQualifying": 1,
"SkipQualifying": 0,
"CheckeredAfterTime": 0,
"MaxPing": 0,
"FixedSetup": 0,
"TimeOfDayMultiplier": 0,
"AdPack": null,
"RankedServer": 0,
"MaxIncidentPoints": 0,
"MinRating": 0,
"MinReputation": 0,
"ScheduleStart": null,
"ScheduleEnd": null,
"ScheduleZone": "Europe/Brussels",
"ScheduleOffset": 0,
"ScheduleRepeat": 0,
"PreventFalseStart": 0,
"RestartRequested": null
}
},
{
"ProcessState": {
"Running": false,
"Port": 0,
"TimePort": 0,
"PlayersOnServer": 0,
"TimeLeft": 0,
"SessionTime": 0,
"SessionTimeLeft": 0,
"CurrentSession": 0,
"Players": null
},
"GameSetting": {
"Id": 152339,
"Name": "DollarRacing.club EU server stress test",
"Password": "",
"Thumbnail": null,
"Experience": 2481,
"DriveAssistPreset": 3,
"DriveAssistTransmission": -1,
"DriveAssistEsp": -1,
"DriveAssistSteer": -1,
"DriveAssistBrake": -1,
"DriveAssistTractionControl": -1,
"DriveAssistRaceline": -1,
"DriveAssistAutopit": -1,
"TrackLayouts": [
{
"LayoutId": 264,
"EventPackId": 0,
"Sessions": {
"WarmupDuration": 0,
"Qualify": {
"Duration": 10,
"Laps": 0,
"TimeOfDay": 2,
"SessionType": 1
},
"Practice": {
"Duration": 10,
"Laps": 0,
"TimeOfDay": 2,
"SessionType": 1
},
"Race1": {
"Duration": 15,
"Laps": 0,
"TimeOfDay": 2,
"SessionType": 1
},
"Race2": {
"Duration": 0,
"Laps": 0,
"TimeOfDay": 2,
"SessionType": 1
},
"Race3": {
"Duration": 0,
"Laps": 0,
"TimeOfDay": 2,
"SessionType": 1
}
}
},
{
"LayoutId": 1778,
"EventPackId": 0,
"Sessions": {
"WarmupDuration": 0,
"Qualify": {
"Duration": 10,
"Laps": 0,
"TimeOfDay": 2,
"SessionType": 1
},
"Practice": {
"Duration": 10,
"Laps": 0,
"TimeOfDay": 2,
"SessionType": 1
},
"Race1": {
"Duration": 15,
"Laps": 0,
"TimeOfDay": 2,
"SessionType": 1
},
"Race2": {
"Duration": 0,
"Laps": 0,
"TimeOfDay": 2,
"SessionType": 1
},
"Race3": {
"Duration": 0,
"Laps": 0,
"TimeOfDay": 2,
"SessionType": 1
}
}
}
],
"ReverseStartOrderPlaces": 0,
"Cars": [
252
],
"Liveries": [
257,
1934,
1936,
1937,
1939,
1940,
3306,
3307,
3308,
3309,
3310,
3311,
3314,
3315,
3298,
3299,
3300,
3301,
3302,
3303,
3312,
3313,
3304,
3305
],
"MaxNumOfPlayers": 36,
"FuelUsage": 1,
"TireWear": 1,
"Damage": 2,
"RaceFinishDuration": 30,
"FlagRules": 3,
"CutRules": 3,
"StateReportInterval": 3000,
"KickNonReadyClientsTime": 0,
"CompressionLevel": 3,
"WreckerPrevention": 1,
"MandatoryPitstop": 0,
"NonReadyPitlaneStartDelay": 0,
"StayInPracticeSessionIfEmpty": 0,
"AllowPlayersJoinInQualifying": 1,
"SkipQualifying": 0,
"CheckeredAfterTime": 0,
"MaxPing": 0,
"FixedSetup": 1,
"TimeOfDayMultiplier": 3,
"AdPack": null,
"RankedServer": 0,
"MaxIncidentPoints": 0,
"MinRating": 0,
"MinReputation": 0,
"ScheduleStart": null,
"ScheduleEnd": null,
"ScheduleZone": "Europe/Brussels",
"ScheduleOffset": 0,
"ScheduleRepeat": 0,
"PreventFalseStart": 1,
"RestartRequested": null
}
},
{
"ProcessState": {
"Running": false,
"Port": 0,
"TimePort": 0,
"PlayersOnServer": 0,
"TimeLeft": 0,
"SessionTime": 0,
"SessionTimeLeft": 0,
"CurrentSession": 0,
"Players": null
},
"GameSetting": {
"Id": 152340,
"Name": "DollarRacing.club EU server stress test",
"Password": "",
"Thumbnail": null,
"Experience": 2481,
"DriveAssistPreset": 3,
"DriveAssistTransmission": -1,
"DriveAssistEsp": -1,
"DriveAssistSteer": -1,
"DriveAssistBrake": -1,
"DriveAssistTractionControl": -1,
"DriveAssistRaceline": -1,
"DriveAssistAutopit": -1,
"TrackLayouts": [
{
"LayoutId": 264,
"EventPackId": 0,
"Sessions": {
"WarmupDuration": 0,
"Qualify": {
"Duration": 10,
"Laps": 0,
"TimeOfDay": 2,
"SessionType": 1
},
"Practice": {
"Duration": 10,
"Laps": 0,
"TimeOfDay": 2,
"SessionType": 1
},
"Race1": {
"Duration": 15,
"Laps": 0,
"TimeOfDay": 2,
"SessionType": 1
},
"Race2": {
"Duration": 0,
"Laps": 0,
"TimeOfDay": 2,
"SessionType": 1
},
"Race3": {
"Duration": 0,
"Laps": 0,
"TimeOfDay": 2,
"SessionType": 1
}
}
},
{
"LayoutId": 1778,
"EventPackId": 0,
"Sessions": {
"WarmupDuration": 0,
"Qualify": {
"Duration": 10,
"Laps": 0,
"TimeOfDay": 2,
"SessionType": 1
},
"Practice": {
"Duration": 10,
"Laps": 0,
"TimeOfDay": 2,
"SessionType": 1
},
"Race1": {
"Duration": 15,
"Laps": 0,
"TimeOfDay": 2,
"SessionType": 1
},
"Race2": {
"Duration": 0,
"Laps": 0,
"TimeOfDay": 2,
"SessionType": 1
},
"Race3": {
"Duration": 0,
"Laps": 0,
"TimeOfDay": 2,
"SessionType": 1
}
}
}
],
"ReverseStartOrderPlaces": 0,
"Cars": [
252
],
"Liveries": [
257,
1934,
1936,
1937,
1939,
1940,
3306,
3307,
3308,
3309,
3310,
3311,
3314,
3315,
3298,
3299,
3300,
3301,
3302,
3303,
3312,
3313,
3304,
3305
],
"MaxNumOfPlayers": 36,
"FuelUsage": 1,
"TireWear": 1,
"Damage": 2,
"RaceFinishDuration": 30,
"FlagRules": 3,
"CutRules": 3,
"StateReportInterval": 3000,
"KickNonReadyClientsTime": 0,
"CompressionLevel": 3,
"WreckerPrevention": 1,
"MandatoryPitstop": 0,
"NonReadyPitlaneStartDelay": 0,
"StayInPracticeSessionIfEmpty": 0,
"AllowPlayersJoinInQualifying": 1,
"SkipQualifying": 0,
"CheckeredAfterTime": 0,
"MaxPing": 0,
"FixedSetup": 1,
"TimeOfDayMultiplier": 3,
"AdPack": null,
"RankedServer": 0,
"MaxIncidentPoints": 0,
"MinRating": 0,
"MinReputation": 0,
"ScheduleStart": null,
"ScheduleEnd": null,
"ScheduleZone": "Europe/Brussels",
"ScheduleOffset": 0,
"ScheduleRepeat": 0,
"PreventFalseStart": 1,
"RestartRequested": null
}
}
]
What is the difference between ProcessState.TimeLeft
and ProcessState.SessionTimeLeft
?
What are the different values?
Create a game session (a new Process). Returns an object containing the ProcessId
of the session created.