R2InventoryArtifact

版本 v1.1.0·更新於 2026-05-02

Adds an active inventory management system.

截圖 共 3 張

模組介紹 作者原文

R2InventoryArtifact

Adds an active inventory management system.

Features

Grid Area

  • When items are picked up, they are added to the Inventory Grid if there is space.
  • [Configurable] Each item has a set number of stacks that can be maintained before a new element is created as well as a shape that it takes up on the grid.
  • Items can be moved around the Inventory Grid and rotated by pressing the Rotate Item key.
  • When starting a run, a portion of the grid is locked. Gaining Slots can be unlocked by increasing the player level.

Hold Area

  • Droppable items be moved bewteen the Inventory Grid and the Hold Area.
  • If there is no space in the inventory when an item is picked up, then the item is added to the hold and the Inventory HUD is forcebly opened.
  • If the Inventory HUD is closed with items in the Hold Area, then they are forcebly dropped from the player.

Drop Area

  • Droppable items may by dropped by dragging them from either the Hold Area or the Grid Area to the Drop Area.
  • Only Lunar Teir and Void Tier and Temp and Consumed items are deemed not Droppable.

Non Equip Area

  • Non-equippable Items will appear in the Non-Equip Area.
  • Anything labled as Consumed along with Regenerating Scrap and Sale Star are deemed non-equippable.

Keybindings

  • E: Open & Close / Toggle Inventory
  • Right Click: Rotate Items in Inventory

All Keybindngs are re-bindable in Options

Item Configuration

  • If there is a specific layout or stack amount for an item that is needed, you can edit [plugin_folder]/Assets/item_data.json.
  • The below fields are currently used by the mod:
  • [Key]: This should match with the item name language token.
  • Node Origin: This represents the nodes where the item is located on the grid. Each item has a relative root node at (0, 0). Each node is represented by the object {Row: [number], Count: [number]}.
  • Max Stack Count: The maximum number of stacks before a new element is created in the grid.

ActiveOrigin is not currently used

  • If the properties are not explicitly listed in the file, then it will be selected based off the item/equipment index and item tier. Below are the possible shape options:

Item Painter

  • For easier bulk item configuration, visit the Item Painter site.

How to Use

  • Enter the item's language token name in the search bar and select Add or select an existing item from the dropdown.

The name entered in the search bar will be the item's language token when refrenced by the mod. (for custom items).

  • Select the item from the sidebar
  • Select a paint palette from the bottom and use left click to paint tiles on the grid. Use right click to erase. Hit ctrl+z and ctrl+y to undo and redo. Note: The center of the area will always be set.
  • Enter the item label and Max Stack count values in the Properties sidebar.
  • Export the items to your clipboard and paste them in the item_data.json file or copy them to the clipboard and paste them directly.

Mod Support

This mod was designed to work with the base game's (and DLCs') items.

Ideally it should by compatable with other mods, if there are any issues, let me know...

Multiplayer

Ideally, this should work in multiplayer as each client has their own instance of the Inventory HUD.

References

As this is my first mod, I used the below mods as references:

  • Better Command Menu - API Interfacing
  • Level Up Choices - Codebase Structure, UI & Player API
  • Looking Glass - UI API
  • Pressure Drop - Player API
  • RoR2-ForceItemsEqualShare - Potential Networking

Note

  • There is only mouse support at the moment
  • If there are any bugs or things you would like to see added, let me know: @foxfen64 on the Discord or open an issue on GitHub

Pending Tasks

Known Bugs

  • Sometimes items in the Hold Area are dropped from the inventory, but not from the HUD, thus allowing items to be dropped multiple times
  • ~~Item Painter returns nodes 'upside down'~~

Todo

~~- Add custom sprites for item slots when they are occupied to better identify item boundaries~~

  • Controller support
  • Al

安裝與使用 安裝:BepInEx 外掛

  1. 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
  2. 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
  3. 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
  4. 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。

帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。

前置依賴

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

Rune580-Risk_Of_OptionsRiskofThunder-R2API_LanguageRiskofThunder-R2API_ContentManagement

檔案與校驗

檔案名稱
R2InventoryArtifact-1.1.0.zip
檔案大小
26.3 MiB