Codemasters.F1_2020 4.3.3

.NET 5.0 .NET Standard 2.0
Install-Package Codemasters.F1_2020 -Version 4.3.3
dotnet add package Codemasters.F1_2020 --version 4.3.3
<PackageReference Include="Codemasters.F1_2020" Version="4.3.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Codemasters.F1_2020 --version 4.3.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Codemasters.F1_2020, 4.3.3"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Codemasters.F1_2020 as a Cake Addin
#addin nuget:?package=Codemasters.F1_2020&version=4.3.3

// Install Codemasters.F1_2020 as a Cake Tool
#tool nuget:?package=Codemasters.F1_2020&version=4.3.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.


A package of resources for deserializing and analyzing UDP telemetry data from the F1 2020 video game by Codemasters.

The F1 2020 video game will provide to you a UDP data package in the form of a byte array (byte[]). There are several different types of data packets that the game will broadcast. Import the following namespace to use the basic resources for reading data:

using Codemasters.F1_2020;

Every packet type derives from the same base class, Packet. The Packet class contains the following properties:

PacketFormat - Describes the game the packet is from (F1 2020)
GameMajorVersion - The major version of the game at the time of broadcast
GameMinorVersion - The minor version of the game at the time of broadcast
PacketType - The type of packet this data is (i.e. Telemetry, status, lap data, etc.)
UniqueSessionId - The unique ID of your session.
SessioTime - The timestamp of the current session when this packet was recorded and broadcasted.
FrameIdentifier - Which grouping of packets this data belongs to.
PlayerCarIndex - The index of the player's car in field arrays in all corresponding packets.
SecondaryPlayerCarIndex - If you are playing two player (split screen), this will be player 2's index in the field array.

To tell what type of packet any array of bytes that was provided to you is, use the CodemastersToolkit. The bytes variable below would come from your telemetry broadcast, or from a deserialized file if you saved telemetry on disk.

byte[] bytes; //Your telemetry data package
PacketType pt = CodemastersToolkit.GetPacketType(bytes);

Console output of the above: "CarTelemetry"
Since we know that this particular data package is a telemetry packet, we can create a telemetry package:

TelemetryPacket tp = new TelemetryPacket();

The TelemetryPacket class contains an array of CarTelemetryData, one for each car in the field.
As an exmaple, the below code will print the throttle pressure that every driver is applying at the moment this data was broadcasted.

foreach (TelemetryPacket.CarTelemetryData ctd in tp.FieldTelemetryData)

Many of the packets follow a similar format as is seen above with the TelemetryPacket.

Converting all telemetry to packets

You can convert all of the byte array packages that you received. Example:

List<byte[]> telemetry;
Packet[] packets = CodemastersToolkit.BulkConvertByteArraysToPackets(telemetry);

You can then convert each packet from the returned array of packets. For example, converting a Packet to the TelemetryPacket:

foreach (Packet p in packets)
    if (p.PacketType == PacketType.CarTelemetry)
        TelemetryPacket telpack = (TelemetryPacket)p;

Getting a related packet

You may need to, for example, find the accompanying CarStatusPacket for a particular TelemetryPacket. To do this:

TelemetryPacket telpack;
CarStatusPacket csp = (CarStatusPacket)telpack.GetRelatedPacket(packets, PacketType.CarStatus);

**If you previously used the Codemasters.F1_2020.Analysis namespace and now find it missing: The analysis namespace has been moved under the ApexVisual.F1_2020 NuGet package (

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Codemasters.F1_2020:

Package Downloads

Package Description


.NET class library supporting the Apex Visual application

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
4.3.3 1,109 8/14/2021
4.3.2 262 8/13/2021
4.3.1 155 8/13/2021
4.3.0 997 12/18/2020
4.2.0 201 12/16/2020
4.1.0 1,068 12/4/2020
4.0.0 445 11/29/2020
3.0.0 783 11/6/2020
2.0.3 281 10/29/2020
2.0.2 270 9/24/2020
2.0.1 425 9/19/2020
2.0.0 241 9/15/2020
1.4.0 268 9/15/2020
1.3.0 247 9/6/2020
1.2.3 318 8/17/2020
1.2.2 1,017 8/15/2020
1.2.1 362 8/12/2020
1.2.0 331 8/12/2020
1.1.0 398 8/3/2020
1.0.0 313 8/2/2020
0.5.0 642 7/21/2020
0.4.1 280 7/21/2020
0.4.0 301 7/20/2020
0.3.0 283 7/18/2020
0.2.0 275 7/17/2020
0.1.1 266 7/15/2020
0.1.0 303 7/14/2020