BaseEngine.InspectArmorCapsule(game, slot, enhanced) reports eligibility without
changing equipment. TryAcquireArmorCapsule commits an accepted reward, using
the capsule’s source game rather than the currently selected player profile.
InspectX3ArmorCapsule and TryAcquireX3ArmorCapsule are source-specific aliases.
These methods belong at the acquisition controller’s reward callback. Original
controllers award on an animation flag, after entry; trigger overlap is not the
reward event.
engine.TryAcquireArmorCapsule(OriginalGame.X1, ArmorParts.Legs);
engine.TryAcquireArmorCapsule(OriginalGame.X3, ArmorParts.Arms);
engine.TryAcquireX3ArmorCapsule(ArmorParts.Arms, enhanced: true);
The ordinary reward changes only its own slot. It can replace a foreign-family
part in an explicitly mixed loadout. An already equipped matching part is not
awarded twice. X3 pink capsules require the corresponding normal X3 part and
reject another installed X3 chip. Both refusal states leave the capsule present:
native refusal1 means missing base part,2 means another chip. An already acquired
reward instead removes the capsule. Acquired rewards are recorded by GameManager
in the existing session CollectedItems, using a stable identity for the source
game, slot and normal/chip reward. This inventory is independent of equipped
parts: unequipping or replacing a part does not make its capsule available again,
refill its resource or permit collecting a second native X3 chip. Demo, Sandbox
and campaign contexts all retain these identities through their version-one saves.
Current equipment still supplies eligibility for authored startup loadouts and
legacy saves without separate acquisition identities. Plain EquipArmor does not
record progression. Collecting a chip with an authored normal part also records
that underlying part. X3 capsule eligibility combines acquired ownership with the
equipped X3 parts without changing the equipment during the query. A collected
normal X3 part can receive its chip even when a foreign part currently occupies
that slot. The accepted reward then equips the enhanced X3 part.
Authoring APIs EquipArmor and TryEnhanceArmor remain unrestricted by the
single-chip capsule rule, allowing the user’s requested mixed/chipped startup
configurations and console testing. Capsule rules apply to acquisitions through
the new API, not to every way a fangame can equip its player.
GameManager.OwnsArmorUpgrade(game, slot, enhanced) queries this collected
ownership. It does not invent past unequipped acquisitions that were absent from
older saves. Those saves remain compatible and retain their equipped-part fallback.
The native reward side effects are distinct from plain authoring equipment:
| Reward | Original side effect | Host resource |
|---|---|---|
| X2 helmet | $01:CE04 writesFF to1FCD |
Item Tracer becomes available/full |
| X2 body | $01:CE3C writesFF to1FCB |
Giga Crush fills to1C00 |
| X3 arm chip | $05:C824 writesFF to1FCC |
Hyper Charge fills to1C00 |
These addresses are HIGH resource bytes in their respective games. The native HUD clamps the fill request; the host stores a clamped resource value without native ownership/fill bits. Acquisition never selects the weapon or refills it again on a rejected duplicate. Dependencies must already be registered/prepared; the API performs no runtime ROM reads, decoding or precache work.
Source receipt retains exact ROM revisions, code ranges/hashes,16 semantic part/chip bindings and native positions. Generate/check:
python tools/parity/extract_armor_capsule_source.py --rom-dir XSharp/Assets/ROMs
python tools/parity/extract_armor_capsule_source.py --rom-dir XSharp/Assets/ROMs --check
| Game | Stage | Reward | Native X,Y |
|---|---|---|---|
| X1 | 2 | Body | 1752,496 |
| X1 | 4 | Arms | 2363,659 |
| X1 | 5 | Helmet | 4040,721 |
| X1 | 8 | Legs | 2528,624 |
| X2 | 1 | Body | 1600,1154 |
| X2 | 6 | Helmet | 3744,1426 |
| X2 | 7 | Legs | 7112,4802 |
| X2 | 8 | Arms | 1480,658 |
| X3 | 1 | Helmet chip | 2496,626 |
| X3 | 2 | Legs | 5552,642 |
| X3 | 3 | Arms chip | 6872,1154 |
| X3 | 4 | Legs chip | 4568,610 |
| X3 | 5 | Body | 1240,642 |
| X3 | 6 | Body chip | 1344,1922 |
| X3 | 7 | Helmet | 3560,642 |
| X3 | 8 | Arms | 3016,386 |
The original actor overwrites event-record XY from its stage table during
initialization. The exporter must reproduce those coordinates when the world
controller is integrated; copying event XY alone is insufficient. Original
part masks are helmet01, arms02, body04, boots08. Engine ArmorParts swaps the
arms/body bit meanings, so raw mask casts would award the wrong part.
Table extents end at the next table: X1 has9 stage entries, X2 has12, X3 has15. Reading the whole game’s level count as capsule-directory data would decode adjacent records. X1 stage3 and X2 stage0B reuse an arms index but are special Hadouken/Shoryuken capsules. X3 stage0A is Hyper Chip with separate admission requirements. All three are explicitly deferred, not classified as ordinary arms/part upgrades.
BaseEngine.AddCapsule is still an unimplemented world-actor entry point at this
milestone. Imported levels do not yet run the native entry, hologram/dialogue,
beam, reward and exit sequence. The acquisition API and source extraction above
are foundations for that port, not a claim that walking into imported capsules
already grants upgrades. The level exporter/factory wiring remains part of the
active armor goal. Do not replace that sequence with immediate touch-to-grant.
Native art packets for object4D/4E were extracted with the reusable EnemyExtractor
under %TEMP%/xsharp-armor-research/ArmorCapsule-packets-20261128. Reviewed art
composition uses assembly26/88, graphics25/88 and tile bias40hex. Palette38 is
used for X1, E4 for X2 and blue X3, D4 for pink X3. Each capsule has14 assembly
images; X3 blue/pink sheets were visually inspected. Private recipes contain
neutral required sequence placeholders for graphics export only; they are not
controller animations or hitbox evidence. Actual native animation directory
tables are X1 $AF:B6DB, X2 $2F:D75B, X3 $3F:DC30, with5 selectors each.
The source receipt also retains $13:C145..C260 and $13:C591..C5BC:
The particle/palette helpers of state08 now have a device-free C# port,
X3ArmorCapsulePulseControl, for13:C46F..C587. It preserves old-period reload
ordering, the eight initial particle bursts, subsequent three-burst growth,
one-burst recession, four allocation attempts and RNG only on successful
allocation. Native palette-resource IDs are emitted rather than guessed RGB tints.
Snapshot restoration preserves both partially elapsed clocks and rejects invalid
counters before replacing state. These helpers are not yet wired to a world
capsule; they neither admit a player nor award equipment by themselves.
Seventeen device-free cases passed, including allocation capacity0..4, exact
early growth/palette update boundaries, normal/chip palette IDs, both clamps,
mid-cycle snapshot continuation and rejection of malformed counters. The broader
capsule/armor/helmet/command-dash group passed187 cases. No native frame-trace
or rendered beam equivalence is claimed by those source-derived tests.
X3ArmorCapsuleAcquisitionControl now ports the accepted state08 sequence at
$13:C278..C45B, independently of devices. The host must first complete the
entry/admission/dialogue states; constructing this control is not a substitute
for those checks. Its boundaries describe the operations the world adapter must
perform, including alignment/input reset, object load-set save/restore, overlays,
exit pose, forced walkout and final camera/palette/control restoration.
X3ArmorCapsuleOverlayControl ports actor4E at $05:C6C7..C836 for ordinary
parts/chips. It requests the part’s dynamic graphics, waits four updates and
initializes the presentation on a separate update. Incoming animation starts
on update7, queues2B once, requests the reward on updates70 and71, displays
the terminal marker on74 and removes on75. The host must call the idempotent
TryAcquireX3ArmorCapsule at each reward request. The outgoing overlay skips
the graphics wait, starts on2, has no reward/sound request, displays its terminal
marker on14 and removes on15. Update numbers count the child’s first controller
call as1, not its allocation frame.
The four semantic parts select animation and frame-table directories8D..90.
The draw path $03:8FA4..8FDF uses actor16/17, not the98 written into actor10.
The previous note calling98 the sprite assembly was incorrect: directory98 has
only two images and cannot supply this overlay’s30 images. The control’s
SpriteAssembly now reports the actual part-specific directory, with all30
source assembly records and their hashes retained in the regeneration receipt.
Their timelines share addresses in the pinned revision, while their graphics
resources differ: requestsC0/C2/C4/C6 at $86:F483..F48A load graphics94..97
through $86:F6CC..F6E3. Normal parts and matching chips use the same part timeline.
Presentation initialization samples integer player X/Y once with offset(0,-64).
The adapter must preserve this origin and supply the source art/palette resources;
the control does not synthesize images or recolor a different part’s graphics.
EnemyExtractor --x3-capsule-art now composes the complete presentation without
using the older heuristic enemy packets. The data-only X3 asset assembly embeds
seven PNG/JSON pairs under Capsules/X3/: both body colors, the hologram and four
part overlays. Its source loader replays the split upload of common graphics98
through08:D7C9, alongside the individual94..97 upload. The15 common tiles occupy
96..103 and112..118; they are not contiguous. All159 frames across the seven
sheets resolve their tile coverage before writing. A missing tile fails export
instead of producing an apparently successful transparent frame. The exported
metadata retains frame origins, source revision, palette and upload provenance.
These resources prepare world integration; they do not make AddCapsule functional.
The extractor suite passes77 cases, including scatter destinations, source
offsets, queue-drain/zero markers and malformed-layout rejection. Two exports
produce identical bytes for all14 assets. The X3 asset package builds without
warnings/errors; inspection of that built assembly confirms14 embedded resources
and159 frames. The266 controller/equipment regressions remain green after the
frame-table correction. Body and helmet-effect atlases were visually inspected;
the remaining original-game palette/scene comparison is still a separate check.
Regenerate/check the timelines, eight walkouts and source receipt with:
python tools/parity/extract_x3_capsule_overlay.py --rom XSharp/Assets/ROMs/ZeroIsJegue.mmx
python tools/parity/extract_x3_capsule_overlay.py --rom XSharp/Assets/ROMs/ZeroIsJegue.mmx --check
The receipt is x3-capsule-overlay-source.json. Both controls support validated snapshots, including partial loading, particle, palette, animation and walkout intervals. Tests compare each image/duration and each walkout input against the extracted receipt, and exercise actual acquisition API callbacks for mixed loadouts. These are source-derived controller tests, not original frame traces or a working/rendered world capsule. Hyper Chip’s four-part overlay cycle remains deferred.
The overlay/accepted-sequence group passes63 cases. The expanded capsule, equipment, terrain, air-dash, helmet, command-dash and startup-options group passes266. The parent-before-child scheduler fixture acquires the arm chip once, fills Hyper Charge once, preserves a mixed X2 boots slot and keeps the weapon selection unchanged. That fixture’s allocation/update order is explicit; it does not establish original object-slot ordering. A world adapter must precache all body/hologram/overlay/particle art and audio before gameplay. Native dynamic load requests select already prepared resources in the host; they must not introduce runtime ROM reads, image decoding or audio loading.
The generic meaning of0A8E, native dialogue presentation and the host world controller remain to be completed. Actor5C’s entry05:C837 uses sprite89, separately from capsule88/reward4E. The earlier note calling018000 a dialogue service was incorrect: that entry is the native audio queue. No original-frame or hosted cutscene claim follows from these static leads.
The focused equipment/acquisition run passed99 tests; the broader armor/buster/
profile/package run passed689 with one existing skip. Tests cover source-family
selection on all base profiles, mixed slot preservation, both native chip refusal
reasons, no duplicate refill, native resource grants, invalid source/chip requests,
and the independent free authoring path. --check verifies the source receipt
against all three pinned ROMs. These tests do not validate the unfinished world
controller, its cutscene timing or a complete original-game playthrough.
The actual D3D9 engine’s --armor-capsule-acquisition smoke also passed with
an imported Sponge package, muted output and no runtime ROM. It acquired all12
ordinary parts, checked X2/X3 resource fills, rejected a second X3 chip and
restored equipment/resources from a full save. Sprite-sheet and sound-buffer
counts remained unchanged after the level precache.
The acquisition-persistence milestone adds48 focused ownership cases across demo, Sandbox and campaign, including mixed replacements, removed chips, startup-provided normal parts and rejection without duplicate resource refill. The combined acquisition/equipment/GameManager run passed165 tests; the broader armor/buster/profile/console run passed730 with one existing skip. The extended muted D3D9 smoke restores a second full snapshot with every part unequipped, checks all12 collected ordinary rewards, retains the X3 chip restriction and rejects duplicate refill without changing the empty loadout or loading assets.