Dislodge Key

版本 v1.0.0·更新於 2025-02-18

Prevents keys from immediately reinserting when grabbed, making Container Yard playable in Patch 6

截圖 共 1 張

模組介紹 作者原文

Dislodge Key

(Yes, this is Patch 6)

This is a mod that fixes a bug in Patch 6 that makes all key receivers immediately re-insert their keys when attempting to eject their key. Very simple! Very straight-forward!

In laymen's terms, this allows you to pick up the void core in Container Yard (which, internally, is just a key), allowing you to get the Container Yard achievement legitimately on Patch 6.

Known issues

Some key receivers will eject their key in unusual or unexpected directions when grabbed, potentially reinserting the key. You can avoid reinsertion by pulling in the direction that the receiver ejects in when you grab the key.

If any arbitrary object is swiped in a key receiver's interaction zone while the key is still within it, then the key will be reinserted. This is, to be fair, an incredibly hyperspecific edge case, but is worth a mention regardless.

Technical details

This mod hooks into both KeyReceiver and KeycardReceiver, and does the same thing for both.

Additionally, this mod makes the assumption that if a key is not meant to be taken out (ie: the correct keycard is placed into a keycard reader), then OnMagazineGrabbed will never be called when you attempt to grab the key. In vanilla content, this is always the case.

When a key is grabbed, OnMagazineGrabbed gets called. In vanilla, this immediately sets the KeyReceiver's state to Empty, causing the key to immediately reinsert itself on the next frame due to OnInteractibleHostEnter being called, which handles the re-insertion logic.

With this mod, OnMagazineGrabbed will set the KeyReceiver's state to Ejecting, which is the condition under which OnInteractibleHostEnter will immediately return.

When OnInteractibleHostExit is called (which occurs when you take the key outside of the trigger box), this mod's code sets the KeyReceiver's state to Empty, allowing the receiver to accept the key again.

Fusion compatibility has not been tested. Quest compatibility also not tested.

安裝與使用 安裝:按包內說明操作

  1. 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
  2. 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
  3. 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
  4. 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。

不同模組的安裝位置差異較大,包內說明是最可靠的依據。

前置依賴

下面這些內容需要先安裝,否則該模組不會生效:

LavaGang-MelonLoader

檔案與校驗

檔案名稱
Dislodge_Key-1.0.0.zip
檔案大小
18.5 KiB