How tracks are installed ​

A track is installed by a track.add operation: at each build, activation clones a base track's database rows, installs the track's archive and adds its menu entries.

A track activation in full ​

json
{
  "schema_version": 1,
  "ops": [
    { "op": "track.add", "source": "track" }
  ]
}

source is a folder in the addon that holds an unpacked track package: manifest.json, the track's .erp, mipmaps/ and ui/. The Simplified Importer writes this file into every track addon it makes (The addon's id). A data addon can list track.add in an assets file too (A track with its own name).

sh
swofty build
text
okayama: track data: okayama cloned from melbourne in 19 dataset(s): f1, f2, classic, f1_2023, sprint_f1_2023, f1_2024, sprint_f1_2024, f2_2023, f1_2025, sprint_f1_2025, f2_2024, multiclass, sprint_multiclass, f2_2025_sprint, f2_2025, f1_2026, sprint_f1_2026, f2_2026_sprint, f2_2026
runtime: swofty/assets.json with 77 asset group(s), 0 resource(s), 0 database edit(s), 0 language table(s), 0 overlay file(s)
  • Both swofty build and swofty apply activate every track.add, in load order, before the other database ops. Those ops can't remove the records activation adds; see Removing stock records.
  • Two track.add ops with one track code fail the build and name both addons: track okayama is added by both mod.okayama and mod.okayama-night; turn one of them off on the Addons page.
  • Mods in the importer's library that haven't converted yet get a track.add from the importer's build hook instead, with the source library/<id>/track in Team Simplified's addon-data folder.
  • The code is in packages/core/src/games/f1_25/activation/.

For playing with tracks, see Simplified Importer.

The track archive ​

Putting a track's archive in place isn't enough: the game only loads an asset group when its asset manifest (fileList.manifest) lists it. A listed group asset_groups/<path>.assetgroup points to the file 2025_asset_groups/<path>.erp. Your new track's own paths, such as environment_package/tracks/okayama/wep/okayama_common.assetgroup, aren't on that list.

How the build handles this depends on the in-game core. When its features.json has group, the package's <code>.erp is added at its natural path, 2025_asset_groups/environment_package/tracks/<code>/<code>.erp. Then swofty/assets.json registers these groups for it at runtime:

  • the main group, asset_groups/environment_package/tracks/<code>/<code>.assetgroup;
  • wep/<code>_<variant> for every world in the archive, stand-ins included;
  • the 2019 template groups bake/<code>_ao.bake, bake/<code>_light_list.bake, bake/<code>_radiance.bake, probes/config.ddgi and probes/key_2019;
  • probes/probes_garage_<nn> for every garage probe set in the archive;
  • ai/<vehicle_package>/<team>/<team> for every AI team folder in the archive;
  • the worldAssetGroup of every track layer row (track_data.track_layers) whose [FILENAME] world lies outside the game's own environment_package worlds, such as <package>/tracks/<code>/wep/<code>_<variant>, unless an addon registers that group itself.

The game's track lists hold 64 tracks: the 35 stock tracks with a TrackData row in some dataset (madrid isn't listed) and 29 added ones. A track takes a place when its base track has TrackData; a track that replaces a listed stock track takes none. A 65th track stops F1 25 at a black screen after the EA logo. A build keeps the tracks in load order until the lists are full and leaves out the rest:

text
warning: Too many tracks: 7 track(s) are left out of this build because the game has room for 64 tracks, 35 of its own and 29 added ones, and more stop it at a black screen after the EA logo: Mugello, Okayama, ... Turn some track addons off to play them
warning: Mugello (mod.mugello): track Mugello is left out; the game has room for 64 tracks, 35 of its own and 29 added ones, and the track addons before it in the load order fill them. Turn some track addons off to make room for it

Tracks from track records take their places first: the core adds their rows in game.

Play shows the same count and the first four names as a warning titled Too many tracks, and the Addons page marks each addon that loses a track with Left out: the game holds 64 tracks. The check runs when Play is pressed, so the marker follows the last Play.

The check fits the tracks of the on addons' op files and track records the way a build fits them, without building the profile or starting any addon's program. A track that an addon's program adds while the profile builds counts in the build's notice only.

A change from any addon to a row of a left-out track is skipped, and the rest of the profile still loads:

text
warning: Classic Career: change skipped: track_data.game_setup.TrackDataSet[_metadata_=f1_2026].TrackData[_metadata_=anderst]: no row matches in track_data.game_setup.TrackDataSet_16.TrackData; it changes track Anderstorp, which is left out of this build because the game has room for 64 tracks. Turn some track addons off to make room for it

Otherwise, the build puts the package's whole <code>.erp into an existing invitational event slot, 2025_asset_groups/ui_package/texture_arrays/invitational_events/event_images/invitational_image_<n>.erp, alongside the slot's own pictures. Your profile's tracks take invitational_image_4, _10, _13 to _18 in order. That leaves room for at most eight enabled tracks; a ninth fails the build with at most 8 tracks can be enabled at once.

The build also fills gaps in the archive:

  • For each variant world the package lacks (classic, f2_previous, ...), it copies the nearest world the package has as a stand-in.

  • For each such track layer world the archive lacks, it copies the archive's f1_26_myteam world (or the nearest world it has) under the layer's worldEri name, with <code> for [FILENAME]. An archive world of the same variant in the track's own environment_package folder comes first.

  • For each AI team an addon adds by copying another team's row in ai.asset_data.<vehicle_package> (an add-row), when no addon supplies that team's group at the track, it copies the archive's ai/<vehicle_package>/<donor>/ resources as ai/<vehicle_package>/<team>/, with the donor's name in them changed to the team's. Without them the game finds no AI data for the team at the track: every tyre lasts 0 laps in practice and qualifying, and no AI car leaves the garage. The build log names each stand-in:

    text
    delhi: AI data for f1_2025_vehicle_package/cater stands in with the track's f1_2025_vehicle_package/lotus

    A resource the build can't read as a !pkg document is copied as it is. A track with no AI data for the donor gets none for the team either, and the build notes it.

  • For each team of an addon's own AI folder, when no addon supplies that team's group at the track, it copies the archive's stock ai/f1_2025_vehicle_package/<team>/ resources as ai/<folder>/<team>/. An addon's own folder is an ai_package_folder that the built database's vehicle packages name and the game's own database doesn't, such as SWOFTY 2012's sw_2012_vehicle_package. Its teams are the rows of ai.asset_data.<folder>. A team whose row an add-row copies from another team takes that team's stock data, and a team with no stock folder at the track (SWOFTY 2012's cater, marus and hrt12) takes Lotus's, with lotus in them changed to the team's name. Without them the season's cars have no AI data at the track. The build log has one line per folder:

    text
    hockenheim: AI data for 12 teams of sw_2012_vehicle_package stands in with the track's f1_2025_vehicle_package data of the team of the same name; cater, hrt12, marus with lotus's
  • It points texture mip paths at environment_package/tracks/<code>/mipmaps/<file> and adds the files from the package's mipmaps/ there.

  • It gives every route of the AI racing line (<code>_ai_track.aispline) a change of passing space. F1 25 sorts each gate of a route into space on the left, on the right or on both sides from its white lines and the stock ai_track_config.space_lines settings, and crashes when an AI car drives a route without a single change, such as a pit lane drawn at one width. On such a route the build moves one white line at a gate no other route uses.

  • It makes room for the most cars the track can field if that is more than the f1_26_myteam world (with the common world) has grid slots, garages or pit boxes. The count is the larger of the built database's f1_2026 grid list and the highest max_entrants among the entrant setup modes of the game setup modes of the track layer rows whose world the track's archive lacks (values below 1 are ignored). The layer holding the last grid slot gets copies of the last slot, garage, in-garage spot and pit box. Each copy goes one row or bay beyond the two before it. Without two slots, garages or boxes to work out the spacing from, the build warns you that a Grand Prix there with that many cars crashes.

The database ​

  • tracks.Track_<n>: for a new code, copy_slot clones the slot track's row with a new statId. If the code already has a row (bahrain24), it keeps it. Your track_overrides apply here. The row's nationality must name an entrants.nationality row (usa, britain, uae, japan...): F1 25 reads that row at boot without checking that it exists, so a label such as united_states crashes the game before the menu. The build sets such a label to default and warns:

    text
    nycsgp: nationality united_states is not an entrants.nationality row, default used

    The clone carries ai_track_difficulties for the game's own AI folders. For each addon's own AI folder the row lacks, the build copies the row's f1_2025_vehicle_package values:

    text
    hockenheim: AI difficulty for sw_2012_vehicle_package stands in with the track's f1_2025_vehicle_package
  • tracks.track_resource.TrackResource_<n>: the track's resource row is cloned as swofty_<code>. On the natural route, its group fields use the 2019 template values with [FILENAME] = <code>: iblAssetGroupsRoot is asset_groups/environment_package/tracks/<code>/probes/ and iblKey is key_2019.assetgroup. trackMapAssetGroup names the main group. On the slot route, every asset group points to the track's slot. The track row's track_resource names the cloned row.

  • Per-track tables (per-race DNFs, pit lane splines and slide settings, practice programmes for 2025 and 2026, tyre wear and tyre wear scales, specialist objectives, track trivia, replay hero shots): if your code has no row, it gets a clone of the slot track's row, or the base track's when the slot has none. A new code always needs the per-race DNF row: the game reads it without checking that it exists.

  • <datasets>.TrackDataSet_<i>.TrackData_<j>: copy_from_track, or copy_slot when the package has no copy_from_track, clones the base track's row and its sub-tables in every dataset that has it; for a new code, the copy is the dataset's last row. The copy's _metadata_, track and TrackNameData_0.file_name become the code. track_data.game_setup.TrackDataSet[_metadata_=f1_2026].TrackData[_metadata_=<code>] selects the copy in the f1_2026 dataset. Your overrides apply here, limited to their datasets.

  • TrackAuthenticWeekendData_<n>.weekend_format in those rows: default, a normal weekend, in every data set, whatever the base track has. A data set named in activation.sprint gets sprint. A code that already has a row in the data set keeps that row's format. A data set where the base has no such row gives your track none either, and the game takes the format from the data set's parent_data_set (f1_2026 from f1).

  • Content sets' available_tracks: the code is added wherever the base track is listed, putting your track in the Grand Prix track list.

  • track_data.sorted_track_order: gets a TrackRef row for the code.

A new track row's statId is kept in $DATA/registry/row-ids.json under <addon>/tracks.Track/<code>, the file that keeps the ids of add-row copies (Kept ids). A career's calendar stores that id, so the track keeps it whichever other tracks are on:

text
$ swofty registry row-ids mod.sokol
mod.sokol: 1 added row(s) keep these stat ids
  tracks.Track/sokol   48  kept, seeded from a profile's last build or a game session from before 1.6.10

The game reads a track's statId as one byte, so at most 255 tracks (stock ones included) are on at once. More can be installed. Telemetry does not depend on the statId: an added track reports its Swofty track id, the same on every PC.

  • A track the file has no id for takes the id the profile's last build gave it (older-tracks.json), else the first free id above the table's highest, up to 254, the highest the game reads.

  • A track that is off keeps its id while any id is free. No other track takes it, so a calendar that names it never lands on a different circuit.

  • When every id up to 254 is kept for some track, a new track takes the lowest id kept for a track whose addon is off. A track whose addon is on never gives its id up. The build line names the track that lost its id:

    text
    stat id 37 (every id is kept; this one was tracks.Track/sokol of mod.sokol, whose addon is off)

    A saved calendar that named the track that is off shows the new track from then on. The track that is off takes a free id, or another off track's id, when it is turned on again. When every id belongs to a track that is on, the build fails with tracks have no free statId up to 254.

  • A kept id that a row of the database now holds moves to the next free id.

  • A career whose calendar holds a track stat id with no row loads into a crash. The crash dialog then names the track addon to turn back on.

Each clone copies all source-row keys listed in track_tables.json, plus any keys named by your manifest's overrides. The table's _<row>_instancecount_ grows by one.

A database mod built from a whole game database sets the records it holds to its own copy's values. Where that is the game's own value of a record a track changes, the track's value stays, and a track list the mod rewrites keeps the tracks added to it.

Some sub-table names in F1_25.exe exist only as strings built on the stack. To collect every name the game-DB readers use, including those stack-built names, use tools/track_keys.py.

  • The build appends flags, previews and splines from ui/images.json as slices to the texture arrays named in overrides.uidb. Every UI archive carrying an array gets the same slices. Your track's TrackTextures rows then name overrides.<list>.<code>.
  • The three track-select scenes and the session picture go into invitational_image_2. They're named in ui_dynamic_texture_loading.uidta.
  • Your ui/minimap.json becomes an entry in minimap.uidb, in both databases.erp and flow_race.erp. Its textures load from the track's main group, or from its slot on the slot route.

ERS ​

You won't find your manifest's ers values in the database. They go into per-track TrackSettings entries in the car handling files: every 2026 handling file gets an entry for your code, cloned from the base track's and given your manifest's values. Without an entry, the track still loads, but the cars use their default ERS settings.

An addon that changes a 2026 handling file gets the same entry in its copy, and so does every handling file with TrackSettings in a car archive an addon puts whole, such as a Classic Seasons season's cars. The manifest's OverrideDetectionLapProgress and OverrideActivationLapProgress set where overtake mode is detected and where it can be used, as fractions of the lap.

Checking a build ​

sh
swofty build
python3 tools/map_check.py <overlay folder> --game <game folder> --maps "$DATA/addons"

To check for missing keys too, put F1_25.exe in the game folder (or use --exe) and install numpy, pefile and capstone. Then map_check.py also checks that your track's row has every key the game reads on the source row: the slot track's Track row, its track resource, per-track rows and TrackData rows.

You can also run cargo test -p swofty-core --test real_maps to activate the Sepang and Okayama packages in the database from F1_25_DIR and check the row counts and cloned rows.