Identify the event or call site that activates a state in a script camera tree #19
Open
opened 2026-11-21 09:10:33 +00:00 by R0Y00
·
8 comments
No Branch/Tag specified
main
codex/indirect-large-backed-views
codex/word3-preflight-check
codex/vertex-table-two-records
codex/live-index-alias
codex/copied-vertex-buffer-srv
codex/windows-stage-test-output
codex/preserve-live-srv-retirement
codex/share-render-target-tracking
codex/sgd5-negative-offset-fixture
coverage-dashboard
codex/mesh-loose-root
codex/mesh86-cache-padding
codex/xmem-scatter-preflight
codex/mesh-depth-ps
codex/indirect-dispatch-refresh
codex/compute-container-index
codex/startup-compute-formatted-load
codex/compute-indirect-producer
codex/compute-atomic-soffset
codex/mesh-dual-handoff
codex/startup-run-sh-watcher-control
codex/queue31-page-alias
codex/indexed-indirect-compute-root
codex/typed-buffer-view-metadata
codex/translated-indexed-address-alias
codex/fixed-mesh-create-result
codex/xmem-section-lease
codex/startup-slot86-mesh-cache
codex/restore-mesh-barrier-iteration
codex/translated-indirect-upload-index
codex/xapu-completion-opt-in
codex/translated-indexed-rect
codex/translated-indexed-indirect
codex/startup-mesh-lds-integration
codex/startup-console-ms24
codex/startup-slot57-mesh-request
codex/indirect-copy-provenance
codex/present-color-producer-trace
codex/compute-dispatch-binding-trace
codex/translated-indirect-table-buffers
codex/indirect-copy-provenance-base
codex/mix-half-literal-source
codex/translated-indirect-draw
codex/xmem-scatter-diagnostics
codex/slot148-recording-upload
codex/slot70-loading-art-verified
codex/command-list-upload-arena
codex/recover-failed-command-list
codex/startup-heap-timing-notes
codex/align-audio-input-timeline
codex/synthetic-depth-export-control
codex/startup-texture1d-on-windows
codex/1629-packed-position-fixture
codex/cpu-srv-refresh
codex/stream-root-srv-draw
codex/audio-mixer-timer
codex/startup-reload-published-shader
codex/priority-integrate-1284
codex/guest-sixteen-page-record
codex/aot-placed-dxr-batch
codex/guest-directory-selection
codex/gamesave-enumerate-read
codex/readme-archive-to-pixels
codex/pe-placed-view-draw
codex/archive-directory-gpu
codex/slot133-dxr-build
codex/materialize-placed-vertex-view
codex/dstorage-directory-offsets
codex/xg-nine-bc-copy
codex/xg-slot10-bc64-arrays
codex/dxr-guest-address-readback
codex/gpu-va-high-bits
codex/clarify-diagnostic-startup-scope
codex/xg-six-levels
codex/typed-derived-blend
codex/english-legal-text-progress
codex/address-bc-4ks
codex/dstorage-bounded-file-read
codex/wide-srv-offsets-menu
codex/startup-memory-srv
codex/bound-view-tail
codex/language-selector-readback
codex/setup-menu-progress
codex/cpu-plane-refresh
codex/startup-ubyte-vertex
codex/presenter-window-selection
codex/startup-uniform-buffer-lane
codex/intro-loop-timing
codex/static-clzero-loops
codex/document-rtx-intro
codex/startup-insertq
codex/nv12-startup-texture
codex/stream-stage-draw
codex/startup-null-uav-format
codex/startup-draw-capture
codex/shorten-windows-checks
codex/dstorage-rfc1950
codex/startup-dump-fence
codex/pr1135-review-base
codex/startup-stream-requests
codex/startup-chroma-view
codex/readme-graphics-pipeline-streams
codex/static-crt-free-tls
codex/arc-140t-rtx-5080-laptop-gpu-reports
codex/main-startup-progress-entry
codex/signed-dxil-catalogue
codex/reloc-free-preferred-base
codex/quad-dpp-bit-mask
codex/raw-srv-bounds
codex/rx9070-31044-hardware-report
codex/gpu-page-source-provenance
codex/runtime-placeholder-interior
codex/gpu-copy-queue-tile-order
codex/pe-pin-external-providers
codex/xmem-placeholder-reservations
codex/xmem-shared-physical-pages
codex/pe-package-startup
codex/xmem-tools-memory-query
codex/cpu-stack-output-import
codex/pe-load-security-cookie
codex/record-three-bvh-retests
codex/cpu-rbp-frame-anchor
codex/xmem-default-startup
codex/record-rtx-3050-ti-9597
codex/docs-readme-start-here
codex/check-compute-mad24-truncation
codex/docs-discord-community
codex/bound-rcx-branch-mutants
codex/rtx5060ti-bvh-62114
codex/837-neutral-readme-disclaimer
codex/record-rtx-3070-ti
codex/title-neutral-public-wording
codex/exe-shadow-frame-submissions
codex/exe-shadow-runtime-chain
codex/readme-polish
codex/gpu-coverage-nov23
codex/spirv-minlod
codex/shadow-shim-device
codex/exe-two-shadow-frames
codex/shim-dispatch-cleanup
codex/fix-spirv-cache-probe
codex/sampler-use
codex/ballot-bit-extract
codex/packed-fma-release
codex/cpu-packed-fma-o2
codex/publish-coverage-dashboard
codex/mesh-cbv-binding-order
codex/spirv-window-fixture
codex/ps-e32-float-uint
codex/ps-cbuffer-reads
codex/fixed-profile-rescan
codex/shim-compute-integration
codex/readme-visible-coverage
codex/readme-research-navigation
codex/integrate-pr-256
codex/indexed-mesh
codex/sampled-coverage
codex/first-ms
codex/dual-ps
codex/ps-attribute
codex/compute-first
codex/ps-export
codex/readme-research-status
codex/ps-layout
codex/blast-window
codex/chart-caption
codex/reviewer-roles
codex/blast-aot
codex/archive-program
codex/crc-stream-program
codex/exe-image-data-chain
codex/local-cpu-fixture-coverage
codex/exe-bound-frame-chain
codex/exe-mapped-comparison
codex/contribution-dependencies
codex/exe-entry-aot
codex/bink-frame-heap-integration
docs/hardware-seven-reports
codex/bink-custom-heap
codex/bink-heap-callers
codex/discussions-entry-points
codex/gpu-community-batch-64
codex/ffx-scratch-writers
codex/generic-project-documentation
codex/ffx-dispatch-rcas
codex/four-windows-gpu-reports
codex/title-neutral-project-wording
codex/community-coverage-provenance
codex/rcas-packed-texels
codex/community-gpu-retests
codex/community-build-and-gpu-reports
codex/ffx-provider-loop
codex/ffx-recurrent-views
codex/ffx-recurrent-resource
codex/amd-wave64-reports
codex/ffx-backend-slots
codex/upscaler-device-init
codex/ffx-context-lifecycle
codex/ffx-version-query
codex/ffx-provider-contract
codex/typed-object-callback
codex/cpu-ordinal-import
codex/chained-cpu-ranges
codex/cpu-import-call
codex/cpu-direct-call
codex/cpu-leaf-aot
codex/community-project-status
codex/script-state-path-replay
codex/script-state-evidence
codex/bc7-resident-tail
codex/bcpack-mip-tail
codex/bc7-texture-draw
codex/asset-ranges
codex/pixel-constants
codex/pixel-aot
codex/pre-exe-workloads
codex/root-signature-device-coverage
engineering/packed-bvh-leaves
engineering/bvh-build-and-update
engineering/intake-root-roundtrip
community/gpu-check-release
community/english-contributor-entry
gpu-check-v0.1.0
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Reference
R0Y00/Xbox2Windows#19
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-21T09:10:33Z.
Follow-up to #18. The native path replay takes explicit requests and resolves them against the archive hierarchy. The outstanding question is how the game produces a request and whether it resolves missing or duplicate IDs using fallback or precedence.
A reproducible witness should connect an input event or caller condition to the selected context and target ID, establish its direction, and distinguish it from a camera parameter containing the same integer. Test both an activating input and a nearby input that takes a different branch. Preserve the local-only archive workflow and use synthetic fixtures when publishing tests.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-21T14:38:25Z.
For a first contribution, the existing state replay is a control. It can show what happens after a context and target ID have been supplied. The missing observation is the producer of that pair. A useful report would trace one candidate event or caller to its two output IDs, then vary one input and record whether it chooses a different state. Please identify which values came from the observed data and which the test supplied. A source-built fixture and expected results are enough for a public PR.
Imported from R0Y00/Xbox2Windows. Originally posted by MarlomMedeiros on 2026-11-21T16:10:39Z.
Extending the script-state notes from #18 to the activation question,
using the repo's own resolve_script_path reference walker and the local
script.rpf corpus (1,012 PSIN records; single package, no second source;
everything stays local).
Corpus structure: 996 'shopcomponents' records (physical shop
interaction sites: promptposition, scenepositionheading, standflags,
locationname, weapon, kitmod), 8 'states' libraries at record indices
{10,200,232,292,773,798,872,1010}, and 8 records of other shapes. The
states libraries are hierarchical state(id=, type=) trees
whose leaves carry camera parameter nodes (0xc9fd9c54, all five probe
literals verify) or preview-offset nodes (0xd5b27926).
Call site (serialized side): 44 of the 996 shopcomponents records
declare context-key digests, 19 locationname and 25 weapon records,
disjoint. Matches land exclusively on level-1 state ids and nowhere
else in the corpus (expected chance ~1e-5 or lower; observed 5
locationname -> Rec 798 states, 28 weapon -> Rec 10 states; zero
other matches across every kind-5 digest in the file). The other six
libraries take keys from non-shopcomponents records, e.g. Rec 239 ->
Rec 1010 via 'medium'.
Activation, exercised through the repo's DLL:
44 -> camera leaf 54 in Rec 798 (0xa8638f41 is the locationname
digest carried by Rec 787's shopcomponent data).
{0xb7f05d20, medium, 0xc51a15b8, 0x9e5a1ad0} resolves to four
distinct state nodes {44,46,48,50} -> camera leaves {54,53,52,51}
with three distinct parameter sets (leaves 51 and 52 are
byte-identical).
fabricated 0xdeadbeef both return -1 with the active pointer
preserved. Each library carries exactly one id='default' state,
always at level 1 (node 2): retrying [default] lands on node 2 ->
camera leaf 3. No default exists at deeper levels in any library, so
the fallback appears to be caller-side.
return -2. In Rec 10 all 23 pairs split by differing 'type'
(item/weaponitem, itemgroup/weapongroup, ...); in Rec 872 and
Rec 1010 the two pairs have identical type, a true data ambiguity.
('true'/'false' bools) under node 344; any descent into that sibling
list returns -3.
Pointer semantics of the reference resolver (12k randomized cases vs an
independent model, zero divergences): relative paths start at *active,
'up' climbs parents but cannot pass the container, and the active-
pointer update is atomic on success only; -1/-2/-3, including mid-path
misses, leave it untouched.
The (id,type) dispatch gap, worth flagging: all 30 shop 'weapon' attrs
sit on nodes literally named 'item', and every ambiguous weapon id
splits exactly as (type=item, type=weaponitem), so a type-aware lookup
appears to resolve all 28/28 real weapon inputs uniquely, while the
id-only reference walker reports -2 on 9 of them. The serialized data
looks built for keyed (id,type) descent; the reference resolver is a
conservative id-only approximation, and its -2 on those 9 inputs is
probably a model artifact rather than broken data.
Not yet established: the native runtime event that invokes this lookup
(lives in script/engine code, not in these tables); how a given
shopcomponents record selects which states library it uses (only
inferred via the shared id domains); and the encrypted LSNS string
pool, which keeps ~40 hash names unresolved.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-21T16:22:50Z.
Thanks for narrowing the lookup to a candidate (id, type) pair. Please preserve that observation and its limits in the next fixture. The remaining question is which runtime event supplies that pair. A positive case and a nearby input selecting a different state would connect the two.
Imported from R0Y00/Xbox2Windows. Originally posted by MarlomMedeiros on 2026-11-21T16:48:28Z.
PR #133 adds the fixture:
tests/script_dispatch_check.pybuilds asynthetic
stateslibrary plus ashopcomponents-style carrier andexercises the pair supply and both selection cases through the
unmodified reference host.
On the remaining question, the serialized data suggests the carrier
node itself supplies the pair: the carrier's node name carries the
typewhile its kind-5 attribute carries theid. Real-data anchor:Rec 1 node 40 is an
item-named node undershopcomponent -> data -> 0xbf61523dholdingweapon(0xe68a4a98)=0x9fcad864, i.e. the pair(id=0x9fcad864, type=item), which resolves to Rec 10 node 290(previewoffset leaf); the same id with
type=weaponitemselectssibling 332 instead. Which native caller performs that extraction is
still open.
Fixture coverage: id-only -> -2; (id, item) -> node 4 -> preview-offset
leaf; (id, weaponitem) -> node 6 -> deeper state -> camera leaf;
unmatched type -> -1; kind=4 bool id -> -3; 3-level
positive/divergent camera branches; relative branch switching; dropped
siblings asserted unreachable. All digests are synthetic joaat labels,
no game data.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-21T17:23:14Z.
Thanks for the synthetic dispatch fixture in #133. It now gives the proposed (id, type) lookup a reproducible test; the outstanding step on the PR is CTest registration. This issue remains open for evidence of the runtime event that supplies the pair.
Imported from R0Y00/Xbox2Windows. Originally posted by Vonsek on 2026-11-21T18:50:36Z.
I checked how much context the serialized
mediumassociation can supply. The archive contains a kind-5 field in PSIN record 239, node 3, whosetextHashisjoaat("medium"). A nearby node, 7, carries a different kind-5 value in the same field (0x6ad38ac4). I supplied the library, root container and invocation to the source-built reference walker in each replay.mediumselects node 272 with two direct camera children whose five literal hashes verify. With library 798 supplied, it selects node 6, which has a different state type and one verified camera child.mediumreturns-1. The same digest occurs under two nested parents there. That makes the record 239 → 1010 association a shared label whose parent context still needs evidence.-1in all three libraries and preserves the active state. Supplying the original field's raw integer or a verified camera's raw priority as the lookup key also returns-1and preserves the active state.To reproduce, build
script_path_hostand runpython -B tools/script_state_probe.py <local-script.rpf> --state medium. It lists the matches in libraries 10, 798 and 1010. For the native control, userecordsandtree_arraysfromtools/script_state_probe.pyto read the four records. Take the kind-5textHashfor field0x6ad38ac4at nodes 3 and 7 of record 239. Pass the hashes one at a time toresolve_pathintests/script_dispatch_check.py, starting with node 1 as both the container and active node for each library. Carry the active node from the first result into the negative controls. An independent byte decode confirmed the source field and selected nodes. The three script CTests passed ate8895ad.The run establishes that the observed digest can select different camera states once a context is supplied. The runtime event that picks the library and parent path remains unobserved. That step still needs a trace of the caller or a captured input event with its actual lookup arguments.
Imported from R0Y00/Xbox2Windows. Originally posted by SuperCraft3M on 2026-11-24T12:45:32Z.
Claiming the remaining native-producer slice of #19: identify how a real runtime event or script caller supplies the
(id, type)pair to the state resolver, rather than repeating the serialized-tree analysis already covered by #133.Plan: inspect the local executable and script package offline, retain binaries, disassembly, offsets and paths locally, and look for one positive event/call path plus a nearby input that selects a different branch. Cross-check any proposed pair through the existing source-built resolver fixture; add a synthetic regression only if the observation supports a stable public contract. Report only a sanitized, evidence-limited summary.
Environment: Windows 11 build 26300.9711, x64, RTX 4070 (driver 32.0.16.2114); GPU is not required. I will work from current upstream main
cec885b2; planned validation ispython -B tests/script_dispatch_check.pyand the registered script CTest(s). This depends on the merged #18/#133 resolver baseline. I found no open PR or assignee covering the native caller. No executable, archive or extracted game data will be published.Imported from R0Y00/Xbox2Windows. Originally posted by SuperCraft3M on 2026-11-24T12:49:35Z.
Local-data check (2026-11-24): the existing aligned-page probe recognizes 1,012 PSIN records / supported trees in the local script archive. Its existing validation then stops on a state node whose
idattribute is not label-kind (2 occurrences); this is consistent with the source-built resolver treating such IDs as malformed, so I did not weaken that check. This archive-only result does not identify the native runtime event/call site that supplies(id, type). No game data, paths, values, or binary artifacts are attached. I am leaving the source unchanged rather than infer a caller from serialized structure.