Initial public release

This commit is contained in:
jhaizhou
2026-10-12 16:51:08 +08:00
commit 46578a2b5d
997 changed files with 218713 additions and 0 deletions
@@ -0,0 +1,22 @@
#!/usr/bin/env python3
import sys
from pathlib import Path
sys.path.insert(0, str(Path(__file__).parents[1]))
import lib
r = lib.load(sys.argv[1])
rows = [(t, op) for t, op, _ in r.c2s_ops()]
ops = [op for _, op in rows]
# 点到目标(NPC / 物件 / 物品,dm_world.c 带约 7 毫米余量)会走过去交互,那是允许的:带单位的包 0x02 / 0x04 / 0x13 / 0x16 / 0x2f / 0x40 / 0x41。
# 不许的是「没有目标的点地移动」:0x01 / 0x03 前后 40 拍内必须有带单位的包,否则就是点空地走开了。
# Tapping a target (NPC / object / item; dm_world.c has a margin of about 7 mm) walks over and interacts, which is allowed: packets with a unit 0x02 / 0x04 / 0x13 / 0x16 / 0x2f / 0x40 / 0x41.
# What is not allowed is "tap-ground movement without a target": within 40 ticks before or after 0x01 / 0x03 there must be a packet with a unit, otherwise it was a tap on empty ground that walked away.
TARGET = {0x02, 0x04, 0x13, 0x16, 0x2f, 0x40, 0x41}
stray = [(t, op) for t, op in rows if op in (0x01, 0x03) and not any(o in TARGET and abs(t2 - t) <= 40 for t2, o in rows)]
lib.check(not stray, "没有无目标的点地移动包(0x01 / 0x03 都伴随带单位的交互包):%s" % stray[:3])
lib.check(0x42 not in ops, "没有摇杆移动包(0x42)")
ev = r._panel_events
opened = [t for t, a, p in ev if a == "OpenPanel" and p == "PlayerInventoryExpansionLayout"]
closed = [t for t, a, p in ev if a == "ClosePanel" and p == "PlayerInventoryExpansionLayout" and opened and t > opened[0]]
lib.check(bool(opened), "功能键开物品栏")
lib.check(bool(closed), "点面板外后物品栏关闭")
sys.exit(lib.main())
@@ -0,0 +1,68 @@
# 除摇杆外任何触点不许触发移动。局内不碰摇杆区(左 43% 且上 25% 以下)点 30 下:空地、技能钮之间、屏幕上沿;
# 再开物品栏点面板外 2 下(= 关面板,不走路)。判据:没有 0x42(摇杆移动);0x01 / 0x03 只许伴随「点到目标走过去交互」出现(点世界目标 = 交互)。
# 进局落在小站上(dm_townwp.c):原来落在小站选择框里的 8 下右移 600(仍是空地),否则点开小站面板、后面的点按在面板里选了目的地
# 进局落在小站旁 10 格(小站在人右下方):落进小站选择框的 8 下上移 450(仍是空地),理由同上
1.00 down 0 1963,348
1.08 up 0
1.25 down 0 2108,138
1.33 up 0
1.50 down 0 1448,1137
1.58 up 0
1.75 down 0 2092,338
1.83 up 0
2.00 down 0 2493,158
2.08 up 0
2.25 down 0 2339,479
2.33 up 0
2.50 down 0 1376,216
2.58 up 0
2.75 down 0 2188,446
2.83 up 0
3.00 down 0 2043,532
3.08 up 0
3.25 down 0 2085,459
3.33 up 0
3.50 down 0 2021,293
3.58 up 0
3.75 down 0 1757,166
3.83 up 0
4.00 down 0 2481,852
4.08 up 0
4.25 down 0 2001,492
4.33 up 0
4.50 down 0 1995,312
4.58 up 0
4.75 down 0 1893,448
4.83 up 0
5.00 down 0 1595,1147
5.08 up 0
5.25 down 0 2141,221
5.33 up 0
5.50 down 0 2447,410
5.58 up 0
5.75 down 0 2111,424
5.83 up 0
6.00 down 0 2062,239
6.08 up 0
6.25 down 0 2421,168
6.33 up 0
6.50 down 0 2455,162
6.58 up 0
6.75 down 0 2567,461
6.83 up 0
7.00 down 0 2316,1128
7.08 up 0
7.25 down 0 2175,233
7.33 up 0
7.50 down 0 2253,518
7.58 up 0
7.75 down 0 2040,203
7.83 up 0
8.00 down 0 1808,408
8.08 up 0
8.25 down 0 2731,642
8.33 up 0
9.00 down 0 1690,1241
9.10 up 0
10.50 down 0 2840,600
10.60 up 0