Skip to content
Open
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
42 changes: 42 additions & 0 deletions dm/games/010063100B2C2000/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Cytus α (`010063100B2C2000`)

Update 1.0.6 (v393216) over the base game, SDK 6.4.2. Unity 2018.2.18f1 IL2CPP with FMOD, on NVN. Modules `main`, `subsdk0` (the movie module) and `sdk`; `sdk` and `subsdk0` are AI: THE SOMNIUM FILES' builds ([010089B00D09C000](../010089B00D09C000/README.md)), so their cuts and host rows apply as they are. Plays on the Mac and on the iPhone; 60 fps (present interval 1). A rhythm game played on the touch screen. The RomFS is 2.2 GB (1,276 files, nearly all UnityFS bundles); the IPA with the game files bundled is 1.8 GB, without them (`--romfs separate`) the game files go to `Documents/RomFS.img`.

Brought up on the Mac and on an iPhone Duo (A20 Pro, iOS 27.1): boot, the two startup movies, the title, song select, and a whole song played with touches (SIN - THE LAST SCENE -, Easy 5, a full combo, the result screen). No `[RED]` line on either. The provisional profile of `scripts/build_ipa_from_nsp.py` booted as it was; the profile keeps its guessed keys and adds the mode keys below.

## What it needs

| Setting | Where | Why |
|---|---|---|
| `op_mode handheld` | [`game.tsv`](game.tsv) | the game reads the touch screen only in handheld mode: docked, a click on the Mac and a touch on the iPhone reach `GetTouchScreenState` but the game ignores them, as on a Switch in its dock |
| `pad_layout touch` | `game.tsv` | the Tap layout: no drawn control, every touch goes to the game |
| `perf_mode boost` | `game.tsv` | handheld Normal draws 1280x720 (`WindowCrop 0,0 1280x720`); Boost in handheld, a combination a Switch 1 never reports, gives the docked 1920x1080 draw size with the touch screen still read |
| `touch_panel 1920x1080` | `game.tsv` | under that Boost the game takes touches against its 1920x1080 draw size, not the 1280x720 panel: with the hardware panel's coordinates every touch landed short toward the top left. See [Touch](#touch) |
| 4 GB layout: `mem_reserve 0x100000000`, `mem_alias 0x10000000`, `mem_stack 0x10000000`, `app_pool 0xCD500000`, `sys_resource 0x0` | `game.tsv` | as AI: THE SOMNIUM FILES: no system resource, so no virtual address memory; Unity sets a 3.14 GB heap in the 3.25 GB heap region. The default 64 MB of used memory leaves room for it (Somnium needs 104 MB, Cytus' `main` is smaller) |

No `patches.py`, and `dm/tools/sdk_patches.py` has no cut for its `sdk` build (`184751379007f9c50fc96ba4d26a5dca`).

## Touch

- `hle_touch.c` hands the game touch points on the 1280x720 panel, as hardware does. The profile key `touch_panel` (default `1280x720`) sets that range; `DM_TOUCH_PANEL=<w>x<h>` overrides it for a run, and the log says `[touch] panel <w>x<h>` at the first read.
- Handheld Normal (no `perf_mode boost`, 1280x720 drawn) took the hardware panel's coordinates correctly; only the Boost combination needs `touch_panel`.
- Touch judgement in play matched the music on the iPhone: a full combo on an Easy chart. The iPhone log gives game enqueue to screen p50 48 ms (the present queue's three frames), which the game's own offset setting covers.

## Memory and frame rate

- iPhone Duo, 3.5 minutes from boot through a song: footprint 0.25 → 0.83 GB as menus and the song loaded, flat at about 0.75 GB through the song; headroom to the system memory limit 2.5 GB or more. Frame time p50 16.67 ms, no dropped frame through the song, thermal state 0.
- Mac: 1.26 → 1.48 GB resident over the first 30 s, 60 fps.

## Movies

- `subsdk0` plays the two startup movies (H.264 Main 1920x1080 and AAC, 60 pictures a second) through VideoToolbox; both ran to their end and the game went on.

## Files and shaders

- 488 shaders from the UnityFS bundles and `main` (`shader_split.py` through `unityfs.py`; Unity 2018.2 read with the 2017.4 / 2018.3 layout), all built for Mac and iOS.
- `romfs_marker` is `Data/StreamingAssets/Ingame/Atlas/MillionMaster.unity3d`, the largest RomFS file.

## Open

- The iPhone app showed the 2D gamepad at first start once instead of the Tap layout the profile names; not reproduced (the choice is kept per app, so it took a reinstall to try again).
- Docked play with buttons was not tried.
1 change: 1 addition & 0 deletions dm/games/010063100B2C2000/bf_want.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# generated
47 changes: 47 additions & 0 deletions dm/games/010063100B2C2000/game.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Game profile of Cytus α (Switch, base game v0 + update 1.0.6 = v393216). Plays on the Mac and on the iPhone
# Format: see dm/games/README.md
# Unity 2018.2.18f1 (IL2CPP) with FMOD, SDK 6.4.2; subsdk0 is the movie module. Its sdk and subsdk0 are AI: THE SOMNIUM FILES' builds (010089B00D09C000), so no rewriter cut was needed;
# the one host addition is the touch_panel key. A touch game: it reads the touch screen in handheld mode only, so the profile starts handheld with the Tap layout, and reports Boost for the 1920x1080 draw size.
# It presents at interval 1 (60 fps). The profile started as the provisional one of scripts/build_ipa_from_nsp.py; every guessed key was kept as the boot measured it

# ---- Identity ----
title_id 010063100B2C2000
program_id 010063100B2C2000

# ---- App ----
name Cytus α
ipa Cytus.ipa
app_category public.app-category.games

# ---- Versions ----
build v393216 1.0.6 main=b5e9568304d84440a267725f5f6a946e subsdk0=16577266bb9797abf6029f85025f6d35 sdk=184751379007f9c50fc96ba4d26a5dca
package v393216
shader_versions v393216

# ---- Files ----
# every module main imports from
modules main subsdk0 sdk
romfs_marker Data/StreamingAssets/Ingame/Atlas/MillionMaster.unity3d
zip_store .dat:.mp4:.resource:.ress:.unity3d:.metallib

# ---- Memory ----
# main sets a heap of at most the pool − 64 MB: a 3328 MB heap region (it asks for 3.14 GB, which fits with the default 64 MB of used memory)
mem_reserve 0x100000000
mem_alias 0x10000000
mem_stack 0x10000000
app_pool 0xCD500000
# the NPDM declares 0 MB of system resource: IsVirtualAddressMemoryEnabled is false, as on Horizon (Big Brain Academy: Brain vs. Brain sets a heap only then)
sys_resource 0x0

# ---- Shader split ----
shader_groups /Data/=data
shader_note Cytus α shaders

# ---- Mode ----
# Cytus α takes the touchscreen only in handheld mode (docked, a click on the Mac and a touch on the iPhone do nothing), so it starts handheld;
# Boost in handheld (a combination a Switch 1 never reports) gives the docked 1920x1080 draw size, and the game then takes touches against that size:
# with the hardware panel's 1280x720 coordinates every touch landed short toward the top left, so touch_panel reports 1920x1080
op_mode handheld
perf_mode boost
touch_panel 1920x1080
pad_layout touch
2 changes: 2 additions & 0 deletions dm/games/010063100B2C2000/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 / M<TAB>task shader key or -<TAB>native task / mesh pipeline key (pso_skey hex: the mesh shader in the vertex place).
# Provisional profile: empty until recorded on the Mac (DM_PSO_MANIFEST=off DM_PSO_RECORD).
236 changes: 236 additions & 0 deletions dm/games/010063100B2C2000/pso_pairs.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1,236 @@
# 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
01e12b9c06772bce 0f0c80580a98c1d6
02f27e66ac98cb97 156656a3c6510b60
03b85b70c2374454 2f723e52143bca7e
047ba7c4f72ffcd8 e692e971e68bf183
05e755803e08ba7a 25526ecfd6e0cb15
07aa667f6e5228a6 0d817dbb2c3f6574
09768812c16ea6c7 3bcadad5fe938a8b
0ad48df7176ce341 63110d113aa05f69
0bce39c349a6ac28 83ebd2b003998e1a
0c928fb81e0930cc b7985ac72fab706f
0d0efbefdc9b8f6f 48c3633136e570f8
0d878d13c6630539 252faab832b74a18
0e0b50d1c38b60a3 7134ec66493b9527
0f1b22c487d1cd5a 306a8b01364f7a35
0fb7c19cbeb8e035 2b6321c378b26248
10878fca790b6611 7134ec66493b9527
12de99895d22330b 55ea22a6d0c738f8
13d53895ebda2dad 1767bff070eb5969
13e79e64ba42430f fb7f5dd4907fabee
1427132e90099183 6e1586db4786859c
14798034267cf11e 3410efff90985cce
149e74b0e95d525c 039581c0fca8c86d
1507e25975a02e56 102da00f18fc6d59
156ad3716522a12b 0b9e02aa3812276b
1624db2d53530fd1 252faab832b74a18
1840f2122381b7b5 0f0c80580a98c1d6
1b2c4203539c0519 1810478a5237f3b7
1b8b64a859d1eada 48c3633136e570f8
1b9b60640b306de6 48c3633136e570f8
1bfdc4264ebb3d9a 86ad063f870ae9c7
1cef4152ebdf0286 0f0c80580a98c1d6
1d457a1d46f9449e 7134ec66493b9527
1d6ae0b8175482fc 86ad063f870ae9c7
1d85328d9b135e83 67fdba43683bf85d
1f78812d7abffbff 306a8b01364f7a35
247495e6b5ce091e 1a214786184da16a
249c349d6b889f6d 102da00f18fc6d59
25d9466e441a0375 7134ec66493b9527
26ac9dfb87601239 306a8b01364f7a35
294d4aac5f52bc6e 6fb8d0bbdcfafdcd
296018992f7c09fd 102da00f18fc6d59
296a6d659f52e287 27ee042206284a23
299d61ed0d533639 80b565a58f77e6f0
29f94348e298f8b8 3410efff90985cce
2adaf106a3f380f0 102da00f18fc6d59
2b57618b23903f5e 102da00f18fc6d59
2d48162aabdcf73e 1cd71f1531f381e7
2d94ac3b7391138b 94d46c210081c733
2e00e323cc63dda4 98f01f0cfdbf44cb
2e744d32fb875f8a 6e1586db4786859c
30055505c5f91a87 c1a4c8f46fc4a4a6
302b289034d0f168 0f0c80580a98c1d6
305cb20093d8b51d 3bcadad5fe938a8b
33381965ba494256 2f3725210d894b73
33733a8ea39b8dcc 306a8b01364f7a35
356dbea36c0d9da9 edcaf725be519609
380ed5319c080fab d9b7d3de9828c581
3821973c7b86336b 1b63306e059dda77
38414827383f2123 102da00f18fc6d59
3b626a2212e48346 782093c106c3a413
3b84f5c5b59f4a64 102da00f18fc6d59
3e71d04ce70943ad 48c3633136e570f8
3f521629adef5a92 441446da1fddbe9d
447e4fc28fe1a20a 1da6e50a4265588a
459a0fde2e2a7833 102da00f18fc6d59
479c41a6efa57086 86ad063f870ae9c7
47b7b26d143a53b1 102da00f18fc6d59
480a952ed6bce05b add2f7d3bed9ff8c
4897ad03495d06b6 33055d76ad21ef1c
49362785ed665a27 2f723e52143bca7e
494dfce758a321c6 1767bff070eb5969
4b2b4c051b932084 33055d76ad21ef1c
4b4dc4fbfac2910e feca1abf1363ba3a
4d83f7eeb30a5fe8 41b2ab30b1a63aa5
4e7505bb4904e97f 27ed76d8f4c08b5d
522fdbb9cdc049f9 67fdba43683bf85d
53dcda0d5be983c8 306a8b01364f7a35
5483b5a1fc4be4de 231578a4339e9b57
5870218d5b361633 70e96ea08cd8d5f9
588fba5080d4eb0f 4b4f1c806a978ef3
593c12a9a3f75bdc 397565fb9c21624a
599c1b4045c6c165 397565fb9c21624a
5a4d5a8a636031d8 d343182ce4cc3ed1
5aea613bf6576483 306a8b01364f7a35
5b36d58659cc46b4 0f0c80580a98c1d6
5bd36e4273542c67 0f0c80580a98c1d6
5ccdf105b0ccc9ae 27ed76d8f4c08b5d
5e11bf827a3e4691 606de8d5078aa698
5fa4fcfaab594f37 0d817dbb2c3f6574
60ea184554f1b4ad 306a8b01364f7a35
633908fd8f03a49a b985cd1a4fe84964
636f06c53f8ea7ff ae4bbf87962cee4d
64e0a30fd889f11a d04590cdcd9f5dc8
65decf9ea4c7c7b3 3f80606fb19b454f
68fd890da92147ab ab4d97ef5e910a08
69cf21fbdaee2bd3 2f3725210d894b73
6a25583a45f61fa4 33055d76ad21ef1c
6a6b52ef0ae25b85 955e0a744e7c3de2
6b72f1ca447fe8ed 102da00f18fc6d59
6b95c6226fc95370 57a796b4596f842f
6c1a043d22e713f3 102da00f18fc6d59
6c54f80822d6cfdd 2b806f64a0d477b6
6e57bf39f3bf9728 cf58162ead0f00c6
7114216253d70e86 24f081946243f917
71c0555fc3e8d6ba 42b49ad467bab256
737f200cc6fb0592 b99ff3e4688cdae3
73a606790f8c7743 0b9e02aa3812276b
7436624eb419c779 200b085e995e1bc7
769211d071285d6f de573964d7bf7e48
770acae65322ea23 1e64cf70ee79a52b
7720d3d666f0076d 0b9e02aa3812276b
775fff5fca4d8bdc cfccd2d647853ad9
78380ce0b3014d34 48c3633136e570f8
78380ce0b3014d34 7eea748431ea3c47
783f10b80221cc7c 102da00f18fc6d59
786b9301186b7f00 0f0c80580a98c1d6
78eeab8273c70e98 3c7fe0a673b8657a
79743d8fa18eb371 872e444bc3f47a39
7bc5ea84aa0838b9 482a748b6853a05c
7c96b0763216136f b9e3f5be8e4d7bd7
7ce92b7443217822 9bf1434ef327882d
7d114d4f83257da3 102da00f18fc6d59
7e86dbd8d46373a9 2e3c04d2ccde5e7a
7fd4a2c251245fe8 102da00f18fc6d59
8054c8990ba72a9e 0f0c80580a98c1d6
827d607bcb600f6c a863e2577691f11f
8290884889ac2e4f 1767bff070eb5969
82cc9ceebf1d4069 48c3633136e570f8
838a5fd5c10c8a4f 6efc5833e802e070
84726ff98f2cb1ed 102da00f18fc6d59
8563f6bc3124f2e7 102da00f18fc6d59
856d062d525520bb 1e64cf70ee79a52b
87df82f9a30b01df 0bb597deefa7b7c8
88b3ee6f6d608a2a 24abe742bd6a957e
898da9ad9f42aa50 aa5b8ee4577271de
8bcb79ccefa585db fbf165365be17f51
90e5511bedc634d5 102da00f18fc6d59
90ea0499fa284e63 441446da1fddbe9d
91ef7eee96a5026e 1664522a214d6504
95f085f90865c6c9 2f723e52143bca7e
9621a46dfbaecf3d 200b085e995e1bc7
97b409dbd2ebc35f 27ee042206284a23
987e286c662e33a2 ae4bbf87962cee4d
9b20abe38519bb35 1cd71f1531f381e7
9cbc65c2757b84ef 0f0c80580a98c1d6
9e04483c455f08d5 27ee042206284a23
9e48b3691034ae52 231578a4339e9b57
9e64f23df8e6bbfb 48c3633136e570f8
9e64f23df8e6bbfb 7eea748431ea3c47
9ff948eeb0068a41 88a98966570fccbd
a1a333fffad08b76 0d817dbb2c3f6574
a2320fd49fef065b 200b085e995e1bc7
a30b88fa36f40e4f d16e025c681b24eb
a4d32473a21d66c7 25a7b244c6a09388
a51f6823c399b29d 102da00f18fc6d59
a6afcfef572d34d9 2bf36a3c8a5c4574
a97225de26fb851a 183b13a69af6fdd0
aab90214282e1041 08cc53e840082bd9
ab2fb64ed82696b6 70e96ea08cd8d5f9
ad17b4ca7777d36b 0f0c80580a98c1d6
ae49bd6e58f3149d 102da00f18fc6d59
ae9dd26175248fff 397565fb9c21624a
b07abde361edb594 306a8b01364f7a35
b13d7c60451e13fd 1e64cf70ee79a52b
b192f8c2745bbb8b b84559e6011e7e71
b5235d938014f6a9 27ed76d8f4c08b5d
b62bcdf6446eceb1 102da00f18fc6d59
b714cb2dd1653d03 b8ce5f077b14f6fd
b959afba677bda2a 48c3633136e570f8
babd38fc406e1ae7 2f723e52143bca7e
bbfbbc0b8544f63b 306a8b01364f7a35
bd50f6e5e17066c7 d16e025c681b24eb
be3443032c8ed7b6 5ffe20d0c952e854
bf19b49424010f31 102da00f18fc6d59
bf4403705ee7c2d5 e3cb30aa8faa82b7
c155efd9782dbc76 306a8b01364f7a35
c2e016ec6fe692ee 7134ec66493b9527
c5e5a4be4c9bf57c 04e0d95044658171
c8af2b87f47a9376 a863e2577691f11f
c9b889f69f11672b 1e64cf70ee79a52b
ca07ca8b662ef03d 0f0c80580a98c1d6
ca364f85667c213f 0f0c80580a98c1d6
ccc9afc820e7e192 48c3633136e570f8
ce3fae7bd462d7b0 1810478a5237f3b7
ceaeb23375eef06d 24a14aae59f23745
cef7b25af09fcc99 da38a610f3df4de4
d06b7e1ee3805faa 48c3633136e570f8
d0faf0aca2efea6a dac3948ad99d07f1
d4544eecf255d10a 33055d76ad21ef1c
d4a1660121f1130f 0d817dbb2c3f6574
d6a1b27ae86add9f cf58162ead0f00c6
d7839b6ab28aa704 1810478a5237f3b7
d8348c3d5d9e1199 2b806f64a0d477b6
d8722afc851a6370 0fba06deb16b5753
d9265e6d09f406c6 1810478a5237f3b7
da6577c1658a945e 27ed76d8f4c08b5d
dedf4a929ee7bc17 7134ec66493b9527
df9895f88977c8c9 102da00f18fc6d59
e033474f14b215b8 102da00f18fc6d59
e10063c34278d951 48c3633136e570f8
e10063c34278d951 7eea748431ea3c47
e1f24467d00a73cb 7827cc474087030d
e2d83afad7394548 33055d76ad21ef1c
e2f26b7033e48abb 252faab832b74a18
e43263a841fee7d5 102da00f18fc6d59
e46e646e5c03fab4 b985cd1a4fe84964
e482045ab79dd89e 94d882a271acaa25
e607de3f8e5a7ad3 2b806f64a0d477b6
e699a67910d7b7c1 885376dbf2afade5
e69d68804ee076ec 1810478a5237f3b7
e6a98f8720bc860d ae4bbf87962cee4d
e8b6c6108c12059a a3a324a25236661f
e8badb5a652a49ab d16e025c681b24eb
e8d08eb9f75f6143 cf58162ead0f00c6
e9d472f25e976820 25526ecfd6e0cb15
ec806495bb57429a a8870c656be56c74
ef9444fe1e216e13 46f2edfa3b65d1ca
f091ad00f9b1a7ef 306a8b01364f7a35
f286f83f8fcdd0c0 306a8b01364f7a35
f2ccfb5ef7260fce 102da00f18fc6d59
f3664b4c7466b1b9 48c3633136e570f8
f3664b4c7466b1b9 7eea748431ea3c47
f399c00e53f3e601 0f0c80580a98c1d6
f426159f2f0516c3 9f5df9efa950aba2
f6f3c37ac486844d d16e025c681b24eb
f723cd4e19f6d94a 86ad063f870ae9c7
f75855ab641a444f cefd666b39c11810
f77225b4fd692653 441446da1fddbe9d
f7d86aa79121ba45 102da00f18fc6d59
f82f72bcc7397940 3bcadad5fe938a8b
fa2b3ccb9adb7e3e ae4bbf87962cee4d
fb2c7dd1df5f2a97 5a8be2e3c75cf9d9
fc7dba7479bc6a9c 306a8b01364f7a35
fe2232f052ac0852 231578a4339e9b57
ff69cb0a2f1d9e9b 25526ecfd6e0cb15
13 changes: 13 additions & 0 deletions dm/games/010063100B2C2000/shader_facts.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# 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
0ba791e1185cd93f {"local":[64,1,1],"shared":0}
30157e2cb57d3da6 {"local":[64,1,1],"shared":0}
4f12d0d5e16750c3 {"local":[64,1,1],"shared":0}
57f887740cd632dd {"local":[64,1,1],"shared":0}
6484f52a4e5e1c7a {"local":[64,1,1],"shared":0}
6e9e53049cfcb19c {"local":[64,1,1],"shared":0}
941b0b4e05cc3ade {"local":[64,1,1],"shared":0}
a5eb1af15b8cc116 {"local":[64,1,1],"shared":0}
be04c3e68cf3db09 {"local":[64,1,1],"shared":0}
de77e62df2971f59 {"local":[64,1,1],"shared":0}
f97747647dfec6a9 {"local":[64,1,1],"shared":0}
fdc8e7649f1ff9b7 {"local":[64,1,1],"shared":0}
Loading
Loading