Skip to content

Add a bring-up profile for Dragon Quest Monsters: The Dark Prince 1.0.0 - #576

Open
tapionallanaire wants to merge 7 commits into
igawa6:mainfrom
tapionallanaire:pr/dqm-dark-prince-rebase-20261125
Open

tapionallanaire wants to merge 7 commits into
igawa6:mainfrom
tapionallanaire:pr/dqm-dark-prince-rebase-20261125

Conversation

@tapionallanaire

Copy link
Copy Markdown
Contributor

Needs manual testing and validation.

Supersedes #253, rebased onto main (0.1.7). Refs #244.

What and why

Adds the retail base application of Dragon Quest Monsters: The Dark Prince (0100A77018EA0000, package v0, display version 1.0.0) as an Android bring-up profile. It is not a supported release title: it stays out of peanuts/release-titles.txt.

The AArch64 main is 221c19c45e821e7ce155f734e979a800; the SDK identifies 13.3.5. Unity 2020.3.32f1 uses a Shader layout the reader already recognizes. No reader, host, shader chain or release listing changes.

Source checks: the owner-supplied package's five content-addressed NCAs matched their identifiers. The imported base package verified all 6,934 files. The normal split from that package found 35,020 unique keys (17,479 vertex, 17,483 pixel, 2 geometry and 56 compute), 17,482 vertex/pixel pairs and 1,990 shader-bearing RomFS files, and logged no omitted-file errors. Only text profile data and provenance notes are included.

Known stall (still expected on 0.1.7): two launches on Odin 2 (Android 13, Turnip v27.0.0-R1) stalled at startup while suspending an IL2CPP worker in a native wait; the process stayed alive. A trace put the worker in h_oe_PopMsg → pthread_cond_wait on the empty system-notification queue and the main thread in nn::os::detail::ThreadManager::SuspendThread → SVC 0x32, waiting for that worker to acknowledge its pause. An independent Thor run (Turnip v27.0.0-R1) hit the same suspension after real focus and operation-mode notifications; native frame 1 was black and the replay reached frame 6, not a title. No title screen, gameplay, save or audible game sound is claimed. Thread states and retest criteria are in #253's comments: Odin trace, Thor retest. The pause handshake in hle_thread.c and the native wait in hle_oe.c are the same on main as on the traced tree, so the stall is expected to remain. The initial virtual-memory layout has not been measured at run time. No update or DLC is registered.

What changed in the rebase

All device results above come from #253's tree (base eaaa4497, head c21d9d24). Nothing was re-run on a phone for this rebase.

Checked

  • Python tests on this branch and on main (Windows, Python 3.12): test_game_profile, test_docs, test_android_games, test_android_readiness, test_pack_android_builds, test_android_gamelist, test_profile_guess (dm/tools/tests), and test_issue_forms, test_generic_profile_install, test_runtime_shader_map (peanuts/tests). Both trees fail the same 32 tests here (the profile-option tests, the JVM game-list tests and one docs link test fail on main too on this machine); this branch adds no failure. Not run on macOS or Linux.
  • peanuts/scripts/check-profiles.sh 0100A77018EA0000 (package v0 is the highest build), games_catalog.py --check, issue_forms.py --check, docs_symptoms.py --check: up to date.
  • pr_risk.py main HEAD: one line, android/app/gradle.properties (host build): the nxGames list gains this title ID, which the default build needs for the profile's readiness row. No other build change.
  • Earlier, on Add a bring-up profile for Dragon Quest Monsters: The Dark Prince 1.0.0 #253's tree: the base 1.0.0 Android pack built, with all 35,020 keys translated and all 43,542 SPIR-V modules passing spirv-val --target-env vulkan1.3. That is a host check, not gameplay evidence, and it was not repeated on 0.1.7.
  • Unit tests (make -C dm/host/tests GAME=0100A77018EA0000 run): not run.

Docs

  • The findings are in the game note (dm/games/0100A77018EA0000/README.md) and its row in the games table
  • A chain tool changed: no
  • No game files, keys or data extracted from a game in the change or the attachments
  • Source only: no binaries, nothing under dm/third_party/, no change to dmsh_chain.lock; the branch starts from the current main

@igawa6

igawa6 commented Nov 24, 2026

Copy link
Copy Markdown
Owner

Thanks for the rebase and the thorough trace. Pinning the stall on the pause handshake against a worker blocked in h_oe_PopMsg is useful well beyond this profile.

This is now the one to keep: it carries #253's four commits plus the nxGames entry and the updated line reference, so we're closing #253 into this one.

It stays a draft and is not for 0.1.9 in this form. The game hangs at startup on both devices, and this branch adds it to nxGames with a status bring-up row, which would ship a title that never reaches its title screen in the default APK. Two ways forward:

  1. Keep it source only: drop the readiness status row and the nxGames commit. Then it changes nothing for anyone and can sit until the host side is fixed.
  2. Fix the host first: the pause of a thread blocked in a native wait (hle_thread.c / hle_oe.c), as you described: valid guest context, no consumed or invented notification. That is a runtime change for every game, so it would come as its own PR with a host test and a Thor A/B on release games.

When either is done, please also rebase onto the current main (0.1.8). Against dev-0.1.9 it conflicts in android/app/gradle.properties and peanuts/upstream-unmarked.txt. Scope tracker #244 stays open.

@igawa6 igawa6 added the new-game Requests and reports for adding games or game profiles label Nov 24, 2026
Register the 1.0.0 executable and its matching SDK and movie modules. The existing Unity reader locates 35,020 shader keys in the retail base game without changes to the reader or the host.
Keep the game out of the release catalog until hardware testing establishes gameplay.
The host's suspension wait moved from hle_thread.c line 1226 to 1258 on the current main; the pause handshake itself is unchanged, so the recorded stall still applies.
Its readiness.tsv has a bring-up status row, and test_android_games requires every profile with a status row to be in nxGames, as the other bring-up profiles are. It stays out of peanuts/release-titles.txt, so the release catalog does not list it.
@tapionallanaire
tapionallanaire force-pushed the pr/dqm-dark-prince-rebase-20261125 branch from 4ad6d45 to b50fef1 Compare November 25, 2026 04:26
The startup stall reproduces on the 0.1.8 runtime (AYN Thor, a pack
from the current chain): no frame in 3.5 minutes and the same thread
suspension timeout. Drop the bring-up readiness row so the default APK
does not ship a title that never reaches its title screen; the README
records the retest.
@tapionallanaire

Copy link
Copy Markdown
Contributor Author

Rebased onto the current main (0.1.8, 4ae5c269) and re-run.

Run on 0.1.8.

  • Build: a test APK from main plus this branch, with a pack built on an AYN Thor by the app (35,020 shaders), Turnip v27.0.0-R1.
  • Result: the stall is unchanged. With a new save there was no frame in 3.5 minutes (black screen), and the log shows [RED] thread 0x102d still not suspended after more than 1 second (stuck in host code?), the same as before.

So I took option 1: the branch is now source only. The latest commit drops the bring-up readiness row and the nxGames entry, and the README records the 0.1.8 retest. test_android_games.py, test_android_readiness.py and check-profiles.sh pass, and the branch no longer touches android/. The host fix (pausing a thread blocked in a native wait) would come separately, as you described. Marking it ready for review.

@tapionallanaire
tapionallanaire marked this pull request as ready for review November 25, 2026 06:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-game Requests and reports for adding games or game profiles

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants