Skip to content

ETS2 (Euro Truck Simulator 2) & ATS (American Truck Simulator) SDK plug-in. Telemetry data is shared via SharedMemory/Memory Mapped Files.

License

Notifications You must be signed in to change notification settings

RenCloud/scs-sdk-plugin

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

fork of nlhans work

SCS Telemetry for EuroTruckSimulator 2 and AmericanTruckSimulator

SCS has kindly released a SDK that allows developers and users to stream telemetry data from the game to any 3rd party applications. An example program was provided (and often used) which enabled streaming data by using text files stored on the users harddisk. This puts unnecessary stress on the users harddrive (not the mention the number of re-writes that would hurt SSDs), and moreover requires the user to manually configure the telemetry data source.

This SDK plug-in transports the telemetry stream via a Memory Mapped File. This is a special Windows (file)stream which resides completely in RAM and can be read from multiple applications.

Installation

Actually you need to build this branch yourself. I will add a release later. Stay tuned for more information.

Installation is easy inside Euro Truck Simulator 2. Place the acquired DLL inside bin/win_x64/plugins/ of your ETS2/ATS installation. It is possible the plugins directory doesn't exists yet (as with every default installation). In that case you need to create the plugins folder. Place the DLL inside the plugins folder.

You will now notice that each time ETS2/ATS now starts it prompts the SDK has been activated. Unfortunately you have to press OK to this message every time, but it's a small price to pay for the added features that are possible via the SDK.

Developers Information

Documentation (not completed at the moment)

There is also an Documentation. It tells a lot about the values. An installation, build , etc. guide will also follow. Should there still be questions, feature request or other changes visit the discord server linked at the top.

Sadly the usage of the documentation generating syntax leads to a lot of warnings, while compiling the c# part. That's because the documentation use < and >. But that's no valid xml. Therefore the compiler cry's 😒 and give the warning about invalid xml. With the help of #pragma it wont show up.

Overview

This plug-in stores it's data inside a Memory Mapped File, or "Shared Memory". This allows it to operate without any access to harddrive, or configuration hassle by the user to locate the memory map.

Rev Numbers

Rev Numbers shows big changes on the shared memory and sometimes on the C# object. That means Rev 10 wont work with Rev 9. Doesn't matter which side is not updated. Sub Versions that you can see in changelog.md should work with small errors or completely without. The C# object is mostly not changed. Only if needed, because of new values (most of the cases) or structure changes (less the case). If this occurs i will notice that. (See changelog.md. If you directly access the shared memory you will find an overview about the changes here.)

Plugin for 1.46/SDK1.14

Lower SDK Version means there are less values / values that are zero. To get an overview which values that are look at the list at the middle of this document. Note to the SDK Version: SDK 1.13 is not the same like the sdk version of ETS2 or ATS. Both games have an own SDK version. See list under ATS. A version number with an asterisk (e.g. 1.46*) indicates that this version is currently in open beta.

ETS2

Game Version SDK Version Plugin State
1.26 and before 1.12 and before Not Tested, could work with errors
1.27 - 1.34 1.13 Should work
1.35 1.14 Should work
1.36 1.15 Should work
- 1.40 1.16 Should work
1.41 - 1.44 1.17 Should work
1.45 - 1.46 1.18 Works, Test Version

ATS

Game Version SDK Version Plugin State
1.34 and before 1.0 Should work
1.35 1.01 Should work
1.36 1.02 Should work
- 1.40 1.03 Should work
1.41 - 1.44 1.04 Should work
1.45 - 1.46 1.05 Works, Test Version

SDK VERSION AND GAME SDK VERSION

SDK VERSION ETS2 SDK Version ATS SDK VERSION
1_1 1.07 -
1_2 1.08 -
1_4 1.10 -
1_5 1.12 -
1_9 1.13 1.00
1_10 1.14 1.01
1_11 1.15 1.02
1_12 1.16 1.03
1_13 1.17 1.04
1_14 1.18 1.05

Telemetry fields and the c# object

The following telemetry fields are supported, structure is similar the C# object. Starting with sdk 1.10, game patch 1.35 and ETS2 1.14, ATS 1.01 code for some part of the need different versions of the sdk. The plugin handles this. If a game lower than 1.35 is used, only the values without (1.14/1.01) are possible:

Edit: for better overview it is now (ETS2 SDK/ATS SDK/Game Version). I added the game version, because it is the same for ats and ets2 and most of you probably doesn't know the specific Game SDK Version.

Changes are marked with the deleted Tag. New stuff is marked with the inserted Tag.

Game Values (V.1.11):
β”‚    β”œβ”€β”€ Telemetry Timestamp (not the in-game time, only for usage in code, see documentation for more information #todo add link) (now ulong)
β”‚    β”œβ”€β”€ Simulation Timestamp
β”‚    β”œβ”€β”€ Render Timestamp
β”‚    β”œβ”€β”€ Multiplayer Time Offset (1.18/1.05/1.45)
β”‚    β”œβ”€β”€ Paused, game state
β”‚    β”œβ”€β”€ SCSGame identifier as enum, currently ets2/ats/unknown
β”‚    β”œβ”€β”€ GameVersion and Game Telemetry Version (major.minor)
β”‚    β”œβ”€β”€ Dll version (usage in code)
β”‚    β”œβ”€β”€ TelemetryVersion
β”‚    β”œβ”€β”€ Substances
β”‚    β”œβ”€β”€ Common Values:
β”‚    β”‚    β”œβ”€β”€ Scale
β”‚    β”‚    β”œβ”€β”€ Game Time (Time object with in-game minutes and datetime object)
β”‚    β”‚    β”œβ”€β”€ NextRestStop (Frequency object, more a time span)
β”‚    β”‚    └── NextRestStopTime (Specific date, calculated)
β”‚    β”œβ”€β”€ Truck Values (Contains 2 big parts, and a small one):
β”‚    β”‚    β”œβ”€β”€ Constants/Configs (Values that barely change):
β”‚    β”‚    β”‚    β”œβ”€β”€ Motor Values:
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Forward Gear Count
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Reverse Gear Count
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Retarder Step Count
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Selector Count
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Engine RPM Max
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Differential Ration
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Gear Ratios Forward
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Gear Ratios Reverse
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Shifter Type Value (Enum)
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ SlotGear
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ SlotHandlePosition
β”‚    β”‚    β”‚    β”‚    └── SlotSelectors
β”‚    β”‚    β”‚    β”œβ”€β”€ Capacity Values:
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Fuel
β”‚    β”‚    β”‚    β”‚    └── Adblue
β”‚    β”‚    β”‚    β”œβ”€β”€ Warning Factors:
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Fuel
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Adblue
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Air Pressure
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Air Pressure Emergency
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Oil Pressure
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Water Temperature
β”‚    β”‚    β”‚    β”‚    └── Battery Voltage
β”‚    β”‚    β”‚    β”œβ”€β”€ Wheels:
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Count
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Radius
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Simulated
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Powered
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Liftable
β”‚    β”‚    β”‚    β”‚    └── Steerable
β”‚    β”‚    β”‚    β”œβ”€β”€ Brand Id (code)
β”‚    β”‚    β”‚    β”œβ”€β”€ Brand
β”‚    β”‚    β”‚    β”œβ”€β”€ Id (code)
β”‚    β”‚    β”‚    β”œβ”€β”€ Name
β”‚    β”‚    β”‚    β”œβ”€β”€ LicensePlate (1.14/1.01/1.35)
β”‚    β”‚    β”‚    β”œβ”€β”€ LicensePlateCountryId (1.14/1.01/1.35)
β”‚    β”‚    β”‚    └── LicensePlateCountry (1.14/1.01/1.35)
β”‚    β”‚    β”œβ”€β”€ Current Values (Values that change a lot):
β”‚    β”‚    β”‚    β”œβ”€β”€ Electric Enabled
β”‚    β”‚    β”‚    β”œβ”€β”€ Engine Enabled
β”‚    β”‚    β”‚    β”œβ”€β”€ LiftAxle (1.17/1.04/1.41)
β”‚    β”‚    β”‚    β”œβ”€β”€ LiftAxleIndicator (1.17/1.04/1.41)
β”‚    β”‚    β”‚    β”œβ”€β”€ TrailerLiftAxle (1.17/1.04/1.41)
β”‚    β”‚    β”‚    β”œβ”€β”€ TrailerLiftAxleIndicator (1.17/1.04/1.41)
β”‚    β”‚    β”‚    β”œβ”€β”€ Motor Values:
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Gear Values:
β”‚    β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ HShifterSlot
β”‚    β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Selected
β”‚    β”‚    β”‚    β”‚    β”‚    └── HShifterSelector
β”‚    β”‚    β”‚    β”‚    └── Brake Values:
β”‚    β”‚    β”‚    β”‚         β”œβ”€β”€ RetarderLevel
β”‚    β”‚    β”‚    β”‚         β”œβ”€β”€ Air Pressure
β”‚    β”‚    β”‚    β”‚         β”œβ”€β”€ Temperature
β”‚    β”‚    β”‚    β”‚         β”œβ”€β”€ Parking Brake
β”‚    β”‚    β”‚    β”‚         └── Motor Brake
β”‚    β”‚    β”‚    β”œβ”€β”€ Dashboard:
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Fuel Values:
β”‚    β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Amount
β”‚    β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Average Consumption
β”‚    β”‚    β”‚    β”‚    β”‚    └── Range (estimated range with current amount of fuel)
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Warnings:
β”‚    β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Air Pressure
β”‚    β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Air Pressure Emergency
β”‚    β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Fuel warning
β”‚    β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Adblue
β”‚    β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ oil pressure
β”‚    β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ adblue
β”‚    β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ water temperature
β”‚    β”‚    β”‚    β”‚    β”‚    └── battery voltage
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Gear Dashboards
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Speed (m/s,km/h,mph)
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ CruiseControlSpeed (m/s,km/h,mph)
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Adblue amount
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Oil Pressure
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Oil Temperature
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Water Temperature
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ BatteryVoltage
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ RPM
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Odometer
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Wipers
β”‚    β”‚    β”‚    β”‚    └── Cruise Control ("special field", same like `CruiseControlspeed == 0`)
β”‚    β”‚    β”‚    β”œβ”€β”€ Acceleration:
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Linear Velocity
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Angular Velocity
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Linear Acceleration
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Angular Acceleration
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Cabin Angular Velocity
β”‚    β”‚    β”‚    β”‚    └── Cabin Angular Acceleration
β”‚    β”‚    β”‚    β”œβ”€β”€ Lights:
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Aux Front (enum for 3 states)
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Aux Roof (enum for 3 states)
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Dashboard Backlight
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Blinker Left Active
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Blinker Right Active
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Blinker Left On
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Blinker Right On
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Parking
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Beam Low
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Beam High
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Beacon
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Brake
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Reverse
β”‚    β”‚    β”‚    β”‚    └── HazardWarningLights (1.17/1.04/1.41)
β”‚    β”‚    β”‚    β”œβ”€β”€ Wheels:
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Substance
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ SuspDeflection
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Velocity
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Steering
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Rotation
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Lift
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Lift Offset
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ on ground
β”‚    β”‚    β”‚    β”‚    └── position
β”‚    β”‚    β”‚    β”œβ”€β”€ Damage:
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Engine
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Transmission
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ Cabin
β”‚    β”‚    β”‚    β”‚    β”œβ”€β”€ chassis
β”‚    β”‚    β”‚    β”‚    └── wheels (avg. of all wheels)
β”‚    β”‚    β”‚    └── Position (position in world space with position and orientation)
β”‚    β”‚    └── Positioning:
β”‚    β”‚         β”œβ”€β”€ Cabin (vehicle space)
β”‚    β”‚         β”œβ”€β”€ Head (cabin space)
β”‚    β”‚         β”œβ”€β”€ Hook (vehicle space)
β”‚    β”‚         β”œβ”€β”€ Head Offset
β”‚    β”‚         β”œβ”€β”€ Cabin Offset
β”‚    β”‚         └── Contains "more fields" see at the bottom of the list
β”‚    β”œβ”€β”€ Trailer Values (will be set to 0, false, etc. if you have no trailer, while on job or with trailer ownership detached wont reset the values)[0-9] (array starting with 1.14/1.01 so 0 for 1 trailer or version lower than that):
β”‚    β”‚    β”œβ”€β”€ Attached
β”‚    β”‚    β”œβ”€β”€ Hook
β”‚    β”‚    β”œβ”€β”€ Position
β”‚    β”‚    β”œβ”€β”€ Wheel Values:
β”‚    β”‚    β”‚    β”œβ”€β”€ Substance
β”‚    β”‚    β”‚    β”œβ”€β”€ SuspDeflection
β”‚    β”‚    β”‚    β”œβ”€β”€ Velocity
β”‚    β”‚    β”‚    β”œβ”€β”€ Steering
β”‚    β”‚    β”‚    β”œβ”€β”€ Rotation
β”‚    β”‚    β”‚    β”œβ”€β”€ On Ground
β”‚    β”‚    β”‚    β”œβ”€β”€ Lift
β”‚    β”‚    β”‚    └── LiftOffset
β”‚    β”‚    β”œβ”€β”€ WheelsConstants:
β”‚    β”‚    β”‚    β”œβ”€β”€ Count
β”‚    β”‚    β”‚    β”œβ”€β”€ Radius
β”‚    β”‚    β”‚    β”œβ”€β”€ Simulated
β”‚    β”‚    β”‚    β”œβ”€β”€ Powered
β”‚    β”‚    β”‚    β”œβ”€β”€ Liftable
β”‚    β”‚    β”‚    └── Steerable
β”‚    β”‚    β”œβ”€β”€ Acceleration:
β”‚    β”‚    β”‚    β”œβ”€β”€ Linear Velocity
β”‚    β”‚    β”‚    β”œβ”€β”€ Angular Velocity
β”‚    β”‚    β”‚    β”œβ”€β”€ Linear Acceleration
β”‚    β”‚    β”‚    └── Angular Acceleration
β”‚    β”‚    β”œβ”€β”€ DamageValues:
β”‚    β”‚    β”‚    β”œβ”€β”€ Cargo (1.14/1.01/1.35)
β”‚    β”‚    β”‚    β”œβ”€β”€ Wheels
β”‚    β”‚    β”‚    └── Chassis
β”‚    β”‚    β”‚    └── Body (1.18/1.05/1.45)
β”‚    β”‚    β”œβ”€β”€ Chassis (code)
β”‚    β”‚    β”œβ”€β”€ Id (code)
β”‚    β”‚    β”œβ”€β”€ Name
β”‚    β”‚    β”œβ”€β”€ CargoAccessoryId
β”‚    β”‚    β”œβ”€β”€ BodyType (1.14/1.01/1.35)
β”‚    β”‚    β”œβ”€β”€ BrandId (1.14/1.01/1.35)
β”‚    β”‚    β”œβ”€β”€ Brand (1.14/1.01/1.35)
β”‚    β”‚    β”œβ”€β”€ Name (1.14/1.01/1.35)
β”‚    β”‚    β”œβ”€β”€ ChainType (1.14/1.01/1.35)
β”‚    β”‚    β”œβ”€β”€ LicensePlate (1.14/1.01/1.35)
β”‚    β”‚    β”œβ”€β”€ LicensePlateCountryId (1.14/1.01/1.35)
β”‚    β”‚    └── LicensePlateCountry (1.14/1.01/1.35)
β”‚    β”œβ”€β”€ Job Values(will be reset after the job finished flag is disappeared):
β”‚    β”‚    β”œβ”€β”€ Delivery Time (time object -> in-game minutes and datetime object)
β”‚    β”‚    β”œβ”€β”€ Remaining Delivery Time (calculated)
β”‚    β”‚    β”œβ”€β”€ CargoLoaded (1.14/1.01/1.35)
β”‚    β”‚    β”œβ”€β”€ SpecialJob (1.14/1.01/1.35)
β”‚    β”‚    β”œβ”€β”€ Market (1.14/1.01/1.35)
β”‚    β”‚    β”œβ”€β”€ City Destination Id (code)
β”‚    β”‚    β”œβ”€β”€ City Destination
β”‚    β”‚    β”œβ”€β”€ Company Destination Id (code)
β”‚    β”‚    β”œβ”€β”€ Company Destination
β”‚    β”‚    β”œβ”€β”€ City Source Id (code)
β”‚    β”‚    β”œβ”€β”€ City Source
β”‚    β”‚    β”œβ”€β”€ Company Source Id (code)
β”‚    β”‚    β”œβ”€β”€ Company Source
β”‚    β”‚    β”œβ”€β”€ Income
β”‚    β”‚    β”œβ”€β”€ Planned Distance Km (1.15/1.02/1.36)
β”‚    β”‚    └── Cargo Values:
β”‚    β”‚         β”œβ”€β”€ Mass
β”‚    β”‚         β”œβ”€β”€ Name (code)
β”‚    β”‚         β”œβ”€β”€ Id (1.14/1.01/1.35)
β”‚    β”‚         β”œβ”€β”€ UnitCount (1.14/1.01/1.35)
β”‚    β”‚         β”œβ”€β”€ UnitMass (1.14/1.01/1.35)
β”‚    β”‚         └── CargoDamage (1.14/1.01/1.35)
β”‚    β”œβ”€β”€ Control Values:
β”‚    β”‚    β”œβ”€β”€ User Input:
β”‚    β”‚    β”‚    β”œβ”€β”€ Steering
β”‚    β”‚    β”‚    β”œβ”€β”€ Throttle
β”‚    β”‚    β”‚    β”œβ”€β”€ Brake
β”‚    β”‚    β”‚    └── Clutch
β”‚    β”‚    └── Game Values:
β”‚    β”‚         β”œβ”€β”€ Steering
β”‚    β”‚         β”œβ”€β”€ Throttle
β”‚    β”‚         β”œβ”€β”€ Brake
β”‚    β”‚         └── Clutch
β”‚    β”œβ”€β”€ Navigation Values:
β”‚    β”‚    β”œβ”€β”€ Navigation Distance
β”‚    β”‚    β”œβ”€β”€ Navigation Time
β”‚    β”‚    └── Speed Limit
β”‚    β”œβ”€β”€ SpecialEvents:
β”‚    β”‚    β”œβ”€β”€ On Job
β”‚    β”‚    β”œβ”€β”€ Job Cancelled (1.14/1.01/1.35)
β”‚    β”‚    β”œβ”€β”€ Job Delivered (1.14/1.01/1.35)
β”‚    β”‚    β”œβ”€β”€ Fined (1.14/1.01/1.35)
β”‚    β”‚    β”œβ”€β”€ Tollgate (1.14/1.01/1.35)
β”‚    β”‚    β”œβ”€β”€ Ferry (1.14/1.01/1.35)
β”‚    β”‚    β”œβ”€β”€ Train (1.14/1.01/1.35)
β”‚    β”‚    β”œβ”€β”€ Refuel Start
β”‚    β”‚    β”œβ”€β”€ Refuel End (Fired on refuel stop)
β”‚    β”‚    └── Refuel Payed (Fired on refuel end/engine start)
β”‚    └── GameplayEvents (1.14/1.01/1.35):
β”‚         β”œβ”€β”€ Refuel:
β”‚         β”‚    └── Amount (No Version note)  (see changelog update 10.4 for some notes to that)
β”‚         β”œβ”€β”€ Cancelled:
β”‚         β”‚    β”œβ”€β”€ Started (This value could be wrong if profile is closed or game is restarted, see changelog update 10.4)
β”‚         β”‚    β”œβ”€β”€ Finished
β”‚         β”‚    └── Penalty
β”‚         β”œβ”€β”€ Delivered:
β”‚         β”‚    β”œβ”€β”€ Started (This value could be wrong if profile is closed or game is restarted, see changelog update 10.4)
β”‚         β”‚    β”œβ”€β”€ Finished>
β”‚         β”‚    β”œβ”€β”€ StartedBackup (See changelog update 10.4 and documentation for notes to that property)
β”‚         β”‚    β”œβ”€β”€ AutoLoaded
β”‚         β”‚    β”œβ”€β”€ AutoParked
β”‚         β”‚    β”œβ”€β”€ CargoDamage
β”‚         β”‚    β”œβ”€β”€ DeliveryTime
β”‚         β”‚    β”œβ”€β”€ DistanceKm
β”‚         β”‚    β”œβ”€β”€ EarnedXp
β”‚         β”‚    └── Revenue
β”‚         β”œβ”€β”€ Fined:
β”‚         β”‚    β”œβ”€β”€ Amount
β”‚         β”‚    └── Offence
β”‚         β”œβ”€β”€ Tollgate:
β”‚         β”‚    └── PayAmount
β”‚         └── Transport:
β”‚              β”œβ”€β”€ PayAmount
β”‚              β”œβ”€β”€ SourceId
β”‚              β”œβ”€β”€ SourceName
β”‚              β”œβ”€β”€ TargetId
β”‚              └── TargedName  

Also there are a few more fields you can use:

Truck.Positioning:
	- Head position in Cabin Space
	- Head position in Vehicle Space
	- Head position in World Space
	- Head Position in World Space 
	- Cabin Position in World Space
	- Hook Position in World Space

Methods:
	- In-game Minutes to Date(Time)
	- Add 2 FVectors
	- Add a FVector and a DVector
	- Rotate: Rotates specified vector by specified orientation 

May I forgot something or there is a missing version information. When you found missing values or something else create an issue that would be great.

The fields are updated as fast as ETS2/ATS can and will do, as this is how the SDK has been designed by SCS. When a telemetry value has changed the SDK will immediately call a handler. This plug-in implements this handler which stores the data to the right field inside the data structure. There is no "sample ticker" yet. This must be done at the client side, by regularly checking if the timestamp has been updated.

Client Implementations

C#

Actually I'm not fully happy with the actual demo. But I didn't reached my plan that works like the old one. Later I will change the current demo so that they will be a lot times better.

Javascript

If you want to use javascript have a look here Kniffen TruckSim-Telemetry.

Other

For other languages you need to create/find a library that can open and read MemoryMapped files. The data storage format is binary and can be found in "scs-telemetry/inc/scs-telemetry-common.hpp". The shared memory map name is "Local\SCSTelemetry". I will add some more documentary in this header later.

Upcoming Changes

There will be some upcoming changes. One changes will probably linux support, which will using tcp on windows and linux. So shared memory would be dropped. Additional, also to still achieve a better performance, changes to when data will be send will be done. Currently data is partly updated and fully parsed on c# side. That will change. The c# side will not parse the full object each time when the changes going live.

About

ETS2 (Euro Truck Simulator 2) & ATS (American Truck Simulator) SDK plug-in. Telemetry data is shared via SharedMemory/Memory Mapped Files.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 42.8%
  • C++ 30.7%
  • C 26.5%