v1.0.15: shell is now build input (.zip), launch self-check for incomplete packages and devices without Metal 3, graphics translation on its own thread, save with the pause menu open, wide-iPhone item tooltip and Chronicle rewards fixes
This commit is contained in:
+5
-3
@@ -15,9 +15,11 @@ The normal route is to build the whole app with Xcode on a Mac (see "Building" o
|
||||
|
||||
## What the shell contains and does not contain
|
||||
|
||||
Download the shell from this repository's [Releases page](https://github.com/jhaizhou-ops/d2r-mobile/releases). There are two on the Releases page: `D2RMobile-shell.ipa` for iOS 26 and later, `D2RMobile-shell-ios18.ipa` for iOS 18 – 25 ([OLDER_SYSTEMS.md](OLDER_SYSTEMS.md)); pick the one for your phone's system, the steps after that are the same. The shell (about 4 MB) contains only our own host program, the icon and two tables that are public in this repository. It does **not** contain: the game program, shaders, the overlay, UI art, or any data table generated from game files. The script that builds the shell (`dm/ios/tools/shell_build.sh`) finishes by searching every file in the shell for real game content, and refuses to produce a shell if it finds any.
|
||||
Download the shell from this repository's [Releases page](https://github.com/jhaizhou-ops/d2r-mobile/releases). There are two on the Releases page: `D2RMobile-shell-build-input.zip` for iOS 26 and later, `D2RMobile-shell-ios18-build-input.zip` for iOS 18 – 25 ([OLDER_SYSTEMS.md](OLDER_SYSTEMS.md)); pick the one for your phone's system, the steps after that are the same. The shell (about 4 MB) contains only our own host program, the icon and two tables that are public in this repository. It does **not** contain: the game program, shaders, the overlay, UI art, or any data table generated from game files. The script that builds the shell (`dm/ios/tools/shell_build.sh`) finishes by searching every file in the shell for real game content, and refuses to produce a shell if it finds any.
|
||||
|
||||
The shell cannot start by itself: on launch it tells you that this package has no game program in it yet.
|
||||
**The shell is build input, not an app to install** (which is why it is a `.zip`, not an `.ipa`). If you rename it and install it as is, the app shows a "This Package Is Not Ready" dialog on launch, lists what is missing and points you back to step 1 below; it does not start the game.
|
||||
|
||||
**Every time you move to a new release, redo step 1 with the new shell and the source of the same release**, then install the package you just made. The resource archives you put on the phone in step 3 do not depend on the version and do not need to be copied again.
|
||||
|
||||
## What you need
|
||||
|
||||
@@ -41,7 +43,7 @@ The tool lists whatever is missing, item by item, when it starts.
|
||||
## Step 1: put the game content into the shell
|
||||
|
||||
```
|
||||
python3 dm/tools/d2rm_pack.py <D2RMobile-shell.ipa> <your game files directory> <output.ipa>
|
||||
python3 dm/tools/d2rm_pack.py <D2RMobile-shell-build-input.zip> <your game files directory> <output.ipa>
|
||||
```
|
||||
|
||||
`<your game files directory>` is the level that contains `ExeFS/` and `RomFS/`. In order, the tool: rewrites the game program and writes it out as a dynamic library → generates UI art and a few data tables from the game files → generates the overlay → translates the game's shaders to Metal → checks against the list inside the shell that nothing is missing → writes the new package (about 130 MB). The first run takes a bit over ten minutes, mostly translating shaders; every step is skipped once done.
|
||||
|
||||
@@ -15,9 +15,11 @@ English: [NO_XCODE.md](NO_XCODE.md)
|
||||
|
||||
## 壳里有什么、没有什么
|
||||
|
||||
壳从本仓库的[发布页](https://github.com/jhaizhou-ops/d2r-mobile/releases)下载。发布页上有两份:`D2RMobile-shell.ipa` 给 iOS 26 及以上,`D2RMobile-shell-ios18.ipa` 给 iOS 18 – 25([OLDER_SYSTEMS.zh-CN.md](OLDER_SYSTEMS.zh-CN.md)),按手机的系统挑一份,后面的步骤相同。壳(约 4 MB)里只有我们自己的宿主程序、图标和两张随仓库公开的表。它**没有**:游戏程序、着色器、覆盖层、界面素材、任何从游戏文件生成的数据表。构建壳的脚本(`dm/ios/tools/shell_build.sh`)在最后会拿真实的游戏内容去壳里逐个文件搜一遍,搜到就不出壳。
|
||||
壳从本仓库的[发布页](https://github.com/jhaizhou-ops/d2r-mobile/releases)下载。发布页上有两份:`D2RMobile-shell-build-input.zip` 给 iOS 26 及以上,`D2RMobile-shell-ios18-build-input.zip` 给 iOS 18 – 25([OLDER_SYSTEMS.zh-CN.md](OLDER_SYSTEMS.zh-CN.md)),按手机的系统挑一份,后面的步骤相同。壳(约 4 MB)里只有我们自己的宿主程序、图标和两张随仓库公开的表。它**没有**:游戏程序、着色器、覆盖层、界面素材、任何从游戏文件生成的数据表。构建壳的脚本(`dm/ios/tools/shell_build.sh`)在最后会拿真实的游戏内容去壳里逐个文件搜一遍,搜到就不出壳。
|
||||
|
||||
壳自己起不来——它启动时会告诉你「这个安装包里还没有游戏程序」。
|
||||
**壳是做安装包的原料,不能直接装来玩**(所以它是 `.zip`,不是 `.ipa`)。把它改名直接装上去,App 启动时会弹框「这个安装包还不能玩」,列出缺的内容,告诉你回到下面第一步;不会进游戏。
|
||||
|
||||
**每次换新版本,都要用新版的壳和同一版本的源码重新做一遍第一步**,再装新做出来的安装包。手机上第三步放的资源档案和版本无关,不用重拷。
|
||||
|
||||
## 你需要准备的
|
||||
|
||||
@@ -41,7 +43,7 @@ English: [NO_XCODE.md](NO_XCODE.md)
|
||||
## 第一步:把游戏内容做进壳
|
||||
|
||||
```
|
||||
python3 dm/tools/d2rm_pack.py <D2RMobile-shell.ipa> <你的游戏文件目录> <输出.ipa>
|
||||
python3 dm/tools/d2rm_pack.py <D2RMobile-shell-build-input.zip> <你的游戏文件目录> <输出.ipa>
|
||||
```
|
||||
|
||||
`<你的游戏文件目录>` 是含 `ExeFS/` 与 `RomFS/` 的那一层。它依次:改写游戏程序并写成一个动态库 → 从游戏文件生成界面素材与几张数据表 → 生成覆盖层 → 把游戏的着色器翻译成 Metal → 照壳里的清单核对一项不缺 → 写出新的安装包(约 130 MB)。第一次约十几分钟,主要花在翻译着色器上;每一步做过就跳过。
|
||||
|
||||
@@ -36,8 +36,8 @@ The Releases page has two shells. Pick the one for your system; every other step
|
||||
|
||||
| Shell | For |
|
||||
|---|---|
|
||||
| `D2RMobile-shell.ipa` | iOS 26 and later |
|
||||
| `D2RMobile-shell-ios18.ipa` | iOS 18 – 25 |
|
||||
| `D2RMobile-shell-build-input.zip` | iOS 26 and later |
|
||||
| `D2RMobile-shell-ios18-build-input.zip` | iOS 18 – 25 |
|
||||
|
||||
The packaging tool accepts both shells with the same command. For A16 and earlier devices add `D2RM_ASTC_PACK` as well (see the "Older devices" section of NO_XCODE) — the texture pack depends only on the chip, and both shells use the same pack.
|
||||
|
||||
|
||||
@@ -36,8 +36,8 @@ DM_IOS_M3=1 ./run.sh build
|
||||
|
||||
| 壳 | 给谁 |
|
||||
|---|---|
|
||||
| `D2RMobile-shell.ipa` | iOS 26 及以上 |
|
||||
| `D2RMobile-shell-ios18.ipa` | iOS 18 – 25 |
|
||||
| `D2RMobile-shell-build-input.zip` | iOS 26 及以上 |
|
||||
| `D2RMobile-shell-ios18-build-input.zip` | iOS 18 – 25 |
|
||||
|
||||
做包工具两份壳都认,命令不变。A16 及更早的机型同样加 `D2RM_ASTC_PACK`(见 NO_XCODE 的「老机型」一节)——贴图包只和芯片有关,两份壳用的是同一个贴图包。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user