Older systems: iOS 18+ / macOS 15+ via the older-API build; floating left stick; runeword required level; Mac keyboard, mouse and docs; clearer older-device dialog
This commit is contained in:
@@ -71,6 +71,13 @@ with tempfile.TemporaryDirectory() as t:
|
||||
# dm_rift_ui.c
|
||||
lp,lt=touch_layout.read_layout(romfs,'controller/messagelogpanelhd.json'); o=os.path.join(tpad,'pad_rift.json'); open(o,'w',encoding='utf-8').write(touch_layout._rift_panel(lt)[0]); PR[lp.lower()]=o
|
||||
PR.update(merc_slots.build_pad(romfs,tpad)) # 手柄版佣兵面板:同样加六个装备位 | Controller layout mercenary panel: likewise add six equipment slots
|
||||
# 手柄版职业选择页:八个职业的点击矩形同样改成按实际站位分的竖条(touch_layout.CLASS_STRIPS,原因见那里)。手柄用左右键选、原版没暴露;
|
||||
# Mac App 是手柄版布局 + 鼠标,点德鲁伊出术士、右半边四个职业都错一格
|
||||
# Gamepad-layout class selection page: the click rectangles of the eight classes are likewise changed to vertical strips split by where the characters actually stand (touch_layout.CLASS_STRIPS, see there for the reason). A gamepad selects with left / right and the original never exposed this;
|
||||
# the Mac App is the gamepad layout plus a mouse, where clicking the Druid selected the Warlock and all four classes on the right half were off by one
|
||||
lp,lt=touch_layout.read_layout(romfs,'controller/console/charactercreatepanelhd.json')
|
||||
for nm,x0,x1 in touch_layout.CLASS_STRIPS: lt=touch_layout.set_rect(lt,nm,x0,450,x1-x0,1300)
|
||||
o=os.path.join(tpad,'pad_charcreate.json'); open(o,'w',encoding='utf-8').write(lt); PR[lp.lower()]=o
|
||||
PR.update(touch_layout.build_ingame(romfs,tpad,touch_layout.PAD_VENDOR,present=False)[0]) # 手柄版商人页:刷新货架钮 | Controller layout vendor page: the refresh shop stock button
|
||||
lp,lt=touch_layout.read_layout(romfs,'controller/console/mainmenupanelhd.json'); o=os.path.join(tpad,'pad_mainmenu.json'); open(o,'w',encoding='utf-8').write(touch_layout.pad_mainmenu(lt)); PR[lp.lower()]=o # 手柄版主菜单:构建号与新版本提示 | Controller layout main menu: build number and new version notice
|
||||
lp,lt=touch_layout.read_layout(romfs,'controller/console/mainmenubuttonribbonhd.json'); o=os.path.join(tpad,'pad_ribbon.json'); open(o,'w',encoding='utf-8').write(touch_layout.pad_ribbon(lt)); PR[lp.lower()]=o # 手柄版主菜单按钮栏:拿掉「电影动画」 | Controller layout main menu button ribbon: remove 「电影动画」(Cinematics)
|
||||
@@ -151,7 +158,7 @@ with tempfile.TemporaryDirectory() as t:
|
||||
PADLAY={k:v for k,v in PR.items() if touch_path(k)} # 手柄版只取布局(数据表、图与触屏版同一份) | The controller version takes only layouts (data tables and images are the same copy as the touch version)
|
||||
# 手柄专用清单:手柄模式下不是原版字节的布局就这几份,一份不许多、一份不许少(改上面某一行时把相邻一行整行替掉过,商人页的刷新钮就从包里掉了)
|
||||
# Controller-only list: these are the only layouts that are not original bytes in controller mode, not one more and not one fewer (once, when a line above was edited, the adjacent line was replaced whole, and the vendor page's refresh button dropped out of the package)
|
||||
PAD_PAGES=('controller/bankexpansionlayouthd.json','controller/console/characteroptionspanelhd.json','controller/console/mainmenubuttonribbonhd.json','controller/console/mainmenupanelhd.json','controller/console/settingspanelhd.json','controller/console/switch/playerinventoryexpansionlayouthd.json','controller/console/videooptionspanelhd.json',
|
||||
PAD_PAGES=('controller/bankexpansionlayouthd.json','controller/console/charactercreatepanelhd.json','controller/console/characteroptionspanelhd.json','controller/console/mainmenubuttonribbonhd.json','controller/console/mainmenupanelhd.json','controller/console/settingspanelhd.json','controller/console/switch/playerinventoryexpansionlayouthd.json','controller/console/videooptionspanelhd.json',
|
||||
'controller/controlleroverlayhd.json','controller/hirelinginventorypanelhd.json','controller/hudmonsterhealthhd.json','controller/messagelogpanelhd.json','controller/pauselayoutgardenhd.json','controller/pauselayouthd.json','controller/vendorpanellayouthd.json')
|
||||
if sorted(k[len(LAY):] for k in PADLAY)!=sorted(PAD_PAGES): raise SystemExit('gen_romfs_overlay:手柄专用布局与清单 PAD_PAGES 不一致:多 %s,少 %s' % (sorted(set(k[len(LAY):] for k in PADLAY)-set(PAD_PAGES)), sorted(set(PAD_PAGES)-set(k[len(LAY):] for k in PADLAY))))
|
||||
def emit(repl, dst, tag, prebuilt=None): # repl → 覆盖层(新 .build.config + 一个新数据档)写到 dst/data | repl → overlay (a new .build.config + one new data archive) written to dst/data
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
#!/usr/bin/env python3
|
||||
# 老接口版的工程描述:project_m3.py <project.yml> <输出.yml> [free] (run.sh 在 DM_IOS_M3=1 时调)
|
||||
# 第三个参数 free = 输入已经过了免费档(tools/project_free.py,DM_FREE_ACCOUNT=1 同时设着):资源下载扩展那五处免费档已去掉,这里要求一处都不剩
|
||||
# 只改主程序三处:部署目标 26.0 → 18.0;编译参数加 -DDM_NVN_M3=1(图形后端不用 Metal 4,见 gfx/nvn/nvn_mtl.m);
|
||||
# 处理器基线 a18 → a14(iOS 18 能装的机器里,内存够跑这个游戏的最老是 A14;宿主汇编要的 LSE 原子指令 A11 起就有)。
|
||||
# 资源下载扩展(RomfsDownloader,只服务苹果托管资源包,部署目标 iOS 26.4)不带:扩展的最低系统高于主程序的包在老系统上装不装得上没人验过,
|
||||
# 老接口版的资源本来也不走托管资源包(内测直装走自己的下载地址 / 手动拷,公开版用户自备)。去掉的三样与免费账号档相同(tools/project_free.py):
|
||||
# 扩展目标、主程序对它的依赖、Info.plist 里托管资源包的三个键;主程序里见不到这三个键就不碰托管资源包。
|
||||
# 每处都要求恰好命中一次,工程描述改了格式就在这里失败,不悄悄出一个没改到的工程。
|
||||
# Project description for the older-API build: project_m3.py <project.yml> <output.yml> [free] (called by run.sh when DM_IOS_M3=1)
|
||||
# The third argument free = the input has already been through the free tier (tools/project_free.py, with DM_FREE_ACCOUNT=1 set at the same time): the five places of the resource-download extension are already removed by the free tier, and here none may remain
|
||||
# Only three things of the main program change: deployment target 26.0 -> 18.0; compile flags gain -DDM_NVN_M3=1 (the graphics backend does not use Metal 4, see gfx/nvn/nvn_mtl.m);
|
||||
# processor baseline a18 -> a14 (among the devices that can install iOS 18, the oldest with enough memory for this game is the A14; the LSE atomic instructions the host assembly needs exist from the A11).
|
||||
# The resource-download extension (RomfsDownloader, serving only Apple-hosted asset packs, deployment target iOS 26.4) is left out: whether a package whose extension has a higher minimum system than the main program installs on an older system has not been verified by anyone,
|
||||
# and the older-API build does not use hosted asset packs for resources anyway (public users bring their own). The three things removed are the same as for the free-account tier (tools/project_free.py):
|
||||
# the extension target, the main program's dependency on it, and the three hosted-asset-pack keys in Info.plist; without these three keys the main program does not touch hosted asset packs.
|
||||
# Each place must match exactly once, so that a change in the format of the project description fails here instead of quietly producing a project that was not changed.
|
||||
import sys
|
||||
src, dst = sys.argv[1:3]; free = sys.argv[3:4] == ['free']; s = open(src).read()
|
||||
def one(old, new):
|
||||
global s
|
||||
if s.count(old) != 1: sys.exit(f"🔴 project_m3:工程描述里「{old[:40]}」应恰好出现 1 次,实际 {s.count(old)} 次")
|
||||
s = s.replace(old, new)
|
||||
one(' iOS: "26.0"', ' iOS: "18.0"')
|
||||
one('OTHER_CFLAGS: $(inherited) -mcpu=apple-a18', 'OTHER_CFLAGS: $(inherited) -mcpu=apple-a14 -DDM_NVN_M3=1')
|
||||
import re
|
||||
L = s.split('\n'); out, n_ba, n_dep, n_tgt, i = [], 0, 0, 0, 0
|
||||
while i < len(L):
|
||||
l = L[i]
|
||||
if re.match(r'^ *(BAAppGroupID|BAHasManagedAssetPacks|BAUsesAppleHosting):', l): n_ba += 1; i += 1; continue
|
||||
if re.match(r'^ *- target: RomfsDownloader\b', l): n_dep += 1; i += 1; continue
|
||||
if re.match(r'^ RomfsDownloader:\s*$', l): # 整个目标块:到下一个同级键为止 | the whole target block: up to the next key at the same level
|
||||
n_tgt += 1; i += 1
|
||||
while i < len(L) and not re.match(r'^ \S', L[i]) and not re.match(r'^\S', L[i]): i += 1
|
||||
continue
|
||||
out.append(l); i += 1
|
||||
want = (0, 0, 0) if free else (3, 1, 1)
|
||||
if (n_ba, n_dep, n_tgt) != want: sys.exit(f"🔴 project_m3:资源下载扩展没去干净(托管资源包键 {n_ba} / {want[0]}、依赖 {n_dep} / {want[1]}、扩展目标 {n_tgt} / {want[2]}{';输入应已过免费档' if free else ''})")
|
||||
if any('RomfsDownloader' in l and not l.lstrip().startswith('#') for l in out): sys.exit("🔴 project_m3:去掉之后工程描述里还有 RomfsDownloader")
|
||||
open(dst, 'w').write('\n'.join(out))
|
||||
@@ -0,0 +1,32 @@
|
||||
#!/usr/bin/env python3
|
||||
# 符文之语清单「需要等级」全量核对:rw_lvcheck.py <DM_TEST_RW_LVDUMP 导出的文件> <原版表目录(含 weapons.txt armor.txt misc.txt runes.txt)>
|
||||
# 一、整张物品表逐行:宿主读到的需求等级(导出文件,物品码<TAB>值)对原版三张表的 levelreq;
|
||||
# 二、每个可做成的符文之语:按宿主读数取各符文需求等级的最大值,对按原版表算的同一个量。任何一处不等退出码 1。
|
||||
# Full check of "required level" in the runeword list: rw_lvcheck.py <file exported by DM_TEST_RW_LVDUMP> <directory of original tables (with weapons.txt armor.txt misc.txt runes.txt)>
|
||||
# One, the whole item table row by row: the required level the host read (the exported file, item code<TAB>value) against levelreq in the three original tables;
|
||||
# Two, every runeword that can be made: the maximum of the runes' required levels by the host's readings against the same quantity computed from the original tables. Any mismatch exits with code 1.
|
||||
import sys,csv,os
|
||||
dump,d=sys.argv[1],sys.argv[2]
|
||||
got={}
|
||||
for l in open(dump,encoding='latin-1'):
|
||||
c,v=l.rstrip('\n').split('\t')
|
||||
if c: got.setdefault(c,int(v))
|
||||
def rows(n): return list(csv.DictReader(open(os.path.join(d,n),encoding='latin-1'),delimiter='\t'))
|
||||
want={}; diff_cols=0
|
||||
for n in ('weapons.txt','armor.txt','misc.txt'):
|
||||
for r in rows(n):
|
||||
c=r.get('code','').strip()
|
||||
if not c or c in want: continue
|
||||
want[c]=int(r['levelreq'] or 0); diff_cols+=(r.get('level') or '0')!=(r['levelreq'] or '0')
|
||||
bad=[(c,got.get(c),w) for c,w in want.items() if c in got and got[c]!=w]; miss=[c for c in want if c not in got]
|
||||
print(f'物品表:原版三张表 {len(want)} 个物品码,导出 {len(got)} 个;逐行对上 {sum(1 for c in want if got.get(c)==want[c])},不等 {len(bad)},导出里没有的 {len(miss)};其中物品等级 ≠ 需求等级的物品 {diff_cols} 个(这些行分得出两列)')
|
||||
for c,g,w in bad[:20]: print(f' 不等:{c} 读到 {g} 原版 {w}')
|
||||
rb=0; n=0
|
||||
for r in rows('runes.txt'):
|
||||
if r.get('complete')!='1': continue
|
||||
rs=[r[f'Rune{i}'] for i in range(1,7) if r.get(f'Rune{i}')]
|
||||
if not rs: continue
|
||||
n+=1; a=max(got.get(c,-1) for c in rs); b=max(want.get(c,-1) for c in rs)
|
||||
if a!=b: rb+=1; print(f' 符文之语 {r["Name"]}({r.get("*Rune Name","")})符文 {rs}:读到 {a} 原版 {b}')
|
||||
print(f'符文之语:可做成的 {n} 个,符文部分的需要等级不等 {rb} 个')
|
||||
sys.exit(1 if bad or rb else 0)
|
||||
@@ -14,7 +14,8 @@ dm/ios/tools/dm_i18n.py *
|
||||
dm/host/dm_i18n* *
|
||||
dm/ios/tools/annot_strings.py k j rw1 rw2 kbb vt1
|
||||
dm/host/dm_textbox* k j rw1 rw2 kbb vt1
|
||||
dm/host/dm_runeword* k j rw1 rw2 rwp rwd d
|
||||
dm/host/dm_rwlv* k j rw1 rw2 rwp rwd d rwlv
|
||||
dm/host/dm_runeword* k j rw1 rw2 rwp rwd d rwlv
|
||||
dm/host/dm_vault* vf1 vf2 vt1 pg1 pg2 c s sb t u d cb
|
||||
dm/host/dm_pages* pg1 pg2 vt1 c s sb
|
||||
dm/ios/tools/wide_stash.py vf1 vf2 vt1 pg1 pg2 c s sb t u d cb
|
||||
|
||||
|
@@ -1084,7 +1084,15 @@ def groups():
|
||||
LISTOK=r"符文之语:长按[^\n]*→ 清单 [1-9]\d* 行"
|
||||
def anyl(p): return lambda s,b: ("通:" if re.search(p,b+s) else "不通:")+"整局日志"
|
||||
# rw1:背包里符文齐——长按 1 孔软帽不开清单;长按 2 孔软帽开清单;点清单外关;再长按、点「一键合成」成型,两枚符文离开背包
|
||||
# rw1: all runes are in the inventory - long-pressing the 1-socket cap does not open the list; long-pressing the 2-socket cap opens the list; tapping outside the list closes it; long-press again and tap 「一键合成」(Craft) to form it, and the two runes leave the inventory
|
||||
# rwlv 局:清单里的「需要等级」取底材的需求等级,不是物品等级(线上缺陷:塔盔需求 59、物品等级 79,清单整页显示 79)。
|
||||
# 现场:背包里 7 顶塔盔(uhm,白装孔数随机但逐局相同),长按其中带孔的一顶;2 孔塔盔的首行是「知识」(欧特 21 + 索尔 27)→ max(59, 27) = 59
|
||||
# rw1: all runes in the inventory - a long press on a 1-socket Cap does not open the list; a long press on a 2-socket Cap opens it; a tap outside the list closes it; long press again and tap "Craft" to make it, and the two runes leave the inventory
|
||||
# rwlv run: "required level" in the list takes the base item's required level, not its item level (reported defect: the Spired Helm requires 59 with item level 79, and the whole page of the list showed 79).
|
||||
# Scene: 7 Spired Helms in the inventory (uhm; socket counts of white items are random but the same every run), long press one with sockets; the first row for a 2-socket Spired Helm is Lore (Ort 21 + Sol 27) -> max(59, 27) = 59
|
||||
g=G("rwlv","DM_TEST_GIVE=uhm:2:7@60 DM_TEST_GIVE_INV=1"); g.sect("rwlv",0); g.enter(); g.wait(2.0); g.tap("@menu",1.4)
|
||||
g.item("长按背包里带孔的塔盔","弹清单,需要等级 59(看截图:每行都是 59)",r"长按 uhm[^\n]*需要等级 59",r"长按 uhm[^\n]*需要等级 79|【红】符文之语"); g.hold(395,267); g.wait(1.0); g.shot()
|
||||
g.item("点清单外","清单关掉",r"清单外 → 关清单|清单关闭"); g.tap(P(120,200),1.5); g.shot()
|
||||
gs.append(g)
|
||||
g=G("rw1",RWE+" DM_TEST_RW_LIST=75"); g.sect("rw1",0); g.enter(); g.wait(2.0); g.tap("@menu",1.4)
|
||||
g.item("背包布局","软帽、符文在 k 局同样的位置(看截图)",None); g.shot()
|
||||
g.item("长按 1 孔软帽","不开清单(1 孔帽子没有能做的符文之语)",None,LISTOK); g.hold(376,228); g.wait(1.0); g.shot()
|
||||
|
||||
Reference in New Issue
Block a user