Commit Graph

105 Commits

Author SHA1 Message Date
4eb6155d3a int_hw_probe: the five gfx1035 divergences are fixed; docs index and four tools follow the repo rules
- int_hw_probe: VOP3 clamp on the carry-out add/sub ops (#1831) and v_cvt_rpi/flr's exact floor(x+0.5) and NaN
  sign saturation (#1856) now translate as gfx1035 measured, so KNOWN_DIVERGENCES is empty. The known-divergence
  test reports a synthetic entry. shader_validation.md says so, and design.md loses the stale duplicate
  v_cvt_flr/rpi row a "both" merge left that still called them open.
- docs/README.md: one Other languages line (fr, pt-BR, zh-CN, pl-PL, tr, ru, ja); docs/i18n/README.md: one row
  each for pt-BR and zh-CN (the newer).
- anim_rigs, d16_format_probe, pe_shader_containers: text writes name newline="\n" (#1615);
  pe_shader_containers guards stdout (#1428).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 10:22:53 -05:00
ca1557eac6 Merge pull request #1855 from bingll123
# Conflicts:
#	docs/README.md
#	docs/i18n/README.md
2026-11-22 09:48:48 -05:00
c3bc62bb45 Merge pull request #1835 from Vonsek
# Conflicts:
#	docs/README.md
#	docs/testing.md
2026-11-22 09:48:37 -05:00
b9a2ac53cf Merge pull request #1833 from Kam471
# Conflicts:
#	docs/design.md
2026-11-22 09:48:35 -05:00
f3b4e69b90 Merge pull request #1813 from SuarezPM 2026-11-22 09:48:23 -05:00
6fb8ba8d2e Merge pull request #1806 from Dmitry Bykov 2026-11-22 09:48:21 -05:00
6ebad8cae1 docs(i18n): add Japanese (ja) community quickstart
Translation of the stable onboarding text only, synced to 003e781.
Adds its row in docs/i18n/README.md and `ja` in the docs/README.md
language list. Docs only.

AI-assisted.
2026-11-22 22:46:12 +08:00
96d0b2455f docs: 42/52 after main's global-atomics fix
003e7812 loads EXEC before OpSelectionMerge in global_atomic and global_atomic_x2,
so FindTreelets assembles and validates. The 10 left are still the four rules.
2026-11-22 11:34:56 -03:00
5ecb637a02 Docs: the embedded shader containers; the BVH builder's programs are console FSSM
The 52 containers in XboxBvhBuilder.dll carry an LLVM bitcode blob and an
XDAT/XBCH record. The console record decompresses to FSSM: 52/52 unpack, 42
translate, 41 pass spirv-val with the existing translator. The 10 left need
global_atomic_fmax/fmin, buffer_load_ushort and tbuffer_load_format_x (format
8), plus one OpSelectionMerge emission bug. Correct the DXIL-front-end premise
in d3d12_vulkan.md (4.8, 7.1, 7.2, M6, Q7, Q20, A.2) and index the new note.
2026-11-22 11:34:05 -03:00
023b82257a docs: add the Russian quickstart
Adds docs/i18n/ru/quickstart.md, translated from the current English sources
(README.md, CONTRIBUTING.md, docs/testing.md) and synced to a0acd33. It covers
what the project is, the own-copy and no-game-data rules, prerequisites, both
build paths, the stage order and the flags around it, the Linux path, common
troubleshooting, and where to claim work and post GPU results.

The row goes into the docs/i18n/README.md table with the maintainer, and the
language is listed in docs/README.md. No build or CI changes; the daily-moving
status table and the format notes stay out, as docs/i18n/README.md asks.
2026-11-22 17:28:02 +03:00
abbb3dce9f docs: one row per topic in the docs index and testing's Known problems
docs/README.md listed models.md, audio.md and rsc8_audio.md twice with
different text; keep the current row of each. docs/testing.md had the
RTSS/OBS overlay advice in four rows that partly contradicted each other;
keep the implicit-layer row and the newest overlay row (the elevated-terminal
cause), with OBS's layer named. The row test now covers both pages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 15:27:54 +01:00
b474993bf5 docs: drop the duplicated Models rows and the split intro fragment 2026-11-22 14:26:44 +00:00
6ea07e1b86 docs: correct re-count baseline and mark unmeasured levels geometry
story000_restofworld already recovered its 3 models at 917e9b9, so its delta is 0 and the 917e9b9 baseline is 350,251 models / 159,486 children; the ten-archive delta is +32,530. The levels.rpf fragments/bone-bound/triangles cells have no manifest or harness fields, so they and the totals derived from them are marked not independently reproduced. Add the measured levels.rpf name-pass coverage to world_names.md.
2026-11-22 14:23:37 +00:00
54575594ab Merge pull request #1661 from omardev29 2026-11-22 08:08:35 -05:00
d47024b68b Merge pull request #1648 from cxchhh 2026-11-22 08:08:26 -05:00
17800fb88b Merge pull request #1635 from Nikolas Sturm 2026-11-22 08:08:17 -05:00
ae7fa76ac2 Merge pull request #1562 from AlxcBTW 2026-11-22 08:08:05 -05:00
38ca58e866 Merge pull request #1534 from Kam471
# Conflicts:
#	docs/README.md
#	docs/character_models.md
2026-11-22 08:08:03 -05:00
a0acd33d77 Docs: one Other languages line, and runtime/README links docs/runtime_imports.md
Two i18n PRs merged as "both" left docs/README.md with two quickstart lines (test_i18n_index); #1551's link in
runtime/README.md pointed at runtime/runtime_imports.md instead of docs/ (test_docs_links).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 08:02:25 -05:00
6290b0acd4 isa_coverage: allow v_mac_legacy_f32 (gfx1013 VOP2, missing from AMD's XML); counts at current main; wrap long lines
v_mac_legacy_f32 came in with 58706b5b; llvm-mc accepts it for gfx1013 (v_mac_legacy_f32_e32).
The docs give the counts with the commit they were taken at, and the README row no longer
quotes numbers that every new rule changes. Reported by @josevictorp in #1562.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 13:53:11 +01:00
840a6e3e32 world_lights_paths: map lights and the vehicle lane graph in levels.rpf (ASSET-102)
New stdlib tool on top of world_census.assemble and the world_index header
readers. Every field is read by member hash from each 0x7a resource's own
schema.

Lights: every CExtensionDefLightEffect reachable from the extensions list
of an archetype, interior archetype or entity, and its CLightAttrDef
lists. Counts per type, owner and resource kind, value ranges and checks.
With --entities (world_index.py --entities-out rows) archetype lights are
placed in world space through each map entity's transform, the same one
world_build.py --placements uses; --lights-out writes them (local only).

Lane graph: path nodes, links (lanes, flags, length) and junctions
(entrances, turns, traffic-light phases), with connectivity measured.

Full levels.rpf: 280,105 lights (450,195 placed through map entities),
63,808 nodes, 145,518 links, 1,546 junctions (369 signalised). The lane
graph equals SixNG's on every count; all 5,285 lights SixNG lacks come
from pool references at offsets 0x500..0x6ff that it reads as pointers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 12:52:58 +00:00
0a52416180 docs: drop the duplicate models.md index row 2026-11-22 12:52:24 +00:00
58919a9faa tools: resolve PSIN name-hash members against known resource names
psin_names.py walks PSIN instance data with psin_data.py and looks up every
u32 hash member (joaat of the lower-cased name) and u64 hash member
(MurmurHash3 x64 low 64 bits) in a dictionary from rpf9_names.py or name
lists, with a salted control. docs/psin.md no longer says PSIN has no model
names. Synthetic tests only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 13:46:28 +01:00
108ae97c2a docs: the fragment export is a flat 25-vertex grid, not a cube 2026-11-22 12:42:55 +00:00
07918ddae6 docs: fspx.md, the FSPX format and what translates
The directory as the DLL's reader (RVA 0x1a20) and pipeline function
(RVA 0x4aa0) use it, with device slot 67's descriptor; kind 0 field by
field, each with how far it was checked (thread-group size measured
against PSV0 in 29/29; wave size, RSRC1 and RSRC2 inferred from the code);
the 36-byte prologue carrying kind 7's hash (29/29); why --mcpu gfx1030;
the 89 VOP3P words llvm-mc rejects; and the per-program translation
status: 13 of 29 translate and pass spirv-val, the 13 that use dot4 do not.
2026-11-22 13:42:04 +01:00
65b6cd6833 Merge pull request #1597 from Nikolas Sturm 2026-11-22 07:38:28 -05:00
713b00e691 Merge pull request #1563 from Kam471
# Conflicts:
#	docs/README.md
2026-11-22 07:38:14 -05:00
486031daa2 Merge pull request #1562 from AlxcBTW 2026-11-22 07:38:12 -05:00
5987ffb0a3 Merge pull request #1558 from Kam471
# Conflicts:
#	docs/README.md
#	docs/design.md
#	docs/models.md
2026-11-22 07:38:11 -05:00
6e08ea85bd Merge pull request #1546 from liang-kai-shui 2026-11-22 07:38:07 -05:00
b94ff2643a docs: record the levels.rpf recovery count at e293917 (343,327 models) 2026-11-22 12:34:20 +00:00
1b7861d3ad Merge remote-tracking branch 'origin/main' into isa-coverage 2026-11-22 13:33:57 +01:00
2197cf3f9c tools: write stream names and dialogue subtitles into Ogg Opus tags
awc_opus.py exports streams with an empty OpusTags header, so players show
only the stream id. opus_tags.py fills that header in place from the
awc_names.py CSV (TITLE) and the text_tables.py dialogue CSV (LABEL,
SPEAKER, SUBTITLE and SUBTITLE_<LANG>). Only page 1 is rewritten; the audio
pages stay byte for byte. Synthetic tests only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 13:31:29 +01:00
76e5e8ef8b docs: correct the 917e9b9 baseline for story000_restofworld (3 models, not 0) 2026-11-22 12:24:13 +00:00
aa7ec6618e docs: merge the duplicated i18n quickstart line and list all four languages 2026-11-22 12:15:40 +00:00
e901a7b99a tools: isa_coverage.py, RDNA2 ISA coverage of the translator from AMD's XML
Reads AMD's machine-readable RDNA2 ISA spec (path given with --isa, not vendored), scans
tools/rdna2spirv.py statically with ast and reports, per encoding, which instructions have a
rule, are refused or are unknown, plus every matched name that is not an RDNA2 instruction.
Tests use a small hand-written fixture; the real-XML test skips without LEONIDA_RDNA2_ISA_XML.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 13:14:44 +01:00
e483cc8b0f docs: record the e293917 model re-count
The models.md re-count item was still open. Re-run rpf9dump models over
the same archives at e293917 and record the rows: 39,454 excluding
levels.rpf, +3,206 over 917e9b9, almost all recovered fragments (2,551
in packs.rpf, 594 in data.rpf). Split each archive by IsFragment and
update the packs.rpf paragraph and the README line.

levels.rpf and the triangle totals were not re-run; the table says so.
2026-11-22 12:13:04 +00:00
dcef9fd66d docs: index the Intel lookup note and dedupe the language line
docs/descriptor_lookup_intel.md (added in 49c6e0ed) was missing from the
Runtime, GPU and validation table. The "Other languages" paragraph
appeared twice, a stale copy from each concurrent i18n merge, so fr and
pl-PL never appeared together and tr (just merged) was missing; make it
one line naming every language. tests/test_i18n_index.py now requires
exactly one such line naming every language in docs/i18n/README.md once,
so a stale concurrent merge cannot reintroduce it.

Docs and a test only, no game data.
2026-11-22 20:10:21 +08:00
2a354f9460 Merge pull request #1542 from SombraSoft
# Conflicts:
#	docs/README.md
2026-11-22 07:08:08 -05:00
6be549b3e6 Merge pull request #1534 from Kam471 2026-11-22 07:08:05 -05:00
dd5da3deb5 Merge pull request #1485 from Nikolas Sturm 2026-11-22 07:07:52 -05:00
1b7adb4451 Merge pull request #1483 from abilliontokens
# Conflicts:
#	docs/README.md
2026-11-22 07:07:51 -05:00
ee960b4b52 Docs: re-count all 10 model archives at rpf9-explorer e293917 (382,781 models) 2026-11-22 09:05:22 -03:00
2cfe6a1d04 docs: record the measured character-part inventory (packs.rpf, e293917)
Add docs/character_models.md and link it from the docs index and models.md.
The page records what the character export actually contains, so a preview
cannot quietly present a proxy or a placeholder as Lucia's hero asset:

- 26,585 manifest rows / 11,335 unique names: 23,720 drawables, 2,865 fragments.
- Every fragment exports as a 25-vertex bounds cube with Embedded: null; child
  drawables are not walked.
- Lucia's 22 named records and the 13 decoded parts, with vertex/triangle counts
  and albedo keys. The head drawable has no texture reference.
- The only Lucia full body is cs_lucia_legacypedcs (874/640-vertex rows,
  1,748/1,816 decoded): a clothed legacy ped, not a base body.
- player_story000_00 is 104 unique names = 63 drawables + 41 bounds fragments.
- Slot-token counts, with the explicit caveat that they are a name heuristic.
- Texture coverage 184/215; only 0xC8E8C282 is sRGB albedo; hands/feet keys
  unresolved.
- Not decoded: fragment children, a ped-variation table (the two common.rpf
  managers are height/shape and gameplay components, not appearance),
  Lucia's hair (3-vertex placeholders), levels.rpf names, and bind pose.
2026-11-22 12:02:36 +00:00
8ef54230a3 tools: decode string tables and join dialogue to its subtitles
Text resources are 0DRP logical resources holding a joaat label hash table,
an index array and a UTF-8 string blob, located by a descriptor of
0x5xxxxxxx resource pointers. text_tables.py joins each 0DRP stream with
its 64 KiB continuations (carve directory or archive via gamedata_index, or
whole-resource files), decodes the tables, guesses each table's language
(script, distinctive letters, common words; es-ES/es-419 and
zh-Hant/zh-Hans by markers; xx when undecided), and joins conversation
key/label pairs (<key>_01.. waves) to their text in every language.

On 1.0.2.1: 30,349 tables / 7.17M strings; 118,351 dialogue keys and
138,104 lines, 88-93% with text per language. docs/text.md records the
format, the per-language conflict counts and the open questions.
Standard library only; tests are synthetic.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 12:42:09 +01:00
7099cf520f rsc8_audio: decode the undocumented 0x5a/0xd9 AWC companion tags
- decode_grid20_table: 8-byte header (u32 12345678 marker + unknown) and N 20-byte
  entries, with the invariants measured on all 1,185 audio.rpf streams that carry
  the tag (counter strictly increasing, p a multiple of 32; 387,233 entries,
  0 violations).
- decode_index_runs: K groups of {u32 2; u32 len; u32 hash; len ascending u32s}
  whose values index the sibling 0x5a entries (804 streams, 4,853 groups,
  0 violations, 0 overruns).
- Per-stream tallies in decode_awc_bank and the scan summaries (grid20_*/indexrun_*
  keys), facts in _decode_companion_tags; other archives carry 0 of either tag.
- Five synthetic tests (hand-built bytes only); docs rows in rsc8_audio.md,
  audio.md and the docs index, hypotheses labelled as such.
2026-11-22 03:41:52 -08:00
a9ada3bfd4 Merge pull request #1421 from Nikolas Sturm 2026-11-22 06:38:00 -05:00
d344fcb275 tools: name AWC streams from dictionary hits on their joaat ids
AWC stream tables keep only joaat(lowercase name) & 0x1FFFFFFF. With ~1.8M
distinct ids in a 2^29 space, ~0.3% of arbitrary words collide, so
awc_names.py accepts a hit only as an exact dialogue-wave word
(<root>au_<4 letters>_<NN>) or as a numbered family in one bank (3+
members or 2 adjacent, common-token base, one member a dictionary word).
A salted control run estimates the false names and sets each rule's
threshold per source.

The dictionary takes word lists or a hashdict.py JSON, and builds dialogue
wave names from conversation key/label pairs (<key>_01.._N per label).
Banks come from .awc files, directories or rpf9dump's audio_manifest.json.

On 1.0.2.1: 266,781 of 1.85M ids named (story000 73.7%, audio 5.7%),
with 417 control hits. Standard library only; tests are synthetic.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 12:16:06 +01:00
c9650fe70b tools: name Bink 2 streams from the mount lists
The RPF9 TOC is encrypted, but each pack's CDataFileMgr__ContentChangeSetDef
mount list names its videos, and the archive stores them in the list's
lowercase-path order. bink_names.py aligns the sorted list with the streams
from bink_index.py (a monotone DP that may skip list entries held by other
packs), scores header facts (resolution hints, portrait snapmatic, family
siblings sharing a shape), and labels each row verified / anchored /
bracketed / positional. Mount lists are read from an archive or an
rpf9_carve.py directory through gamedata_index, so a list split over two
zlib streams stays whole.

On 1.0.2.1 it names all 797 streams in movies.rpf, story000.rpf,
story000_restofworld.rpf and core_restofworld.rpf. Tests are synthetic.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 12:03:33 +01:00
adb3482c35 Merge pull request #1347 from abilliontokens 2026-11-22 05:37:52 -05:00