RunicInventoryFix
[AI-generated] NOT a bug in either mod: RunicInventory and Stackmaster simply both use LeftAlt. Stops RunicInventory's mouse lock gesture from swallowing InventoryGrid.OnRightDown, which silently kill
About this mod Machine translation
RunicInventoryFix
⚠️ Please read first: This is not a bug / Applicability Notice
Chinese:
This is not a bug. Chazman-RunicInventory and JStack424-Stackmaster have no problems with the two modules themselves.
Each of them works exactly as designed. These are just two independently developed mods that both happen to have LeftAlt selected as theirs
Modifier keys are a pure coincidence of "key crashes" and are not a coding error on either side.
- The original mod author should not be held accountable. This patch has nothing to do with the two authors Chazman and JStack424.
Nor has it been approved or reviewed by them. If you have any questions, please contact me and do not disturb the original author.
- This patch only makes sense if you have both mods installed and you care about Stackmaster's Alt+mouse gestures.
Only install one of the modules ⇒ There is no conflict at all, and installing this patch is purely redundant.
- This patch only does one thing: make RunicInventory's mouse lock gesture no longer intercept input.
No values are changed, no functions are added, and the archive format is not touched.
- This is a trade-off, not "who is right or wrong": this patch chooses to keep Stackmaster's gestures and turn off RunicInventory.
If your preference is the opposite, do not install this patch and instead bind Stackmaster's Storage-action keybind
Just change the modifier key from LeftAlt to another key (the functions of both modules can be retained, see the end of the article).
- If any upstream party later resolves the crash on its own, please upgrade the upstream first and disable this patch.
English:
This is not a bug. Neither Chazman-RunicInventory nor JStack424-Stackmaster is defective —
both work exactly as designed. Two independently developed mods simply happened to pick LeftAlt
as their modifier key. It is a plain hotkey collision, not a coding error on anyone's part.
- The original authors should not be blamed. This patch is unaffiliated with and
not endorsed by Chazman or JStack424. Report anything to me, not to them.
- It only matters if you run both mods and care about Stackmaster's Alt+mouse gestures.
With only one of them installed there is no collision at all, and this patch is pointless.
- It does exactly one thing: stop RunicInventory's mouse lock gesture from intercepting input.
No values changed, no features added, no save format touched.
- This is a trade-off, not a verdict: it keeps Stackmaster's gestures and disables
RunicInventory's. If you prefer the opposite, do not install this — instead change
Stackmaster's Storage-action keybind modifier away from LeftAlt (see the end of this page).
🤖 The code of this module is generated by AI (AI Generated), and the requirements, verification and release are completed by humans.
what does it solve
Both modules use LeftAlt as a modifier key, while RunicInventory's gesture patch points are further upstream:
InventoryGrid.OnRightDown ← RunicInventory patch is here (upstream)
└─ m_onRightClick delegate
└─ InventoryGui.OnRightClickItem ← Stackmaster’s Alt+right click hangs here (downstream)
The patch logic of RunicInventory is:
// InventoryGridRightClickLockPatch.Prefix - patch InventoryGrid.OnRightDown
return!InventoryRuntime.TryTogglePointerLock(grid, handler);
As long as TryTogglePointerLock returns true, Prefix returns false
⇒ The original OnRightDown is not executed ⇒ Its internal m_onRightClick delegate will not be called
⇒ The right-click function of the downstream Stackmaster never receives a call (the symptom is "silent failure" without even reporting an error).
And TryTogglePointerLock will return true in the following situations:
| Situation | Result |
|---|---|
| RequireLockState() is false (lock function is not available: size does not match / persistence state does not match) | Return true ⇒ Cut off |
| Alt+right click does not land on a valid backpack grid | Return true ⇒ Cut off |
| Lock toggled successfully | return true ⇒ pinch off | …
Install & use Install: BepInEx plugin
- The archive from playbuff is the mod itself — usually a BepInEx plugin (a .dll or a plugin folder once unzipped).
- Recommended: use a community mod manager (such as r2modman) — pick this game, import the mod, and the manager sets up BepInEx and its dependencies for you.
- Manual route: install the BepInEx loader in the game folder, then drop the unzipped .dll or plugin folder into BepInEx/plugins/.
- Launch the game — the BepInEx console logs every plugin it loads; seeing this mod in the log means it is installed.
Mods with listed dependencies need those installed too, or they will not load. Options are usually changed in-game or in the plugin's config file. In multiplayer, the host and every client need the same mods installed.
Install these first, or the mod will not work: