github jhaizhou-ops/d2r-mobile v1.0.17

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

A newer shell is available: v1.0.18. The shell and the repository must be from the same version; with the current main please use v1.0.18.

已有更新的壳:v1.0.18。壳和仓库必须是同一版,配合现在的 main 请用 v1.0.18。

English

Hotfix for v1.0.16: items in the personal stash could be lost, and items returned by the iCloud shared-stash merge could be duplicated. Please update.

v1.0.16 has been withdrawn because of these issues. v1.0.17 contains everything in v1.0.16 plus the fixes 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 generation is unchanged (r44). If you build with Xcode, pull main and rebuild.

Fixes

  • Personal stash pages 2–5: after turning a page, the game checks that the save it is about to write was made after the turn before it records the page. If an item from the page you turned away from also existed somewhere else in your saves (for example a copy made by the iCloud merge issue below), this check never passed. Save and Exit, or closing the game, then lost that page. The check now uses only facts about this character's own save. When you turn a page, the game notes exactly which save file is on disk at that moment. A later save that differs from it can only have been made after the turn. If that is not yet known, the game compares the exact items (with their positions) in the stash grid. Copies elsewhere, and changes to the system clock, no longer matter. Every save also records a page turn that is still in progress, so the next start settles it the same way. Killing the game at any moment no longer loses or duplicates a page.
  • Personal stash: when starting a game, an item whose data matched an item elsewhere in your saves was removed from pages 2–5. Two items can legitimately match, so nothing is removed any more.
  • iCloud shared-stash merge (new in v1.0.16): an item returned to your inventory was only marked as done once it was seen in that character's save. If you moved it into the shared stash, personal stash pages 2–5 or the Chronicle vault before the next save, it was returned again every time you entered the game. Now an item counts as returned once it is found in any of your save files, or once the game has saved again after returning it. Items that are already in your saves are skipped when the game starts.

Items already lost or duplicated under v1.0.16 are not changed by this update.

How this release was checked

  • Personal stash, killed at any moment: 29 scripted runs on Mac, each set to kill the game right before one of the first five saves after a page turn (when the turn had already settled before that save, the run simply continued), then restarted; one run per case was repeated on the final build. They covered a full page (90 items) turned to an empty page and back, a copy of every item placed elsewhere in the saves, turning to a full page and taking everything out before the first save, and the system clock set back an hour or forward and back again. Every run came back with no item lost and none duplicated. The same cases also reproduce the original loss on v1.0.16 (90 items → 0).
  • iCloud merge: with items left on the to-do list that were already in the saves, nothing was returned twice (v1.0.16 returned each one again). Killing the game at each of the four steps of returning items and gold, then restarting, left every item exactly once and the gold added once.
  • The full host checks, the unit tests and three Mac smoke runs passed on the merged tree. Both shells were built from the public tree in an empty working directory and each wrote a complete install package (128 MB, 14,342 files); the iOS 18 shell reads back a minimum system of 18.0 and contains no Metal 4 symbols.

中文

v1.0.16 的热修:个人仓库里的物品可能丢失,iCloud 共享仓库并回还进背包的物品可能重复。请更新。

v1.0.16 因为这些问题已撤回。v1.0.17 包含 v1.0.16 的全部内容,外加下面的修复。

附件 给谁
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)。用 Xcode 构建的,拉取 main 后重新构建。

修复

  • 个人仓库第 2–5 页: 翻页后,游戏要先确认即将写入的存档是在翻页之后生成的,才会记下这一页。如果翻走那一页里的某件物品,在存档别处还有同样的一份(例如下面 iCloud 并回问题复制出来的),这一步就一直确认不了。这时保存并退出或关掉游戏,那一页就丢了。现在只看本角色存档自己的事实来确认:翻页那一刻记下磁盘上是哪一份角色存档,之后写出的存档只要和它不同,就一定是翻页后生成的;还确认不了时,再把储藏箱格子里的物品(连同位置)逐件比对。别处有没有复制品、系统时间有没有改过,都不再有影响。每次存档还会连同「还没确认完的翻页」一起记下,下次进游戏按同样的方法落定。任何时刻杀掉游戏,都不会再丢页或重复。
  • 个人仓库: 进游戏时,第 2–5 页里和存档别处数据相同的物品会被删掉。两件物品数据相同是可能的,现在一件都不删。
  • iCloud 共享仓库并回(v1.0.16 新增): 还进背包的物品,只有在该角色的存档里看到才算还完。如果在下一次存盘前把它挪进共享仓库、个人仓库第 2–5 页或编年史仓库,之后每次进游戏都会再还一份。现在只要在任一存档文件里找到它,或还回之后游戏已经重新存过档,就算还完;进游戏时已经在存档里的物品直接跳过。

在 v1.0.16 下已经丢失或重复的物品,这次更新不会改动。

这一版是怎么验的

  • 个人仓库,任何时刻被杀: 在 Mac 上跑了 29 局,每局设定在翻页后前 5 次存档中的某一次之前杀掉游戏(翻页在那次存档之前已经落定的,就照常跑下去),再重新进入;最终版本上每种情况又各跑了一局。覆盖的情况:满页(90 件)翻到空页再翻回;每件物品在存档别处都放一份复制品;翻到满页后、第一次存档之前把东西全拿走;系统时间往回拨 1 小时、往后拨再拨回。每一局都没有丢件,也没有重复。同样的情况在 v1.0.16 上能复现原来的丢失(90 件变 0 件)。
  • iCloud 并回: 清单里留着已经在存档里的物品,不会再还一次(v1.0.16 会每件再还一份)。在还物品、加金币的四个步骤上分别杀掉游戏再进入,每件物品都只有一份,金币只加一次。
  • 合入后的代码上:宿主全套检查、单元测试、3 局 Mac 冒烟全过。两份壳都是在空的工作目录里从公开的代码出的,各自写出了完整的安装包(128 MB,14342 个文件);iOS 18 的壳读回的最低系统是 18.0,里面没有 Metal 4 的符号。

Don't miss a new d2r-mobile release

NewReleases is sending notifications on new releases.