Three comments described gestures that no longer exist, and a tester followed them on a OnePlus 13 (long-pressing a
skill button, looking for OK / Bind):
- dm_cursor.c, the skill-binding flow: "pick the slot first (tap the cross on an empty skill slot / long-press a skill
button)". Holding an in-game skill button is continuous casting now. The comment lists the two entry points both
front ends wire: tap the cross on an empty slot (the host's three steps), or hold a skill icon in the skill tree for
0.5 s, which presses Y and pops the game's binding box, where a cell tap presses that key (ui_bind_modal_tap). The
second is the only way to rebind a key that already has a skill.
- dm_cursor.c, point spending: "spending the point is triggered by the phone layer's confirm button". It is a second
tap on the same skill icon or "+" (holding a "+" spends continuously); there is no confirm button.
- dm_touch_controls.h, dm_tc_nav_mask: "DM_TOUCH_NAV_PAD=0, default 1". The front ends (Android, iOS, Mac,
HarmonyOS) all default to pad = 0 and show the five round buttons only with DM_TOUCH_NAV_PAD=1.
Comments only; the debug APK builds.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The first story act change with an NPC (Warriv A1->A2, Meshif A2->A3) plays the next act's intro.
The original game hides the map for it: ProgressionMessage:PlayVideo, then PanelManager:ClosePanel
AutoMap in the same tick, and nothing reopens it afterwards. A controller player reopens it with the
map key (-). Touch has no map toggle and relied on the "AutoMap Open On Load" option, which opens it
only once on entering a run, so the top-right minimap stayed gone until the app was restarted.
ui_map_pump (touch mode only; the controller branch returns before it): when that option is on, the
run is back (in game, not loading) and no cutscene is playing (PlayVideo .. Cinematics:MovieComplete),
and the AutoMap panel is closed, press the map key once for the player (dm_ui_key_pulse_alone, the
same original path a controller player takes; the area name at the top right comes back with it,
which a bare PanelManager:OpenPanel AutoMap did not do). With the option off nothing is pressed.
mode_scan.py: host/dm_cursor.c auto-key count 38 -> 39 for this press. It runs in touch mode only;
a press still pending when the player switches to controller opens a map that is closed anyway, so
nothing needs cleaning up on a mode switch.
Checked on the Mac host with a Warlock save edited to "Andariel done, not yet in Act II":
before, AutoMap stays hidden in Lut Gholein; after, it reopens at the tick the loading screen goes
away and the screenshot shows the map and the area name. Ordinary Warriv travel (no cutscene) and the
option-off control press nothing.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Over-the-shoulder and first-person camera (entertainment mode; Custom page > Camera view, off by default)
- Perspective camera rebuilt from the original orthographic one, on Metal (iOS / Mac) and Vulkan (Android / HarmonyOS), shared math in xbg_cam.h
- Over the shoulder: follows the move direction, pulls in and rises at walls, keeps the view within what the game draws
- First person: the left stick walks and strafes relative to the view; the camera follows the ground height
- Touch: drag the right half to look around (horizontal turns, vertical tilts); turn buttons and optional motion sensors on Android
- Arrows on the screen edge for monsters off the picture, coloured by name tier (normal / champion / unique / act boss); the player's own summons left out
- A facing pointer on the minimap and the full-screen map
- Names, health bars and taps follow the perspective picture
Co-Authored-By: Yuechuan Yang <22333122+yyan160@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Adreno 750 shader compiler (libllvm-qgl.so) segfaults (addr=0x48) building any pipeline whose shader has subgroup
instructions inside a called helper function: 098a and 6a7a (compute) and 358197ac, 5c1ca4e7, e1c00b41 and others (pixel)
on four Samsung / Xiaomi phones. v2.0.1 skipped only 098a.
- Engine: on Qualcomm Adreno 750-799, a shader of that shape (187 in the pack) has its helpers inlined at load with the
SPIRV-Tools passes merge-return, inline-entry-points-exhaustive and eliminate-dead-functions (marker gfx-inline 1 / 0).
The import pack is unchanged; only the APK is updated. The warm-up's inlined SPIR-V is reused on the graphics thread.
- dm/third_party/spirv-tools: SPIRV-Tools v2026.3 library sources, pre-generated tables and the SPIR-V headers it includes,
built into the Android package only, without debug info. DM_VK_INLINE_CS is removed.
- pipeguard: every pipeline-building thread (graphics, warm-up, async) marks its build in gfx-pipe-inflight.<slot>; an
entry in flight on two boots in a row goes into gfx-pipe-skip (c:<key> for compute, g:<stage keys> for graphics); a
graphics pipeline error is skipped instead of fatal. v2.0.1's unprefixed entries and its hard 098a skip are dropped.
- Android: graphics log lines go to the dm tag and the log file; crash lines print library+offset for symbol-less libraries.
Verified on Adreno 830 (vivo) with a v2.0.1 import pack: default unchanged, forced inlining in game with the same picture,
guard record / skip / restore / old entries. See docs/android-notes/2026-10-27-adreno-750-inline.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With a controller, opening the mercenary inventory (the game opens the inventory with it) sometimes crashed at
main+0x390b44. The game's bottom button legend has only 8 layout slots (0x230 bytes each from +0x680), and its relayout
(main+0xaa389c) loops over the entry count without a bound, so a 9th entry is read out of bounds.
Our pages (personal stash L/R, chronicle vault, kill board, rift) add their hints to that legend and remove them when the
page stops declaring them. When the legend was hidden at that moment (the panel closed), we only dropped our record and
left the entries on the legend, where they stayed on every later page. Selecting an item on the mercenary page adds the
game's own compare / move hints on top, which brings the count to 8, or 9 when one more is added.
Now, when the legend goes hidden, the entries we added are removed from it right away (the widget still exists), and we
never add a new entry to a legend that already has 8.
Checked on the iOS App on a Mac in controller mode, before and after, one run each: open the personal stash page, close
it, open the skill tree, switch to the mercenary page with the inventory, select inventory items, ten round trips.
Before: our two L/R hints stayed on 92 of 93 legend snapshots, and the mercenary page reached 8 entries. After: they
appear only while the stash page is open (5 snapshots), the mercenary page has 6 entries, 11 mercenary-page openings,
no crash and no error lines.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On the Adreno 750 (Snapdragon 8 Gen 3; Galaxy S24 Ultra in #123, Redmi K80 in #153) the boot dies inside
vkCreateComputePipelines, in the Qualcomm compiler libllvm-qgl.so at a fixed offset, on compute shader
098a126f92bf533a (the fluid-simulation accumulate pass). #153 showed six variants of the module (full spirv-opt -O,
explicit image format, no LtMask built-in, renumbered bindings, DISABLE_OPTIMIZATION, rewrites on or off) all crash at
the same byte, so no change to the SPIR-V avoids it. Adreno 650 returns -13 on the same shader instead (#123).
Before a compute shader's first pipeline is built, its key is written to gfx-pipe-inflight and removed afterwards. If
two boots in a row end with the same key still in flight, the key goes into gfx-pipe-skip and that shader's dispatches
are skipped from then on (one effect fewer instead of a crash on every boot); a single leftover only marks it suspect,
since the process may simply have been killed during those milliseconds. A driver error from vkCreateComputePipelines is
recorded and skipped the same way instead of being fatal. On the Adreno 750-799 family 098a126f92bf533a is skipped from
the first boot. Deleting gfx-pipe-skip restores everything.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On Mali-G925 (Mali-G925-Immortalis MC12, vendorID 0x13b5, deviceID 0xd8300010,
driver 0xc40100, Vulkan 1.3.278; Redmi K80 Ultra 25060RK16C / MT6991 /
Android 16) VK_FORMAT_R16G16_UNORM reports optimalTilingFeatures=0xcd83, which
lacks SAMPLED_IMAGE_FILTER_LINEAR. BC5 is decoded to R16G16_UNORM on upload, so
the first sampler with linear filtering on such a texture aborts in
sampler_slow():
NVN sampler linear filtering unsupported min=5 mag=1 compare=0/1
format=0x4b vk=77 optimalFeatures=0xcd83 texture=668 decoded=1 imfmt=77
(vk=77 is VK_FORMAT_R16G16_UNORM, not BC5: the decode path itself is correct.)
Detect once, at the first BC image, whether R16G16_UNORM supports linear
filtering; when it does not, decode BC4/BC5 to R8/RG8 instead
(xbg_bc_8bit_channels in xbg_texture.h/.c, wired through xbg_bc_format_info(),
map() and xbg_decode_block()). Signed BC4/BC5 keep their 16-bit channels; all
other BC formats are unchanged. The flag is read through the same
xbg_bc_format_info() that the image layout, the upload decode and the view
format all use, so the image format, the decoded payload and the sampler view
stay consistent.
Verified on the device above: the main menu (busy 3D camp scene, 3132 BC
textures decoded, 1591 draws/frame) renders at 60 fps with gpu 13-14 ms/frame
after the change; the BC5 decode target went from VK_FORMAT_R16G16_UNORM to
VK_FORMAT_R8G8_UNORM. Without it the app aborts on the first linearly filtered
BC5 texture.
Test: dm/gfx/tests/t_bc8.c (new, wired into the gfx test Makefile) checks that
the 8-bit output equals the high byte of the 16-bit output for BC4/BC5, and that
signed BC4/BC5 plus every other BC format keep their pixel format when the
switch is on. Run here with gcc on Linux (no clang on this machine), same flags
as the Makefile rule:
gcc -O1 -Wall -Wno-unused-function -fsigned-char -I../vulkan/engine -o t_bc8 \
t_bc8.c ../vulkan/engine/xbg_texture.c ../nvn/nvn_tex.c -lpthread && ./t_bc8
BC4 UNORM (0x49): 2 -> 1 bytes per pixel, high bytes match
BC4 SNORM (0x4a): unchanged, 2 bytes per pixel
BC5 UNORM (0x4b): 4 -> 2 bytes per pixel, high bytes match
BC5 SNORM (0x4c): unchanged, 4 bytes per pixel
BC8 OK
Co-authored-by: joker <28751692@qq.com>
The two Adreno shader rewrites were written for the Adreno 730 and run there
and on the Adreno 830. On Adreno 740 (Snapdragon 8 Gen 2) the newer driver
accepts the rewritten SPIR-V and then faults: dmesg has "gpu timeout" and
kgsl status 00EF1087, the driver drops the device, and the next submit fails
with VK_ERROR_DEVICE_LOST (#141). On Adreno 750 (8 Gen 3) the submission never
finishes; the async command pool reset waits 10 s, gets VK_TIMEOUT, and the
slot reuse aborts with "s.reset_result failed: 2" (Redmi K70 Pro report,
#123 and the other 8 Gen 3 issues).
xbg_adreno_policy.h decides by device family: Qualcomm, model 740-799. A
marker file still wins, so either rewrite can be forced back on for a test;
the JNI's DM_GFX_* values no longer override the device default. Adreno 730,
Adreno 830 and other vendors are unchanged, and existing import packs work
without a rebuild.
The pool-reset wait now logs the GPU hang and the fatal message names it,
instead of leaving a bare "2" in the crash report.
With both rewrites off, #141 ran 27,900+ frames at a 16.63 ms p50 on an
iQOO 11 with the same import pack. This build has not run on an 8 Gen 2 or
8 Gen 3 phone yet; the PR is a draft until it does.
Refs #141, #123, #137, #138, #139, #142, #143
Closing the stash with + (Start / Menu) moved the inventory panel further right every time, until its
cells could no longer be clicked; only leaving the character (or a quick restart) put it back. Closing
with B did not do this, and vendors were not affected.
While the stash is open the widened stash shifts the inventory panel right by 196 units (x -8 -> 219 at
panel scale 1.16). Closing with + makes the original game close the stash and the inventory and open the
inventory alone in the same frame: it moves the panel to the stand-alone position (x -816) and records
the x it had at that moment - our shifted 219 - as the panel's own position, which it writes back when the
stand-alone inventory closes. When the position guard came to restore, x was -816, not the value we had
written, so it dropped the entry without restoring; the game then wrote 219 back, the next stash open took
219 as the original and shifted again: 219 -> 446 -> 673 -> 900 -> 1127 (measured on the Mac App).
The position guard now keeps such an entry: while the game has the widget somewhere else it leaves it
alone, and once the widget holds our value again it writes the original back. A later shift by the same
owner still takes the current value as the original if the game laid the widget out anew in between. The
self-check counts only entries whose widget still holds our value, and the restore log line is written
only when something changed.
Test: dm/host/tests/t_widestash_restore.c replays the measured sequence through mv_offset / mv_restore;
it fails without the change (7 failures, 219 -> 446 ...) and passes with it.
Claude-Session: https://claude.ai/code/session_01V5iMQyJajiUrBZKaLaYLdw
Co-authored-by: vertanom <329542179+vertanom@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Players reported that setting "Automap size" to full screen had no effect, and that after switching to the
full-screen map, opening the inventory or changing area went back to the minimap. All three came from the touch
code: touch mode rewrote the full-screen setting to "minimap right" (to keep the minimap reachable), opening a
panel collapsed the full-screen map without restoring it, and the tap-to-full-screen switch was not remembered, so
the game rebuilt the minimap from the setting after an area change.
Touch mode now remembers whether the player wants the full-screen map: it starts from the setting ("Full screen"
starts on the full-screen map), tapping the minimap / empty space changes it, and the setting itself is no longer
rewritten. While a panel is open the full-screen map steps aside (dm_ui_map_hold, reported by the iOS, Android and
HarmonyOS front ends) and comes back when the panel closes; after an area change it is restored as well. Tapping
empty space still returns to the minimap, so the minimap stays reachable. Controller mode is unchanged.
Checked on the iOS App on a Mac: two new regression runs (map / mapf, 14 items) all pass, including walking from
the camp into the Blood Moor with the full-screen map kept; the existing run a (45 items) passes; the full
acceptance gate and the on-device smoke test (3/3) pass on the merged internal tree.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Issue #123: on a Galaxy S24 Ultra (Adreno 750, Qualcomm driver 0762.41) v2.0.0 crashes about 1.8 s after launch, right
after the warp32 rewrite of compute shader 098a126f92bf533a; the reporter traced a similar crash elsewhere to the Qualcomm
shader compiler and called (non-entry) functions containing OpGroupNonUniformShuffle. In our import pack 187 shaders have
that shape (5 compute, 182 pixel). Only compute shaders are inlined: the pixel shaders' quad rewriter matches the
translator's SHFL helper-call form, and 176 of them would no longer be rewritten after inlining. The 5 inlined compute
shaders pass spirv-val, keep a single function and are still rewritten by warp32.
Off by default; with the switch off, sample bundles are byte-identical to v2.0.0's.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
arena_alloc's out-parameter is declared __strong. Unqualified, an id<MTLBuffer> * is __autoreleasing under ARC,
so every store retained the arena buffer and added it to the autorelease pool, twice per draw. Only the ownership
qualifier changes; both the Mac host and the iOS project compile with ARC.
Checked: the full acceptance gate and the Mac smoke test (3/3) on the merged internal tree.
Co-authored-by: svich <5103731+svich@users.noreply.github.com>
dm/ios/tools/build_ffmpeg_ios.sh builds a static FFmpeg (7.1.1, LGPL 2.1+) for iOS, and building the App with
DM_MOVIE_FFMPEG=1 / MOVIE_FFMPEG=1 links it so cutscenes are decoded to the screen, as the Mac host already can
(#97). Builds that turn it on also get a Cinematics entry on the main menu and a Chinese / English voice choice in
Custom. Default builds are unchanged: no FFmpeg, no extra Custom rows, the same saved settings.
Taken in with two changes: the voice rows are compiled in only together with FFmpeg (the PR added them to every
build), and t_fs_case.c gets the stub the host tests need to link. The language code mapping keeps v2.0's Korean.
docs/DEPENDENCIES lists FFmpeg and its license.
Checked: host unit tests, the full acceptance gate, the Mac smoke test and the on-device smoke test (3/3 each);
a default build shows no voice rows and has no FFmpeg symbols; an FFmpeg build run as the iOS App on a Mac played
Act02start.webm (1280x720) at a steady 60 fps, with different frames captured at 16 s and 40 s. Not yet run on an
iPhone; cutscene audio still goes through the game's own path.
Co-authored-by: codingOuch <25929878+codingOuch@users.noreply.github.com>
A DualSense or DualShock 4 is now recognized by its product category and, like the Xbox controller since v2.0,
switches the button prompts automatically, here to the game's own PlayStation icons (cross confirms, circle goes
back); nothing to turn on. The overlay picks the original PlayStation icons the way the PR does and writes a
ps_glyphs marker next to them. Instead of a separate flag, the PlayStation style joins the existing prompt styles
(Switch / keyboard / Xbox), so it goes through the same switch-over path and log line.
Ported into the internal tree and checked: host unit tests, the full acceptance gate, the Mac smoke test and the
on-device smoke test (3/3 each); before / after screenshots in camp show the bottom bar switching from
A B Y X R ZR to cross circle triangle square R1 R2. No physical PlayStation controller was connected; the
switch was forced with the test switch that drives the same path.
Co-authored-by: Ti800 <53323379+Ti800@users.noreply.github.com>
`DM_MAC_ICLOUD=1 dm/tools/mac_app.sh` signs the Mac App with the Mac provisioning profile you put into
`~/dm-work/mac-sign` (or `DM_MAC_SIGN_DIR`): team, bundle identifier, entitlements and certificate are read
from the profile, and the keychain identity is matched by the embedded certificate's SHA-1 fingerprint, so the
App carries the iCloud entitlement and syncs saves like the iPhone / iPad App. Without the switch the App is
signed locally as before. docs/MAC and the homepage describe how to turn it on.
Ported into the internal tree and checked: the code change matches the PR line for line once comments are
stripped; a default build still signs ad-hoc; with the switch, an empty signing folder and an invalid profile
stop with their specific messages. Signing with a real profile and the iCloud sync itself were tested by the
author on an M1 Pro with a paid account.
Co-authored-by: xielh96 <16849027+xielh96@users.noreply.github.com>
- Android (#113, @yyan160; graphics engine and shader-bundle packer from @biglawine's HarmonyOS port): an
Android app (dm/android) with a JNI host, a touch overlay on the shared touch state machine, Vulkan
presentation and AAudio sound; an NVN-to-Vulkan replay engine (dm/gfx/vulkan) behind the same backend
interface as Metal; the shared host now builds for Apple and Android, and the module rewriter has an
Android target (DM_TARGET=android; Apple output unchanged). Measured by the authors at a median 60 fps on
a Redmi K50 Ultra.
- Android install with your own game files: the release APK (dm/android/tools/shell_apk.sh) contains no game
content; dm/tools/d2rm_android.py makes an import pack (rewritten program, Vulkan shader bundles, touch overlay,
data tables) that the App imports from Download/S2X/D2R Mobile/android with a progress screen. The shader export
step (dm/gfx/tools/dmsh_vk.py) makes the 6,927 game shader bundles byte-for-byte identical to the tested set.
- Android rewriter fix (#113, @yyan160): rewrite blocks no longer stash registers below sp (Android has no red
zone); equiv.py checks Android outputs, structck.py recognizes the Android block shapes. Apple output unchanged.
- Android touch controls drawn as on iOS (sockets, silver skill silhouettes, joystick), no map key in game state,
no virtual pad buttons over panels; dm/android/tools/art_compare.sh compares the two drawings pixel by pixel.
- HarmonyOS (#114, @biglawine): a HarmonyOS NEXT app (dm/harmony, ArkTS shell + N-API library) on the same shared host
and Vulkan engine as Android; shared changes are behind __OHOS__ or opt-in switches (adaptive present tier, fence waits
woken on completion, OHAudio, HiTrace markers, a byte-identical BC fast path).
- HarmonyOS install with your own game files (@biglawine, 0.19.4 / code122): the release HAP is unsigned and contains
no game content; players re-sign it with their own debug certificate and import a pack made with
dm/tools/d2rm_android.py --target ohos. The registering stand-ins read the tables only when dm_derived_reload() is
called (on __OHOS__); first import creates the target folders; outside a game a map toggle request is dropped
before the AutoMap exists. Run by the author on a Mate 90 Pro Max: re-sign, install, import, in game, save and exit.
- Vulkan: NaN-ignoring min / max / clamp as on Maxwell (#113, @yyan160), fixing one-frame black tiles on the OnePlus 13.
- Xbox controllers (from #110, @rrroy5640): recognized automatically and given the PC / Xbox layout (bottom
confirms, right goes back) with the game's Xbox button icons; other controllers are unchanged. The Mac-only
keyboard prompt switch became a three-way prompt style (Switch / keyboard / Xbox) on every platform.
- Separate base and update packages (#106, @PowerBeef): setup.sh and extract_game.sh take both packages and
read the title keys from their tickets.
- Mac App (#108, #109, @PowerBeef): the project's icon by default; the pointer hides after resting 3 s.
- run.sh install no longer goes through the test-device battery gate (#107, @PowerBeef).
- Chinese wording (#101, @zzz6519003): 「旧接口版」 and 「默认构建」 throughout.
- Dynamic 3D resolution (from #113): a run of dropped frames counts only its first 3 frames unless it lasts
1 s, so one-off stalls no longer lower the resolution.
- In-game Korean (#118, @soulsakura): a 한국어 column for all our UI text, a fifth option in the language row (each
checkbox now sits before its name), Korean touch wording and map name plates, Korean voice when the game files
carry it; a Korean system language picks Korean on first install.
- iPhone Duo: in full screen the output size follows the window when the phone is unfolded or folded, up to the
size the game started with; needs Xcode 27.1 for the inner screen to be filled. Test switches DM_TEST_FOLD and
DM_TEST_SCREEN simulate the two screens with the iOS package on a Mac.
- README: Android and HarmonyOS sections, device table and credits in all three languages; dependency list for Android.
Every change was ported into the internal tree with its authors credited. For the shared files, the code
changes match the pull requests' after stripping comments. Host / graphics / iOS unit tests, the full
acceptance gate and the Mac smoke test passed; the rewriter's rule sets were rebuilt and passed the
equivalence regression; an iOS build of this code was played on an iPhone; the Android APK with an import pack
made from our own game files was played on a vivo X200 Ultra.
Exported from main 8055e5212.
Co-authored-by: Yuechuan Yang <22333122+yyan160@users.noreply.github.com>
Co-authored-by: biglawine <26263820+biglawine@users.noreply.github.com>
Co-authored-by: rrroy <hly5640@gmail.com>
Co-authored-by: Patrice Déry <109446870+PowerBeef@users.noreply.github.com>
Co-authored-by: Sam Snowman(赵正中) <zhengzhongzhao@gmail.com>
Co-authored-by: soulsakura <74704744+soulsakura@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
- Russian (ruRU), from #100 by @XpycT: a Русский column for all our UI text, a four-way language row
(中文 / English / Español / Русский) in Options → Custom, Russian touch wording, map goal name plates,
and first launch following a Russian device language. Voice: the Russian voice-over is used when your
game files include it (chunk 16, present in a package built from complete game data), otherwise English.
Item notes remain Chinese and Spanish only.
- Mac packaging, from #96 by @SwonDev: SW_MAC_ROMFS_COPY=1 bundles your own resources (private use only),
SW_MAC_ICON_SOURCE builds an App icon from your own image, linked non-system dylibs are copied into the
bundle and relinked, and the bundle is verified with a strict codesign check. Rebuilding into the same
output directory still replaces the whole App.
- Mac movies, from #97 by @SwonDev: MOVIE_FFMPEG=1 swaps the duration-only movie backend for FFmpeg VP8
decoding to NV12; the default build and iOS are unchanged. See dm/host/MOVIE.md.
Every change was ported into the internal tree and passed the host unit tests, a Russian UI regression
run on the iOS app on Mac, the Mac smoke test, a real-iPhone smoke test (3/3) and the full acceptance gate.
Exported from main 69614143f.
Co-authored-by: XpycT <XpycT.TOP@gmail.com>
Co-authored-by: SwonDev <35969131+SwonDev@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The game already ships Spanish text; what was missing was on our side. Now:
- Options → Custom has a three-way language choice: 中文 / English / Español. First launch follows the device
language (es-ES → esES, other Spanish regions → esMX). Voice acting stays English (the package carries only
Chinese and English voices).
- All our own UI text (Greater Rift, Chronicle, Trove, settings, prompts, update/download pages, ...) has Spanish
and Latin American Spanish columns, using the game's official Spanish terms (Alijo / Arcón, Cubo horádrico, ...).
- Touch-wording replacements, town portal name plates, map goal labels and the shader-prep page are in Spanish.
- Item notes (shortened drop names, base tiers and values, variable ranges, area levels, shrine effects) are
generated for esES and esMX too; the Chinese output is byte-for-byte unchanged.
- Fixes found from Spanish screenshots: grammatical gender tags ([ms] / [fp]) no longer leak into our lists and
titles; tabs, page counter and stats line no longer truncate or overlap.
- Chronicle search ignores case and accents (arlequin finds Arlequín).
- README: Spanish screenshots on the Spanish page; language notes updated in all three READMEs.
Thanks to @SwonDev (#87), whose Spanish work encouraged this.
Exported from main f879bc332.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
- iCloud (Mac host): the first metadata listing no longer deadlocks when booting on the main thread (#88).
- iOS touch: native general actions (Swap Weapons / Map, ...) bound to skill slots no longer show as empty (#81).
- Mac: hovering the mouse over an item shows its tooltip without clicking (#95).
- Mac App: the Custom-page "item notes" and "auto buff" options now take effect; overlay variants are packaged and selected at startup (#91).
- Perf tooling: slowframe.py no longer counts zero / non-finite / negative intervals in the judged denominator (#85).
- iOS: builds with Xcode 26.2, and iOS 26.0-26.3 can use the Apple-hosted asset pack via the older status API (#78).
- iOS touch: holding the main attack button no longer re-aims on tiny finger movement; it shares the skill buttons' 10-point dead zone (#92).
Every change was ported into the internal tree and passed the host unit tests, the Mac smoke test, a real-iPhone smoke test (3/3) and the full acceptance gate before export.
Exported from main e01b259b9.
Co-authored-by: Xielh <16849027+xielh96@users.noreply.github.com>
Co-authored-by: Peric <4222938+pericn@users.noreply.github.com>
Co-authored-by: atrl <987631+atrl@users.noreply.github.com>
Co-authored-by: jasio <2424522+wbcyclist@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A complete Spanish translation of the README, linked from the English and Chinese
READMEs. Thanks to @SwonDev, whose work on Spanish support (#87) prompted it.
Official in-game Spanish terms (Cubo horádrico, alijo, Infierno, Pesadilla, ...)
follow the game's own esES strings.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The audio session stays in the Playback category (sound plays with the silent switch on) and now
adds MixWithOthers. Playback is non-mixable by default, so activating it interrupted other apps:
ChatGPT live voice and screen sharing, and background music, stopped while the game was in the
foreground. The session's category and options are logged at startup.
Exported from main ec976ab73.
An iPad mini 6 (A15, 4 GB, iPadOS 27) with the Legacy Device Pack ran a few minutes of Act I at
50–58 fps after automatic quality reduction, but with constant system memory warnings and only
about 560 MB below the system memory limit. The device table now says 4 GB devices run with very
tight memory and that busy scenes may be ended by the system.
guest_dylib.py now ends __LINKEDIT with a linker-signed ad-hoc signature area and adds
LC_CODE_SIGNATURE as the last load command, so on-device signers such as LiveContainer's zsign
can re-sign Guest in place (zsign looks for load-command free space only through a section named
__text, which Guest does not have). Only the shell and user-side packaging (d2rm_pack.py) use
this script. Checked on macOS: deterministic output, only the header and __LINKEDIT change, and
Apple codesign re-signs it to the same size as before.
Exported from main 2367547da.
Co-authored-by: kaskabayev <7428145+kaskabayev@users.noreply.github.com>
Empty skill slots now use a neutral silver-gray hairline at 60% opacity (was 18%) and 1.2% of
the button diameter (was 0.9%), so the binding slots stay visible on bright ground. Pressed state,
layout, hit areas and binding are unchanged.
Exported from main 762b25bcb.
Co-authored-by: BossaMelon <38517713+BossaMelon@users.noreply.github.com>
Touch controls (#74, BossaMelon): dark socket buttons with a metal rim, an arc-shaped skill fan,
the I / II skill-set switch next to the portal (or above the skills, in the Custom settings page),
switching on release with slide-out cancel, and tablet scaling capped at 1.0–1.15x. The button
texture is 512x512.
Community fixes now carried in main (they were merged here earlier; this export keeps them):
- #64 (dormonbear): minimap no longer disappears after UI rebuilds and mode switches
- #65 (BossaMelon): Mac mouse picks on press; held movement follows every 30 Hz tick
- #66 (SepheTT): unresolved weak imports stay null instead of getting a callable stub
- #68 (SepheTT): buffer/texture copies honor the game's image stride
- #73 (BossaMelon): iPhone runs at native resolution (launch screen declared); reverts the
unused legacy CommitSaveData hook from #67
- #55 (n3crosis): x18 scan pre-filters register fields
- #56 (yinqingyan): tvOS settings divider no longer crosses the next row
Other changes:
- Guest address reservation steps down from 5120 to 4864 MiB on devices that return ENOMEM
- Physical controller face buttons: buttonA/B/X/Y map straight to A/B/X/Y, fixing swapped
A/B and X/Y on Nintendo controllers
- Magenta-screen probe (on by default) and its cost measurement, for diagnosing the
full-picture magenta flash reported under heavy load
Exported from main 13f81093a.
Co-authored-by: BossaMelon <38517713+BossaMelon@users.noreply.github.com>
Co-authored-by: SepheTT <130138909+SepheTT@users.noreply.github.com>
Co-authored-by: Dormon Zhou <8454341+dormonbear@users.noreply.github.com>
Co-authored-by: n3crosis <11072158+n3crosis@users.noreply.github.com>
Co-authored-by: yinqingyan <yinqingyan@users.noreply.github.com>
Declare UILaunchScreen so iPhone launches at native size, and remove the unused CommitSaveData HLE_FORCE from #67 that aborted load for the supported game.
Thanks @SepheTT. Maintainer verified against D2R 3.3.94012 ExeFS: unresolved weak imports that become NULL are linker sentinels plus one null-checked API; no unguarded call risk.
Thanks @SepheTT. Maintainer verified: t_copy_pitch + related gfx tests pass; D2R does not call SetCopyImageStride so normal copies keep the old tight path.
msl_retarget.sh passed ~7000 reflection files to cp as a shell glob. In a deep
CI workspace path the expanded list exceeds ARG_MAX, cp fails as a whole and
copies nothing, and the script did not check it: the M3 Mac app shipped with
Metal libraries but no reflection JSON, so every shader failed to load.
Now rsync copies by directory, and the final check fails the build if any _b
library lacks its reflection.
- Rift: monster density and elite group counts are about half of before (to
hold 60 fps), and the progress needed to clear a Rift is halved to match.
Invading bosses only spawn where the player can walk.
- iPhone: after pressing a volume button the picture could freeze (looked like
a black screen or a crash). If the display callback stops for more than
0.5 s while the game is active, the app now presents frames itself and
switches back to the display callback afterwards.
- Audio: the buffer-release notifier thread runs at user-interactive QoS, to
reduce gaps while moving (from @dormonbear's PR #52).
- Diagnostics: minimap state, level-change requests and the level after
object interactions are logged, to investigate #47 and #49 (from
@hubeiqiao's PR #51).
- New setting "Custom > 3D Quality": smoothness first (default; lowers the 3D
render scale when frames keep dropping and raises it again once stable) or
quality first.
- Mac: when the window is fully covered by another window, frames are not
presented (no false stall warning); the game keeps running.
- Fixes: switching gamepad / touch layout while the belt auto-refill runs no
longer crashes; dragging the Horadric Cube onto the stash no longer locks the
panel; the bottom bar stays visible while an NPC dialogue menu is open.
- Host: top-level panels are looked up among the direct children of the UI
root instead of a full-tree search every frame.
Co-authored-by: dormonbear <8454341+dormonbear@users.noreply.github.com>
Co-authored-by: hubeiqiao <12777592+hubeiqiao@users.noreply.github.com>
- Apple TV 4K (3rd gen, A15): community port by @yinqingyan, contributed under
the MIT License with the author's consent
(https://github.com/jhaizhou-ops/d2r-mobile/issues/53#issuecomment-6184331793).
Developer preview: reached character selection on the author's Apple TV;
entering the game, full controller mapping and saves are not verified, and
the maintainers have not tested it on real hardware. Separate DmTV target in
dm/ios/project.yml (the iOS target is unchanged), bundled tvOS shaders,
zh/en strings, icon generated from the iOS icon. Real hardware only: the tvOS
Simulator GPU cannot run the renderer. See dm/tvos/README.md.
- Rift: the next guardian wave no longer spawns in town after you go back; it
spawns when you return to the Rift level (#44, from @hubeiqiao's PR #45). A
Rift monster that dies just across the border in the neighbouring original
level no longer triggers that level's original quest events.
- Mac: choosing the folder that directly holds the .data files is accepted, and
Chinese folder names show correctly in the error message; frame pacing follows
the refresh rate of the screen the window is on (72 fps on 144 Hz screens).
- iCloud: forked shared stashes are merged in game (items, gold and Chronicle
vault) instead of one copy replacing the other.
- Touch: with the primary skill empty, tapping "+" on the main attack button
opens the skill picker.
- Renderer: fixed-function state is not re-sent when unchanged; copy-encoder
reuse adds an in-encoder barrier on Metal 4; per-pass GPU timing works on
Metal 4 again.
Co-authored-by: yinqingyan <271124084+yinqingyan@users.noreply.github.com>
Co-authored-by: hubeiqiao <12777592+hubeiqiao@users.noreply.github.com>
The render-target view issue (#36) was found and diagnosed by seedds on another port built from this repository, who also proposed the fix direction.
Co-authored-by: seedds <3463322+seedds@users.noreply.github.com>