Tracks ​
Add a track to the game, give it lap counts, fuel and tyres for each season, and decide which Grand Prix and Time Trial boxes offer it. Hockenheim, for example, is one tracks::Track record: it starts from a copy of Austria, provides the real circuit venue/hockenheimring, and shows up in every box it fits.
A few terms used on this page:
- A track is a
tracks::Trackrecord: the track's files, its database rows and its names. - A venue is a real circuit, with an id under
venue/that the core owns. Calendars name venues, not tracks. A track provides one or more venues. - A data set is one of the game's sets of track data, such as
f1_2026orsprint_f1_2026. Every track has atracks::TrackDatablock in each set: laps, fuel, tyres, pit lane, names and the weekend's date. - A box is one of the year tiles a player picks in Grand Prix or Time Trial. In code it's a content package.
- The base is the data every year shares. A track an addon adds goes into the base.
Experimental in 1.6.5
The four tracks registries, tracks::tracks (track), tracks::venues (track.venue), tracks::data (track.data) and tracks::per_package (track.per_package), are experimental: each one's status.json is { "status": "experimental", "since": "1.6.5", "feature": "registry_tracks" }, and their shapes can change before they are stable (see Status).
What 1.6.5 ships:
- The four registries, in code and in data files, with their schemas in
packages/sdk/std/registries/. - The stock tracks as records. Every
tracks.Trackrow with assets isgame/<code>withtime_trialtrue, each real circuit isvenue/<key>, and each stock data block isgame/<code>/<data set>. - Tracks made for 1.5 (
track.addinops/) as records<addon id>/<code>. The launcher keeps adding their rows and files, and reports them to the core. - A track record (
registry/track.json, ortracks::tracks.add): the core adds its rows at boot, and the launcher places its files. An added track runs normal weekends in every data set, whatever its base runs; the record'ssprint(in code,extra["sprint"]) lists the data sets in which it runs sprint weekends, such as["f1_2026"]. The record'svideoandtime_trial_video(in code,extra["video"]andextra["time_trial_video"]) are the track's own circuit intro video and Time Trial background, one for every box or one per box. - Each box's track list in the log and in
catalog.json, and a guard on the track select screen that stops a track the box can't run. - The venues table,
packages/sdk/std/data/venues.json: the 39 venues the core seeds, with the names a track made for 1.5 is matched against. - Real calendars in Classic Seasons: each season from 2016 to 2024 registers its calendar as
career.calendarf1_<year>, and its package names it. - An example addon,
templates/std/track: Hockenheim as a track record, in data files and in code, with its tests. - From 1.6.0:
set_track_fuel,copy_track_fuel,restore_track_fuel,tracks::Fuelandsession.fuel.load(tracks::events::FuelLoad).
Not in 1.6.5; their sections describe the design:
track.layer,track.slotsandtrack.ai_line.PackageTrack::worldis stored and not applied.- The
track.data.getpoint,tracks::set_dataandtracks::track_list. The core uses its own track list and data writer. - A career racing each season's real calendar, and Time Trial on added tracks.
The header ​
#include <swofty/registry.hpp>
namespace swofty::tracks {
struct Fuel { float burn_per_lap = 0; }; // TrackGeneralData.fuel_burn_per_lap, kg per lap: the fuel delta, strategy and refuel figure
struct Venue { // track.venue: a real circuit; the core owns the venue/ ids
static constexpr Version version{1, 0};
std::string name; // "Hockenheimring"
std::string country; // "germany"
Ref<Track> track; // resolved: the last enabled track in load order that provides it
json::Value extra;
};
struct TrackNames { // TrackNameData: menus read names here, not from tracks.Track
Text title; // the track's title
Text gp; // the grand prix's name
std::string acronym; // "HOC"
Text city; // the city
};
struct Tyres { std::string softer, medium, harder; }; // TyreData: the dry compounds
struct Pit { int speed_limit = 0; float stop_time_dry = 0, stop_time_wet = 0; }; // TrackPitData
struct Date { int day = 0, month = 0; }; // weekend_day, weekend_month
struct Track { // track: a tracks.Track row, its files, its rows in every data set
static constexpr Version version{1, 2};
std::string code; // its folder and row label, [a-z0-9_]+
std::string name; // shown in logs and the conflicts report
Ref<Track> base; // the track its rows are cloned from, in every data set
Ref<Track> slot; // a dormant stock row to fill (game/sochi); empty: a new row
std::vector<Ref<Venue>> provides; // the real circuits it is
TrackNames names;
Path files; // the folder holding manifest.json, <code>.erp, mipmaps/, ui/
float length_metres = 0;
int corners = 0;
float latitude = 0, longitude = 0;
bool time_trial = false; // offered in Time Trial boxes; stock tracks are true
StatId stat_id = StatId::automatic; // 0 to 254; automatic: from the install's stat-id store
json::Value extra;
};
struct TrackData { // track.data: one TrackData block, id "<track id>/<data set>"
static constexpr Version version{1, 0};
Ref<Track> track;
std::string data_set; // "f1_2026", "sprint_f1_2026", "f1_2025", "classic" ...
int laps = 0; // number_of_laps
Fuel fuel;
Tyres tyres;
Ref<tyres::Class> tyre_class; // stored; tyre.class is not in 1.6.5
Pit pit;
Ref<cars::Vehicle> safety_car; // TrackSafetyCarData.safety_car_vehicle
TrackNames names; // per-set names
Date date; // the weekend's date
json::Value extra;
};
struct PackageTrack { // track.per_package: one box's data for one track, id "<package id>/<key>"
static constexpr Version version{1, 0};
Ref<content::Package> package; // the box's package
Ref<Track> track; // one track; with no venue either: the track whose code ends the id
Ref<Venue> venue; // or a venue: the data goes to whichever track the venue resolves to
bool offered = true; // false: the box leaves this track out
int order = 0; // its place under "More tracks"; 0 keeps the base order
Ref<Layer> world; // stored; track.layer is not in 1.6.5
std::optional<int> laps; // empty fields come from the track's data, layers included
std::optional<Fuel> fuel;
Ref<tyres::Class> tyre_class;
std::optional<Pit> pit;
std::optional<TrackNames> names;
std::optional<Date> date;
json::Value extra;
};
struct LeftOut { Ref<Track> track; std::string reason; }; // "its swofty_f1 world has 20 grid slots; the box runs 22 cars"
struct TrackList { // what a box offers in one mode, as catalog.json writes it
std::vector<Ref<Track>> calendar; // the season's real calendar, in round order
std::vector<Ref<Track>> more; // every other track that fits: "More tracks"
std::vector<LeftOut> left_out; // the tracks that don't fit this box, and why
};
inline Registry<Track> tracks{"track", { .applies = Applies::boot }};
inline Registry<Venue> venues{"track.venue", { .applies = Applies::boot,
.shared = { .provider_registry = "track", .provides = "/provides", .resolved = "/track" } }};
inline Registry<TrackData> data{"track.data", { .applies = Applies::session }};
inline Registry<PackageTrack> per_package{"track.per_package", { .applies = Applies::content }};
Result set_track_fuel(Ref<Track> track, const Fuel &fuel, std::string_view data_set = "f1_2026"); // core ops table v4
Result copy_track_fuel(std::string_view track, std::string_view data_set, std::string_view from, std::string_view why = {}); // "*" is every track
Result restore_track_fuel(std::string_view why = {}); // also done when the career unloads
}
namespace swofty::tracks::events {
struct FuelLoad { // the race fuel lookup at session load (cancel)
static constexpr const char *point = "session.fuel.load";
static constexpr uint32_t version = 1;
enum Kind : uint8_t { practice = 0, qualifying = 1, race = 2, other = 3 };
uint32_t size, payload_version;
const char *track_id;
uint32_t session_type;
float kg; // the race fuel load; before and replace handlers may set it
uint8_t kind;
Ref<Track> track() const { return swofty::detail::payload_ref<Track>(track_id); }
};
}The records and their ids:
track: stock rows aregame/<code>. A dormant stock row (one without assets, such asgame/sochi) is a record aslotcan name, and is offered nowhere. A track made for 1.5 is<addon id>/<code>, listed by each build in$DATA/registry/older-tracks.json; it fills the stock rowgame/<code>when the game ships a row with its code (mod.sochifillsgame/sochi).track.venue:venue/<key>ids, seeded by the core. A track lists the venues it provides inprovides; the venue'strackis the last enabled provider in load order. A stock track provides its real circuit (game/melbourneprovidesvenue/albert_park). Reverse layouts and dormant rows provide nothing.track.data:<track id>/<data set>. The core seedsgame/<code>/<data set>for every stock block. An added track's blocks are variants of its base's, so a layer ongame/austria/f1_2026reachesmod.hockenheim/hockenheim/f1_2026until it sets that field itself.track.per_package:<package id>/<key>, applied while that box is picked and put back when it's left. The core appliesfuel,pit.speed_limitandlaps; the other fields are stored.
track.data applies at boot in 1.6.5: the core writes each block's registered values into the database before it loads. At session load it writes fuel again into the data set the session reads, only for a record whose fuel.burn_per_lap an addon set; a seeded value no addon changed leaves the live value alone, so another writer's fuel for the track stays. A layer added after boot on another field is logged as taking effect at the next start.
The venues ​
The core seeds one track.venue record per entry of packages/sdk/std/data/venues.json: the 32 circuits of the 2016 to 2025 calendars by their Jolpica ids, madrid, the dormant stock hanoi, and the real circuits of community tracks (okayama, buddh, valencia, autopolis, igora_drive).
// packages/sdk/std/data/venues.json
{ "version": 1, "venues": {
"albert_park": { "name": "Albert Park Circuit", "country": "australia", "aliases": ["Albert Park", "Albert Park Grand Prix Circuit", "Melbourne"], "stock": "melbourne" },
"hockenheimring": { "name": "Hockenheimring", "country": "germany", "aliases": ["Hockenheim", "Hockenheimring Baden-Wurttemberg"], "stock": null },
"sepang": { "name": "Sepang International Circuit", "country": "malaysia", "aliases": ["Sepang", "Kuala Lumpur", "Malaysia"], "stock": null }
} }stockis the stock track with assets that provides the venue:game/melbourneprovidesvenue/albert_park. Each of the 25 stock tracks with assets provides one venue. Reverse layouts and dormant rows provide none.nameandaliasesare what a track made for 1.5 is matched against, never its code. Both sides are lower-cased and every run of other characters becomes one space, soSepangmatchesvenue/sepangandPortimaomatchesvenue/portimao. No match, or a match on two venues, leaves the track without a venue.- A venue not in the table can't be named:
venue/ids belong to the core. A new real circuit is a new entry in this file.
Hockenheim, in code ​
Hockenheim is a new track, not a stock slot. It clones Austria's rows in every data set and provides venue/hockenheimring.
- Every data set gets a block, cloned from Austria's as a variant. A variant is a record that inherits another record's values and overrides some of them. A layer, a change to an existing record, on Austria's data reaches Hockenheim until Hockenheim sets that field itself.
- A selector layers every record that matches, here every one of Hockenheim's data blocks. An edit on one set changes that set only.
- The core allocates the stat id, the number the game's database uses for the row. It comes from the install's stat-id store and stays the same at every later start.
- The world keeps the stock counts:
hockenheim_f1_26has 22 grid slots and 11 garages, and the My Team world has 24 and 12. - Time Trial is off.
time_trialstaysfalsefor an added track. Time Trial on added tracks crashes or freezes, and the cause needs reverse engineering. - It ships as an example in
templates/std/track. The data files are the addon,native/src/track.cppis the same records in code, andtrack/standin.shcopies in an archive of your own, since no track art ships. Its tests run both forms and check that they give the same track, venue and data blocks.
#include <swofty/registry.hpp>
#include <swofty/systems/tracks.hpp>
using namespace swofty;
SWOFTY_REGISTER
{
auto hockenheim = tracks::tracks.add("hockenheim", {
.code = "hockenheim",
.name = "Hockenheimring",
.base = tracks::tracks["game/austria"],
.provides = { tracks::venues["venue/hockenheimring"] },
.names = { .title = Text::key("lng_hockenheim_title"), .gp = Text::key("lng_hockenheim_gp"), .acronym = "HOC" },
.files = file("track/"),
.length_metres = 4574, .corners = 17, .latitude = 49.3278f, .longitude = 8.5658f,
});
// every data set: 67 laps, its own fuel and pit lane
tracks::data.layer(under<tracks::TrackData>("mod.hockenheim/hockenheim/"), [](tracks::TrackData &d) {
d.laps = 67;
d.fuel.burn_per_lap = 1.62f;
d.pit.speed_limit = 80;
});
// the 2025 and 2026 sets: the 2019 compounds
for (const char *set : { "f1_2025", "sprint_f1_2025", "f1_2026", "sprint_f1_2026" })
tracks::data.layer(tracks::data[std::string("mod.hockenheim/hockenheim/") + set], [](tracks::TrackData &d) {
d.tyres = { .softer = "C4", .medium = "C3", .harder = "C2" };
});
}
SWOFTY_ADDON()[registry] register: mod.hockenheim (hockenheim.dll) 1 track, 5 layers on track.data (early stage, 0.3 ms)
[registry] track mod.hockenheim/hockenheim: base game/austria, new row, provides venue/hockenheimring
[tracks] hockenheim: stat id 43 (install store, ids.json)
[registry] applied at boot: track 1 (19 data sets cloned from game/austria; 77 asset groups; 1,712 database records)
[registry] applied at session load: track.data mod.hockenheim/hockenheim/f1_2026 (laps 67, fuel 1.62, tyres C4/C3/C2)A calendar that uses it, optionally ​
Classic Seasons 2016 races the 2016 calendar. Round 12 is the German Grand Prix at Hockenheim, which only a track addon provides.
- A round names a venue. It resolves live to the last enabled track in load order that provides the venue, the same way every other contest between addons is decided (see Shared ids).
- A venue a stock track provides is required. Albert Park is always there.
.optional()(?in a data file) drops the round while no enabled track provides the venue. Sochi, Hockenheim and Sepang are optional in 2016..or_else(...)(a|b) names a stand-in instead. Classic Seasons names none, so a round with no track is dropped, not raced elsewhere.- The package names its calendar with
content::Package::calendar, optionally, so a calendar that doesn't resolve leaves the box as it was.
#include <chrono>
#include <swofty/registry.hpp>
#include <swofty/systems/career.hpp>
#include <swofty/systems/tracks.hpp>
using namespace swofty;
SWOFTY_REGISTER
{
using namespace std::chrono;
auto venue = [](const char *id) { return tracks::venues[id]; };
career::calendars.add("f1_2016", { .rounds = {
{ .round = 1, .race = Text::literal("Australian Grand Prix"), .venue = venue("venue/albert_park"),
.date = year{2016} / 3 / 20 },
{ .round = 4, .race = Text::literal("Russian Grand Prix"), .venue = venue("venue/sochi").optional(),
.date = year{2016} / 5 / 1 },
{ .round = 12, .race = Text::literal("German Grand Prix"), .venue = venue("venue/hockenheimring").optional(),
.date = year{2016} / 7 / 31 },
{ .round = 16, .race = Text::literal("Malaysian Grand Prix"), .venue = venue("venue/sepang").optional(),
.date = year{2016} / 10 / 2 },
// and the other 17 rounds
}});
// the package names it (content.cpp): .calendar = career::calendars["swofty.classic-seasons-2016/f1_2016"].optional()
}[registry] career.calendar swofty.classic-seasons-2016/f1_2016: round 12 venue/hockenheimring -> mod.hockenheim/hockenheim
[registry] career.calendar swofty.classic-seasons-2016/f1_2016: round 4 dropped (venue/sochi: no enabled track provides it; optional)
[registry] career.calendar swofty.classic-seasons-2016/f1_2016: round 16 dropped (venue/sepang: no enabled track provides it; optional)Every Classic Seasons season from 2016 to 2024 registers its calendar this way, made by Classic Seasons' calendars.py from Progressive's data/rounds.json: each race of the year in round order, with its name and date. The optional rounds, those at venues no stock track provides:
2016 venue/sochi, venue/hockenheimring, venue/sepang
2017 venue/sochi, venue/sepang
2018 venue/ricard, venue/hockenheimring, venue/sochi
2019 venue/ricard, venue/hockenheimring, venue/sochi
2020 venue/mugello, venue/sochi, venue/nurburgring, venue/portimao, venue/istanbul
2021 venue/portimao, venue/ricard, venue/sochi, venue/istanbul
2022 venue/ricard
2023 none
2024 noneThe same calendar serves boxes and careers:
- A box shows it first in its track list (see the next section).
- A career keeps its own calendar in 1.6.5. In the design, a career can race each season's real calendar. The career wizard offers the choice, and new careers default to real calendars. The core rebuilds the calendar at each season break from that season's calendar (
career::Season::calendar), and drops a round whose venue no enabled track provides.
A guard stops a saved career whose track has gone missing.
The tracks a box offers ​
Every track in the base is offered in every box where it fits. The track select screen shows the box's season first, then the rest:
- The season's real calendar, in round order. The box names its calendar with
content::Package::calendar. A round whose venue no enabled track provides is dropped. - "More tracks": every other track in the base that fits, in the base order. A track an addon adds next month appears here without the box knowing about it.
A track that doesn't fit is left out of that box, with the reason in the log. A track fits a box when all four of these hold:
- World. The track's files hold the world the box's setup mode loads, when other tracks hold it. F1 2012 Season's setup mode
bdx_2012_modeloads its own2012worlds, which it ships for the stock tracks only. A community track such as Mugello is left out of that box. - Grid size. That world, with any extra slots from
tracks::slots, has a grid slot for every car the box runs. Grid size is one boot setting per install, and each box is clamped to it. - AI data. Every car in the box has AI data at the track: an AI line for its
ai_package_folder/asset_filename, and the track'sai_track_difficultiesentry for its package. - Time Trial support. In a Time Trial box, the track is a stock track, a track made for 1.5 or a record track with
time_trialset, and its facts don't saytime_trial: false. - Garages. In a box with a world of its own, that world has a garage and a pit box for every team.
A box with no content.package record, such as an addon's era box, is read from the database the game reads: the core counts the teams and cars of its entrant list (its entrant_list_references included), reads the list's season and takes the setup mode whose entrant setup mode lists it. An addon's own entrant setup mode comes before swofty_f1, which holds every era box's list. A stock box with no record keeps unknown teams and cars, and those rules pass.
Each build writes what the rules read to $DATA/registry/track-facts.json: the track layers of the database the game reads (the runtime database edits the core applies at its early stage included), and per track code the grid slots, garages and pit boxes of each world after the grid extension, each world read at the path its layer's worldEri names, the AI folders (those in the track's archives and those addons place under 2025_asset_groups/environment_package/tracks/<code>/ai/), the ai_track_difficulties packages, whether Time Trial can run there (time_trial_why when not) and, for a track record, the menu lists it has pictures in. A rule with no facts passes and logs [tracks] <code>: no facts (<what>).
{ "version": 1, "profile": "Classic Seasons", "inputs": "3f9a0c2e71d4b8a5", "grid_size": 22,
"layers": [ { "label": "swofty_f1", "setup_modes": ["swofty_f1"], "seasons": ["season_2023"],
"weekend_formats": ["default", "sprint"], "world": "f1_26" } ],
"tracks": { "melbourne": { "worlds": { "f1_26": { "grid": 22, "garages": 11, "pit_boxes": 11 } },
"ai": ["f1_2025/f1_2025_car"], "ai_difficulties": ["f1_2025"], "time_trial": true },
"hockenheim": { "worlds": { "f1_26": { "grid": 22, "garages": 11, "pit_boxes": 11 } },
"ai": ["f1_2025/f1_2025_car"], "ai_difficulties": ["f1_2025"], "time_trial": true,
"ui_lists": ["fe_world.tracks_spline", "tracks.flags_circle"] } } }// what tracks::track_list() does when the player picks a box
tracks::TrackList tracks::track_list(Ref<content::Package> box, events::Mode mode)
{
TrackList list;
auto offer = [&](Ref<Track> track, std::vector<Ref<Track>> &into) {
Fit fit = fits(box, track, mode); // fits.cpp: world, grid size, AI data, Time Trial support
if (fit.ok)
into.push_back(track);
else
list.left_out.push_back({ track, fit.reason });
};
// 1. the season's real calendar, in round order
auto package = content::packages.get(box);
if (auto calendar = career::calendars.get(package->calendar))
for (const career::Round &round : calendar->rounds)
if (auto venue = venues.get(round.venue)) // no enabled provider: the round is dropped
offer(venue->track, list.calendar);
// 2. "More tracks": every other track in the base
for (Ref<Track> track : tracks.all())
if (!contains(list.calendar, track) && offered(box, track)) // PackageTrack::offered and ::order
offer(track, list.more);
return list;
}[tracks] box swofty.classic-seasons-2016/f1_2016 (grand_prix): calendar 20 of 21 rounds (venue/sochi: no track),
more tracks 9; left out game/monaco (its swofty_f1 world has 20 grid slots; the box runs 22 cars)
[tracks] box game/f1_2026 (time_trial): 26 tracks; left out 4 added tracks (no Time Trial support)A venue a calendar repeats, such as 2020's two races at the Red Bull Ring, is listed once and counted as one round. $DATA/registry/catalog.json holds the boxes of the last build that ran, with its profile and build; a box press under another profile or build starts it again. swofty registry tracks prints them for the current profile:
as of the last session of profile Classic Seasons (build 9d7a5f9177e1436d):
box swofty.classic-seasons-2016/f1_2016 (grand prix): calendar 20, more tracks 9, left out 1
calendar: game/melbourne, game/bahrain, game/shanghai, ...
more tracks: game/melbourne_reverse, mod.okayama/okayama, ...
left out game/monaco: its swofty_f1 world has 20 grid slots; the box runs 22 carsThe ui.track_select.build point (ui::events::TrackSelectBuild) fires after the Grand Prix and the championship settings track lists rebuild, and it reports the number of rows only: tracks().count(). A handler cannot read, remove or add a track, because a row holds node references and not the track id. Time Trial's track carousel is not covered: its list builder is not found. The point installs only when an addon subscribes, and it needs the two Trk_*RefreshTrackList bindings to export; where they do not resolve the log says [hooks] ui.track_select.build unavailable. See UI and strings. The screen shows every track in the base in the game's own order. A guard on the screen stops a track that doesn't fit before the session loads:
Monaco can't run in F1 2016
Its grid holds 20 cars. F1 2016 runs 22.
[Back]Mugello can't run in game/bdx_s5_2012
It has no 2012 world, the one game/bdx_s5_2012 loads.
[Back][tracks] box game/bdx_s5_2012: no content.package record; from its entrant list: setup mode bdx_2012_mode, 12 teams, 24 cars
[tracks] guard: mod.mugello/mugello in game/bdx_s5_2012 (grand_prix): refused (its files hold no 2012 world, which the box's bdx_2012_mode layer loads)When the entrant list's counts can't be read, the box logs not fully read (<why>) and the grid rule assumes the grid size as cars, so a track with fewer grid slots is refused instead of passing with no facts.
A box's own world ​
A swofty_f1 box with 11 or 12 teams loads the f1 world, which has 10 garages at every stock track. The core's boot lowering of content.package gives such a box a season and a track layer of its own, so its sessions load an f1_26 world (11 garages) or a My Team world (12). SWOFTY_BOX_WORLDS=0 in the game's environment turns box worlds off. For SWOFTY 2013 (11 teams) the rows are:
[
{ "op": "add-row", "table": "game_setup.seasons", "from": "game_setup.seasons.season[_metadata_=season_2025]",
"set": { "_metadata_": "swofty_box_sw_f1_2013", "statId": "16" } },
{ "op": "list-append", "select": "track_data.game_setup.TrackDataSet_2", "field": "seasons", "value": "swofty_box_sw_f1_2013" },
// ... the same on every seasons list that holds season_2025
{ "op": "add-row", "table": "track_data.track_layers", "from": "track_data.track_layers.TrackLayer[_metadata_=f1_26]",
"set": { "_metadata_": "swofty_box_sw_f1_2013_world", "statId": "21", "game_setup_modes": "swofty_f1",
"seasons": "swofty_box_sw_f1_2013" } }
]and the box's entrant list row gets "season": "swofty_box_sw_f1_2013". The boot log says:
[content] content.package swofty.swofty-seasons-2013/sw_2013: 11 teams, its world holds 10 garages: season swofty_box_sw_f1_2013 (statId 16), layer swofty_box_sw_f1_2013_world (f1_26, 11 garages, statId 21), 38 season lists
[content] content.package swofty.swofty-seasons-2012/sw_2012_tt: 12 teams, its world holds 10 garages: season swofty_box_sw_f1_2012_tt (statId 27), layer swofty_box_sw_f1_2012_tt_world (f1_26_myteam, 12 garages, statId 27), 41 season lists- Which boxes: a
swofty_f1box whose list's layers (setup mode and season) load no world with a garage for each of its teams. A box's Time Trial list (time_trialof its era box) is acontent.packageof its own and is judged on its own teams: SWOFTY 2010 to 2012 give their Grand Prix lists the addon's own season and My Team world, and their Time Trial lists (12 teams, no season of their own) get a box world. With box worlds off, such a list loads thef1world, and the player's car of a team past its garages starts at the world origin with no controls. A 10-team box, a box in an addon's own setup mode, a box whose world already has room (Classic Seasons'swofty_f1layer is anf1_26copy) and every stock list are not changed. A box with more than 12 teams keeps its world and logs it. - The season copies the list's own season (
entrant_list_set.season, orseason_2025) and is appended to everyseasonslist that holds it except the track layer rows: track data sets, drivers' seasonal infos, specialisation sets, branding, practice programmes, schedule track lists, restricted tracks and tyre compound classes. Only the box's layer row lists it, so the box's sessions load that world alone. - Ids: the season id comes from the
content.package.seasonpool (0 to 31, a bit of the layer's season mask) and the layer id fromcontent.package.layer(0 to 255, a u8 the world's name takes). Both are kept inids.jsonlike the other pools. The season pool starts above the highest season id in the database: SWOFTY 2010's own season is 24, so with it installed the pool is 25 to 31, and SWOFTY 2010 to 2016 take six of those seven ids. A full pool leaves the box's world as it is, with a line. - The track list leaves out a track whose box world has fewer garages or pit boxes than the box's teams (the garages rule), with the guard's popup "Its pit lane holds 10 teams. SWOFTY 2013 runs 11."
- When: worlds are picked at each session's settings build, from the database the core edits at boot. The boot's stat-id lines say
box worlds on: …, orbox worlds off (SWOFTY_BOX_WORLDS=0): every box keeps the world its list's layers load.
A world the box names ​
Experimental, off unless SWOFTY_BOX_OWN_WORLDS=1 is in the game's environment (and box worlds are on). A content.package 1.7 record can name the world its sessions load, whatever its team count, so a season box can race on its own version of each track: period buildings, its own trackside boards, its sponsors moved away.
{ "content.package": { "f5_1950": {
"entrant_list": "f5_1950", "season": 1950,
"world": { "name": "e1950", "season": "e1950s",
"branding": { "timing_tower_logo": "lc_f1_1950_logo", "broadcast_show_f1_logo": false } } } } }- The world is
[FILENAME]_<name>at every track: the layer row'sworldAssetGroupisasset_groups/environment_package/tracks/[FILENAME]/wep/[FILENAME]_e1950and itsworldErieaid://environment_package/tracks/[FILENAME]/wep/[FILENAME]_e1950.wep. The addon ships one archive per track,2025_asset_groups/environment_package/tracks/<code>/wep/<code>_e1950.erp, whose World resource has that eaid (a copy of the track's<code>_f1_26.erpwith the World and its event graph renamed works: the names have the same length), and registers its group (file.putandgroup.register, with<code>_f1_26.assetgroupas the template). The garages and grid slots are the archive's own: a copy of anf1_26world has 11. - The rows: a season
swofty_world_<season>copied from the list's season, on every seasons list that holds that season (as for a garage world), a layer rowswofty_world_<season>_worldfor the box's setup mode and that season, copied fromfrom(f1_26, ormyteam_26for 12 teams), and the season on the list row. Withbranding, a rowswofty_world_<season>_brandingcopied frombranding.from(f1_26) for the setup mode and season, withtiming_tower_logo_texture_path(a slice key ofoverrides.osd.timing_tower.timing_tower_logos, the lap counter's F1 logo, which the addon appends with itsoverrides.uidbkey) andbroadcast_show_f1_logo; the season then stays off the stock branding rows, so that row is the only one its sessions match. The branding id comes from thecontent.package.brandingpool (above the highest stockstat_id). - Shared by an era: a season id is a bit of the layer's u32 season mask (0 to 31), and with the SWOFTY seasons installed about seven are free.
world.seasonnames the season the box shares: the first box in load order that names it makes the season, the layer and the branding row, and every later one (its Time Trial list, the other years of the era) only takes the season. Its rows follow the first box's list season and branding. - Tracks without the archive: a layer row has no track criterion (
Trk_TrackData_CollectLayersForQuerymatches the setup mode, season and weekend format masks), so the box's sessions ask for its world at every track, and a group whose archive is missing hangs the session load. At boot the core lists the track folders that hold<code>/wep/<code>_<name>.erp([content] box world e1950: 7 track folder(s) hold <code>_e1950.erp). The box's track list leaves out every other track (the world rule: "It has no e1950 world, the one F1 1950 loads."), and a world no folder holds leaves the box on the world its list's layers load. The track does not fall back to itsf1_26world inside the box: that needs a stand-in archive per track, as an installed track gets. - Lines:
[content] content.package vmknolle.season-1950/f5_1950: world e1950: season swofty_world_e1950s (statId 25, 41 season lists), layer swofty_world_e1950s_world (from f1_26, statId 30, eaid://…_e1950.wep), branding swofty_world_e1950s_branding (from f1_26, stat_id 13); 7 track(s) hold it (austria, melbourne, monaco, monza, silverstone, spa_francorchamps, zandvoort); the box's track list leaves out the rest. A full season pool leaves the box's world as it is, with a line.
A box's own track data ​
A box can also give a track its own data: laps, fuel, tyre class, pit lane, names, date and world version. Each entry is a tracks::PackageTrack.
- Name the venue, not a track code. The data goes to whichever track the venue resolves to: Hockenheim from any author gets it.
- An empty field comes from the base track data, and layers on the base reach every box that doesn't set the field.
offered = falseleaves a track out of the box.orderplaces a track under "More tracks".- A variant package (F1 2017 V10) inherits its base package's track data.
- Any addon can give a box data. A box's entries are the ids
<package id>/<key>and everyper_packagerecord whosepackagenames the box. - It applies when the box is picked. The core writes the box's data into the track data the game reads (
Game_TrackData_GetTrack), and puts it back when the box is left. A Grand Prix box's fuel goes into every data set its setup mode reads when the box is picked, and the session's track again at session load. - The core writes
fuel,pit.speed_limitandlaps.names,date,tyre_classand the pit stop times are stored, and apply once those fields of the game's track data are mapped (see Readiness and limits). fuel.burn_per_lapis the track's fuel-per-lap figure. The game uses it for the MFD fuel delta, the fuel strategy and refuelling. The car's real burn comes from its power unit, and the race's starting fuel stays the same.
#include <swofty/registry.hpp>
#include <swofty/systems/content.hpp>
#include <swofty/systems/tracks.hpp>
using namespace swofty;
SWOFTY_REGISTER
{
auto box = content::packages["swofty.classic-seasons-2016/f1_2016"];
// 2016 data at Hockenheim, whoever provides it; nothing applies while no track does
tracks::per_package.add("f1_2016/hockenheimring", {
.package = box,
.venue = tracks::venues["venue/hockenheimring"],
.laps = 67,
.fuel = tracks::Fuel{ .burn_per_lap = 1.71f },
});
// Monaco's 2016 lap count
tracks::per_package.add("f1_2016/monaco", { .package = box, .track = tracks::tracks["game/monaco"], .laps = 78 });
}[registry] content swofty.classic-seasons-2016/f1_2016 active: 1 scoped change applied
(mod.hockenheim/hockenheim via venue/hockenheimring: fuel 1.71)
[registry] content swofty.classic-seasons-2016/f1_2016 ended: 1 scoped change put back
[registry] content game/f1_2026 active: base track data (mod.hockenheim/hockenheim included)What burn_per_lap changes ​
// registry/fuel.json: Monaco in the F1 2017 box
{
"track.per_package": {
"f1_2017/monaco": { "package": "swofty.classic-seasons-2017/f1_2017", "track": "game/monaco",
"fuel": { "burn_per_lap": 2.5 } }
}
}[tracks] box swofty.classic-seasons-2017/f1_2017: fuel written at the box press: 6 write(s) in 6 set(s) for setup mode 20
[tracks] box swofty.classic-seasons-2017/f1_2017: monaco fuel written in 6 of 6 set(s) (query mode 20, season 7; ...)
[tracks] box fuel: 6 of 6 write(s) put back (the box was left)A 5-lap race at Monaco, read from the game's UDP car status (m_fuelInTank, m_fuelRemainingLaps):
F1 2017 box, burn_per_lap 2.5: start 9.30 kg, fuel delta -1.34 laps (9.30 / 2.5 - 5), burn 1.06 to 1.09 kg per lap
F1 2016 box, stock 1.18: start 9.29 kg, fuel delta +2.78 laps (9.29 / 1.18 - 5), burn 1.08 to 1.12 kg per lap- The fuel delta, strategy and refuelling read
burn_per_lap: the MFD's laps of fuel left, the fuel-for-laps the start sequence sets, the garage refuel and the virtual session's per-lap fuel. - The car's burn comes from its power unit: it burns the stock amount whatever
burn_per_lapsays. The fuel delta drifts back as the game measures the real use during the race. - The starting fuel comes from the track's race fuel rows (
Game_CarSetup_SessionFuelLoad), whichburn_per_lapdoesn't change.
A 2018-only layout addon edits only the 2018 box's entry:
tracks::per_package.layer(tracks::per_package["swofty.classic-seasons-2018/f1_2018/hockenheimring"], [](tracks::PackageTrack &t) {
t.world = tracks::layers["mod.hockenheim-2018/hockenheim_2018"];
});Imported tracks ​
A track imported from a zip, or made for 1.5, is an addon with track.add in ops/track.json. A track record, registry/track.json or tracks::tracks.add, moves its database rows to the core.
- Without a track record,
track.addruns as in 1.5. The launcher adds the rows, places the files and gives the track the stat id after the highest enabled one. It reports each track to the core, which lists it as<addon id>/<code>withtime_trialfalse. - The venue comes from the track's name, never its code.
mod.bahrain24is Sepang,mod.hanoiis Valencia andmod.miami24is Igora Drive. The launcher matches the name against the venues' names. - With a track record,
track.addplaces the files only: the archive, mipmaps, asset groups, UI art, the extra grid slots and the AI line fix. The core clones the base track's rows in every data set at boot, routes the track resource to the track's own asset groups, points itsTrackTexturesat the menu pictures the build made (the facts file'sui_lists), adds the menu entries and names, takes the stat id from the install's store and provides the venue. - Package fixes happen once, at import: stand-in worlds, mip paths, passing space on the AI line.
- Calendars that ask for the venue resolve live.
// the same track, made as an addon with code instead of imported
#include <swofty/registry.hpp>
#include <swofty/systems/tracks.hpp>
using namespace swofty;
SWOFTY_REGISTER
{
tracks::tracks.add("sochi", {
.code = "sochi",
.name = "Sochi Autodrom",
.base = tracks::tracks["game/baku"],
.slot = tracks::tracks["game/sochi"], // the stock row without assets
.provides = { tracks::venues["venue/sochi"] },
.files = file("track/"),
});
for (const char *set : { "f1_2025", "sprint_f1_2025", "f1_2026", "sprint_f1_2026" })
tracks::data.layer(tracks::data[std::string("mod.sochi/sochi/") + set], [](tracks::TrackData &d) {
d.tyres = { .softer = "C5", .medium = "C4", .harder = "C3" };
});
}
SWOFTY_ADDON()[registry] track mod.sochi/sochi: fills game/sochi, base game/baku, provides venue/sochi
[registry] applied at boot: track 1 (19 data sets cloned from game/baku; 77 asset groups added to the manifest;
1,688 database records, 474 changed)Two addons claiming one stock slot is a provider clash. The second is refused at boot, with both named:
[registry] track mod.igora_d/igora: slot game/miami24 is already filled by mod.miami24/igora_drive; refusedTwo tracks that provide the same venue both stay in the base. The venue, and every calendar round that names it, goes to the one later in load order.
Circuit intro video ​
The game plays a circuit intro before a session: the track's map with its corners and DRS zones. It is a pre-rendered Bink 2 video, not a live drawing, so an added track shows its base track's layout unless it brings its own. The Time Trial track select plays a background video of the track as well. A track record can ship both.
A track record's video names a .bk2 file in the addon, and time_trial_video another for the Time Trial track select:
{ "track": { "okayama": { "code": "okayama", "base": "game/melbourne", "files": "track/", "video": "videos/okayama.bk2", "time_trial_video": "videos/okayama-select.bk2" } } }In code, set extra["video"] and extra["time_trial_video"] the same way. The paths are relative to the addon's folder and are not Path fields, so only the build places the files. Each video:
- is a Bink 2 file: its name ends in
.bk2and it starts withKB2. The game's own are 1920x1080, 30 fps, about 16 s and have no audio, about 19 MB each. A shorter one works. - is at most 256 MB.
- is encoded with RAD Video Tools; Make a startup video has the
radvideo64 binkcrecipe. Render the map, corner numbers and DRS zones yourself.
One video per box ​
A string is one video for every box. An object gives a file per box:
{ "track": { "okayama": { "code": "okayama", "base": "game/melbourne", "files": "track/",
"video": { "f1": "videos/okayama.bk2", "f1_2026": "videos/okayama-2026.bk2" },
"time_trial_video": { "f1": "videos/select.bk2", "f1_2026": "videos/select-2026.bk2" } } } }| Key | Boxes | Circuit intro, set by the TrackVideo_N row | Time Trial background |
|---|---|---|---|
f1 | the F1 boxes before 2026 and the other front-end sets without a video folder | videos/track_map/swofty/<addon id>/<code>. | videos/track_select/<code>. |
f1_2026 | the F1 2026 box | videos/track_map/26/swofty/<addon id>/<code>. | videos/track_select/26/<code>. |
| none | F2 boxes | not supported, see below | none: F2 has no Time Trial |
A box without its own key plays f1_2026 then f1 then the string form, so a string covers every box and f1 alone covers both. For the other direction the two fields differ. The track has one TrackVideo row for every box, so a circuit intro with only f1_2026 is played by the other boxes too. A time_trial_video with only f1_2026 shows in the F1 2026 box only. A key whose file can't be used is dropped with a warning and the box falls back to the next key.
The build puts each file in the game folder with the other files it adds, so it is rolled back with them, never replaces a stock video and is part of the build hash. The core sets the track's TrackVideo_N.value, the row the game reads the circuit intro from, to track_map/swofty/<addon id>/<code>.bk2 in the same step that clones the track's rows at boot, and logs one line for the track. A record without a circuit intro leaves the row as it is, so a track with only a time_trial_video plays its base's intro.
[tracks] track mod.okayama/okayama: okayama: circuit intro track_map/swofty/mod.okayama/okayama.bk2 (the track row's TrackVideo was track_map/melbourne.bk2)The build logs one line for each file it places, and one for the row:
okayama: circuit intro /home/me/.../videos/okayama.bk2 (video.f1) goes in videos/track_map/swofty/mod.okayama/okayama.bk2
okayama: circuit intro of the F1 2026 box /home/me/.../videos/okayama-2026.bk2 (video.f1_2026) goes in videos/track_map/26/swofty/mod.okayama/okayama.bk2
okayama: Time Trial background /home/me/.../videos/select.bk2 (time_trial_video.f1) goes in videos/track_select/okayama.bk2
okayama: Time Trial background of the F1 2026 box /home/me/.../videos/select-2026.bk2 (time_trial_video.f1_2026) goes in videos/track_select/26/okayama.bk2
okayama: its TrackVideo row will hold track_map/swofty/mod.okayama/okayama.bk2Every time the game opens a circuit intro through Ne_VideoPlayer_OpenFile, the core logs the path it opened, while any enabled track has a video:
[videos] circuit intro opened: track_map/26/swofty/mod.okayama/okayama.bk2 (an added track's own)The Time Trial background is not logged: the game opens it as a video resource through Ne_VideoManager_OpenVideo, which the core does not hook.
What happens without one ​
- No
video: the track keeps its base'sTrackVideovalue and plays its base's intro. - No
time_trial_video: the game looks forvideos/track_select/<code>.bk2, which doesn't exist for an added track. What the track select shows then is not tested. Time Trial is off for an added track unless its record setstime_trial, so the background only matters for a track that offers it. - A video the build can't use is a build warning, and the track is still added:
track mod.okayama/okayama: video videos/okayama.bk2 is not in the addon; it plays its base track's intro
track mod.okayama/okayama: video.f1_2026 videos/okayama.mp4 is not a .bk2 file; it plays its base track's intro
track mod.okayama/okayama: time_trial_video videos/select.bk2 is not a Bink 2 file (it does not start with KB2); it gets no Time Trial background of its own
track mod.okayama/okayama: video videos/okayama.bk2 is 300 MB, over the 256 MB a circuit intro may be; it plays its base track's intro
track mod.okayama/okayama: video.f3 is not a box key; the keys are f1 and f1_2026; it plays its base track's introHow the game picks them ​
What the game's files and code show, from the F1 25 build on Steam 26566308. Proven is read from the database, the code or a log of the game; inferred is the best reading.
| Finding | |
|---|---|
The circuit intro is the TrackVideo_N row labelled broadcast_video of the track, copied as it is into the view-model string current_track. when the track database loads (Game_Load_TrackDatabaseFull), and broadcast_intros. binds the video player to it | proven |
The F1 2026 box opens track_map/26/melbourne. for the row track_map/melbourne. (a log of the game) | proven for a stock track |
The 26/ is the branding row's video_folder (f1_26 and f2_26 hold 26/, every other row holds nothing), and the other boxes open the row as it is | inferred; the folder itself is proven for the Time Trial background below |
Where 26/ goes in a longer path, so that track_map/swofty/<addon>/<code>. becomes track_map/26/swofty/<addon>/<code>., is not read from the code. The build places the file there | inferred |
The stock files are videos/track_map/<track>. and videos/track_map/26/<track>., 24 and 25 files (Madrid is only in the second, and its row names Catalunya's) | proven, game folder |
F2 intros are videos/track_map/f2/<track>_f2.. No row or database value holds an f2 path or a _f2. name, and the Spa file is spa_f2. where the track is spa_francorchamps, so the name is not made from the row | proven that no row names it, the rule is not found |
The Time Trial background is the video resource track_select, videos/track_select/[BRANDING][TRACK].. The track select screen sets BRANDING to the branding row's video_folder (Game_TrackSelectVM_OnScreenActivated) and the front-end track scene sets TRACK to the file_name of the selected track_data. entry (Ui_FeTrackScene_RefreshCurrentTrack) | proven for the template and BRANDING, TRACK inferred |
An added track's file_name is its code, so its background is videos/track_select/<code>. | inferred |
The stock files are videos/track_select/<track>. and track_select/26/<track>., 28 files each, the three reverse layouts and Madrid among them | proven, game folder |
| Other per-track videos | none found: the other video resources and the branding swipes and stings don't depend on the track |
F2 ​
An F2 intro is not supported, so there is no f2 key: a record that sets one gets a warning and its whole video is ignored. No TrackVideo row or other database value names the F2 file, so there is nothing for the core to point at the addon's file with. The F2 boxes look the file up by a rule the code doesn't show. An added track's row now holds a track_map/swofty/... value, and what the F2 boxes play for it is not tested.
The video and time_trial_video fields, and the object form of both, are in the track schema from 1.3. A string video is valid from 1.2.
Worlds, slots and AI lines ​
Not in 1.6.5: track.layer, track.slots and track.ai_line have no registry yet. This section is the design.
A bigger grid needs more grid slots, garages and pit boxes than a world has. Custom Grid Size provides them per world. Grid size is one boot setting per install, and the core patches the slots for that size into the world archives at boot:
tracks::slots.add("monza_myteam_30", {
.layer = tracks::layers["game/monza/myteam"],
.grid = grid_cs::slots("monza", 30), .garages = grid_cs::garages("monza", 30), .pit_boxes = grid_cs::boxes("monza", 30),
});A layer row gives a track a world for one mode:
// the classic world for Hockenheim
tracks::layers.add("hockenheim_swofty_f1", {
.track = tracks::tracks["mod.hockenheim/hockenheim"], .mode = "swofty_f1",
.world = { "environment_package/tracks/hockenheim", "hockenheim_f1_26" }, .grid = 22, .garages = 11,
});Track data at run time ​
Not in 1.6.5: the track.data.get point and tracks::set_data. This section is the design.
track.data.get is a hot hook point: the game calls it from 110 places. Its handlers run once per track when the core builds the point's table (a box picked, a career loaded, a session loaded), and the game's calls read the table.
// track.data.get: Progressive copies 2025 fuel into the 2026 track objects for a season
events::on<tracks::events::DataGet>().in(events::owner("swofty.progressive"))
.after([](tracks::events::DataGet &g, const events::Context &ctx) {
if (g.data_set == "f1_2026" && ctx.career()->year <= 2025)
g.data.fuel = progressive::fuel_2025(g.track);
});
tracks::set_data(tracks::tracks["game/monaco"], [](tracks::TrackData &d) { d.laps = 78; }); // put back on unload[ops] tracks::set_data game/monaco: laps 50 -> 78 (career 3f2a); put back on career.unloadedReadiness and limits ​
- The four registries are experimental in 1.6.5. Their shapes can change before they are stable.
- Records: stock rows, venues, record tracks and tracks made for 1.5 are records at boot. A record track's rows, names and stat id come from the core; the launcher places its files.
- No tracks registry records, no track made for 1.5: the core seeds the venues and the stock tracks that provide them (without stat ids), so calendars stay valid, and doesn't read the game database for the base. The base is empty, no box list is built and the guard lets every track through.
- Calendars: Classic Seasons 2016 to 2024 name their real calendars. Careers keep their own calendars in 1.6.5.
- Track data at boot:
track.datavalues are written into the database before it loads, so they hold from the first session. At session load the core writes fuel again into the data set the session reads. - A box's own data: fuel.
per_packageappliesfuelwhen the box is picked and puts it back when it's left. The game readsfuel_burn_per_lapfor the MFD fuel delta, the garage refuel, the virtual session's per-lap fuel and a fuel-for-laps set in the start sequence. The car's real burn comes from its power unit, and a race's starting fuel comes from the track's race fuel rows (Game_CarSetup_SessionFuelLoad); a burn per lap changes neither (see Whatburn_per_lapchanges). The reader of the game's track data (TrackDataTrack, 0x290 bytes) is mapped at L1: laps at +0xe0 (a pointer to the database value), weekend month and day at +0xf4 and +0xf8, pit speed limit and stop times at +0x21c to +0x224. Fuel at +0xf0 is L2. The other fields apply once their readers are proven. - A box's own data: pit speed limit.
per_packageappliespit.speed_limit(km/h, above 0 and at most 400) likefuel: at the box press into every track data set the box's setup mode can read, at the session load into the sets the session's query picks, and put back when the box is left. It isTrackDataTrack+0x21c, whichGame_PitLane_GenerateSplines(0x1434ca550) reads when the session builds its pit lane (km/h to m/s). The game's tracks hold 60 to 80. F1 has no pit lane limit before 1994: a box for those years writes a high value (for example 300), so the limiter and the pit lane speed check never bite. How the AI drives a pit lane at such a limit is not tested in game.stop_time_dryandstop_time_wetstay stored.
{ "track.per_package": {
"f1_1960/monza": { "package": "mod.season-1960/f1_1960", "track": "game/monza", "pit": { "speed_limit": 300 } },
"f1_1994/monza": { "package": "mod.season-1994/f1_1994", "track": "game/monza", "pit": { "speed_limit": 80 } }
} }[tracks] box mod.season-1960/f1_1960: pit speed limit written: 6 write(s) in 6 set(s); put back when the box is left
[tracks] box pit speed limit: 6 of 6 write(s) put back (the box was left)- A box's own data: race laps.
per_packageapplieslaps(a whole number from 1 to 999: the race's laps at full race length) likepit.speed_limit, in a Grand Prix box: at the box press and at the session load, put back when the box is left. The race length option the player picks scales from it, as it does from the game's own laps (100 % runslaps, 25 % about a quarter).TrackDataTrack+0xe0 holds the database value slot of the row'snumber_of_laps, not the value (0x142e46e8c), and every reader takes the laps from that value at use (laps = list[race], race 0, 1 or 2 by session type; 0x1417821c0, 0x143695ff0), then scales them by the race length option (0x140af68b0). So the core writes the box's laps into that value's int list (begin +0x10, end +0x18; the list parser 0x1445a4c80). Only sets of the default weekend format are written, since a sprint set's list holds the sprint's laps, and only the list entries that hold the race's laps (the game's lists are57, 57, 57). A set without its ownnumber_of_lapsshares its parent set's value, which is written once. Not tested in game.
{ "track.per_package": {
"f1_1950/silverstone": { "package": "mod.season-1950/f1_1950", "track": "game/silverstone", "laps": 70 }
} }[tracks] box mod.season-1950/f1_1950: race laps written (full race length; the race length option scales them): 3 write(s) in 4 set(s) (silverstone 52 -> 70); put back when the box is left
[tracks] box race laps: 3 of 3 write(s) put back (the box was left)- The box's track list: logged, not shown. The core works out each box's list and writes it to the log and
catalog.json. The track select screen still shows its own list, built from view-model nodes (track_data.track_list,track_info.gm_track_list).ui.track_select.buildsees the Grand Prix and championship settings lists after they are built, as a row count only; Time Trial's carousel builder isn't found, and a handler can't change a list. - The guard: the Grand Prix confirm (
advance_pressed) and the Time Trial confirm (select_pressed) are L2. Refusing the press before the game's handler runs leaves no state behind. - Time Trial: record tracks have
time_trialfalse unless their record sets it. Tracks made for 1.5 run Time Trial unless their facts saytime_trial: false(time_trial_why: none of their files holds a world the track layers load). - Stat ids: the game stores each track record at its stat id and tolerates holes, so a record track's id from 254 down is safe there. Weekends and track data records hold stat ids as one byte, with 0xff for none.
- Stock slots without assets:
paul_ricard,portimao,sochi,hanoi,texas_nat,suzuka_east,bahrain_pad,silverstone_int.bahrain24is empty. - Stack-built keys: a new track must carry
CareerHubFirstVisit_N,CareerHubLastVisit_N,TrackHighlights_NandTrackVideo_N(tools/track_keys.py).TrackVideo_N.valueis the circuit intro's path belowvideos/; a record'svideoreplaces the base's value (circuit intro video); the Time Trial background is no row, the filevideos/track_select/<code>.bk2. - Track data is found by mode mask, and sub-tables inherit from the parent set one table at a time. A session's query names the setup mode and the box's season; with no season, the first set listing the mode wins.
- AI packs are per car folder (
ai_package_folder/asset_filename). A car package with its own AI data, such as F1 1990'sf1_1990, has anai_track_difficulties.<package folder>key only on the tracks it was made for. A missing key reads the miss sentinel, not null. - Worlds:
_f1_26worlds have 22 grid slots and 11 garages,_myteam24 and 12, and_f110 garages. An 11-team box crashed on_f1worlds inSess_Assign_GarageSlotsByPreference. Classic Seasons fixed it with a layer copy off1_26forswofty_f1. - Garage order:
Sess_Assign_GarageSlotsByTeamOrdergives the team at position i of the team order garage i with no bound check, so a team past the world's garage count reads past the garage vector. F1 2012 Season (12 teams) at Mugello, which has no2012world, crashed there. The world rule stops it at the track select. A box with more teams than the world has garages loads: F1 1990's 13 teams ran a Grand Prix and a Time Trial at Shanghai's 11 garages in game on 2026-11-01, and the garage crew and pit box guards leave the extra cars without a crew or a box. - A world the track doesn't hold: the game still loads the session. What it puts in the missing world's place is not reverse engineered. The world rule leaves such a track out. A world no track holds in the facts has no facts and passes.
- Grid slots per track differ. Custom Grid Size's table gives Imola, Singapore and Abu Dhabi 26, and Monaco 28.
- Unknown: the invitational slot limit (8 tracks without the loader), Time Trial on added tracks (crashes or freezes), and the 28-car session-enter crash on community maps.
- Size: a track adds about 1,650 to 1,884 records and changes about 470 to 490. Autopolis alone sets 400.