Initial public release
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
# Dependencies
|
||||
|
||||
Everything the build needs is on this page: what each item is, what it is for, where to get it and how to install it. The versions listed are the ones we actually build with; newer versions usually work, and if something breaks, go back to the listed version first.
|
||||
|
||||
中文:[DEPENDENCIES.zh-CN.md](DEPENDENCIES.zh-CN.md)
|
||||
|
||||
## What you bring yourself
|
||||
|
||||
| What | Used for | Notes |
|
||||
|---|---|---|
|
||||
| An Apple silicon Mac | Building, and running the host tools | Needs macOS and the Xcode version below |
|
||||
| Your own game files | The game program and all game data | This repository contains no game files. You need the program files (ExeFS) and the update data (RomFS) of the Switch release 3.3.94012, dumped from a copy you bought and own. See [GAME_FILES.md](GAME_FILES.md) |
|
||||
| An Apple developer account | Signing the app and installing it on your own device | A paid account gives you everything. A free account (personal team) cannot sign iCloud, sustained execution or the increased memory limit: building with `DM_FREE_ACCOUNT=1` removes them; what you lose is iCloud save sync, and the game runs as usual. Apps signed with a free account must be reinstalled every 7 days. With a free account: before building, connect the phone by cable and unlock it, and set `DM_IOS_UDID` in the local configuration (the build targets this phone, which is what makes Apple generate a provisioning profile for a free team); after installing, before the first launch, trust your developer account on the phone under Settings → General → VPN & Device Management. This mode has been signed with an actual free account, installed and played (on a 12 GB device); 6 GB / 8 GB devices have not been verified |
|
||||
|
||||
## Build tools
|
||||
|
||||
| Tool | Version | Used for | Official site | Install |
|
||||
|---|---|---|---|---|
|
||||
| Xcode (with the Metal compiler) | 26.6 | Building the app and compiling shaders into Metal libraries | <https://developer.apple.com/xcode/> | App Store or the developer site |
|
||||
| Homebrew | — | Installing the command-line tools below | <https://brew.sh> | The one-line command on its home page |
|
||||
| XcodeGen | 2.45.4 | Generating the Xcode project from `project.yml` | <https://github.com/yonaskolb/XcodeGen> | `brew install xcodegen` |
|
||||
| .NET SDK | 10.0 | Building the shader translation tool | <https://dotnet.microsoft.com/download> | `brew install dotnet` |
|
||||
| SPIRV-Cross | 1.4.357 | Turning translated SPIR-V into Metal Shading Language | <https://github.com/KhronosGroup/SPIRV-Cross> | `brew install spirv-cross` |
|
||||
| Python 3 | 3.14 | Running the generation and verification scripts | <https://www.python.org/downloads/> | Ships with macOS, or `brew install python` |
|
||||
|
||||
## Python packages
|
||||
|
||||
| Package | Version | Used for | Link |
|
||||
|---|---|---|---|
|
||||
| Pillow | 12.1.1 | Generating interface art from the game files | <https://pypi.org/project/pillow/> |
|
||||
| numpy | 2.4.4 | Same | <https://pypi.org/project/numpy/> |
|
||||
| lz4 | 4.4.5 | Unpacking the program files | <https://pypi.org/project/lz4/> |
|
||||
| capstone | 5.0.9 | Disassembly, for rewriting the program and for verification | <https://pypi.org/project/capstone/> |
|
||||
| unicorn | 2.1.4 | Checking, site by site, that rewritten code behaves the same | <https://pypi.org/project/unicorn/> |
|
||||
|
||||
All at once: `python3 -m pip install pillow numpy lz4 capstone unicorn` (`./setup.sh` creates an isolated environment and installs them for you)
|
||||
|
||||
## Optional
|
||||
|
||||
| Tool | Used for | Official site |
|
||||
|---|---|---|
|
||||
| astcenc | Converting textures for older devices without BC texture support | <https://github.com/ARM-software/astc-encoder> |
|
||||
|
||||
## Extra tools for on-device and verification scripts
|
||||
|
||||
Not needed to build the app or run the Mac smoke test; only for on-device smoke tests, UI regression and the scripts under `dm/verify/`.
|
||||
|
||||
| Tool | Used for | Install |
|
||||
|---|---|---|
|
||||
| timeout | Wall-clock limits for runs and builds (used by several scripts) | `brew install coreutils` |
|
||||
| iproxy, ideviceinfo | Forwarding the log port over USB and reading battery level in on-device smoke tests | `brew install libimobiledevice` |
|
||||
| llvm-objdump, llvm-objcopy | Disassembly and section extraction in the rewrite-equivalence checks | `brew install llvm` |
|
||||
|
||||
## Third-party code in this repository
|
||||
|
||||
These are already in the repository; nothing to download. Each keeps its license in its own directory.
|
||||
|
||||
| Path | What | License | Upstream |
|
||||
|---|---|---|---|
|
||||
| `dm/third_party/bcdec` | BC texture decompression | MIT or Unlicense (your choice) | <https://github.com/iOrange/bcdec> |
|
||||
| `dm/third_party/flip` | Image difference metric | BSD 3-Clause | <https://github.com/NVlabs/flip> |
|
||||
| `dm/third_party/libdeflate` | Decompression | MIT | <https://github.com/ebiggers/libdeflate> |
|
||||
| `dm/third_party/ryujinx` | The shader translator from Ryujinx 1.3.2 (three projects, unmodified), which translates the original Switch shaders to SPIR-V | MIT | <https://github.com/Ryubing> |
|
||||
| `dm/gfx/nvn/include/nvn.h` | Graphics interface declarations | MIT | Author named in the file header |
|
||||
| Layout size algorithm in `dm/gfx/nvn/nvn_tex.c` | Ported from deko3d | zlib | <https://github.com/devkitPro/deko3d> |
|
||||
| The 7 rewrites in `dm/tools/patch_nso.py` that let the game run offline | Taken from a community offline fix (LFS Mod Offline Fix) | Unknown | We have no reliable record of where it was first published or by whom; if you know, please open an issue, see [DERIVED.md](DERIVED.md) |
|
||||
@@ -0,0 +1,66 @@
|
||||
# 依赖一览
|
||||
|
||||
构建需要的东西都在这一页:每一项是什么、用来做什么、去哪里拿、怎么装。表里的版本是我们实际构建用过的版本;更新的版本一般也能用,出问题时先换回表里的版本。
|
||||
|
||||
English: [DEPENDENCIES.md](DEPENDENCIES.md)
|
||||
|
||||
## 你自己要准备的
|
||||
|
||||
| 需要什么 | 用来做什么 | 说明 |
|
||||
|---|---|---|
|
||||
| 一台 Apple 芯片的 Mac | 构建与运行宿主 | 需要 macOS 与下面的 Xcode |
|
||||
| 你自己的游戏文件 | 主程序与全部游戏资源 | 本仓库不含任何游戏文件。需要 Switch 版 3.3.94012 的程序文件(ExeFS)与更新包资源(RomFS),从你自己购买并拥有的游戏导出,见 [GAME_FILES.zh-CN.md](GAME_FILES.zh-CN.md) |
|
||||
| Apple 开发者账号 | 给 App 签名并装到自己的设备上 | 付费账号可用全部功能。免费账号(个人团队)签不了 iCloud、持续执行、加大内存上限这几项:出包时加 `DM_FREE_ACCOUNT=1` 会去掉它们,少的是 iCloud 存档同步,游戏照常运行;免费账号签的 App 每 7 天要重装一次。用免费账号时:构建前把手机用数据线连上并解锁、在本机配置里填 `DM_IOS_UDID`(构建以这台手机为目标,苹果才肯给免费团队生成描述文件);装好后第一次打开前,到手机「设置 → 通用 → VPN 与设备管理」里信任你的开发者账号。这一档已真拿免费账号签过、装机进局(12 GB 内存的机器);6 GB / 8 GB 的机器没验 |
|
||||
|
||||
## 构建工具
|
||||
|
||||
| 工具 | 版本 | 用来做什么 | 官方地址 | 安装 |
|
||||
|---|---|---|---|---|
|
||||
| Xcode(含 Metal 编译器) | 26.6 | 编译 App、把着色器编成 Metal 库 | <https://developer.apple.com/xcode/> | 从 App Store 或开发者网站安装 |
|
||||
| Homebrew | — | 安装下面几个命令行工具 | <https://brew.sh> | 按官网首页的一行命令 |
|
||||
| XcodeGen | 2.45.4 | 由 `project.yml` 生成 Xcode 工程 | <https://github.com/yonaskolb/XcodeGen> | `brew install xcodegen` |
|
||||
| .NET SDK | 10.0 | 编译着色器翻译工具 | <https://dotnet.microsoft.com/download> | `brew install dotnet` |
|
||||
| SPIRV-Cross | 1.4.357 | 把翻译出的 SPIR-V 转成 Metal 着色语言 | <https://github.com/KhronosGroup/SPIRV-Cross> | `brew install spirv-cross` |
|
||||
| Python 3 | 3.14 | 运行生成与验证脚本 | <https://www.python.org/downloads/> | macOS 自带或 `brew install python` |
|
||||
|
||||
## Python 包
|
||||
|
||||
| 包 | 版本 | 用来做什么 | 地址 |
|
||||
|---|---|---|---|
|
||||
| Pillow | 12.1.1 | 由游戏文件生成界面图 | <https://pypi.org/project/pillow/> |
|
||||
| numpy | 2.4.4 | 同上 | <https://pypi.org/project/numpy/> |
|
||||
| lz4 | 4.4.5 | 解开主程序文件 | <https://pypi.org/project/lz4/> |
|
||||
| capstone | 5.0.9 | 反汇编,用于改写主程序与验证 | <https://pypi.org/project/capstone/> |
|
||||
| unicorn | 2.1.4 | 逐处核对改写前后行为等价 | <https://pypi.org/project/unicorn/> |
|
||||
|
||||
一次装齐:`python3 -m pip install pillow numpy lz4 capstone unicorn`(`./setup.sh` 会自动建独立环境并装好,不用手动执行)
|
||||
|
||||
## 可选
|
||||
|
||||
| 工具 | 用来做什么 | 官方地址 |
|
||||
|---|---|---|
|
||||
| astcenc | 给不支持 BC 贴图格式的旧机型转换贴图 | <https://github.com/ARM-software/astc-encoder> |
|
||||
|
||||
## 真机与验证脚本额外需要
|
||||
|
||||
只出包、在 Mac 上冒烟用不到这些;跑真机冒烟、界面回归或 `dm/verify/` 下的验证脚本时才要。
|
||||
|
||||
| 工具 | 用来做什么 | 安装 |
|
||||
|---|---|---|
|
||||
| timeout | 给跑局和构建设墙钟上限(多个脚本用到) | `brew install coreutils` |
|
||||
| iproxy、ideviceinfo | 真机冒烟经 USB 转发日志端口、读设备电量 | `brew install libimobiledevice` |
|
||||
| llvm-objdump、llvm-objcopy | 改写等价核对里反汇编与取段 | `brew install llvm` |
|
||||
|
||||
## 随仓库的第三方代码
|
||||
|
||||
这些已经在仓库里,不用另外下载;各自的许可证在对应目录。
|
||||
|
||||
| 位置 | 内容 | 许可证 | 上游 |
|
||||
|---|---|---|---|
|
||||
| `dm/third_party/bcdec` | BC 贴图解压 | MIT 或 Unlicense(任选) | <https://github.com/iOrange/bcdec> |
|
||||
| `dm/third_party/flip` | 画面差异度量 | BSD 3-Clause | <https://github.com/NVlabs/flip> |
|
||||
| `dm/third_party/libdeflate` | 解压 | MIT | <https://github.com/ebiggers/libdeflate> |
|
||||
| `dm/third_party/ryujinx` | Ryujinx 1.3.2 的着色器翻译库(三个项目,未修改),把 Switch 原版着色器翻译成 SPIR-V | MIT | <https://github.com/Ryubing> |
|
||||
| `dm/gfx/nvn/include/nvn.h` | 图形接口声明 | MIT | 文件头注明作者 |
|
||||
| `dm/gfx/nvn/nvn_tex.c` 中的排布尺寸算法 | 移植自 deko3d | zlib | <https://github.com/devkitPro/deko3d> |
|
||||
| `dm/tools/patch_nso.py` 里让游戏离线运行的 7 处改写 | 取自社区的离线修复补丁(LFS Mod Offline Fix) | 未知 | 首发处与作者我们没有确切记录,知道的请开 Issue,见 [DERIVED.zh-CN.md](DERIVED.zh-CN.md) |
|
||||
@@ -0,0 +1,39 @@
|
||||
# Game-related material in this repository: what is here and what is not
|
||||
|
||||
中文: [DERIVED.zh-CN.md](DERIVED.zh-CN.md)
|
||||
|
||||
The front page says the project "contains none and distributes none" of the game's content. This page makes that statement precise: what is truly absent, and which game-related records are in the repository, what each one is, and why it has to be there.
|
||||
|
||||
## Not in the repository
|
||||
|
||||
- The game program (not a single piece of code from the main executable or the system libraries)
|
||||
- Art, audio, cinematics
|
||||
- The game's text (the string tables for item names, skill names, dialogue and so on, in any language) and its data tables
|
||||
- Shaders (the original shader packages, and the Metal source and compiled libraries translated from them)
|
||||
- Saves
|
||||
|
||||
All of these are generated on your own machine from your own game files. Every time the public repository is exported, a tool takes the real game files and searches the whole tree for them byte by byte; a hit blocks the export.
|
||||
|
||||
A few things derived from the game files are used internally but are not shipped here: the startup prefetch list (each line carries the first bytes of an original resource block — without it, launch skips one ahead-of-time decode step), the seed save for the shared stash (without it, the game creates an empty one itself as the original does), and two fixtures for the interface-binding tests (captured from the memory of the running game — without them, the three tests that read them are skipped automatically).
|
||||
|
||||
## In the repository
|
||||
|
||||
These are records of facts about the game, not game content: without them, you could not produce a working package even from your own game files.
|
||||
|
||||
| Where | Size | What it is | Why it has to be here |
|
||||
|---|---|---|---|
|
||||
| `dm/gfx/nvn/shader_map.tsv` | 1.33 MB | The identifier and checksum of every original shader variant, and the correspondences between them. No shader code | Shader translation uses it to tell which shader is which |
|
||||
| `dm/gfx/nvn/shader_facts.tsv` | 1.13 MB | The interface description of every shader: which texture slots it uses, of what type, and how many outputs | Translation needs these facts; they would otherwise have to be looked up in the PC release's files, and most people only have the Switch release |
|
||||
| `dm/gfx/nvn/pso_manifest.tsv` | 177 KB | The list of render pipeline state combinations the game uses | Pipelines are built ahead of time at launch, so the first use does not stutter |
|
||||
| `dm/gfx/nvn/names.txt`, `nvn_slots.tsv` | 16 KB, 24 KB | The 523 function names of the console graphics API, and where the game's main program keeps them | The host takes over these functions by name |
|
||||
| `dm/gfx/nvn/include/nvn.h` | 89 KB | Declarations of the console graphics API. Third-party work under the MIT license; the author is named in the file header | The graphics layer implements against it |
|
||||
| `dm/ios/tools/touchrectv1_patch.json` | 28 KB | A description of changes to the original controller interface layout, carrying widget names and values from that layout | The touch interface is derived from the original layout |
|
||||
| `dm/data/casc_overlay/borrowed_paths.tsv` | 2 KB | The path names of 6 original textures | Our new panels reuse these original textures |
|
||||
| `dm/verify/logicself/*.json`, `dm/verify/touchcases/tests/fixture/`, `dm/verify/shotgate_pages/` | about 200 KB in total | Verification baselines: per-tick state checksums recorded while running the original, a few bytes of input commands, and comparison specs for interface screenshots | They prove the rewritten program behaves like the original |
|
||||
| `main+0x…` addresses in the source (about 800 of them, across 59 files) and their descriptions | — | The locations of functions and data structures inside the game's main program, with descriptions of what they do | The host and the touch layer hook into the game at these locations; valid for version 3.3.94012 only |
|
||||
| The rewrite rules in `dm/tools/patch_nso.py` | — | Each rule reads "original instruction word → replacement instruction word". The original word is there to confirm the version and the location | This is what the rewriter does |
|
||||
| A small number of the game's internal names in the source | — | For example the internal names of about 70 monsters the Kill Board recognizes, and the keys of items and interface widgets that feature code looks up | Features find their targets by these names |
|
||||
|
||||
### About the 7 rewrites for offline play
|
||||
|
||||
Seven of the rewrite rules in `dm/tools/patch_nso.py` exist to let the game run without a network connection (the original checks online at startup). **These 7 are taken from an existing community offline fix** (LFS Mod Offline Fix); they are not our original work. We have no reliable record of where it was first published or who wrote it — if you know, please open an issue and we will add the credit. This project is fully offline and has nothing to do with online play.
|
||||
@@ -0,0 +1,39 @@
|
||||
# 仓库里与游戏有关的东西:有什么、没有什么
|
||||
|
||||
English: [DERIVED.md](DERIVED.md)
|
||||
|
||||
首页说「不含、也不分发任何游戏内容」。这一页把这句话说准确:哪些东西仓库里确实没有,哪些与游戏有关的记录仓库里是带着的、各是什么、为什么必须带。
|
||||
|
||||
## 仓库里没有的
|
||||
|
||||
- 游戏程序(主程序与系统库的任何一段代码)
|
||||
- 美术、音频、过场
|
||||
- 游戏的文字(物品名、技能名、对话等各语言字符串表)与数据表
|
||||
- 着色器(原版着色器包,以及由它翻译出的 Metal 源码与编译产物)
|
||||
- 存档
|
||||
|
||||
这些都在你自己的机器上、用你自己的游戏文件现做出来。每次导出公开仓库时,有一道工具拿真实的游戏文件到整棵树里逐字节搜一遍,搜到就不放行。
|
||||
|
||||
另有几样由游戏文件派生的东西我们自己在用,但公开仓库不带:启动预取清单(每行带原版资源块的开头字节——不带的后果是启动时少一步提前解码)、共享仓库的预置存档(不带的后果是游戏照原版自己生成一份空的)、界面绑定测试的两份夹具(从运行中的游戏内存抓的——不带的后果是读它们的三个测试自动跳过)。
|
||||
|
||||
## 仓库里带着的
|
||||
|
||||
它们都是「关于游戏的事实记录」,不是游戏内容本身:没有它们,你用自己的游戏文件也做不出能跑的包。
|
||||
|
||||
| 位置 | 大小 | 是什么 | 为什么必须带 |
|
||||
|---|---|---|---|
|
||||
| `dm/gfx/nvn/shader_map.tsv` | 1.33 MB | 原版每个着色器变体的编号与校验值,以及它们之间的对应关系。不含任何着色器代码 | 翻译着色器时要靠它认出「这是哪一个」 |
|
||||
| `dm/gfx/nvn/shader_facts.tsv` | 1.13 MB | 每个着色器的接口描述:用到哪几个贴图槽、各是什么类型、输出几路 | 翻译时需要这些事实;它们原本要从 PC 版游戏文件里查,绝大多数人手里只有 Switch 版 |
|
||||
| `dm/gfx/nvn/pso_manifest.tsv` | 177 KB | 游戏会用到的渲染管线状态组合的清单 | 启动时提前建好管线,免得第一次用到时卡顿 |
|
||||
| `dm/gfx/nvn/names.txt`、`nvn_slots.tsv` | 16 KB、24 KB | 主机图形接口的 523 个函数名,以及游戏主程序里存放它们的位置 | 宿主要按名字接管这些函数 |
|
||||
| `dm/gfx/nvn/include/nvn.h` | 89 KB | 主机图形接口的声明。第三方作品,MIT 许可,作者见文件头 | 图形层照它实现 |
|
||||
| `dm/ios/tools/touchrectv1_patch.json` | 28 KB | 对原版手柄界面布局的一份改动描述,带原版布局里的控件名与数值 | 触屏界面是在原版布局上改出来的 |
|
||||
| `dm/data/casc_overlay/borrowed_paths.tsv` | 2 KB | 6 条原版贴图的路径名 | 我们的新面板借用了这几张原版贴图 |
|
||||
| `dm/verify/logicself/*.json`、`dm/verify/touchcases/tests/fixture/`、`dm/verify/shotgate_pages/` | 共约 200 KB | 验证用的基线:运行原版时逐拍记录的状态校验值、少量操作指令的字节、各界面截图的比对规格 | 用来证明改写后的程序与原版行为一致 |
|
||||
| 源码里的 `main+0x…` 地址(约 800 处,分布在 59 个文件里)与对应的说明 | — | 游戏主程序内部的函数、数据结构的位置,以及对它们作用的文字描述 | 宿主与触屏层要在这些位置上与游戏对接;只对 3.3.94012 这一版成立 |
|
||||
| `dm/tools/patch_nso.py` 里的改写规则 | — | 每条规则写着「原来的指令字 → 改成的指令字」。原指令字是用来核对「确实是这一版、确实是这个位置」的 | 这就是改写器的工作内容 |
|
||||
| 源码里点名的少量游戏内部名字 | — | 例如刷怪积分牌要认的约 70 个怪物的内部名、功能代码要找的物品与界面控件的键名 | 功能要靠这些名字找到对应的东西 |
|
||||
|
||||
### 关于离线运行的那 7 处改写
|
||||
|
||||
`dm/tools/patch_nso.py` 的改写规则里有 7 处的作用是让游戏不联网也能运行(原版在启动时会去联网检查)。**这 7 处取自社区已有的离线修复补丁**(LFS Mod Offline Fix),不是我们的原创;它在哪里首发、作者是谁,我们手头没有确切记录,知道的话请开 Issue 告诉我们,我们补上署名。本项目完全离线,不涉及联网对战。
|
||||
@@ -0,0 +1,72 @@
|
||||
# Getting your game files
|
||||
|
||||
**You must own the game.** This project only lets you run the Nintendo Switch release of Diablo II: Resurrected, which you have already bought, on your own iPhone or iPad. This repository does not contain any game files and never will. Do not ask others for game files or share them, and do not post game files or download links in issues or pull requests.
|
||||
|
||||
中文:[GAME_FILES.zh-CN.md](GAME_FILES.zh-CN.md)
|
||||
|
||||
## Which files
|
||||
|
||||
The Switch release, updated to **3.3.94012**. You need two parts of it:
|
||||
|
||||
| Part | Contents | Size |
|
||||
|---|---|---|
|
||||
| Program files (ExeFS) | `main`, `sdk`, `subsdk0` | about 26 MB |
|
||||
| Update data (RomFS) | the `data/` directory, containing `build_manifest.psv` and a set of `.data` files | about 8.4 GB |
|
||||
|
||||
The version has to match. The rewrite rules and generation scripts check this version item by item; any other version stops with a message saying what differs, rather than quietly producing a broken build.
|
||||
|
||||
## Dumping from your own console
|
||||
|
||||
Dump from your own Switch and your own purchased copy. The commonly used open-source tool is **nxdumptool**; its page explains installation and use and is maintained long term:
|
||||
|
||||
<https://github.com/DarkMatterCore/nxdumptool>
|
||||
|
||||
When dumping, pick the game's **Update** and dump its ExeFS and RomFS sections.
|
||||
|
||||
## If you already have a game package: one command
|
||||
|
||||
If what you dumped is a whole game package (`.xci` or `.nsp` containing both the base game and the 3.3.94012 update), you do not need to unpack it by hand:
|
||||
|
||||
```
|
||||
dm/tools/extract_game.sh <your game package> <your prod.keys>
|
||||
```
|
||||
|
||||
It unpacks the package, identifies the base game and the update, extracts the two parts listed above, checks the version, and puts them where the next section says. `prod.keys` is the key file dumped from your own console; the package and the keys are only read on your computer and are never copied or uploaded.
|
||||
|
||||
You need **hactool** (an open-source tool for unpacking Switch files) first: <https://github.com/SciresM/hactool>. Build it as its README describes, then put it on your `PATH` or point the script at it with `HACTOOL=<path>`. Leave about 20 GB of free disk space.
|
||||
|
||||
## Where to put them
|
||||
|
||||
Into the workspace (default `~/dm-work`; set `DM_ROOT` to use another location):
|
||||
|
||||
```
|
||||
~/dm-work/data/switch/3.3.94012/Update/ExeFS/main
|
||||
~/dm-work/data/switch/3.3.94012/Update/ExeFS/sdk
|
||||
~/dm-work/data/switch/3.3.94012/Update/ExeFS/subsdk0
|
||||
~/dm-work/data/switch/3.3.94012/Update/RomFS/data/build_manifest.psv
|
||||
~/dm-work/data/switch/3.3.94012/Update/RomFS/data/*.data
|
||||
```
|
||||
|
||||
Then run `./setup.sh check`: it reports what it found, what is missing and which command to run next, verifies that the three program files are from version 3.3.94012, and changes nothing. The two steps above can also be combined: run `./setup.sh <your game package> <your prod.keys>` in the repository root, and it extracts the game files and then goes straight on to prepare the workspace.
|
||||
|
||||
## The "game resource folder" that goes on the phone
|
||||
|
||||
After the app is installed, the first launch says "No game resources yet". What it wants is the **18 resource archives** from `RomFS/data` of your game files (about 5.6 GB in total); they are not in the install package:
|
||||
|
||||
```
|
||||
00-00000001.data … 00-00000006.data (6 files)
|
||||
01-00000001.data 01-00000002.data
|
||||
02-00000001.data 02-00000002.data
|
||||
03-00000001.data 03-00000002.data
|
||||
04-00000001.data 04-00000002.data
|
||||
05-00000001.data 05-00000002.data
|
||||
17-00000001.data 17-00000002.data
|
||||
```
|
||||
|
||||
Put these 18 files into one folder (any name; extra levels of nesting are fine) and copy it into the app's own folder: on the phone, Files app > On My iPhone > the app's name; or connect the phone to a Mac, select it in Finder > Files, and drag the folder onto the app. Then go back to the app and tap Retry. An incomplete copy is not a problem: the screen lists how many are there and which are missing; add them and tap Retry again.
|
||||
|
||||
If you build with Xcode and the phone is connected, the "Locating the game assets" section of `dm/ios/README.md` has one command that pushes them for you.
|
||||
|
||||
## Why the Switch release and not the PC release
|
||||
|
||||
iPhone and Switch use the same kind of processor. Almost all of the Switch release's program can run on an iPhone without changing a single byte, which is what makes smooth play possible; the PC release is built for a different kind of processor and cannot do that. The game data is not interchangeable either: textures, interface art and audio use different formats in the two releases.
|
||||
@@ -0,0 +1,72 @@
|
||||
# 准备游戏文件
|
||||
|
||||
**你必须拥有正版游戏。** 本项目只是让你已经购买的《暗黑破坏神 II:狱火重生》Nintendo Switch 版在自己的 iPhone / iPad 上运行。仓库里没有、以后也不会有任何游戏文件;请不要向他人索取或分发游戏文件,也不要在议题和合并请求里贴出游戏文件或下载地址。
|
||||
|
||||
English: [GAME_FILES.md](GAME_FILES.md)
|
||||
|
||||
## 需要哪些文件
|
||||
|
||||
Switch 版,更新到 **3.3.94012**。需要其中两部分:
|
||||
|
||||
| 部分 | 内容 | 大小 |
|
||||
|---|---|---|
|
||||
| 程序文件(ExeFS) | `main`、`sdk`、`subsdk0` | 约 26 MB |
|
||||
| 更新包资源(RomFS) | `data/` 目录,里面有 `build_manifest.psv` 和一批 `.data` 文件 | 约 8.4 GB |
|
||||
|
||||
版本必须对上:改写规则和生成脚本按这个版本逐项核对,别的版本会直接报错并说明哪里不一致,不会悄悄出一个坏包。
|
||||
|
||||
## 怎么从自己的主机导出
|
||||
|
||||
用你自己的 Switch 和你自己购买的游戏导出。常用的开源工具是 **nxdumptool**,它的说明页讲了安装和使用方法,并且长期维护:
|
||||
|
||||
<https://github.com/DarkMatterCore/nxdumptool>
|
||||
|
||||
导出时选游戏的**更新(Update)**,分别导出它的 ExeFS 与 RomFS 两部分。
|
||||
|
||||
## 已经有游戏包文件时:一条命令取出来
|
||||
|
||||
如果你导出的是一整个游戏包(`.xci` 或 `.nsp`,里面同时有本体和 3.3.94012 的更新),不用手动拆:
|
||||
|
||||
```
|
||||
dm/tools/extract_game.sh <你的游戏包> <你的 prod.keys>
|
||||
```
|
||||
|
||||
它会拆包、认出本体与更新、取出上面说的两部分、核对版本,然后放到下一节说的位置。`prod.keys` 是从你自己的主机导出的密钥文件;游戏包和密钥都只在你的电脑上读,不会被拷贝或上传。
|
||||
|
||||
需要先装好 **hactool**(开源的 Switch 文件解包工具):<https://github.com/SciresM/hactool>,按它的说明编译出来,放进 `PATH` 或用 `HACTOOL=<路径>` 指给脚本。磁盘留出约 20 GB。
|
||||
|
||||
## 放到哪里
|
||||
|
||||
放进工作区(缺省 `~/dm-work`,可用环境变量 `DM_ROOT` 换位置):
|
||||
|
||||
```
|
||||
~/dm-work/data/switch/3.3.94012/Update/ExeFS/main
|
||||
~/dm-work/data/switch/3.3.94012/Update/ExeFS/sdk
|
||||
~/dm-work/data/switch/3.3.94012/Update/ExeFS/subsdk0
|
||||
~/dm-work/data/switch/3.3.94012/Update/RomFS/data/build_manifest.psv
|
||||
~/dm-work/data/switch/3.3.94012/Update/RomFS/data/*.data
|
||||
```
|
||||
|
||||
放好后运行 `./setup.sh check`:它逐项报告找到了什么、还缺什么、下一步该执行哪条命令,并核对三个程序文件是不是 3.3.94012 这一版,不做任何改动。也可以把上面两步并成一条:在仓库根目录执行 `./setup.sh <你的游戏包> <你的 prod.keys>`,取出游戏文件后直接接着准备工作区。
|
||||
|
||||
## 手机上要放的那个「游戏资源文件夹」
|
||||
|
||||
App 装到手机上以后,第一次打开会说「还没有游戏资源」。它要的就是你游戏文件 `RomFS/data` 里的 **18 个资源档案**(合计约 5.6 GB),安装包里不带:
|
||||
|
||||
```
|
||||
00-00000001.data … 00-00000006.data (6 个)
|
||||
01-00000001.data 01-00000002.data
|
||||
02-00000001.data 02-00000002.data
|
||||
03-00000001.data 03-00000002.data
|
||||
04-00000001.data 04-00000002.data
|
||||
05-00000001.data 05-00000002.data
|
||||
17-00000001.data 17-00000002.data
|
||||
```
|
||||
|
||||
把这 18 个文件放进一个文件夹(叫什么都行,外面多套几层也认),拷进这个 App 自己的文件夹:手机上「文件」App →「我的 iPhone」→ 这个 App 的名字;或者用线连上 Mac,在 Finder 里选中手机 →「文件」→ 拖进这个 App。拷完回到 App 点「重试」。没拷全也不要紧:屏上会列出已有几个、还缺哪几个,补齐再点重试。
|
||||
|
||||
用 Xcode 构建并连着线的话,`dm/ios/README.zh-CN.md` 的「找游戏资源」一节有一条命令替你推过去。
|
||||
|
||||
## 为什么是 Switch 版而不是 PC 版
|
||||
|
||||
iPhone 和 Switch 用的是同一类处理器。Switch 版的游戏程序绝大部分可以一个字节不改地在 iPhone 上直接执行,这是能流畅运行的前提;PC 版的程序是为另一类处理器编写的,做不到这一点。游戏资源两个版本也不通用:贴图、界面图、音频各用各的格式。
|
||||
@@ -0,0 +1,82 @@
|
||||
# Building an installable package without Xcode (experimental)
|
||||
|
||||
The normal route is to build the whole app with Xcode on a Mac (see "Building" on the front page). This page describes another route: we build, ahead of time, a **"shell" package that contains no game content at all**; you put the content into it on your own computer from your own game files, and then install it on your phone with a common sideloading tool. You never build or sign with Xcode, and you do not need a paid Apple developer account.
|
||||
|
||||
中文:[NO_XCODE.zh-CN.md](NO_XCODE.zh-CN.md)
|
||||
|
||||
**This is a first version. Be clear about where it stands:**
|
||||
|
||||
| Step | Status |
|
||||
|---|---|
|
||||
| Shell + tool produce a playable package | Verified with one run each on a Mac and on a real device (character creation, entering the game, audio) |
|
||||
| No need for Apple's shader compiler | When the computer does not have it (Windows / Linux / a Mac without Xcode), shaders go into the package as source and the phone compiles all of them once on first launch (with a progress bar, see below). This path has been forced on a Mac and verified by entering the game on a real device |
|
||||
| Running the tool on Windows | Works end to end (Windows 11, Python 3.12): a package from scratch takes about 7 minutes. Compared file by file with a package made on a Mac from the same game files: 14017 files including the game program are byte-identical; the only differences are the digit spacing of HUD numbers and 31 English label images (less than one pixel -- the Windows imaging library lacks a text layout component; play is unaffected) and the overlay archives built from them. A package made on Windows, signed on a Mac and installed on an iPhone: fresh install, importing resources, compiling all 7212 shaders on first launch (about 7 minutes), creating a character, entering a game and changing acts all work. The compiler, .NET and Python were already on that machine; installing the dependencies from nothing was not verified separately |
|
||||
| Signing and installing with a sideloading tool | **Not verified yet -- please open an issue and tell us how it went.** What we verified: signing with a free Apple ID through Xcode automatic signing, and re-signing with a development certificate to simulate this step; the sideloading steps below follow the usual way these tools are used |
|
||||
|
||||
## 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). The shell (`D2RMobile-shell.ipa`, about 3 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.
|
||||
|
||||
## What you need
|
||||
|
||||
- The files of the game you bought: `ExeFS` and `RomFS` of the Switch version 3.3.94012, see [GAME_FILES.md](GAME_FILES.md)
|
||||
- The source of this repository, at the same release as the shell (the tool checks and says so if they differ)
|
||||
- Python 3.9 or later, plus: `python3 -m pip install pillow numpy lz4 capstone unicorn`
|
||||
- A C compiler (`clang`; on Windows, installing LLVM is enough) and the .NET SDK. Apple's Metal shader compiler is **not** required: if it is there (a Mac with Xcode) the shaders are compiled into libraries on the computer, otherwise they are compiled on the phone
|
||||
- `spirv-cross`, **version 1.4.357.0** (release tag `vulkan-sdk-1.4.357.0`). A different version may translate shaders differently -- we measured 231 shaders differing between the latest source and this one. The shell carries a digest of all shader sources; the tool compares after translating and stops with an explanation on a mismatch, rather than producing a package that may render wrong
|
||||
- macOS: `brew install spirv-cross`, then check with `brew list --versions spirv-cross`
|
||||
- Windows: there is no ready-made installer; build it from source (needs `git`, `cmake`, `ninja` and the LLVM above) and add the directory of the resulting `spirv-cross.exe` to `PATH`:
|
||||
|
||||
```
|
||||
git clone --branch vulkan-sdk-1.4.357.0 --depth 1 https://github.com/KhronosGroup/SPIRV-Cross
|
||||
cmake -S SPIRV-Cross -B SPIRV-Cross/build -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=clang++ -DSPIRV_CROSS_ENABLE_TESTS=OFF
|
||||
cmake --build SPIRV-Cross/build --target spirv-cross
|
||||
```
|
||||
- About 12 GB of disk space (caches and intermediate output, under `DM_ROOT`, `~/dm-work` by default)
|
||||
|
||||
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>
|
||||
```
|
||||
|
||||
`<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.
|
||||
|
||||
Your game files are only read on your computer. **The resulting package contains game content: it is for your own use only. Do not distribute it.**
|
||||
|
||||
While translating shaders the tool re-registers the toolchain versions found on your computer, which rewrites two files in the repository (`dm/gfx/tools/dmsh_chain.lock`, `dm/gfx/nvn/dmsh_chain.h`). This is expected; ignore it and do not commit them.
|
||||
|
||||
## Step 2: sign and install
|
||||
|
||||
Open the `output.ipa` from the previous step in a sideloading tool (such as Sideloadly or AltStore), sign in with your own Apple ID and install it on your phone. A free Apple ID is enough; Apple's limits for it are: the signature expires after 7 days (re-sign and reinstall when it does; your saves stay), at most 3 devices, at most 3 apps per device. After the first install, trust it once under Settings > General > VPN & Device Management; if you uninstall it and install again (rather than installing over it), the system revokes that trust and you have to tap it again (measured).
|
||||
|
||||
With a free account there is no iCloud save sync; everything else works as usual.
|
||||
|
||||
## Step 3: put the game resources on the phone
|
||||
|
||||
The package does not contain the 5 GB of resource archives (too large, and they do not belong in a package). After installing, put the 18 `.data` archives from your game files' `RomFS/data` into one folder and copy it into this app's folder with Finder or the Files app; on launch the screen lists how many are present and which are missing.
|
||||
|
||||
## First launch: preparing shaders (only for packages made without Xcode)
|
||||
|
||||
**This step only exists in packages made on a computer without Apple's shader compiler** -- that is, Windows, Linux, or a Mac without Xcode. In a package built with Xcode (the "Building" route on the front page), and in one made with the packaging tool on a Mac that has Xcode, the shaders are compiled on the computer and shipped in the package: there is no such page, and the first launch goes straight to the main menu.
|
||||
|
||||
With a package made on a computer without that compiler, the app stops on a "First launch: preparing shaders" page the first time you open it, with a progress bar and the estimated time left, and goes on to the main menu by itself when done. Measured at about 7 minutes on an iPhone 17 Pro Max (7212 shaders, 410 seconds). Four cores run flat out for those minutes and the phone is fairly warm when it finishes (it reached a moderate thermal level in our run, was not throttled to the hottest level and was not terminated); this is normal. For the first minute or two afterwards the picture may not be fully smooth until it cools down. This step compiles all of the game's shaders on the phone once; the system caches the result, so the game does not stutter because of shaders afterwards.
|
||||
|
||||
- It is only needed once. It runs again after a system update, after reinstalling the app, or after the system has cleared its caches.
|
||||
- You can switch away or close the app; when you come back it counts from the start again, but each shader already compiled takes less than a millisecond, so in effect it continues.
|
||||
- The phone gets warm during these minutes; keeping it plugged in and out of a thick case helps.
|
||||
|
||||
## When something goes wrong
|
||||
|
||||
- The tool says the shell and this source are not the same version: use the source of the same release as the shell.
|
||||
- Launch says the package has no game program yet: you installed the shell itself, not the output of step 1.
|
||||
- The log after launch contains "没读全" (not fully read) or "没有 dm/derived.tsv" (no dm/derived.tsv): step 1 did not complete; run it again.
|
||||
- When trying the package directly on a Mac: do not keep it under a temporary directory such as `/tmp`; the system leaves it stopped before launch. Put it somewhere in your home directory.
|
||||
|
||||
## Building the shell yourself
|
||||
|
||||
`dm/ios/tools/shell_build.sh` builds the shell. The machine that builds it needs the game files and the full build environment (the same as a normal build), because the real generated output is used to size a few tables, to determine the list of what the shell lacks, and to run the final content check.
|
||||
@@ -0,0 +1,82 @@
|
||||
# 不用 Xcode 出安装包(试验性)
|
||||
|
||||
平常的路是:在 Mac 上用 Xcode 把整个 App 构建出来(见首页「构建」一节)。这一页讲另一条路:我们事先构建好一个**不含任何游戏内容的「壳」安装包**,你用自己的游戏文件在自己的电脑上把内容做进去,再用常见的自签工具装到手机上。全程不需要用 Xcode 构建和签名,也不需要苹果的付费开发者账号。
|
||||
|
||||
English: [NO_XCODE.md](NO_XCODE.md)
|
||||
|
||||
**这是第一版,先看清它现在的边界:**
|
||||
|
||||
| 这一步 | 现状 |
|
||||
|---|---|
|
||||
| 壳 + 工具做出可玩的安装包 | 已在 Mac 与真机上各走通一局(建角、进局、有声) |
|
||||
| 不需要苹果的着色器编译器 | 电脑上没有它(Windows / Linux / 没装 Xcode 的 Mac)时,着色器以源码放进安装包,手机首次启动时一次编完(带进度,见下)。这条路在 Mac 上强制走过,真机上验过进局 |
|
||||
| 在 Windows 上跑这个工具 | 整条走通(Windows 11、Python 3.12):从头做一个包约 7 分钟。与 Mac 上用同一份游戏文件做的包逐文件比对:游戏程序等 14017 个文件逐字节相同;不同的只有界面数字的字距与 31 张英文标签图(差不到 1 像素——Windows 的图像库缺一个文字排版组件,不影响游玩)和由它们打成的覆盖层档案。Windows 上做的包拷到 Mac 上签名后装到 iPhone:全新安装、导入资源、首次启动编完 7212 个着色器(约 7 分钟)、建角进局换幕都正常。编译器、.NET、Python 是那台机器上原有的,「从零装依赖」这一段没有单独验 |
|
||||
| 用自签工具签名装机 | **还没验过,欢迎开 Issue 告诉我们结果。** 我们验的是:用免费的 Apple ID 经 Xcode 自动签名装机,以及用开发证书重新签名来模拟自签工具这一步;下面写的自签工具步骤是按这些工具的通常用法写的 |
|
||||
|
||||
## 壳里有什么、没有什么
|
||||
|
||||
壳从本仓库的[发布页](https://github.com/jhaizhou-ops/d2r-mobile/releases)下载。壳(`D2RMobile-shell.ipa`,约 3 MB)里只有我们自己的宿主程序、图标和两张随仓库公开的表。它**没有**:游戏程序、着色器、覆盖层、界面素材、任何从游戏文件生成的数据表。构建壳的脚本(`dm/ios/tools/shell_build.sh`)在最后会拿真实的游戏内容去壳里逐个文件搜一遍,搜到就不出壳。
|
||||
|
||||
壳自己起不来——它启动时会告诉你「这个安装包里还没有游戏程序」。
|
||||
|
||||
## 你需要准备的
|
||||
|
||||
- 你自己购买的游戏的文件:Switch 版 3.3.94012 的 `ExeFS` 与 `RomFS`,见 [GAME_FILES.zh-CN.md](GAME_FILES.zh-CN.md)
|
||||
- 这个仓库的源码,版本要与壳是同一个发布版本(工具会核对,不一致会直说)
|
||||
- Python 3.9 以上,以及这几个包:`python3 -m pip install pillow numpy lz4 capstone unicorn`
|
||||
- 一个 C 编译器(`clang`;Windows 上装 LLVM 即可)、.NET SDK。**不需要**苹果的 Metal 着色器编译器:有它(装了 Xcode 的 Mac)就在电脑上把着色器编成库,没有就走手机上现编
|
||||
- `spirv-cross`,**版本要是 1.4.357.0**(发布标签 `vulkan-sdk-1.4.357.0`)。换个版本,翻译出的着色器就可能不同——我们实测最新源码版与它差 231 个着色器。壳里带着全部着色器源码的摘要,工具翻译完会比对,对不上就停下来告诉你,不会做出一个画面可能出错的包
|
||||
- macOS:`brew install spirv-cross`,再用 `brew list --versions spirv-cross` 看版本
|
||||
- Windows:没有现成的安装包,从源码编(要 `git`、`cmake`、`ninja` 和上面的 LLVM),编出来的 `spirv-cross.exe` 所在目录加进 `PATH`:
|
||||
|
||||
```
|
||||
git clone --branch vulkan-sdk-1.4.357.0 --depth 1 https://github.com/KhronosGroup/SPIRV-Cross
|
||||
cmake -S SPIRV-Cross -B SPIRV-Cross/build -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=clang++ -DSPIRV_CROSS_ENABLE_TESTS=OFF
|
||||
cmake --build SPIRV-Cross/build --target spirv-cross
|
||||
```
|
||||
- 约 12 GB 磁盘空间(缓存与中间产物,放在 `DM_ROOT`,缺省 `~/dm-work`)
|
||||
|
||||
缺什么,工具开头会逐项列出来。
|
||||
|
||||
## 第一步:把游戏内容做进壳
|
||||
|
||||
```
|
||||
python3 dm/tools/d2rm_pack.py <D2RMobile-shell.ipa> <你的游戏文件目录> <输出.ipa>
|
||||
```
|
||||
|
||||
`<你的游戏文件目录>` 是含 `ExeFS/` 与 `RomFS/` 的那一层。它依次:改写游戏程序并写成一个动态库 → 从游戏文件生成界面素材与几张数据表 → 生成覆盖层 → 把游戏的着色器翻译成 Metal → 照壳里的清单核对一项不缺 → 写出新的安装包(约 130 MB)。第一次约十几分钟,主要花在翻译着色器上;每一步做过就跳过。
|
||||
|
||||
游戏文件只在你的电脑上读。**做出来的安装包里有游戏内容,只能自己用,不要分发。**
|
||||
|
||||
它在翻译着色器时会按你电脑上的工具版本重新登记,顺带改写仓库里两个文件(`dm/gfx/tools/dmsh_chain.lock`、`dm/gfx/nvn/dmsh_chain.h`)。这是预期的,不用管,也不要提交它们。
|
||||
|
||||
## 第二步:签名装机
|
||||
|
||||
用自签工具(如 Sideloadly、AltStore)打开上一步的 `输出.ipa`,登录你自己的 Apple ID,装到手机上。免费的 Apple ID 就可以,苹果对它的限制是:签名 7 天过期(到期重签重装,存档还在)、最多 3 台设备、每台最多 3 个 App。第一次装完要到「设置 → 通用 → VPN 与设备管理」里点一次信任;如果把它卸载了再装(而不是直接覆盖安装),系统会把信任撤掉,要再点一次(实测)。
|
||||
|
||||
免费账号下没有 iCloud 存档同步,其余功能不受影响。
|
||||
|
||||
## 第三步:把游戏资源放进手机
|
||||
|
||||
安装包里不含那 5 GB 的资源档案(太大,也不该进安装包)。装好后把你游戏文件 `RomFS/data` 里的 18 个 `.data` 档案放进一个文件夹,用 Finder 或「文件」App 拷进这个 App 的文件夹;启动后屏上会列出已有几个、还缺哪几个。
|
||||
|
||||
## 首次启动:准备着色器(只有不用 Xcode 做出的包才有)
|
||||
|
||||
**这一步只出现在没有苹果着色器编译器的电脑上做出的包里**——也就是 Windows、Linux,或没装 Xcode 的 Mac。用 Xcode 构建的包(首页「构建」那条路),以及在装了 Xcode 的 Mac 上用做包工具做出的包,着色器在电脑上就编好放进安装包了:没有这一页,第一次打开直接进主菜单。
|
||||
|
||||
在没有那个编译器的电脑上做的包,第一次打开 App 会先停在一页「首次启动:正在准备着色器」,有进度条和预计剩余时间,做完自动进主菜单。在 iPhone 17 Pro Max 上实测约 7 分钟(7212 个着色器,410 秒)。这几分钟四个核心连续满载,做完时机器比较热(实测发热到中等一档,没有被系统降到最热档,也没有被结束),属于正常;刚做完的头一两分钟画面可能不够流畅,凉下来就好。这一步把游戏的全部着色器在手机上编一遍,系统会把结果缓存起来,之后游戏里不会因为着色器卡顿。
|
||||
|
||||
- 只需要做一次。系统更新、重装 App、或系统清理了缓存之后,会再做一次。
|
||||
- 可以切到后台或关掉;回来从头数一遍,已经编过的每个只要不到一毫秒,等于接着做。
|
||||
- 这几分钟手机会发热,建议插着电、别套太厚的壳。
|
||||
|
||||
## 出了问题
|
||||
|
||||
- 工具报「壳与这份源码不是同一版」:换成与壳同一个发布版本的源码。
|
||||
- 启动报「这个安装包里还没有游戏程序」:装的是壳本身,不是第一步的输出。
|
||||
- 启动后日志里有「没读全」「没有 dm/derived.tsv」:第一步没做完整,重跑。
|
||||
- 在 Mac 上直接跑这个包做试验时:别把它放在 `/tmp` 一类的临时目录下,系统会让它停在启动前不动;放到你的用户目录里。
|
||||
|
||||
## 自己出壳
|
||||
|
||||
`dm/ios/tools/shell_build.sh` 出壳。出壳的机器要有游戏文件和全套构建环境(和平常出包一样),因为要用真实的生成结果来定几张表的大小、定「壳里缺什么」的清单,并做最后那道内容核对。
|
||||
Reference in New Issue
Block a user