A newer shell is available: v1.0.18. The shell and the repository must be from the same version; with the current
mainplease use v1.0.18.
已有更新的壳:v1.0.18。壳和仓库必须是同一版,配合现在的
main请用 v1.0.18。
The shell in this release cannot be packaged (issue #1). Please use v1.0.1 instead.
English
This release includes an experimental "shell": an unsigned install package with no game content at all. You build the content into it from your own game files, then sign it with a sideloading tool and install it on your phone -- no Xcode and no Mac needed. See docs/NO_XCODE.md.
To build everything from source yourself (needs an Apple silicon Mac and Xcode), see "Building" on the front page.
Assets
D2RMobile-shell.ipa: the shell (about 4.4 MB, for both iPhone and iPad). Its checksum is inSHA256SUMS.txt. It contains only our own host program, the icon and the tables published in this repository; no game program, shaders or art. It does not start on its own.- Source: the source archive on this page. The packaging tool must be run from the source of the same version as the shell; the tool checks this.
What we verified
- Packaging on a Mac and on Windows from the same game files: the game program produced is byte-identical; all other files are byte-identical except for the "known differences" below.
- A package made on Windows, signed on a Mac and installed on an iPhone 17 Pro Max (12 GB RAM): a fresh install with no resources shows the import guide; after importing, the first launch compiles all 7212 shaders (about 7 minutes, 4 threads, a moderate thermal level, not terminated by the system); creating a character, entering a game and changing acts then work.
- Signing with a free Apple ID through Xcode automatic signing, installing and entering a game.
Not verified (stated plainly)
-
This exact shell file has not been run on a device yet. The on-device run above used a shell built earlier the same day that targeted iPhone only; this one adds iPad as a target and a layout tweak to the first-launch guide page. A package made from the shell has not been installed on an iPad yet.
-
Signing and installing with a sideloading tool (Sideloadly, AltStore, ...) has not been tested. We simulated it by re-signing with a development certificate. Whether it works for you or not, please open an issue and tell us.
-
Devices with 6 GB or 8 GB of RAM, and devices with an A16 or older chip.
-
Game packages in
.nspformat (only.xciwas tested). -
Packaging on Linux.
Known differences and notes
- In a package made on Windows, the digit spacing in the HUD and a few English label images differ from a Mac-made package by less than one pixel (the Windows imaging library lacks a text layout component). This does not affect play.
- The shader translator
spirv-crossmust be version 1.4.357.0; the tool stops and explains if it is not. - A package signed with a free Apple ID must be re-signed after 7 days; after uninstalling and reinstalling it, trust it again under Settings > General > VPN & Device Management.
- Only packages made without Xcode (on Windows, Linux, or a Mac without Xcode) compile all shaders on first launch before the main menu, with a progress bar; you can switch away and it continues when you come back. A package built with Xcode has its shaders compiled on the computer and has no such step.
Disclaimer
This project contains and distributes no game content. You must legally own the game yourself.
中文
这个版本带一个实验性的「壳」:一个不含任何游戏内容、没有签名的安装包。你用自己的游戏文件把内容做进去,再用自签工具签名装到手机上——全程不需要 Xcode,也不需要 Mac。做法见 docs/NO_XCODE.zh-CN.md。
想自己从源码完整构建(需要 Apple 芯片的 Mac 与 Xcode),见首页的「构建」。
附件
D2RMobile-shell.ipa:壳(约 4.4 MB,同时面向 iPhone 与 iPad)。校验值在SHA256SUMS.txt。里面只有我们自己的宿主程序、图标和随仓库公开的表;没有游戏程序、着色器、素材。它自己起不来。- 源码:本页的源码压缩包。做包工具要用与壳同一个版本的源码,工具会核对。
我们验过的
- Mac 与 Windows 上各用同一份游戏文件做包:两边产出的游戏程序逐字节相同;其余文件除下面「已知差异」外逐字节相同。
- Windows 上做出的包拷到 Mac 上签名,装到 iPhone 17 Pro Max(12 GB 内存):全新安装、没有资源时显示导入指引;导入资源后首次启动编完全部 7212 个着色器(约 7 分钟,4 线程,机器发热到中等一档、没有被系统结束),之后建角、进局、换幕正常。
- 用免费的 Apple ID 经 Xcode 自动签名装机、进局。
没验过的(照实写)
-
这一份壳文件本身还没有装到真机上跑过。 上面真机走通的那一遍用的是同一天稍早出的壳,它只面向 iPhone;这一份多了「同时面向 iPad」和首次启动指引页的排版调整。iPad 上还没有装过用壳做出来的包。
-
用自签工具(Sideloadly、AltStore 等)签名装机这一步没有实测过。 我们是用开发证书重新签名来模拟它的。走通或走不通都欢迎开 Issue 告诉我们。
-
内存 6 GB、8 GB 的机器,以及 A16 及更早芯片的机器。
-
.nsp格式的游戏包(只测过.xci)。 -
Linux 上做包。
已知差异与注意
- Windows 上做出的包,界面数字的字距与少数英文标签图和 Mac 上做的有不到 1 像素的差别(Windows 的图像库缺一个文字排版组件),不影响游玩。
- 着色器翻译工具
spirv-cross要用 1.4.357.0;版本不对工具会停下来说明。 - 免费 Apple ID 签的包 7 天后要重新签;把它卸载再重装后,要到「设置 → 通用 → VPN 与设备管理」里重新点一次信任。
- 只有不用 Xcode 做出的包(Windows、Linux、没装 Xcode 的 Mac 上做的)首次启动要先把着色器编完才进主菜单,带进度条,可以切到后台、回来接着编。用 Xcode 构建的包着色器在电脑上就编好了,没有这一步。
声明
本项目不含、也不分发任何游戏内容。你需要自己合法拥有游戏。