Fix shell packaging (issue #1): drop stale prefetch list, clearer pack error; sync with trunk

This commit is contained in:
jhaizhou
2026-10-12 21:09:04 +08:00
parent 9f0c25768a
commit ea86e79688
9 changed files with 45 additions and 5 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ dm/host/dm_bossrush* kbb bd
dm/host/dm_townwp* *
dm/host/dm_rift* kba kbb dc wp tp
dm/host/dm_unit.h kbb dc wp tp
dm/host/dm_pouch* t u s sb vt1 c
dm/host/dm_pouch* t u s sb vt1 c sa
dm/host/dm_padmode* a f rf2 pk od pvb psel0 psel1 psel2 psel3
dm/host/hle_fs.c rf1 rf2 rf3 e pg2 vt1 v od
dm/host/hle_tact* a e od
1 # 改动文件 → 受影响的 uireg 局(uireg_pick.py 读;合入门槛 = 受影响局 + 核心局 + Mac 冒烟,整表只在出大包前 / 夜里浸泡)
31 dm/host/dm_townwp*
32 dm/host/dm_rift*
33 dm/host/dm_unit.h
34 dm/host/dm_pouch*
35 dm/host/dm_padmode*
36 dm/host/hle_fs.c
37 dm/host/hle_tact*
+14 -1
View File
@@ -274,7 +274,7 @@ def stay(s,before): # 人不离开原地:本段第一条与最后一条 pos
# 物品栏一侧 +38.5(背包第 0 列 424.5)、关闭钮 654.5、取金币钮 187.5;宝石 / 材料 / 符文 / 魔盒四页回到原版位置。这几局(与 top / v 局开箱那几步)的点位都按这个量过
# After the stash widening (10 → 14 columns, the panel shift multiplied by the panel scale), with the stash open: the stash side is x −39 from the original game (personal tab 62.5, shared 106.5, personal page column 0 at 60),
# the inventory panel side is +38.5 (inventory column 0 at 424.5), close button 654.5, withdraw gold button 187.5; the four pages gems / materials / runes / cube are back at the original game's positions. The tap positions of these runs (and of the stash-opening steps of the top / v runs) were all measured this way
WIDE=("c","d","t","u","s")
WIDE=("c","d","t","u","s","sa")
def run(g):
global INV_X0; INV_X0=424.5 if g.run in WIDE else 386.0 # 背包占格的读法跟着物品栏右移 | the inventory occupancy reading follows the inventory panel's shift to the right
script="\n".join(g.L)+f"\n{g.t+1.0:.2f} note 结束\n"; cap=int(g.t)+6; tag=f"{os.environ.get('UIREG_TAG') or 'ur'}_{MODE}_{g.run}" # 起局脚本见到「note 结束」就收,cap 只是上限 | the run launcher script stops as soon as it sees 「note 结束」(note end); cap is only an upper limit
@@ -586,6 +586,19 @@ def groups():
g.item("从成叠格拖到背包","取 1 件",r"取多件:.*取 1:"); g.dragp((201,81),(488.5,297)); g.shot()
g.item("从成叠格拖到面板下方松手","不取",r"拖放落点|界面命中",r"取多件"); g.dragp((201,81),(333,372)); g.shot()
gs.append(g)
# sa 局:往个人页 / 共享页里存符文自动进高级仓库(珍宝匣存入,dm_pouch.c)。同 d 局的存档与开头:珍宝匣页符文那一叠 12 个,每次双击取 1 个到背包(落在背包右上角那格),
# 再把它拖进个人页 / 共享页的格子,或开着箱子双击它。判据读宿主日志:个人页 = 落下后服务端代发原版「移到仓库」;共享页 = 收包处改道(放回背包原格再发);双击 = 原版「移动到堆叠栏」
# Run sa: runes stored into the personal page / shared page go into the advanced stash automatically (trove deposit, dm_pouch.c). Same save and opening as run d: the stack of 12 runes on the trove page, each double-tap takes 1 into the backpack (it lands in the top-right backpack cell),
# then drag it into a cell of the personal page / shared page, or double-tap it with the stash open. The criteria read the host log: personal page = after the drop the server sends the original "move to stash" on its behalf; shared page = rerouted at packet receive (put back into its backpack cell and sent again); double-tap = the original "move to stacking tab"
g=G("sa","DM_TEST_WORLD_GO=near2:2:c267@200 DM_C2S_LOG=pwc2s.jsonl",save=os.environ.get("UIREG_STACK_SAVE") or "save.pw_rune_stack"); g.sect("stashauto",0); g.t=3.5; g.tap(P(333,336),1.6); g.at("await pos"); g.t=max(g.t,13.0); g.at("note 进局",1.5)
g.item("点箱子","开储藏箱",r"OpenPanel BankExpansionLayout"); g.arrive(5808,4443,3,24.0); g.at("tap_unit 2 267 3",3.0); g.shot()
g.item("珍宝匣页双击符文那一叠","取 1 件到背包",r"取多件:.*取 1:"); g.tap(P(148,53)); g.dbl(201,81); g.shot()
g.item("切到个人页,把背包里那颗符文拖进个人页格子","落下后自动转进珍宝匣,个人页不留",r"珍宝匣:仓库页里新落下的物品[\s\S]*珍宝匣:物品 id \d+ 已从仓库页转进高级仓库",r"2 秒还在仓库页"); g.tap(P(62,53)); g.dragp((600.5,227),(81,237)); g.wait(2.5); g.shot()
g.item("珍宝匣页再取 1 件","到背包(那一叠还是 12 个:上一步拖进个人页的那颗回来了)",r"叠数 12 取 1:"); g.tap(P(148,53)); g.dbl(201,81); g.shot()
g.item("切到共享页,把它拖进共享页格子","收包处改道:放回背包原格、下一拍进珍宝匣;共享页不留",r"珍宝匣:r01[^\n]*拖进共享页 → 改成放回背包格[\s\S]*珍宝匣:物品 id \d+ 已回到背包 → 原版移到仓库",r"留在背包"); g.tap(P(106,53)); g.dragp((600.5,227),(81,237)); g.wait(2.5); g.shot()
g.item("珍宝匣页再取 1 件","到背包(那一叠还是 12 个:上一步拖进共享页的那颗也回来了)",r"叠数 12 取 1:"); g.tap(P(148,53)); g.dbl(201,81); g.shot()
g.item("开着箱子双击背包里的那颗符文","原版「移动到堆叠栏」:背包少 1 格(回到珍宝匣那一叠)",("inv",-1)); g.dbl(600.5,246.5); g.wait(2.0); g.shot()
gs.append(g)
# t 局:背包里带着魔盒时从符文页那一叠取件——双击 / 长按 / 拖三种手法。判据读截图的背包占格(魔盒本身占 4 格,取出的符文要多占格;占格增量 = 叠数减量,就没有东西进了魔盒),叠数认取件时读到的游戏值
# t run: with the cube in the inventory, take items from that stack on the rune page - three gestures: double-tap / long-press / drag. The criterion reads the inventory cell occupancy from the screenshot (the cube itself takes 4 cells, and runes taken out must take additional cells; cell increase = stack count decrease means nothing went into the cube), and the stack count trusts the game value read at take time
SV=os.environ.get("UIREG_STACK_SAVE") or "save.pw_rune_stack"