Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
35 changes: 35 additions & 0 deletions dm/games/0100A77018EA0000/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<!-- PEANUTS: base-game bring-up profile -->
# Dragon Quest Monsters: The Dark Prince

## Build

The base application is `0100A77018EA0000`, CNMT version `0`, display version **1.0.0**. The NPDM declares AArch64. The module build IDs are:

| Module | Build ID |
|---|---|
| `rtld` | `567cdd4c5251494c5cd70822e3ccc740` |
| `main` | `221c19c45e821e7ce155f734e979a800` |
| `subsdk0` | `d0f13015e5badf2243d60a2bc9b978dd` |
| `sdk` | `3644a6760469451cabc99f00c540acc2` |

The SDK module identifies Nintendo SDK 13.3.5.

## Shaders

`Data/globalgamemanagers` and the extensionless UnityFS shader bundles report Unity **2020.3.32f1**. For example, `Data/StreamingAssets/AB/2d/shader` contains a serialized file with two Shader objects (class 48) of type hash `a30e3dcf6c6d25153d6f64e5e41caf4e`. This is the Unity 2020.3 layout already recognized by `unityfs.py`; no new reader or title-specific decoder is required for that bundle.

The existing reader consumed all 131 Shader objects in the 2D, character and effects shader bundles to their declared ends (2, 42 and 87 objects respectively). Those three bundles contain 2,225 serialized subprogram records before deduplication; this is not a runtime coverage count.

The full base-game split found **35,020 unique shader keys**: 17,479 vertex, 17,483 pixel, 2 geometry and 56 compute. Of these, 35,009 first appeared in `Data/` and 11 in `main`. The splitter recorded 17,482 vertex/pixel pairs and found shaders in 1,990 RomFS files. Keep `shader_files.tsv` for targeted builds: a file can contribute a pair even when its individual shaders first appeared elsewhere.

## Status

**Bring-up only; startup stalls on Odin 2.** Two launches on Android 13 (Adreno 740, Turnip v27.0.0-R1, Vulkan 1.4.363) initialized the GPU and opened a 48 kHz AAudio stream. Both logged a thread-suspension timeout. On the second launch, the state dump still reported `tick 0 / stage startup` after 33 seconds: the main thread was in `SetThreadActivity` (SVC `0x32`), and the `IL2CPP Threadpool worker` it asked to pause was in a native wait, not stopped. A Vulkan screenshot request was accepted but no next frame was captured.

No title screen, New Game, player input or battle was verified. Audio callbacks are not evidence of audible game sound. The isolated save stayed empty. This profile is not a release-list entry.

A third startup reproduced the hang under a 40-second, process-scoped trace. The targeted worker (`0x102d`) was in `h_oe_PopMsg` → `pthread_cond_wait` (`dm/host/hle_oe.c:347`), waiting on an empty system-notification queue. The main thread was in `nn::os::detail::ThreadManager::SuspendThread` (`sdk+0x378134`) → SVC `0x32` → `svc_thread_impl` → `pthread_cond_timedwait` (`dm/host/hle_thread.c:1226`), waiting for that worker to acknowledge its pause.

The pause signal handler declines to stop a thread in host code. Entering the native wait records its depth, but does not acknowledge an individual pause. A host regression test should cover pausing a guest thread blocked in `oe::PopNotificationMessage` while the queue is empty: the collector needs valid guest register and stack state, and the target must not return to guest execution until resumed. The physical retest is a new presented frame, followed separately by the title, New Game and controlled battle actions.

**Independent Thor test (Turnip v27.0.0-R1):** A normal Home/return delivered focus notification 15 and let the same process advance from startup to its first captured Vulkan frame (1920×1080, entirely black). In the foreground it stalled again in `SetThreadActivity` on worker `0x102d`. Switching Docked → Handheld in the in-game panel delivered operation-mode notification 31; the replay reached frame 6, then the same suspension stalled again. Restoring Docked delivered another notification but did not reach a menu. The fresh save remained empty. These transitions wake the worker briefly; they are not a gameplay workaround.
1 change: 1 addition & 0 deletions dm/games/0100A77018EA0000/bf_want.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# generated
23 changes: 23 additions & 0 deletions dm/games/0100A77018EA0000/game.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# PEANUTS: Dragon Quest Monsters: The Dark Prince, base 1.0.0. Bring-up only.
title_id 0100A77018EA0000
program_id 0100A77018EA0000
name Dragon Quest Monsters: The Dark Prince
ipa DragonQuestMonstersTheDarkPrince.ipa
app_category public.app-category.games

build v0 1.0.0 main=221c19c45e821e7ce155f734e979a800 subsdk0=d0f13015e5badf2243d60a2bc9b978dd sdk=3644a6760469451cabc99f00c540acc2
package v0
shader_versions v0
modules main subsdk0 sdk
romfs_marker Data/globalgamemanagers
zip_store .assets:.awb:.dat:.ress:.metallib

# Initial survey layout, not measured at runtime. The NPDM declares 16 MiB of system resource.
mem_reserve 0x140000000
mem_alias 0x118000000
mem_stack 0x10000000
app_pool 0xCD500000
sys_resource 0x1000000

shader_groups /Data/=data
shader_note 0100A77018EA0000 shaders (provisional profile)
2 changes: 2 additions & 0 deletions dm/games/0100A77018EA0000/pso_manifest.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Prewarm seed list (shipped in the app, next to shader_map.tsv). Rows: S<TAB>shader key<TAB>stage / R<TAB>render pipeline key (pso_skey hex) / C<TAB>compute shader key.
# Provisional profile: empty until recorded on the Mac (DM_PSO_MANIFEST=off DM_PSO_RECORD).
1 change: 1 addition & 0 deletions dm/games/0100A77018EA0000/pso_pairs.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# kind: evidence supplemental vertex / pixel shader pairs (BAHS program variations and legacy Unity pass-input covers) for vertex output padding and the pipeline prebuild (generated by dm/gfx/tools/shader_split.py, do not edit): vertex key <TAB> pixel key
2 changes: 2 additions & 0 deletions dm/games/0100A77018EA0000/readiness.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# PEANUTS: Base 1.0.0 stalls on Odin 2 and Thor before a title screen was verified.
status bring-up
57 changes: 57 additions & 0 deletions dm/games/0100A77018EA0000/shader_facts.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Answer table for translation queries (generated by dm/gfx/tools/shader_split.py, do not edit): key <TAB> fact JSON. No PC shader pairing supplied: only the thread group / shared memory of compute shaders (taken from the control section); other queries get the translator defaults
00b690d9777afb95 {"local":[64,1,1],"shared":0}
034e25295e042294 {"local":[32,32,1],"shared":0}
0358a96c1466a776 {"local":[64,1,1],"shared":0}
06ffbc95160accc8 {"local":[64,1,1],"shared":0}
23f373a7a0ecaed3 {"local":[64,1,1],"shared":0}
240122690d01f075 {"local":[32,32,1],"shared":0}
27d20edeedce80df {"local":[32,32,1],"shared":0}
38a0cd68303b5414 {"local":[32,32,1],"shared":0}
3a26b598ffaae07c {"local":[64,1,1],"shared":0}
3ab16a763f32e9d7 {"local":[64,1,1],"shared":0}
3d561bd545211582 {"local":[64,1,1],"shared":0}
469efce4b40c2b4b {"local":[64,1,1],"shared":0}
47fa5d38e87ba1d6 {"local":[32,32,1],"shared":0}
48a950024a81ae0f {"local":[32,32,1],"shared":0}
4e170f9f21623dbe {"local":[32,32,1],"shared":0}
50fe890decda751c {"local":[32,32,1],"shared":0}
511669e21e894542 {"local":[64,1,1],"shared":0}
552bbc8ffc2459e4 {"local":[4,4,4],"shared":0}
563201527a500577 {"local":[64,1,1],"shared":0}
592229cc82762eb1 {"local":[64,1,1],"shared":0}
59ad9efc889a29c1 {"local":[32,32,1],"shared":0}
5ba658a2b5f32c60 {"local":[32,32,1],"shared":0}
5bddf00c95df7be1 {"local":[32,32,1],"shared":0}
66fd408e08ffcba3 {"local":[64,1,1],"shared":0}
6d415da94601c832 {"local":[64,1,1],"shared":0}
6de8e109135dcb90 {"local":[32,32,1],"shared":0}
6e8b233867d4ee4e {"local":[64,1,1],"shared":0}
70d7c34fc2336fa3 {"local":[32,32,1],"shared":0}
729bef5174e1b520 {"local":[64,1,1],"shared":0}
743baf48b4117d3f {"local":[64,1,1],"shared":0}
79c5cc2a72e5c814 {"local":[64,1,1],"shared":0}
7cac0745dfef081c {"local":[64,1,1],"shared":0}
802c29b7c3323e7e {"local":[64,1,1],"shared":0}
847b5cba35a33ef9 {"local":[64,1,1],"shared":0}
8eba946c780ae85e {"local":[32,32,1],"shared":0}
90c57e4e73bb90e6 {"local":[64,1,1],"shared":0}
9b8b7bdd9ba5d77b {"local":[32,32,1],"shared":0}
9c97f9bfe3a236d2 {"local":[64,1,1],"shared":0}
a0fd95152aef26f8 {"local":[64,1,1],"shared":0}
a65cca37a527238c {"local":[256,1,1],"shared":0}
a8dc1d6a13d84283 {"local":[64,1,1],"shared":0}
b076052141065c56 {"local":[64,1,1],"shared":0}
ba3a6971829d1be7 {"local":[64,1,1],"shared":0}
bcab4bbed445c77a {"local":[64,1,1],"shared":0}
c11fe37ddf454bea {"local":[64,1,1],"shared":0}
c2c2c42975be0966 {"local":[64,1,1],"shared":0}
c5cb771ee5f6aed6 {"local":[64,1,1],"shared":0}
c6d05b2bc6df17e2 {"local":[64,1,1],"shared":0}
ce0ed2794a95671d {"local":[64,1,1],"shared":0}
d571c833eaf91191 {"local":[64,1,1],"shared":0}
e37d8836175c1357 {"local":[64,1,1],"shared":0}
e403df3f9ce57726 {"local":[64,1,1],"shared":0}
ebb6d59de5039bf8 {"local":[32,32,1],"shared":0}
f390281ba551e371 {"local":[64,1,1],"shared":0}
fa2a32b73f0e4762 {"local":[64,1,1],"shared":0}
ff023816cea5b98d {"local":[64,1,1],"shared":0}
Loading