The weapon is selectable as item_tracer when an X2 helmet is equipped, including
mixed loadouts and other Player families. It uses ordinary Shot input, costs no
energy, permits one active scanner per player and cannot damage enemies. Removing
the helmet gates new casts; an already emitted cursor completes its lifetime.
The native resource is represented by one availability unit in the general
weapon inventory, with zero shot cost and no energy-drop recovery.
The original manual describes selecting I.TRACER, pressing Y and showing nearby
hidden locations without consuming energy: Nintendo’s X2 manual.
The implementation’s clocks, geometry and selection below come from the pinned
USA ROM (SHA-1 637079014421563283CDED6AEAA0604597B2E33C).
The directory at $00:F90D maps weapon02 through $00:F963 to $01:8963.
The bounce controller $01:884B instead belongs to weapon06 via $00:F977.
The earlier bounce annotation was wrong. Reinspection of the original capture
also corrected the earlier claim that the5C00 experiment had failed: it contains
302 successful Item Tracer updates, including homing, lock and fade.
Password decoding $00:F288..F292 writes high byte40 for helmet ownership.
That word alone contains no usable energy and did not emit a cursor in a
separate controlled experiment. The head capsule at $01:CE04..CE08 writes FF
to1FCD. Selected-weapon HUD initialization $00:D5E3..D63A sets the bar flag and
clamps filled energy to5C. The new art probe reproduces the capsule write and
lets the normal menu/HUD path complete. The resulting scanner agrees with the
earlier5C00 trace. These are controlled inventory experiments, not unlock routes.
$01:8963..8A94 initializes at integer Player X,Y-16, captures facing and uses
horizontal speed0200. It loads a60-update timer. The next61 updates move first;
only after the timer was already zero does it query active small-world actors
with native ID3B. $08:DEB4..DEE8 enumerates slots1818..1D18 in order, and the
cursor takes the first result. It copies that marker’s integer coordinates
once. It does not choose the closest collectible or track a moving target.
Homing calls CX4 command15 for integer vector length and command0D for normalized speed0400. Normalization divides by the integer length, with truncation toward zero, instead of dividing by a floating-point hypotenuse. All59 nonterminal homing velocity pairs in the original trace match this arithmetic exactly. Distance below12 enters lock, sets timer120 and animation1. During lock, countdown multiples16 request sound59; the captured lifetime has seven such requests. The transition reloads60 before that sound test. The final phase alternates hidden/visible each update, then enters routine4 and is retired on the following dispatch. Animation continues through the phases. Initialization sets a script but does not draw until the first ordinary update.
The source metadata and both animation scripts (sheet93) are regenerable with
tools/parity/extract_x2_item_tracer.py. X2ItemTracerControl is host-independent
and serializable; X2ItemTracerWeapon supplies engine spawning, rendering and
native sound requests. Neither opens a ROM at runtime. Its ten RGBA images are
part of the common asset-only assembly and are precached during level loading.
The sound has the semantic name Item Tracer Target Lock; the reusable name
rule and original/new clip and manifest paths are recorded in the audio rename
catalog and docs/native-audio-renames.json.
Native targets are type1/id3B events, distinct from type3 enemies with the
same ID (Morph Moth). The exporter emits info_item_tracer_target entities for
X2 only. An editor/C#/script-authored marker has ordinary origin, Enabled,
Enable/Disable/Toggle and standard placed-entity camera activation. It is
invisible and has no renderer/audio dependency.
Older imported X2 levels already preserve these records in events/native.json.
The loader now migrates them to placed markers without a ROM or graphics rebuild;
an authored marker at the same position takes precedence, avoiding duplicates.
Setting nativeControllers:false disables this legacy migration; explicitly
authored marker entities remain usable in custom levels.
This makes existing Sandbox levels usable immediately and future exports retain
explicit editable entities. The old ROM compatibility loader also recognizes
this event. Source actor3B at32,808 in Sponge stage2 is the native test target.
The current imported X2 packages retain31 such markers across stages01/02/03/
05/06/07/08/10/11/12 (counts5/1/6/2/3/5/5/1/2/1 respectively). Every marker has
subtype0 and match0. Packed event flag04 terminates an event block, as decoded
by MMXCore.LoadEvents; it is not a different marker behavior or spawn mode.
This inventory is a metadata audit, not proof of all-stage activation parity.
The original CSV and SHA256 receipt are in this directory. Tests compare every one of302 original updates: position, velocity, state/routine, timer, target, animation image/flags/script/countdown and visibility, restoring a snapshot between updates. Additional checks cover no-target scanning, copied target position, invalid states, free-weapon validation and X2-only exporter output.
The muted DX9 --x2-item-tracer smoke loads the existing imported Sponge level
without a runtime ROM. It verifies the migrated marker, equipment selection,
ordinary input, the one-cursor limit, target acquisition, full-engine save/load
continuation, seven sound requests, blink/retirement, unchanged energy, removal
of helmet admission and no late sound/sprite loading. The ten source images
also undergo real D3D9 RGBA pixel comparisons.
Milestone validation:624 armor/buster/profile/package tests passed, with one
existing skip;32 D3D9 image tests passed;30 capture-host tests passed. Both ROM
metadata regeneration checks and the ten-image regeneration check passed. The
renamed sound’s encoded SHA256 is unchanged and its matching sidecar exists.
A final focused run passed all eight scanner/exporter/migration cases, including
the nativeControllers:false opt-out for older imported metadata.
This establishes the tested scanner/marker behavior. It does not prove native entity-pool slot reuse, all-stage marker activation order or complete Player, camera, enemy and lag equivalence. Standard engine placed-entity activation is used; exact native pool/camera scheduling remains part of optional precision work. X3’s stage scanner and capsule gameplay remain separate unfinished armor requirements. The CX4 arithmetic comparison covers the59 nonterminal homing vectors in the trace; it is not an exhaustive check of the processor’s full operand space.
python tools/parity/extract_x2_item_tracer.py --rom <X2-USA-ROM> --check
python tools/parity/extract_x2_item_tracer_sprites.py --rom <X2-USA-ROM> --capture <labelled-PPU-capture> --check
dotnet test XSharp.Tests/XSharp.Tests.csproj --filter FullyQualifiedName~X2ItemTracerTests
dotnet run --project tests/XSharp.LevelSmoke -- XSharp.LevelSandbox/Assets/Levels/X2/02.xlevel 0 --content-root=XSharp --x2-item-tracer