Skip to content

Add The Hundred Line -Last Defense Academy- (010093C0215B4000) for Android - #752

Open
buinghia98 wants to merge 2 commits into
igawa6:mainfrom
buinghia98:thl/pr-b-hundred-line
Open

buinghia98 wants to merge 2 commits into
igawa6:mainfrom
buinghia98:thl/pr-b-hundred-line

Conversation

@buinghia98

@buinghia98 buinghia98 commented Nov 25, 2026 •

Copy link
Copy Markdown

Commit: games: The Hundred Line -Last Defense Academy- profile for Android
Base: upstream main @ 0766fc9 (Peanuts Native 0.1.8 + catalog update), with #751 below it.

Dependencies:

Issue

The Hundred Line -Last Defense Academy- (update 1.2.1) had no profile. Users could not pack or play it on Android. The game also runs at 30 fps only.

Feature description

Game profile: the game starts and plays on Android with the Vulkan host. No patches.py: no cut in main or subsdk0. The sdk build gets the 5 SDK-wide function-matched cuts.

What the profile sets:

  • Modules: main, subsdk0 (the movie module) and sdk.
  • Memory: a 5 GB block with a 4.375 GB alias region (mem_reserve 0x140000000, mem_alias 0x118000000), app_pool 0xCD500000, sys_resource 0x8000000 (from the NPDM). These values come from the survey. On the device the game used about 58 % of app_pool up to Day 1. No mem_used: the modules (about 57 MB) fit in the default.
  • Shader tables: 7,204 shaders (7,026 from the MVGL archives, 178 from main).
  • Frame rate:
    • The game limits itself to 30 fps with its own limiter.
    • Two reviewed fpslocker rows (main 1.2.1 only) set the game's frame rate and frame time from the host's frame limit.
    • The launcher offers 30 and 60. 30 is the default. 60 is the user's choice.
    • 45, 40 and 20 are not offered. Some game code checks for exactly 60, and the game clock caps one step at 1/30 s.
    • "Game owned" writes nothing.
  • Game note: builds, files, shaders, frame rate, device results and open items.

Note: prewarm seed. The first battle entry builds 129 pipelines during play (one 190 ms frame). A prewarm seed prevents this. The seed is not in this PR because of the source-only rule (the maintainer builds seeds). The author can send the key list (Turnip T30) on request.

Test results

Device: Retroid Pocket Nova (Android 13, Adreno 740), Turnip T30. 9 runs on 2026-11-25 and 2026-11-26. The pack was made on a Windows PC with pack_android.py.

  • Start: the title comes in 48 s or less on a cold start.
  • Play: New Game → about 10 minutes of opening movies → first free-roam scene. Continue loads the autosave. Walking, the camera, the dialogue, the tutorial battle (2 waves, a special attack, the victory movie) and the Day 1 classroom draw correctly. The sound plays.
  • 30 fps (default): steady. 151 of 155 one-second samples are 29.8 to 30.1 in a run with the battle. No dropped frames.
  • 60 fps (opt-in):
    • Mean 59.85 fps over 245 five-second windows. 5th percentile 59.7. 1 % low 42 to 53.
    • The game speed is the same at 30 and 60: walking, text reveal, AUTO advance, a UI animation, movies, the idle battle field and the battle cursor.
    • No resolution drop.
    • About 8 °C hotter on the same battle screen (57 to 59 °C, against 49 to 51 °C at 30).
  • Errors: no crash, no FATAL, no device lost, no shader missing from the library, no refused address region. The only [RED] lines are 13 known mtl_* stubs, once each.
  • Memory (to Day 1): the guest mapped at most 1.85 GB of the 3.21 GB app_pool. The address region used about 46 % of the alias region. Process PSS peak 2.96 GB. No low-memory kill.
  • Soak: 15 minutes at 30 fps, 47 to 51 °C, clean.
  • Movies: to skip a clip, hold Plus for about 1 s. A tap does nothing. This is the game's own behaviour.
  • First battle entry: "Preparing graphics: N pipelines left" and one 190 ms frame (see the seed note).

Not tested or not measured:

  • At 60 fps: battle attacks, the enemy turn, the special attack, later chapters, and play longer than 8 minutes. For this reason 60 is not the default.
  • Memory after Day 1. Idle PSS grows by 2 to 3 MB a minute in the classroom. A longer soak is necessary.
  • System driver (Qualcomm): the title, the menus and the HUD draw, but the 3D world does not draw. Use Turnip. Not investigated.
  • The prewarm seed on a cold cache (no seed in this PR).
  • Other devices. One device only.

PC tests (on this branch, PR A included):

  • upstream-update.sh --check origin/main: passed. check-publish.sh origin/main: clean.
  • gen_runtime_profile.py check-all (186 profiles), check-profiles.sh (OK 010093C0215B4000: package v589824 == highest build v589824), check-runtime-profile.sh: pass.
  • docs_patches.py --check (after the regeneration), docs_symptoms.py --check, env_switches.py --check, advanced_switches.py --check: pass.
  • DM_GAME=010093C0215B4000: test_game_profile.py (22 tests), test_docs.py (11 tests), test_android_frame_rate_caps.py: pass.
  • pack_android.py --no-shaders from this branch: the rewritten main, sdk and subsdk0 are byte-identical to the pack that was tested on the device. No [RED] line.
  • Fail on the clean base 0766fc9 too (not caused by this PR):
    • test_fpslocker_rows.py, test_fpslocker_plan.py: the Windows MinGW compiler cannot build them (-fsanitize=undefined). The two fpslocker rows of this profile were checked instead with the real fpslocker_rows.h, compiled with -Wall -Wextra -Werror, on the game's main.
    • test_android_frame_rate_games.py: EA SPORTS FC 27 (0100C49025D3E000) does not offer 45 fps.
    • test_mvgl_wide.py test_reader: a Windows file-lock error in the test cleanup.
  • Not run: the C unit tests (make -C dm/host/tests GAME=010093C0215B4000 run). They need clang and AddressSanitizer. This PR does not change C code.

Screenshots (Retroid Pocket Nova, Turnip T30):

  • hundred_line_dialogue_30.png: dialogue scene, 30 fps.
  • hundred_line_battle_30.png: tutorial battle, 30 fps.
  • hundred_line_special_attack_30.png: special attack, 30 fps.
  • hundred_line_battle_60.png: the same battle at 60 fps (opt-in).
hundred_line_battle_30 hundred_line_battle_60 hundred_line_dialogue_30 hundred_line_special_attack_30

Files changed

  • The profile: dm/games/010093C0215B4000/
    • game.tsv, README.md
    • shader_map.tsv, shader_map.tsv.conflicts.tsv, shader_facts.tsv, shader_pairs.tsv, pso_pairs.tsv, pso_manifest.tsv, bf_want.tsv
  • Game list: dm/games/README.md (one row)
  • Unmarked files: peanuts/upstream-unmarked.txt (9 rows)
  • Change log: peanuts/UPSTREAM-EDITS.md (one entry)
  • Generated: docs/agents/game-patches.md (regenerated: the game in the fps_modes 30,60 and fps_limit 30 rows)

13 files. No binary files. No prewarm seed.

The Hundred Line -Last Defense Academy- (010093C0215B4000) keeps its
shaders in MVGL archives of the 64-bit layout, but each data entry is
24 bytes (u64 offset, u64 length, u64 stored length), not 16 as in
Digimon Story Time Stranger. The reader did not take these archives as
the 64-bit layout, so the shader split found only the 179 shaders in
main. data_entry now tells the entry size by where the tables end,
16 first, so Digimon's archives read as before. The split of
The Hundred Line 1.2.1 finds 7,204 shaders (7,026 from the archives),
and all 9,060 Vulkan modules pass spirv-val. test_reader_24 covers the
new layout.
The game (010093C0215B4000, update 1.2.1) had no profile. Add one,
written from a survey of the game files and a PC shader split of 7,204
shaders; the split needs mvgl.py's 24-byte data entries. No patches.py.
The game holds itself to 30 fps with its own limiter; two reviewed
fpslocker rows for main 1.2.1 let the launcher's choice of 60 apply,
and 30 stays the default.

Played on a Retroid Pocket Nova with Turnip T30: title, opening movies,
free roam, dialogue, the tutorial battle and Day 1, at 30 fps, with no
crash and no new [RED] line. At 60 the mean is 59.85 fps and the game
speed matches 30 on walk, text, movies and the battle field. The guest
used 1.85 of the 3.21 GB app_pool up to Day 1. The first battle entry
builds 129 pipelines in play (190 ms frame); the prewarm seed is left
to the maintainer. The system driver does not draw the 3D world.
game-patches.md regenerated.
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