Native assets, standalone patches and complete packages in one Mods library.
Companion integration guide · tcosi · updated 5 November 2026
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.
mods/ beside the launcher and refuse filename overwrites. You can also copy files there yourself and press Reload.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.
| Format | Use it for | Important rule |
|---|---|---|
| Loose .pak | One complete native IGA archive | Keep the filename the game requests. |
| Loose .xml | Standalone executable patches | Use supported shadPS4 XML for the correct title/update. |
| Asset-only ZIP or folder | One or several complete PAKs | No manifest required. No code or executable XML in an unmanifested ZIP. |
| Manifest ZIP or folder | Assets plus logic, composable entry replacements, dependencies or variants | Use 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
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.
MyCharacter/
archives/
update3.pak
README.txtZIP 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.
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.
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.
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.
scripts/mod_format.py is the authoritative validator; mod_content.py implements composition. Unknown fields and capabilities are rejected rather than ignored.
| Operation | Additional fields |
|---|---|
| archive_asset | archive, asset, index; original/patched SHA; exactly one payload or runs |
| localized_strings | archive, 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_file | target; original/patched SHA; payload. For a new file use original_sha256: null. Executable and system-file replacements are prohibited. |
| shader_file / shader_bytes | target under cache/CUSA13795/; SHA pair; payload, or same-length runs for shader_bytes |
| shader_position_scale | target, 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.
Packages can now expose dropdowns and checkboxes through the Windows Mods page wrench. Declare configuration, the mod-options capability, and static variants selected by whenOptions. See the configurable mod schema and complete example. Choices are saved per mod, retained across compatible upgrades, and applied on the next game launch. No mod-provided UI or script is executed.
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 HUD with fixed geometry, declare only the constraints it actually requires. Configurable controls select creator-supplied resources and patches; they do not automatically adapt geometry or certify a resolution, scene, or gameplay behavior.
Requires a launcher build that includes the mod-options feature. This documentation describes that feature; do not assume an earlier public release supports it. The Windows Mods card shows a wrench only when the package declares configuration. No additional engine feature or GUI dependency is required. Linux has shared package resolution but no configuration editor in this change.
The wrench opens the creator's dropdowns and checkboxes, optionally arranged as a grid. Save persists all choices, Cancel discards the draft, and Reset to defaults changes the draft until Save is clicked. Close the game before saving; a running mod session blocks changes. Restart the game to apply the saved selection. A Save error stays in the dialog and is also logged. If it says the mod changed, Cancel, Reload the Mods library, and reopen the wrench.
| Field | Meaning |
|---|---|
| type, label, default | Required. Type is choice or boolean. A boolean default is JSON true/false; a choice default is an ID in choices. |
| choices | Choice-only object mapping stable choice IDs to display labels. A dropdown needs 2–32 choices. |
| description | Optional plain explanation. In a grid it is shown as a checkbox tooltip. |
| advanced | Optional boolean. True puts a non-grid control under Advanced settings. It still saves and applies while collapsed. |
| row, column | Optional paired labels for boolean controls. Cells sharing row/column labels form a table, in declaration order. Each cell is unique. For a HUD matrix, declare each view's Drift Meter, Reserves and CNK Meter cells in that order. Use grid presentation instead of advanced for these controls. |
| patches | Optional map from every option value to an array of XML paths. Boolean keys are the strings true/false. Use an empty array for a value that adds no patch. This enables independent toggles without duplicating all base variants. |
| useOperations | Optional value-to-array map naming operationSets. Every value must be present. Requires variants and operationSets. The same named set selected by the base variant and one or several options is applied once; distinct sets still undergo conflict checks. |
This is a manifest fragment, not a ready-to-install mod. Add the normal schemaVersion, stable ID, version, author, description, compatibility and generated files inventory. Replace the empty custom-art array with actual validated archive/file operations, or omit that option mapping. The example's XML files must exist and each executable write needs its own valid original-byte signature. No game data or actual HUD mod is supplied here.
{
"requiresCapabilities": [
"mod-options",
"variants",
"xml-patches",
"code-signatures"
],
"configuration": {
"placement": {
"type": "choice",
"label": "Position",
"default": "corner",
"choices": {
"center": "Center",
"corner": "Corner"
}
},
"classic-drift": {
"type": "boolean",
"label": "Classic drift meter",
"default": true,
"row": "Classic",
"column": "Drift Meter",
"patches": {
"false": [
"patches/classic-off.xml"
],
"true": [
"patches/classic-on.xml"
]
},
"useOperations": {
"false": [
"custom-art"
],
"true": []
}
},
"classic-reserves": {
"type": "boolean",
"label": "Classic reserves",
"default": true,
"row": "Classic",
"column": "Reserves"
}
},
"operationSets": {
"custom-art": []
},
"variants": [
{
"id": "center",
"whenOptions": {
"placement": [
"center"
]
},
"patches": [
"patches/center.xml"
]
},
{
"id": "corner",
"whenOptions": {
"placement": [
"corner"
]
},
"patches": [
"patches/corner.xml"
]
}
]
}
whenOptions maps option IDs to arrays of typed allowed values: booleans for checkboxes, choice IDs for dropdowns. Combine it with the existing game-setting when if needed; both must match. Exactly one base variant must match, while independent patches and operation sets from the selected option values are then added to it. Test every intended combination. Signature, archive checksum, edition, online-policy and conflict checks still apply; a checkbox is not permission to bypass them.
Declare mod-options and the applicable component capabilities in requiresCapabilities; declare variants when using base variants or operationSets. Older validators reject the unsupported feature instead of silently selecting a random layout. Include every referenced XML/payload in the generated files inventory, including inactive alternatives, and rebuild after every change. Use the existing package_mod.py build/validate commands in this guide. No downloaded scripts, commands or UI code are evaluated.
Choices live in mod-state/options.json, keyed by stable mod ID and option IDs. Preserve IDs across ZIP renames and upgrades. Newly added options and stale/invalid saved values use the creator's defaults. Disabling a mod retains choices. The installed package is not rewritten; effective choices participate in overlay cache identity.
Limits: 16 options, 2–32 dropdown choices, 2,048 total option combinations, 256 base variants, 64 operation sets and a 1 MB manifest. Labels are at most 160 characters, descriptions 1,000, and grid labels 80. Use relative safe paths. Keep the grid small enough to read on the launcher window. Package import validates declarations and inactive payloads; successful import does not prove a game's resources render correctly.
See the companion schema notes and additional example and the synthetic tests/test_mod_options.py cases. Creators remain responsible for in-game testing and online review of their own content.
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.
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.
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.