← Portfolio

IBT Loader for ATLAS

A session DLL that lets Motion Applied ATLAS 10 - the same tool my other bridges feed - open iRacing's own .ibt telemetry files directly, no conversion step and no separate app. Rebuilt from an unpublished 1.0.1 build (array and 360Hz channel support, recovered from the DLL itself) merged back onto iRacing's original 2023 source, with four real bugs fixed along the way. A companion tool, IBT Merge, then adds the .ibt-only channels - tyre temps, wheel speeds, Lat/Lon - into a session already recorded live in ATLAS.

A session-loader DLL has no window of its own, and IBT Merge is a native WinForms desktop tool - neither has a browser view to screenshot honestly. Both are described below instead, straight from the source.

The problem it solves

iRacing's own .ibt files carry far more than what ATLAS ever sees live over the Stream API: tyre surface and carcass temperatures, individual wheel speeds, Lat/Lon, and every channel at its full 360Hz sub-sample rate where the live feed only carries 60Hz. iRacing published a loader DLL for ATLAS 10 in 2023 so these files could be opened directly, but it shipped with real bugs - and a later, unpublished 1.0.1 build added array and 360Hz support without ever getting the same fixes. This project starts from that 1.0.1 DLL (decompiled, since its source was never released), merges it with iRacing's original 2023 source, and fixes what was still broken: traces drawn dashed at every zoom level from a rounding error in the channel-interval math, Speed_KPH read 3.6x too high (and FuelLevel_kg / LapDist_m wrong in UK/US units) from double-converting an already-converted value, a crash when ATLAS queried for data past either end of the session, and 360Hz sub-samples timestamped 2.8ms early.

IBT Merge: combining live and file data

A live ATLAS recording only has what the Stream API carried - tyre surface and carcass temperatures, wheel speeds and Lat/Lon usually aren't in it. IBT Merge, the companion WinForms tool in this repo, lines up the .ibt file recorded during that same session and copies the parameters you pick across, so they can be compared against the live data in one workbook rather than two.

What's involved

A real ATLAS session-loader plugin

IBTLoader is exported as [Export(typeof(ISessionLoader))] for the .ibt file type - the same MEF plugin interface McLaren's own sample loaders implement - so ATLAS discovers and opens .ibt files as a native session type, not through a separate import step.

Four real bugs fixed, found by reading the interval math

Dashed traces, a 3.6x unit error, a crash on out-of-range queries, and 360Hz samples landing 2.8ms early - each one traced back to a specific line in the original source (a channel interval rounded down instead of up, a value converted twice, an unbounded binary search, a sub-sample timestamp measured from the wrong end of the tick) rather than patched by trial and error.

Checked against the old DLL, not just eyeballed

tools/IBTLoaderCheck loads a real .ibt file through the new loader the same way ATLAS does, and can load the same file through a second DLL to compare - sample gaps, converted values, 360Hz alignment and out-of-range queries, all checked automatically before a release ships.

A quarter of the memory, on long sessions

Samples are stored as one flat array per channel instead of one small array allocated per sample - a straightforward change, but it matters on a multi-hour endurance session with hundreds of channels at up to 360Hz.

IBT Merge: aligns on SessionTime first, Speed second

Lining a .ibt file up against a live ATLAS recording isn't just matching wall-clock times - rejoins and session changes can put several candidate runs at the same SessionTime, and a rig's clock can simply be wrong. IBT Merge resolves ties with a Pearson correlation of each run's Speed trace against the .ibt's, and once one file lines up correctly, the measured clock error helps align the rest.

One command, or nothing commits at all

tools/Release.ps1 bumps the version, updates the changelog, builds, runs IBTLoaderCheck against your newest .ibt, commits the source, rebuilds so the shipped DLL is stamped with that exact commit, commits the DLL itself, tags and pushes - and if the build or the checks fail, nothing is committed.

Why it's worth trusting

The loader degrades safely rather than guessing: an unknown parameter name returns no data instead of throwing, and the whole prepare step is wrapped so a bad file fails to load quietly rather than crashing ATLAS outright. It also avoids reparsing work it doesn't need to - ATLAS asks to prepare the same file more than once in normal use, and since 1.0.2 a file that's already fully loaded under the same conversion settings is reused rather than parsed again, which matters on a large file. IBT Merge carries the same caution in a different place: it never changes the original live .ssn2, only ever writes a new copy with the .ibt channels added, and reads one merged parameter back before declaring success, so a corrupt merge is caught immediately rather than discovered mid-review days later.

Builds against the SQLRace DLLs inside an actual ATLAS 10 install, so there's no public NuGet feed or redistributable to install instead - and like any unofficial file loader, it reads exactly the registry-configured conversion type and parse-detail settings ATLAS asks for, not anything it decides for itself.