Valheim
Install with App

Details

Latest version
1.0.0
Last Updated
First Uploaded
Downloads
21
Likes
0
Size
16KB
Dependants
ADDatHost Valheim hosting
€1

Changelog

1.0.0

首次发布。

⚠️ 这不是 bug。 Chazman-RunicInventoryJStack424-Stackmaster 两个模组本身都没有问题, 它们各自都完全按设计工作。只是两个独立开发的模组恰好都把 LeftAlt 选作修饰键, 属于纯粹的「按键撞车」。原模组作者不应被追责,本补丁与两位作者无任何关系、 也未经其同意或审查。详见 README 顶部的适用性声明。

  • 目标:解决两个模组的「Alt + 鼠标」按键撞车(表现为 Stackmaster 的手势静默失效)。
  • 做法:给 RunicInventory.Integration.InventoryRuntime.TryTogglePointerLock 挂一个 Prefix 并跳过原方法(__result = falsereturn false)。 该方法在 RunicInventory 1.1.9 里只有一个调用点InventoryGridRightClickLockPatch.Prefix,已用 member_refs_dll.py 反查确认)。
  • 效果:RunicInventory 的鼠标锁格手势不再拦截 InventoryGrid.OnRightDown ⇒ Stackmaster 的 Alt+左键 / Alt+右键 恢复正常。
  • 刻意保留:RunicInventory 的键盘锁格键(默认 L + LeftAlt)、额外装备行、整理、 拾取过滤、UI、拓扑 —— 全部不受影响。
  • 安全设计
    • 目标方法写错/版本不匹配时拒绝打补丁并报错,不做任何改动;
    • 打补丁前校验签名(实例方法、返回 bool、2 个参数);
    • 本工程不引用 RunicInventory.dll,全部反射定位 ⇒ 缺该模组也不会启动失败。

已知未覆盖

  • 手柄(Controller)侧的组合键冲突未处理 —— RunicInventory 那边走 ControllerGetButton* + ControllerChordSession,与鼠标手势是两条独立链路。
  • 只验证到 RunicInventory 1.1.9 / Stackmaster 1.1.4。
DatHost — Valheim server hosting, first month for one euro
DatHost — Valheim server hosting, first month for one euro
DatHost — Valheim server hosting, first month for one euro
DatHost — Valheim server hosting, first month for one euro
DatHost — Valheim server hosting, first month for one euro