ItemSpawnFix

版本 v1.3.1·更新於 2026-06-12

[Required by All] Fixes items and resources failing to spawn. Adds support for set item spawns.

模組介紹 作者原文

Fixes resources/consumables/big pickups failing to spawn.

Specifically, this improves the spawning logic to reduce the possibility that there may not be enough space to spawn them, but if there still isn't, they will spawn on the ground instead.

This includes fixing "Surprise!" boxes so they actually work.

Rundown Developer Options (Requires MTFO)

ItemSpawnFix adds a Custom subfolder (Custom/ItemSpawnFix) to further adjust spawn behavior if needed.

It accepts json files containing lists of settings; for example, the template:

[

{

"Levels": 420,

"RundownID": 0,

"RaiseObjectSpawnPriority": false,

"AllowRedistributeObjects": false,

"SetConsumableSpawns":,

"SetResourceSpawns":

},

{

"Levels": "A",

"RundownID": 0,

"RaiseObjectSpawnPriority": false,

"AllowRedistributeObjects": false,

"SetConsumableSpawns":,

"SetResourceSpawns": [

{

"PackType": "AmmoWeapon",

"Amount": 0,

"DimensionIndex": "Reality",

"Layer": "MainLayer",

"LocalIndex": "Zone_0",

"AreaIndex": [

0,

1

],

"PreferEmpty": true,

"Count": 1

}

]

},

{

"Levels": [

4115,

"B1"

],

"RundownID": 0,

"RaiseObjectSpawnPriority": false,

"AllowRedistributeObjects": false,

"SetConsumableSpawns": [

{

"ItemID": 0,

"DimensionIndex": "Reality",

"Layer": "MainLayer",

"LocalIndex": "Zone_0",

"AreaIndex": 0,

"PreferEmpty": true,

"Count": 1

}

],

"SetResourceSpawns":

}

]

The fields are:

  • Levels | Level: A single level or list of levels to apply to. Valid level formats:
  • Main LevelLayoutID (e.g. 420)
  • Tier (e.g. "A" or "TierA")
  • TierIndex (e.g. "B1" or "TierB1")
  • RundownID: The rundown to restrict the setting to. If 0, has no restriction.
  • RaiseObjectSpawnPriority: Reverses spawn order so Terminals/Generators/Disinfect Stations spawn first, then big pickups/consumables, then resources.
  • If you need consistent terminal/generator spawns, or just want it to not spawn on the floor, try this first.
  • AllowRedistributeObjects: Allows Terminals/Generators/Disinfect Stations to be moved to other areas if there is no space in their spawn area.
  • SetConsumableSpawns: Spawns a specific set of consumables in an area.
  • ItemID: The item datablock ID to spawn.
  • SetResourceSpawns: Spawns a specific set of resources in an area.
  • PackType: The type of pack to spawn (Health, AmmoWeapon, AmmoTool, or Disinfection).
  • Amount: The amount to put in the pack. Affected by ExpeditionBalance settings.

Shared Set_Spawns fields:

  • DimensionIndex: Dimension to spawn in.
  • Layer: Main/Secondary/Overload layer to spawn in.
  • LocalIndex: Zone index to spawn in.
  • AreaIndex: Area index to spawn in. Can optionally be a list of possible spawn locations.
  • PreferEmpty: Prioritize spawning in an empty container if possible.
  • Count: How many copies to spawn. Identical effect to adding multiple of the same set spawn object.

Supports live edit - you do not need to reboot to apply changes, just redrop.

Technical Fix Details

  • The game allocates a certain number of container spawns per room depending on its size. If these run out, the game allocates new spawns but it will never re-use them after creation, so only one item is added. The fix allows them to be re-used.
  • If there are no markers left for one of the initially allocated spawns, it will not create anything. On the other hand, if it is one of the newly allocated spawns, it will create its item(s) randomly on the floor. The fix replaces this logic with the following:
  • (Resources/Consumables) Try to place the items in empty containers in the area. If none exist, check the entire zone.
  • Try to create the item(s) in a random area in the zone.
  • (Resources/Consumables) Try to place the items in partially filled containers in the area. If none exist, check the entire zone.
  • Create the item(s) on the ground. The vanilla logic for this is broken, but the fix corrects that too.

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

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

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

前置依賴

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

BepInEx-BepInExPack_GTFO

檔案與校驗

檔案名稱
ItemSpawnFix-1.3.1.zip
檔案大小
30.2 KiB