Skip to content

thomz12/F12020-Telemetry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

F1 2020 Telemetry .NET

Receives and parses all telemetry packets from the F1 2020 game. More info on the packets can be find in the UDP specification: https://forums.codemasters.com/topic/50942-f1-2020-udp-specification/

Nuget

Package is available on Nuget.

Note

UDP telemetry must be turned on in the game for this to work. By default this is turned off. Find the telemetry settings in:

Game Options > Settings > Telemetry Settings In here, turn set UDP Telemetry to On. By default the port is 20777.

Usage

To receive events, you have to create a F12020TelemetryClient. Here's an example:

// Create the client listening on port 20777.
F12020TelemetryClient client = new F12020TelemetryClient(20777);

// Hook to the telemetry event.
client.OnCarTelemetryDataReceive += TelemetryUpdate;

There is also a way to tell when we start and stop receiving updates:

  // Hook to the connection change event.
  client.OnConnectStatusChanged += OnConnectStatusChange;

Example

There is a simple console application example showing the car telemetry data of the player. (See F12020-Telemetry\ConsoleExample)

Alt text

About

Receives telemetry packets from the F1 2020 game.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages