[Parity][map][S3][H] 幕号和城镇判定是写死的区间 / 集合,绕过了现有的数据驱动实现 #631

Closed
opened 2026-10-02 11:42:49 +00:00 by troytt · 0 comments
Owner

1.13c 客户端保真度审计立项(基准快照:7bd1090 / main @ 77a20c7)

证据标记说明:V-data = 1.13c MPQ 数据表 (.txt / animdata.d2 / .tbl / pal.pl2);V-src = D2MOO 逆向源码;V-bin = 1.13c DLL 反汇编;K = 1.13c 公认行为。

来源审计项:map#12 — [S3][H] 幕号和城镇判定是写死的区间 / 集合,绕过了现有的数据驱动实现

位置:

  • src/client/automap/automap-view.ts:37-43(getActForArea):≤39→1, ≤74→2, ≤102→3, ≤108→4, else 5。
  • src/client/scene/world-renderer.ts:1157:preRevealTown: isTownLevel(snapshot.levelId),isTownLevel 在 src/common/world/scene-population.ts:56,是写死的集合。

原版:

  • 幕号:区间数值正确,但同仓库里已有 DRLG_GetActNoFromLevelId(level-view.ts:361 在用)。
  • 城镇预揭示:由 lvlprest.txt 的 AutoMap 列决定(V-src DrlgPreset.cpp:1796/1803 检查 dwAutoMap),并非"是城镇就揭示"。当前集合 {1,40,75,103,109} 恰好与表一致(V-data)。

影响: 目前没有可见错误,但换 mod 或改表就会出错。

建议: 幕号用 DRLG_GetActNoFromLevelId;预揭示读 lvlprest.AutoMap。

已有 issue: —

> **1.13c 客户端保真度审计立项**(基准快照:`7bd1090` / `main @ 77a20c7`) > 证据标记说明:`V-data` = 1.13c MPQ 数据表 (`.txt` / `animdata.d2` / `.tbl` / `pal.pl2`);`V-src` = D2MOO 逆向源码;`V-bin` = 1.13c DLL 反汇编;`K` = 1.13c 公认行为。 ### 来源审计项:`map#12` — [S3][H] 幕号和城镇判定是写死的区间 / 集合,绕过了现有的数据驱动实现 **位置:** - `src/client/automap/automap-view.ts:37-43`(`getActForArea`):`≤39→1, ≤74→2, ≤102→3, ≤108→4, else 5`。 - `src/client/scene/world-renderer.ts:1157`:`preRevealTown: isTownLevel(snapshot.levelId)`,`isTownLevel` 在 `src/common/world/scene-population.ts:56`,是写死的集合。 **原版:** - 幕号:区间数值正确,但同仓库里已有 `DRLG_GetActNoFromLevelId`(`level-view.ts:361` 在用)。 - 城镇预揭示:由 `lvlprest.txt` 的 `AutoMap` 列决定(V-src `DrlgPreset.cpp:1796/1803` 检查 `dwAutoMap`),并非"是城镇就揭示"。当前集合 {1,40,75,103,109} 恰好与表一致(V-data)。 **影响:** 目前没有可见错误,但换 mod 或改表就会出错。 **建议:** 幕号用 `DRLG_GetActNoFromLevelId`;预揭示读 `lvlprest.AutoMap`。 **已有 issue:** —
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: troytt/diablo2-web#631
No description provided.