Skip to content

v72: canonical em034 Lady runtime reconstruction - #104

Merged
VrUaCom merged 89 commits into
mainfrom
fix/em034-lady-assembly-info-export
Sep 28, 2026
Merged

VrUaCom merged 89 commits into
mainfrom
fix/em034-lady-assembly-info-export

Conversation

@VrUaCom

@VrUaCom VrUaCom commented Sep 27, 2026 •

Copy link
Copy Markdown
Owner

Canonical em034 Lady runtime reconstruction for the v72 device-acceptance line.

This PR remains DRAFT and device-first. Do not merge until the final Android build is physically checked with both Lady costumes.

What is now EXE/corpus-backed:

  • both Lady costumes use the same CEm034 runtime; only body/hair/texture resources differ;
  • costume 1: body slot 1 + hair slot 17;
  • costume 2: body slot 32 + hair slot 34;
  • five persistent CEm034 equipment components are slots 20..24;
  • the old "all Lady equipment on joint9" viewer model is rejected and removed;
  • each persistent component has the two recovered CEm034 placement presets, now represented as BodyStowed / ActiveDeployed with exact translation/rotation and effective parent semantics;
  • component3 active placement uses the recovered RuntimeBodyRootScaled parent, not a fake body joint13;
  • component3 runtime scale 1.0 <-> 1.5 is reproduced for action46;
  • slot20 placement state and control domain are independent; it can hand off from body constraint control to its own em034_013 MotionScript;
  • em034_012 (PAC slot12) and em034_013 (PAC slot13) are retained simultaneously;
  • all five opcode-3 signal channels are parsed;
  • the recovered CEm034 state -> bank/action -> lane map is used, including asymmetric lane0/lane1 starts;
  • action50 uses the corrected channel trace: channel0 runtime flag changes do not masquerade as placement changes;
  • raw MOT playback and MotionScript playback are separate modes;
  • each MOT row exposes a Script Play button for each MotionScript controller that actually references that MOT;
  • dynamic actor-owned resources are not persistent body attachments:
    • Shl02 -> slot25;
    • Shl03 -> slots26 + 30;
  • Shl02 and Shl03 spawn poses are derived from the recovered live slot20 node transforms;
  • slot30 is retained as a five-node skinned tether and uses the recovered per-frame straight-chain matrices through the canonical MOD skin palette;
  • Shl02 post-spawn steering remains explicitly world-context dependent because the EXE reads a live gameplay target manager; the standalone Reader does not fabricate that trajectory.

Presentation/assembly rules:

  • the base Lady composite is body + hair + persistent slots20..24 only (7 MOD parts);
  • slots25/26/30 are latent dynamic resources and appear only through Script Play runtime events;
  • costume-specific PTX pairing remains preserved;
  • dynamic presentation is derived per frame and does not mutate the canonical persistent composite.

Validation:

  • Android identity: versionCode 72 / versionName 1.0.45;
  • stable debug signer is the same repository test signer used by prior Android test/release builds;
  • exact-head host/Android CI run #884 passed on final v72 head 23d81babb0a34140d519de257bd6c12c09a1b265;
  • final slot30/source-scene tether skinning is included in that green head;
  • debug APK artifact dmc-native-reader-v72-lady-debug was produced by the same exact-head run;
  • extracted debug APK SHA-256: 15e48ec096b8536480a070e79cb5a0f67abcfd9b1a90fc3d5ac68142f03498a1;
  • PR v72: canonical em034 Lady runtime reconstruction #104 must remain DRAFT until that APK is physically checked on Android.

Physical acceptance still required:

  1. costume 1 and costume 2;
  2. hair placement;
  3. persistent equipment rest placement;
  4. Script Play vs raw MOT separation;
  5. slot20 independent MotionScript behavior;
  6. dynamic Shl02/Shl03 appearance;
  7. slot30 tether deformation;
  8. action46/action50 equipment transitions.

No merge to main before those checks pass.

@VrUaCom
VrUaCom marked this pull request as ready for review September 27, 2026 11:10

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 97cdf729ab

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

return;
}

pendingInfoExportText = formatInfoExport(snapshot, format);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve the export payload across activity recreation

If Android recreates the activity while the ACTION_CREATE_DOCUMENT picker is open—for example after a rotation or process reclamation—this instance field returns to its empty initializer. The subsequent REQUEST_EXPORT_INFO result therefore reaches exportInfoToUri() with no payload and reports that the export failed. Save and restore the pending payload (or persist enough data to reconstruct it) across activity recreation.

Useful? React with 👍 / 👎.

Comment on lines +334 to +338
for (std::size_t t = 0U; t < entries.size(); ++t) {
if (entries[t].archive == 0U && entries[t].container.empty() &&
entries[t].slot == override.texture_slot &&
entries[t].kind.format == Format::Ptx) {
texture = t;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Clear the fallback when an explicit PTX is unavailable

For an em034.pac whose designated PTX slot is missing or unrecognized, texture still contains the nearest-PTX fallback computed before this loop. Because a matching override exits the loop even when its target was not found, the model is then rendered with an explicitly known-wrong texture bank while the inspection report claims explicit appearance pairing. Reset the candidate when an override matches and leave it unpaired unless the requested slot is actually found.

Useful? React with 👍 / 👎.

@VrUaCom
VrUaCom marked this pull request as draft September 27, 2026 11:18
@VrUaCom
VrUaCom marked this pull request as ready for review September 27, 2026 11:18
@VrUaCom
VrUaCom marked this pull request as draft September 27, 2026 11:20
@VrUaCom
VrUaCom marked this pull request as ready for review September 27, 2026 11:20

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e96a92bf72

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

EvidenceLevel::StructuralConfirmed});
}
}
if (archive_name.find("em034") != std::string_view::npos) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve the warning for case-insensitive em034 names

When the same archive is named EM034.PAC or uses any other capitalization, archive_variants() still recognizes it and applies the structurally inferred companion attachment, but this case-sensitive substring check fails. The session then omits the non-canonical note, so the UI badge and exported inspection report no longer warn that the placement is not EXE-confirmed. Reuse the case-insensitive archive match rather than checking the original name with find().

Useful? React with 👍 / 👎.

@VrUaCom VrUaCom changed the title v70: fix em034 Lady hair/weapon assembly and motion-pack separators v70: canonical em034 Lady runtime reconstruction Sep 28, 2026
@VrUaCom VrUaCom changed the title v70: canonical em034 Lady runtime reconstruction v72: canonical em034 Lady runtime reconstruction Sep 28, 2026
@VrUaCom
VrUaCom marked this pull request as ready for review September 28, 2026 15:28
@VrUaCom
VrUaCom merged commit 4c38511 into main Sep 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant