github jhaizhou-ops/d2r-mobile v1.0.18

latest releases: v2.3.5, v2.3.4, v2.3.3...
one month ago

English

Redesigned touch controls, iPhone native resolution, LiveContainer support, and a batch of community fixes. Thanks to the seven contributors credited below.

Asset For
D2RMobile-shell-build-input.zip Build input, not installable. iOS 26 and later
D2RMobile-shell-ios18-build-input.zip Build input, not installable. iOS 18 – 25

Make your install package with d2rm_pack.py (docs/NO_XCODE.md, step 1), using the source of this same release. Moving to a new release always means redoing step 1; the resource archives already on your phone stay where they are. The rewriter's output is unchanged (r44, byte-identical before and after #55). If you build with Xcode, pull main and rebuild.

New

  • Redesigned touch controls (#74, @BossaMelon): dark socket buttons with a metal rim, an arc-shaped skill fan moved slightly toward the lower right, and a brighter rim on empty skill slots so they stay visible on bright ground. The I / II skill-set switch sits next to the portal by default and can be moved above the skills on the Custom settings page; it now switches when you lift your finger, and sliding off cancels. On iPad, control scaling is limited to 1.0–1.15x.
  • iPhone runs at native resolution (#73, @BossaMelon): the app declares a launch screen, so iPhones no longer run it in the old-size compatibility mode.
  • Mac mouse (#65, @BossaMelon): a world click picks on mouse-down instead of on release, and held movement follows the cursor every 30 Hz tick, removing the 300 ms start delay and 200 ms steering interval.
  • LiveContainer (#76, @kaskabayev): Guest.framework/Guest now carries a reserved code-signature area, so LiveContainer's on-device signer can sign it and the game starts.

Fixes

  • Minimap (#64, @dormonbear): no longer disappears after UI rebuilds and input-mode switches.
  • Nintendo controllers (from #58 by @Kamisorara, Issue #57): A/B and X/Y were swapped on Switch Pro and Joy-Con. Face buttons now follow the letter printed on the keycap; Xbox and PlayStation controllers behave as before.
  • Mac apps built in CI (#60): no more solid pink-purple screen. The shader step copied reflection files with a shell glob that overflowed in deep paths; it now copies by directory and fails the build if any library lacks its reflection.
  • Startup on some devices: the guest address reservation steps down from 5120 MiB to 4864 MiB when the device refuses the larger size, instead of exiting.
  • Rendering and loading (#68, #66, @SepheTT): buffer/texture copies honor the image stride the game sets; unresolved weak imports stay null so the game can detect optional functions that are absent.
  • Apple TV (#56, @yinqingyan): the settings divider no longer crosses the next row.

Other

  • The rewriter's x18 scan pre-filters register fields (#55, @n3crosis), so rewriting is faster; the output is byte-identical.
  • A magenta-screen probe (on by default) records full-picture magenta frames under heavy load in the diagnostic log, to help track down that report.
  • README: devices with 4 GB of RAM now start and run, with very tight memory (tested on an iPad mini 6).

How this release was checked

  • Community changes: each pull request was moved into our main branch with its author credited, and for every file the code changes on main were compared with the pull request's own changes after stripping comments: no differences. Host, graphics and iOS unit tests passed.
  • Merges: every merge passed the full host checks (accept --full). Changes to the iOS app were smoke-tested on an iPhone 17 Pro Max (three launches into the game each, plus an in-game and pause-menu run) and on a Mac.
  • Rewriter (#55): all nine rewritten module images (three rule sets × three modules) are byte-identical before and after the change.
  • Guest signature (#76): deterministic output; only the file header and __LINKEDIT change. Apple codesign reads the signature and re-signs Guest to the same size as before. AltStore's signer (ldid from AltSign) signs it ad hoc and with a certificate, and every page hash matches (16,993 pages, SHA-1 and SHA-256). Sideloadly's signer was not tested.
  • Shells: Both shells were built from the public tree in an empty working directory, and each one, used in another fresh working directory, wrote a complete install package (128 MB and 129 MB, 14,343 files). The iOS 18 shell reads back minimum system 18.0 with no Metal 4 symbols; the default shell reads back 26.0.

中文

触控按键重做、iPhone 原生分辨率、支持 LiveContainer,以及一批社区修复。感谢下面署名的七位贡献者。

附件 给谁
D2RMobile-shell-build-input.zip 构建原料,不能直接安装。 iOS 26 及以上
D2RMobile-shell-ios18-build-input.zip 构建原料,不能直接安装。 iOS 18 – 25

用 d2rm_pack.py 做安装包(docs/NO_XCODE.zh-CN.md 第一步),源码要用同一个发布版本的。每次换新版本都要重做第一步;手机上已经放好的资源包不用动。改写器的产物没变(r44,#55 前后逐字节相同)。用 Xcode 构建的,拉 main 重新构建即可。

新增

  • 触控按键重做(#74,@BossaMelon):按键换成黑灰内槽加金属边,右侧技能区改成弧形、整体往右下挪了一点;空技能槽的细边提亮,在亮的地面上也看得见。「Ⅰ / Ⅱ」换组键缺省放在传送门旁,可以在设置「自定义」页挪到技能区上方;改成松手才换组,手指滑出去就取消。iPad 上控件缩放限制在 1.0–1.15 倍。
  • iPhone 按原生分辨率运行(#73,@BossaMelon):App 声明了启动屏,iPhone 不再以旧尺寸兼容模式运行。
  • Mac 鼠标(#65,@BossaMelon):点世界在按下时就生效,不用等松手;按住移动每 30 Hz 一拍跟着光标走,去掉了起步 300 毫秒、转向 200 毫秒的延迟。
  • LiveContainer(#76,@kaskabayev):Guest.framework/Guest 里预留了代码签名区,LiveContainer 在设备上就能给它签名,游戏能正常启动。

修复

  • 小地图(#64,@dormonbear):界面重建、切换输入方式之后不再消失。
  • 任天堂手柄(思路来自 @Kamisorara 的 #58,Issue #57):Switch Pro 和 Joy-Con 上 A/B、X/Y 是反的。现在面键按键帽上印的字母对应;Xbox、PlayStation 手柄不变。
  • CI 出的 Mac App(#60):不再整屏粉紫。着色器那一步用通配符拷反射文件,路径深时参数超长、一个都没拷上;现在按目录拷,并且缺反射文件的库会让构建直接失败。
  • 部分设备启动: 设备拒绝预留 5120 MiB 地址空间时,自动降到 4864 MiB 再试,不再直接退出。
  • 画面与加载(#68、#66,@SepheTT):缓冲区和贴图互拷按游戏给的图像行距走;没解析到的弱导入保持空指针,游戏能正确判断可选函数不存在。
  • Apple TV(#56,@yinqingyan):设置页的横线不再穿过下一行文字。

其他

  • 改写器的 x18 扫描先按寄存器字段过滤(#55,@n3crosis),改写更快,产物逐字节相同。
  • 紫屏探针(缺省开):重负载下整幅画面变品红时会记进诊断日志,便于定位这类反馈。
  • 首页设备表:4 GB 内存的设备能进游戏了,内存仍很紧(iPad mini 6 实测)。

这一版是怎么验的

  • 社区改动: 每个合并请求都搬进了我们的主干并署上作者;逐个文件剥掉注释后,比对主干上的代码改动与合并请求本身的改动:没有差异。宿主、图形、iOS 单元测试全过。
  • 合入: 每次合入都过了宿主全套检查(accept --full)。动到 iOS App 的改动都在 iPhone 17 Pro Max 上冒烟(每次三局启动进游戏,加一局局内与暂停菜单),也在 Mac 上跑过。
  • 改写器(#55): 改动前后,三套规则 × 三个模块共九个改写后的模块映像逐字节相同。
  • Guest 签名(#76): 生成结果确定;只有文件头和 __LINKEDIT 变化。苹果 codesign 能读出签名,重签后大小与改动前相同。AltStore 用的签名器(AltSign 里的 ldid)不带证书、带证书各签一次,每一页的哈希都对得上(16993 页,SHA-1 与 SHA-256)。Sideloadly 的签名器没有实测。
  • 壳: 两份壳都是在空的工作目录里从公开的代码出的;再各自放到另一个全新的工作目录里做包,都写出了完整的安装包(128 MB、129 MB,14343 个文件)。iOS 18 的壳读回的最低系统是 18.0、没有 Metal 4 符号;缺省的壳读回 26.0。

Don't miss a new d2r-mobile release

NewReleases is sending notifications on new releases.