Skip to content

Builder Guide

Gabriel edited this page Nov 25, 2026 · 34 revisions

Builder Guide

The Builder is divided into inspection, catalog, audit, and generation workflows. Features are added only after they have reproducible validation.

Windows GUI

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

Supported texture conversion

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.

Batch texture planning

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. The GUI connection is planned for v0.1700.0.

Keyboard shortcuts

  • 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.

Command line

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.

Audit output

A complete audit publishes:

  • summary.json
  • assets.json
  • audio.json
  • characters.json
  • metadata.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.

Interpreting candidates

Terms such as constant, boundedOffset, and alignedBoundedOffset describe measured binary relationships. They do not prove semantic field names, pointers, or object types.

Clone this wiki locally