Repository navigation
Builder Guide
The Builder is divided into inspection, catalog, audit, and generation workflows. Features are added only after they have reproducible validation.
Full conversion, repair, and the texture-converter GUI remain visibly disabled until their required formats are complete. The native GUI can open validated PC HDR files or recursively inspect a PC data folder. The most recently validated selection appears above the main buttons and remains available for the active session. File → Clear Selected Source closes its viewer and releases the session selection. Catalog and audit tools can reuse that selection or request a different source. Dropping one validated *_pc.hdr onto the main window—or choosing File → Open PC HDR in File Viewer…—opens the separate read-only File Viewer. Select All ARK volumes or one ARK to filter its internal records, then type in the search box and optionally choose an extension to filter alphabetically ordered paths. Selecting a record shows its offsets and size; double-click or right-click Open displays those details, a detected signature, and a short hexadecimal preview safely inside RB4PC. Right-click Copy Internal Path to copy the selected archive path, or Extract… writes only the selected record to an explicit destination and reports its SHA-256. Show Metadata Candidates restricts the view to the five path families already measured by the metadata catalog; it does not claim semantic meanings. When one of these records is selected, its measured family appears in the detail panel and safe Open dialog. Metadata Candidate Summary… reports counts plus total and average record bytes and can export those measurements as TSV. Metadata Signature Summary… samples up to 32 bytes per resolved candidate and reports detected signature counts. Export Metadata Investigation… writes candidate family, location, size, and sampled signature as TSV without full payload bytes for all five measured families in the opened HDR. Export Filtered Listing… writes the visible record table as TSV. The File Viewer Tools menu runs asset, audio, character/animation, metadata, or complete corpus audits using the opened HDR as the reusable source. Current tools include:
- PC asset catalog
- PC audio catalog
- Character and animation structural catalog
- PC metadata catalog
- Complete PC corpus audit
Choose Tools → Convert Supported PS4 Texture…, select a user-supplied source,
and choose a new .png_pc destination. The Builder never overwrites an existing
file. After confirmation it writes the PC container and
.rb4pc-conversion.json manifest transactionally, parses the result again, and
checks that the mipmap payload hashes remain identical.
The current converter accepts only magic 6, PS4 version 12, a 256×256 base image, seven square mipmaps down to 4×4, flag 1 on every level, and consistent linear 4bpp or 8bpp storage. Magic-3, magic-4, version-8, 512×512, tiled/swizzled, and other texture families remain read-only.
Choose Tools → Analyze Texture Conversion Folder… and select an extracted
asset folder plus a new JSON destination. The recursive scan reads candidates
ending in .png_ps4 or .texture, then records each as convertible,
readOnly, or invalid with its measured family and reason. It does not write
or rename any asset. Review this report before conversion. The current CLI batch operation is:
rb4pc-builder <texture-directory> --convert-texture-batch <new-output-directory>
It processes only supported entries and publishes the new directory only after all conversions succeed. Verify it independently with:
rb4pc-builder <texture-directory> --verify-texture-batch <batch-directory> <new-report.json>
A report is complete only when all expected outputs and manifests exist, every container and mipmap payload verifies, and there are no unexpected files. The The same operations are now available from the Builder Tools menu.
Choose Tools → Convert Supported Texture Batch…. Select the original source
folder, review the planner counts, select a parent directory, and confirm the
new rb4pc-texture-batch destination. Existing destinations are refused and a
failed conversion leaves no published partial batch.
Choose Tools → Verify Converted Texture Batch… afterward. Select the same original source, the published batch, and a new JSON report path. A warning is shown whenever an expected texture or manifest is missing, a container or payload differs, or an unexpected output file exists.
Choose Tools → Analyze Audio Conversion Folder… and select an extracted audio folder plus a new JSON report. The operation is read-only. Native Ogg and RIFF/WAVE are marked runtime-ready; MOGG files with embedded Ogg are marked extraction-ready; formats without a verified path remain research-only; and truncated inputs are invalid.
Choose Tools → Build Verified Asset Pipeline…, select an extracted asset
root, review the planned texture and audio counts, choose a parent directory,
and confirm the new rb4pc-assets destination. The published tree contains
textures/, audio/, their manifests and batch summaries, plus
asset-pipeline-summary.json. A failure publishes nothing.
- Ctrl+O — choose and open a validated PC HDR in File Viewer
- Ctrl+L — clear the selected PC source and close its File Viewer
- Ctrl+F — focus and select the File Viewer search text
- Enter — safely preview the selected File Viewer record
- Ctrl+E — extract the selected record to an explicit destination
- Ctrl+C — copy the selected record's internal path when its list has focus
The complete audit creates a new rb4pc-pc-audit directory and never overwrites an existing destination.
Generate the metadata catalog:
rb4pc-builder <hdr-or-directory> --catalog-pc-metadata <catalog.json>
Generate the complete five-file corpus audit:
rb4pc-builder <hdr-or-directory> --audit-pc-corpus <new-output-directory>
Related catalog options are available for assets, audio, and character/animation data. Run rb4pc-builder without valid arguments to view the current usage list.
A complete audit publishes:
summary.jsonassets.jsonaudio.jsoncharacters.jsonmetadata.json
The summary verifies that all catalog passes observed consistent HDR counts. Metadata reports also verify that every profiled field received exactly one structural evidence class.
Terms such as constant, boundedOffset, and alignedBoundedOffset describe measured binary relationships. They do not prove semantic field names, pointers, or object types.
Choose Tools → Convert song.ini Metadata…, select a song.ini, and choose a new JSON filename. The Builder previews the title and artist, writes a temporary canonical file, rereads every supported field, hashes the source and destination, and publishes the JSON plus its conversion manifest only after verification succeeds.
CLI equivalent:
rb4pc-builder <song.ini> --convert-song-metadata <new-metadata.json>
Canonical JSON belongs to RB4PC. For a recursive atomic batch, choose Tools → Convert song.ini Metadata Batch… or use --convert-song-metadata-batch. For the independently verified two-field native format, choose Tools → Write Native Moggsong Metadata… or use --write-native-moggsong. Other native metadata families remain read-only.
Use Tools → Verify Native Songdata Round-trip… to select an existing songdta_pc, preview its identity, and write a new byte-identical verified copy. The operation refuses overwrite and publishes a hash manifest. CLI inspection and round-trip are available through --inspect-native-songdata and --roundtrip-native-songdata. This validates an existing native record; it does not invent native-only values for a new song.
Choose Tools → Convert song.ini to Native Songdata… or run --convert-native-songdata. The source must contain song_id and song_length; RB4PC refuses to invent them. Optional missing fields use documented deterministic defaults, all listed in the conversion manifest. Preview start/end must fit within the declared song length.