OCTR Mod Creation & Packaging Guide

Native assets, standalone patches and complete packages in one Mods library.
Companion integration guide · tcosi · 21 October 2026

Start here

This is the packaging and launcher companion to venvz’s OCTRNF Modding Creator Handbook, offline edition 1 (source snapshot 19 October 2026). His extensive native PAK/IGZ authoring work remains the basis for making models, textures, characters and tracks. This guide explains how those outputs are installed, combined and distributed through OCTR. It does not claim to replace his handbook or require his separate launcher.

Target: the Windows OCTR Mods implementation with native read overlays. The updated launcher scripts and engine must be released together. Author credit for this integration: tcosi.

Native asset construction, skeletons, material bindings, dependency registration and engine resource lookup must be solved in the creator tools first. Package import cannot fix a broken IGZ or register an unreferenced character/track.

Install and manage mods

  1. Open Mods. Built-in mods are listed first; user add-ons follow the divider.
  2. Use Add files… for PAK, ZIP or XML; use Add folder… for an unpacked mod. These copy into mods/ beside the launcher and refuse filename overwrites. You can also copy files there yourself and press Reload.
  3. Enable the desired entries and fully restart the game. New imported entries start disabled.

The legacy patches/ folder still works. Use mods/ for new add-ons. Loose XML is internally copied into the existing patch compiler’s directory; identical XML already in patches is displayed once. Different XML with the same filename is rejected rather than replacing the old file. Rename the add-on or deliberately remove the obsolete legacy copy. XML files expose their individual Metadata patch toggles; a manifest ZIP uses one toggle for all its declared components.

PAK/ZIP/folder Remove moves the source to mod-state/removed/. For loose XML, delete or move its source from mods and Reload; the managed compiler copy is removed. Never edit a generated XML copy in patches. Old manually installed patches must be removed from their original folder.

Choose a distribution format

FormatUse it forImportant rule
Loose .pakOne complete native IGA archiveKeep the filename the game requests.
Loose .xmlStandalone executable patchesUse supported shadPS4 XML for the correct title/update.
Asset-only ZIP or folderOne or several complete PAKsNo manifest required. No code or executable XML in an unmanifested ZIP.
Manifest ZIP or folderAssets plus logic, composable entry replacements, dependencies or variantsUse mod.json schemaVersion 2 and the packager below.

ZIP is recommended for sharing multiple files and preserving native filenames. It is optional for a single PAK. No executable installer, DLL injection or Python hook is loaded from a mod package.

mods/
  update3.pak
  MyCharacter.zip
  MyCharacter/archives/update3.pak
  MyPatch.xml
  MyHUD.zip

PAK and IGZ authoring: how this builds on the handbook

PAKs are native IGA archives; IGZ files are engine resources, not arbitrary PNG replacements. Use the handbook’s creator tools to build valid resources, fixups, imports, registry entries and package dependencies. Preserve archive resource paths, required naming and update precedence. Include every related resource required by the swap.

The engine reads complete PAKs from mod storage when the requested relative archives/name.pak path matches. The selected game directory remains unchanged; original game files are never copied or modified. Individual entry edits use small read overlays. It does not automatically mount an arbitrary new archive or merge registration tables. The game must already request that archive/resource, or the mod must include the correct native registry/reference changes. Naming a file “MyCharacter.pak” does not make its character selectable.

Two enabled complete replacements of update3.pak conflict even if they conceptually change different characters. Prefer per-entry operations for composability, or publish a merged compatibility package. Two edits to the same character/track registry need an intentional creator merge. Load order is not a substitute for that merge.

Make an asset-only package

MyCharacter/
  archives/
    update3.pak
  README.txt

ZIP that directory or its contents; one ordinary wrapper directory is accepted. A ZIP containing just update3.pak also works. Asset ZIPs permit PAKs plus TXT/MD readmes and PNG/JPG previews. XML or code inside this simple ZIP is rejected: use the manifest format for mixed assets and logic. Archives are checked for a valid IGA index, but successful validation does not prove the content can render or load in-game.

Keep your creator source files outside the release. Include installation instructions, game edition/update, tested launcher/engine, conflicts, credits/permissions and uninstall instructions in the readme.

Manifest packages: folder and starter manifest

MyHUD/
  mod.json
  assets/example.igz
  patches/MyHUD.xml       (optional; declare it in patches[])
  README.txt
  octr-mod.required       (generated)

The following is a template: replace every placeholder, index, target path and zero checksum with values from your tested inputs. It is not a runnable example. files and the rejection marker are generated by the packager.

{
  "schemaVersion": 2,
  "id": "example-mod",
  "name": "Example Mod",
  "version": "1.0.0",
  "author": "Your creator name",
  "description": "Describe the visible change.",
  "requiresCapabilities": [
    "archive-assets"
  ],
  "files": [],
  "compatibility": {
    "online": "offline-only"
  },
  "operations": [
    {
      "kind": "archive_asset",
      "archive": "update2.pak",
      "asset": "ui/example.igz",
      "index": 0,
      "original_sha256": "0000000000000000000000000000000000000000000000000000000000000000",
      "patched_sha256": "0000000000000000000000000000000000000000000000000000000000000000",
      "payload": "assets/example.igz"
    }
  ]
}

For a complete PAK inside a manifest, place it at archives/update3.pak; the files inventory identifies it automatically. For executable XML add "xml-patches" to requiresCapabilities and "patches": ["patches/MyHUD.xml"]. The packager inventories the referenced XML.

Use a stable lowercase ID (letters, digits and hyphens, at most 80 characters). Keep that ID across updates so selection follows the mod. Use major.minor.patch versions without prerelease suffixes. The ZIP filename may change; multiple versions with the same manifest ID produce one card using the newest validated version. Older files remain available for rollback and appear in Details. Identical copies are listed once; different content claiming the same selected version is a clear conflict. Name and author are displayed in the menu. The description field is plain creator-provided text shown only when the card’s chevron is expanded; line breaks are supported. Loose XML patches use Metadata Note for their details. Bare PAK/asset-only packages without a manifest have no creator description; use a manifest package to supply one.

Get exact inputs and checksums

Engine-version and engine-hash allowlists are no longer required or enforced. Older runtime_versions/runtime_sha256 fields are accepted as legacy metadata. Only compatibility.online is required. Legacy eboot_sha256 fields are accepted but ignored as allowlists. Every declarative executable write must carry Signature and/or ExpectedSHA256. ExpectedSHA256 is the SHA-256 of the original file-backed bytes at the write site, across the full write length. Declare code-signatures in requiresCapabilities when using it so older launchers reject the package explicitly. Fixed-address injected code is not automatically ported to a shifted game layout. Game resource checksums, executable signatures, overlaps and online policy are still checked. The launcher queries required engine features automatically.

Use SHA-256, lowercase hexadecimal. PowerShell: (Get-FileHash -Algorithm SHA256 -LiteralPath "path").Hash.ToLowerInvariant(). Read the engine version from bin/VERSION; hash bin/sacredfire.exe and the original game’s eboot.bin. Whole-file executable/engine hashes may be recorded for diagnostics but do not determine compatibility. Code-site checks must come from the correct original executable; do not substitute signatures from unrelated code.

For an archive operation, original_sha256 hashes the decompressed original entry bytes, not the whole PAK. patched_sha256 hashes your final entry payload. index is the exact archive entry index; asset is its native resource path. Use the archive inspection tools and preserve this mapping in your creator project. Duplicate resource names require the correct index.

The manifest files list inventories every packaged payload with relative path, SHA and byte count. The packager creates it and includes the old-loader rejection marker. This marker prevents a legacy loose loader from silently applying only the graphics half of a logic-dependent package.

Build and validate

From the launcher directory, using the bundled Windows Python:

.\python\python.exe -X utf8 scripts/package_mod.py C:\Creator\MyHUD --output C:\Releases\MyHUD-1.0.0.zip
.\python\python.exe -X utf8 scripts/package_mod.py C:\Creator\MyHUD --validate

The build command updates files in the creator folder (inventory and marker), validates the package, then creates the ZIP. Keep the output outside the source folder; an existing output is never overwritten. Use a new versioned filename. A system Python can run the same script. Validation alone expects a previously generated, current inventory.

Paths must be relative, use forward slashes in JSON, and must not contain traversal, absolute paths or links. Do not ship original game archives unless you have permission; prefer original-dependent deltas or only your replacement resources. Respect all source licenses and obtain permission for third-party assets.

Operation and metadata reference

scripts/mod_format.py is the authoritative validator; mod_content.py implements composition. Unknown fields and capabilities are rejected rather than ignored.

OperationAdditional fields
archive_assetarchive, asset, index; original/patched SHA; exactly one payload or runs
localized_stringsarchive, asset, index of an IGZ with igLocalizedStringData objects (looseData/systemData_<language>.lng); original_sha256; strings: {"object": {"field": "text"}}, e.g. {"SystemData_availableDrivers_12": {"CRacerBaseData::_displayName": "Rigby"}}. No payload or patched checksum: the launcher writes every enabled package's texts into one copy, so packages changing different texts (each one its driver's name) compose; the same text in two packages, or a whole-entry edit of that entry, conflicts.
game_filetarget; original/patched SHA; payload. For a new file use original_sha256: null. Executable and system-file replacements are prohibited.
shader_file / shader_bytestarget under cache/CUSA13795/; SHA pair; payload, or same-length runs for shader_bytes
shader_position_scaletarget, SHA pair, factor greater than 0 and at most 2; specialized private shader transform

A delta run is [offset, "originalHex", "replacementHex"]. Bytes must have equal nonzero length; ranges cannot overlap. Asset operations require archive-assets, localized_strings requires localized-strings, game_file requires game-files, shader operations require shaders. Other capabilities: xml-patches, dependencies, settings, environment, constraints, variants and variant-settings.

requires is an array of {"id":"base-mod","version":">=1.0.0,<2.0.0"}; accepted comparisons are =, >, >=, <, <= joined with commas (all must match). Dependencies must be installed and enabled; the launcher does not download them. conflicts is an array of incompatible IDs. Dependencies and conflicting resource claims are validated before launch.

compatibility lists exact runtime versions, runtime SHA-256 values, executable SHA-256 values and online policy (offline-only or allowed). Mark allowed only after actual online review; it is a declaration, not server approval, asset syncing or a guarantee against desynchronization.

Settings, constraints and variants

settings provides private string-valued defaults; constraints maps a setting to an allowed array of strings and rejects incompatible effective selections. Environment overrides are limited to BB_NEO, BB_FPS, BB_VBLANK_HZ, BB_DMEM_MB and BB_PREUPLOAD. There is no arbitrary environment or command execution.

Allowed setting keys:

async_pipelines, dlss_output, dlss_quality, fps_limit, fullscreen, menu_language, output_res, patch_60fps, patch_no_motion_blur, patch_pro_1080p, preset, render_res, show_fps, temporal, upscaler, widescreen_layout

Static variants contain id, when conditions, optional operations/patches/settings/environment/constraints, and optional useOperations references into operationSets. Conditions map allowed setting keys to arrays of values. Exactly one variant must match the base settings; zero or multiple matches reject launch. Shared operations and patches are combined with the selected variant. Use requiresCapabilities variants. Session defaults use variantSettings: {"output_res": {"default": "1920x1080", "allowed": ["1920x1080", "2560x1440"]}} with quoted JSON keys (the shown root key is illustrative). Only output_res and render_res may be declared this way. A compatible saved value is preserved; otherwise enabled packages must agree on an allowed default. Settings variants additionally use variant-settings and are validated by mod_variants.py; consult its format and existing tests rather than inventing unsupported selector fields.

For a simple HUD with fixed geometry, prefer explicit constraints over many untested variants. CNK Boost Gauge is an example of assets plus executable logic, a 16:9 constraint, 5% visual-full indication and separate original Classic/Modern HUD behavior. Its visuals do not change the game’s actual boost window.

XML rules and legacy compatibility

Use the supported shadPS4 Patch/TitleID/Metadata/PatchList structure, correct AppVer and AppElf, and supported Line types. OriginalBytes signatures must match actual loaded code when provided. Existing OCTR compiler semantics remain authoritative. A manifest lists its XML in patches[] and the package toggle enables its declared Metadata blocks together: do not bundle mutually exclusive alternatives there without explicit variants.

Loose XML in mods exposes individual supported patches. Supported title/update metadata determines which entries appear. Original patches/ remains readable for backward compatibility. Identical same-name XML in both locations is shown once; different same-name files require renaming or removal of the obsolete copy. Do not distribute the generated OCTR-Mod-Library.xml or OCTR-Mod-Content.xml. Avoid packaging the same executable edit as both a loose XML and a manifest component.

Conflict handling, saves and removal

Manifest packages and native asset mods compose through read-only file redirection and sparse archive overlays. Original archives and the game folder remain untouched. Overlapping executable writes, mismatched signatures, conflicting whole PAKs, conflicting same-version content and overlapping entry claims block the modded launch. Resources sharing an archive can coexist through distinct per-entry operations. There is no automatic registry merge, priority override system or network content distribution.

Package sessions use a separate save profile seeded from this test installation’s user profile. Normal successful exits commit to that separate profile. Standalone XML patches use the ordinary existing patch pipeline and ordinary saves; back up your save before unlock or progression patches. Built-in patches also use the existing save behavior. The game and selected inputs are kept separate from cached modified views. Do not edit a prepared cache or hardlinked archive.

Disable user packages to return to normal assets. Removing packages retains separate saves. Keep mod-state until any wanted saves are backed up. Never ship user/, mod-state/, saves, credentials, local logs or original executable files in a release.

Release checklist and troubleshooting

  1. Confirm the exact launcher engine, game edition/update and original hashes.
  2. Validate and import a clean release ZIP with no creator workspace dependencies.
  3. Test disabled, enabled, switching away and back, both HUD directions if relevant, race loading, restart, normal exit and removal.
  4. Test supported resolutions/FPS, menu transitions and save behavior. Check Classic/Modern preservation for HUD mods.
  5. Test combinations you claim to support; document known conflicts and online limitations.
  6. Publish a versioned ZIP, checksum, readable changelog, author credits, installation steps and rollback instructions.

If an entry is missing, press Reload and inspect the Log for invalid paths, unsupported metadata or missing manifest capabilities. If assets appear unchanged, verify archive precedence and the actual requested resource; successful import is not proof of use. If launch is blocked, fix the reported compatibility/signature/conflict rather than bypassing checks. If a crash occurs, compare the unmodified game under the same settings and disable the new mod.

Current evidence: synthetic PAK composition/import tests and real CNK preparation/readback on USA 1.21 with official v0.6. The consolidated Mods and Settings padding were visually reviewed on Windows; offline launch with a separately packaged Reserves + CNK HUD was user-confirmed. That HUD package is not included here, and full gameplay/online validation is not claimed. Arbitrary character/track packages, Linux integration and equivalent EU manifest packages are not certified by these checks.