Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
287ad08
Model selectable PAC appearance slot sets
VrUaCom Sep 27, 2026
501c4bb
Split em034 Lady appearance sets
VrUaCom Sep 27, 2026
3d82f10
Filter PAC MODs by selected appearance
VrUaCom Sep 27, 2026
06bfde9
Report selected PAC appearance in inspection
VrUaCom Sep 27, 2026
7bfbf68
Regress em034 appearance separation
VrUaCom Sep 27, 2026
94895c4
Fix inspection property assertion
VrUaCom Sep 27, 2026
0b35cb9
Export inspection reports from Info dialog
VrUaCom Sep 27, 2026
f0b3934
Bump Lady assembly fix candidate to v69
VrUaCom Sep 27, 2026
d93a61d
Pin verifier to v69 candidate identity
VrUaCom Sep 27, 2026
97cdf72
Update core CI artifact identity to v69
VrUaCom Sep 27, 2026
da54a0d
Model em034 companion attachment and cloth relation
VrUaCom Sep 27, 2026
74b1aba
Attach Lady companion MOD to body pelvis
VrUaCom Sep 27, 2026
840609a
Place em034 companion and expose evidence status
VrUaCom Sep 27, 2026
7bf9dd2
Test em034 selected parts and companion placement
VrUaCom Sep 27, 2026
a2351c1
Report actual composite placement state
VrUaCom Sep 27, 2026
e96a92b
Test selected em034 parts without synthetic skip count
VrUaCom Sep 27, 2026
1484c9b
Expand PAC appearance attachments for Lady equipment
VrUaCom Sep 27, 2026
31d2067
Restore Lady hair and Kalina Ann assembly
VrUaCom Sep 27, 2026
7b4eca0
Separate confirmed Lady hair from candidate weapon placement
VrUaCom Sep 27, 2026
364bce6
Expose motion pack slot to Android UI
VrUaCom Sep 27, 2026
1b22630
Bridge motion pack identity to Java
VrUaCom Sep 27, 2026
20f370a
Separate animation PAC groups in the motion strip
VrUaCom Sep 27, 2026
d1b2a91
Regress Lady hair and weapon assembly contract
VrUaCom Sep 27, 2026
c82ea87
Bump Lady assembly follow-up to v70
VrUaCom Sep 27, 2026
6c6a300
Pin verifier to v70 candidate identity
VrUaCom Sep 27, 2026
a5f2edd
Update CI artifact identity to v70
VrUaCom Sep 27, 2026
a153299
Avoid sparse alias artifacts in em034 synthetic test
VrUaCom Sep 27, 2026
354c968
Add canonical CEm034 Lady equipment contract
VrUaCom Sep 28, 2026
47f5b04
Store canonical Lady component bindings in sessions
VrUaCom Sep 28, 2026
63191e2
Replace Lady joint9 candidates with canonical component presets
VrUaCom Sep 28, 2026
708bc19
Apply canonical Lady placement offsets and runtime bindings
VrUaCom Sep 28, 2026
1239c06
Expose canonical Lady attachment matrix builder
VrUaCom Sep 28, 2026
30dfe87
Test canonical Lady component assembly and reject joint9 fallback
VrUaCom Sep 28, 2026
f5df76d
Fix Lady assembly test includes
VrUaCom Sep 28, 2026
e239993
Expose generic five-channel MotionScript signals
VrUaCom Sep 28, 2026
cf368af
Parse all five MotionScript signal channels
VrUaCom Sep 28, 2026
8ed5598
Add CEm034 state and signal runtime bridge API
VrUaCom Sep 28, 2026
4a0021a
Implement CEm034 state and signal component bridge
VrUaCom Sep 28, 2026
4666ed0
Cover CEm034 state signal and action50 regressions
VrUaCom Sep 28, 2026
e8e1239
Model exact Lady component3 runtime scale
VrUaCom Sep 28, 2026
069c1ff
Materialize Lady component3 body-root scale exactly
VrUaCom Sep 28, 2026
fd4c143
Test exact Lady component3 root-scale bridge
VrUaCom Sep 28, 2026
b39ddd5
Retain multiple boss MotionScript controllers
VrUaCom Sep 28, 2026
5c463c8
Retain em034 body and component0 MotionScripts
VrUaCom Sep 28, 2026
72d598a
Expose canonical Lady bank4 action state mapping
VrUaCom Sep 28, 2026
70b989e
Switch Lady slot20 between host and independent MOT domains
VrUaCom Sep 28, 2026
cd7f8f0
Retain assembled archive identity for script routing
VrUaCom Sep 28, 2026
2c8eba6
Store PAC archive name in assembled sessions
VrUaCom Sep 28, 2026
263e4b9
Add separate MotionScript playback API
VrUaCom Sep 28, 2026
32212aa
Preserve script-addressable MOT packs before filtering
VrUaCom Sep 28, 2026
69022cd
Add role-aware MotionScript to MOT routing
VrUaCom Sep 28, 2026
cf109d4
Execute CEm034 MotionScript runtime by frame
VrUaCom Sep 28, 2026
8c80cdf
Implement separate native MotionScript playback
VrUaCom Sep 28, 2026
5b4f583
Expose MotionScript playback through JNI
VrUaCom Sep 28, 2026
5542341
Expose separate Script Play controls to Android
VrUaCom Sep 28, 2026
1f8b3c2
Add separate Script Play buttons before each MOT
VrUaCom Sep 28, 2026
62baa09
Add script-free library MOT playback helper
VrUaCom Sep 28, 2026
446b9c3
Separate raw Lady MOT control and reset runtime on clear
VrUaCom Sep 28, 2026
c9bb407
Bind canonical em034 body motion groups
VrUaCom Sep 28, 2026
15bb6c6
Link MOT rows to every MotionScript controller
VrUaCom Sep 28, 2026
aacc75f
Route raw library MOT through script-free component playback
VrUaCom Sep 28, 2026
017653c
Use EXE-confirmed CEm034 body motion group map
VrUaCom Sep 28, 2026
5ea682c
Encode full CEm034 body script state mapping
VrUaCom Sep 28, 2026
4f41d72
Honor CEm034 lane-specific Script Play mapping
VrUaCom Sep 28, 2026
c280d4d
Encode lane-exact CEm034 state script starts
VrUaCom Sep 28, 2026
3b975fa
Precompute canonical MotionScript links per MOT
VrUaCom Sep 28, 2026
f69bdbc
Replay both CEm034 script lanes exactly
VrUaCom Sep 28, 2026
4b6fda9
Consume precomputed ScriptLinks during playback
VrUaCom Sep 28, 2026
7a9f0de
Test asymmetric CEm034 script lane starts
VrUaCom Sep 28, 2026
6f4f1a9
Retain Lady dynamic Shl visual sources
VrUaCom Sep 28, 2026
37f3efb
Retain latent Lady Shl02 Shl03 visual resources
VrUaCom Sep 28, 2026
4cbaf67
Render active Lady Shl visuals as derived presentation
VrUaCom Sep 28, 2026
48f135d
Track Lady Shl presentation lifetime and velocity
VrUaCom Sep 28, 2026
2bf5633
Materialize canonical Lady Shl02 Shl03 spawn presentation
VrUaCom Sep 28, 2026
474de7e
Guard latent Lady Shl resources outside persistent composite
VrUaCom Sep 28, 2026
7627f9f
Fix Lady decimal-vs-hex state regression
VrUaCom Sep 28, 2026
ecad871
Separate Lady Shl spawn and update clocks
VrUaCom Sep 28, 2026
cbe8550
Model Shl02 two-phase default-timescale presentation
VrUaCom Sep 28, 2026
9e47567
Test Lady costume2 by slot identity not vector order
VrUaCom Sep 28, 2026
d07edc6
Fix Lady PAC regression test build
VrUaCom Sep 28, 2026
6ae131c
Make Lady lane masks explicit uint8
VrUaCom Sep 28, 2026
5aa4965
Retain Lady dynamic source scenes for exact skinning
VrUaCom Sep 28, 2026
eed8ee5
Retain slot30 skeleton authority for Lady tether
VrUaCom Sep 28, 2026
2c3d48d
Skin Lady slot30 from exact five-node tether matrices
VrUaCom Sep 28, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ jobs:
AAPT2="$ANDROID_SDK_ROOT/build-tools/36.0.0/aapt2"
"$AAPT2" dump badging "$APK" > /tmp/core-badging.txt
grep -Fq "package: name='com.dmcrengine.nativereader'" /tmp/core-badging.txt
grep -Fq "versionCode='65' versionName='1.0.38'" /tmp/core-badging.txt
grep -Fq "versionCode='70' versionName='1.0.43'" /tmp/core-badging.txt
"$AAPT2" dump xmltree "$APK" --file AndroidManifest.xml | tee /tmp/manifest.txt
grep -Fq 'application/vnd.dmc.scm' /tmp/manifest.txt
grep -Fq 'application/vnd.dmc.mod' /tmp/manifest.txt
Expand All @@ -231,21 +231,21 @@ jobs:

- uses: actions/upload-artifact@v4
with:
name: dmc-native-reader-v65-modular-debug
name: dmc-native-reader-v70-modular-debug
path: app/build/outputs/apk/debug/app-debug.apk
retention-days: 7

- uses: actions/upload-artifact@v4
with:
name: dmc-native-reader-v65-modular-release-unsigned
name: dmc-native-reader-v70-modular-release-unsigned
path: app/build/outputs/apk/release/app-release-unsigned.apk
retention-days: 7

- name: Preserve Phase 2 failure evidence
if: failure()
uses: actions/upload-artifact@v4
with:
name: dmc-native-reader-v65-phase2-failure-evidence
name: dmc-native-reader-v70-phase2-failure-evidence
path: |
build/phase2-evidence/
app/build/outputs/apk/debug/app-debug.apk
Expand All @@ -255,7 +255,7 @@ jobs:

- uses: actions/upload-artifact@v4
with:
name: dmc-native-reader-v65-phase2-evidence
name: dmc-native-reader-v70-phase2-evidence
path: build/phase2-evidence/
if-no-files-found: error
retention-days: 7
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ android {
applicationId = "com.dmcrengine.nativereader"
minSdk = 26
targetSdk = 36
versionCode = 68
versionName = "1.0.41"
versionCode = 70
versionName = "1.0.43"

// Do not set -std= or other semantic C++ flags here. Gradle's CMake
// cppFlags are global to the external native build. Language mode is
Expand Down
74 changes: 70 additions & 4 deletions app/src/main/cpp/app_native.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,74 @@ Java_com_dmcrengine_nativeviewer_NativeBridge_motionLibraryName(
} catch (...) { return env->NewStringUTF(""); }
}

extern "C" JNIEXPORT jint JNICALL
Java_com_dmcrengine_nativeviewer_NativeBridge_motionLibraryPackSlot(
JNIEnv*, jclass, jlong handle, jint index) {
const SessionLock jni_lock{session_mutex()};
const Session* session = from_handle(handle);
if (session == nullptr || index < 0 ||
static_cast<std::size_t>(index) >= session->motion_library.size()) {
return -1;
}
return static_cast<jint>(
session->motion_library[static_cast<std::size_t>(index)].pack_slot);
}

extern "C" JNIEXPORT jint JNICALL
Java_com_dmcrengine_nativeviewer_NativeBridge_motionScriptCount(
JNIEnv*, jclass, jlong handle) {
const SessionLock jni_lock{session_mutex()};
const auto count = dmcresource::motion::motion_script_count(from_handle(handle));
return count > static_cast<std::size_t>(std::numeric_limits<jint>::max())
? std::numeric_limits<jint>::max()
: static_cast<jint>(count);
}

extern "C" JNIEXPORT jint JNICALL
Java_com_dmcrengine_nativeviewer_NativeBridge_motionScriptSlot(
JNIEnv*, jclass, jlong handle, jint script_index) {
const SessionLock jni_lock{session_mutex()};
if (script_index < 0) return -1;
const auto slot = dmcresource::motion::motion_script_slot(
from_handle(handle), static_cast<std::size_t>(script_index));
return slot == std::numeric_limits<std::uint32_t>::max() ||
slot > static_cast<std::uint32_t>(
std::numeric_limits<jint>::max())
? -1
: static_cast<jint>(slot);
}

extern "C" JNIEXPORT jboolean JNICALL
Java_com_dmcrengine_nativeviewer_NativeBridge_motionScriptCanPlayMotion(
JNIEnv*, jclass, jlong handle, jint script_index, jint motion_index) {
const SessionLock jni_lock{session_mutex()};
if (script_index < 0 || motion_index < 0) return JNI_FALSE;
return dmcresource::motion::motion_script_can_play_motion(
from_handle(handle),
static_cast<std::size_t>(script_index),
static_cast<std::size_t>(motion_index))
? JNI_TRUE
: JNI_FALSE;
}

extern "C" JNIEXPORT jstring JNICALL
Java_com_dmcrengine_nativeviewer_NativeBridge_loadLibraryMotionScript(
JNIEnv* env, jclass, jlong handle, jint script_index, jint motion_index) {
const SessionLock jni_lock{session_mutex()};
if (script_index < 0 || motion_index < 0) {
return env->NewStringUTF("MotionScript: invalid index");
}
try {
auto report = dmcresource::motion::load_scripted_motion(
from_handle(handle),
static_cast<std::size_t>(script_index),
static_cast<std::size_t>(motion_index));
return env->NewStringUTF(report.detail.c_str());
} catch (...) {
return env->NewStringUTF("MotionScript: load failed");
}
}

extern "C" JNIEXPORT jstring JNICALL
Java_com_dmcrengine_nativeviewer_NativeBridge_loadLibraryMotion(
JNIEnv* env, jclass, jlong handle, jint index) {
Expand All @@ -641,10 +709,8 @@ Java_com_dmcrengine_nativeviewer_NativeBridge_loadLibraryMotion(
return env->NewStringUTF("Motion: invalid library index");
}
try {
// Copy: load_motion() may clear/replace state that references the library.
const auto payload = session->motion_library[static_cast<std::size_t>(index)];
const auto report = dmcresource::motion::load_motion(
session, payload.name, payload.bytes.data(), payload.bytes.size());
const auto report = dmcresource::motion::load_library_motion(
session, static_cast<std::size_t>(index));
return env->NewStringUTF(report.detail.c_str());
} catch (...) { return env->NewStringUTF("Motion: load failed"); }
}
Expand Down
19 changes: 19 additions & 0 deletions app/src/main/cpp/include/dmcresource/motion/motion_player.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ struct MotionLoadReport final {
const std::uint8_t* bytes,
std::size_t size) noexcept;

// Raw library MOT playback. This remains script-free, but may temporarily
// release a component from its host constraint when the MOT targets that
// component's own skeleton (CEm034 slot20 / PAC11).
[[nodiscard]] MotionLoadReport load_library_motion(Session* session,
std::size_t motion_index) noexcept;

// Pose the Session at `frame` (MOT timeline units, 60 per second in DMC3).
// Skins the render mesh through inverseRest * currentWorld and refreshes the
// skeleton overlay. Returns false when no motion is bound.
Expand All @@ -49,4 +55,17 @@ void clear_motion(Session* session) noexcept;
// same binding load_motion uses). Host-joint parts (coats) do not count.
[[nodiscard]] bool motion_can_drive(const Session& session, std::span<const std::uint8_t> mot) noexcept;

// MotionScript playback is intentionally separate from raw MOT playback.
// A PAC may retain multiple independent script controllers; each script button
// can address only MOTs referenced by that script's resource table.
[[nodiscard]] std::size_t motion_script_count(const Session* session) noexcept;
[[nodiscard]] std::uint32_t motion_script_slot(const Session* session,
std::size_t script_index) noexcept;
[[nodiscard]] bool motion_script_can_play_motion(const Session* session,
std::size_t script_index,
std::size_t motion_index) noexcept;
[[nodiscard]] MotionLoadReport load_scripted_motion(Session* session,
std::size_t script_index,
std::size_t motion_index) noexcept;

} // namespace dmcresource::motion
13 changes: 13 additions & 0 deletions app/src/main/cpp/include/dmcresource/motion/motion_script.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ struct WeaponStateKey final {
std::uint8_t state{};
};

// Raw opcode-3 five-channel payload at one script time. This is the generic
// MotionScript contract used by CEm034; player weapon state remains a
// projection of channel byte 1 (b2 low 6 bits).
struct ScriptSignalKey final {
float after_frame{-1.0F};
std::array<std::uint8_t, 5> channels{};
};

// What one script does, walked like the interpreter (first block chain up to
// the motion end, a loop jump or a hand-over to another MOT).
struct ScriptSummary final {
Expand All @@ -45,6 +53,7 @@ struct ScriptSummary final {
bool loops{}; // opcode 2 (backward jump)
bool hands_over{}; // a second opcode 1
std::vector<WeaponStateKey> states;
std::vector<ScriptSignalKey> signals;
std::array<std::uint16_t, 64> opcodes{}; // count per opcode (0..63)
};

Expand Down Expand Up @@ -89,6 +98,10 @@ class MotionScriptFile final {
[[nodiscard]] std::vector<WeaponStateKey> weapon_states(std::size_t bank,
std::size_t action) const;

// Full opcode-3 five-channel timeline for enemy/boss consumers.
[[nodiscard]] std::vector<ScriptSignalKey> signals(std::size_t bank,
std::size_t action) const;

// Motion resources an action plays (empty without table B).
[[nodiscard]] std::vector<MotionResource> resources(std::size_t bank,
std::size_t action) const;
Expand Down
Loading
Loading