R.E.P.O.
You are viewing a potentially older version of this package. View Latest Version
Install with App

Details

Date Uploaded
Downloads
1K
Size
28KB

Inventory Controls 1.7.0

Author: ByteSizeMetal

A standalone R.E.P.O. inventory control mod. Requires BepInEx only. It works with the normal three inventory slots without SLRUpgradePack.

When SLRUpgradePack is detected, the included compatibility adapter automatically includes its unlocked extra inventory slots, up to nine total. No separate patch, toggle, or installation is needed. If SLR is absent, disabled or its optional API cannot be read, the base controls continue to work with vanilla slots.

Controls

Action Keyboard default Controller default
Cycle Left [ D-pad left
Cycle Right ] D-pad right
Put Away Backquote D-pad down

Remap in REPOConfig → Inventory Controls, under Bindings - Cycle Left, Bindings - Cycle Right, and Bindings - Put Away. Put Away is the unequip / re-equip action: tap to store what is in hand, tap with empty hands to equip the highlighted item, or hold to drop a held item.

Set General → Hold to drop seconds to adjust the hold threshold (default 0.4 seconds, range 0.1–2 seconds). A tap stores or re-equips on button release; a hold drops once when the threshold is reached. Releasing after a drop does nothing. Holding with empty hands does nothing. A mouse-wheel binding always acts as an immediate tap because a wheel pulse cannot be held.

Each action has these editable dropdowns:

  • Keyboard / Mouse Key — choose a key, or Mouse0–Mouse4; None disables this binding.
  • Keyboard Modifier and Keyboard Modifier 2 — optional held keys for a chord.
  • Controller button — choose a D-pad direction, face button, shoulder, trigger or stick press.
  • Controller modifier — optional controller button that must also be held.
  • Mouse wheel — None, Up or Down.

Changes apply immediately. Controller face directions are South = Xbox A / PlayStation Cross, East = B / Circle, West = X / Square, North = Y / Triangle.

Version 1.1.1 uses enum settings because REPOConfig 1.2.7 does not display BepInEx KeyboardShortcut structs. Existing keyboard keys and the first two modifiers seed the new visible settings, while existing controller settings are preserved. The old Keyboard or mouse entry remains only for migration. REPOConfig is optional; the configuration file can also be edited while the game is closed.

  • Cycle Left and Cycle Right browse occupied slots in a full circle without equipping, storing or dropping anything. They work with empty hands and while holding an item. The green highlight is the browsed selection; your current held item stays in your hand. The held inventory item's origin remains part of the browsing circle.
  • Tap Put Away with empty hands to equip the highlighted item. Without browsing, this defaults to the last held inventory item, including items selected through normal vanilla/SLR slot keys. Memory follows the item's current slot if it is rearranged. If it was dropped, consumed, removed, locked or is still busy, another unlocked, settled hotbar item becomes the ready target: prefer the old position if occupied, then search right with wrapping. With no prior selection, the first ready occupied slot becomes the target. Navigation moves one occupied slot beyond this current target in the chosen direction, without drawing it.
  • Tap Put Away to store a compatible held item in the first free unlocked slot, from left to right. First-time world pickups need no prior hotbar assignment; if the grab is still starting, storage waits for it to finish.
  • Hold Put Away to release the held item normally, leaving it out of the hotbar. Stored items in other slots remain untouched. This also releases held objects that cannot be stored.
  • After browsing while armed, tap Put Away to store what you hold; the browsed target stays highlighted. Tap again with empty hands to equip that target. Repeated navigation advances from the highlighted position, even while a different item stays in your hand.
  • A full inventory or a held object that cannot go in inventory leaves the object in hand when tapping, cycling or pressing a slot key. Only an explicit hold requests a drop.
  • Number and SLR slot keys swap items instead of dropping what you hold. It goes back to its slot, then the new item comes out. Turn this off with General → Never drop from slot keys.
  • Letting go of grab, damage and physics still drop items as normal.
  • With one item, navigation wraps back to it and changes nothing in hand. Equipping requires a tap or a direct slot-key action.
  • Menus, text entry, spectating, death, focus loss and disabled gameplay input cancel pending actions. A replaced held item or disconnected input device cancels the tap/hold gesture. Normal direct-slot commands remain available and cancel pending cycle commands.

When one of these actions fires, the mod suppresses vanilla/SLR direct-slot handling for that frame to avoid selecting twice on one press. Put Away also suppresses direct-slot handling during its hold and release. Other gameplay actions on the same physical button, such as an ability or item use, should be rebound separately if they conflict. Give Cycle Left and Cycle Right different bindings; assigning both to one button cancels cycling in both directions.

Main item and hotbar display

The mod maintains a ready recall target whenever an unlocked, settled inventory item is available. Dropping or using up the remembered item no longer leaves recall tied to a missing object. This only updates memory; items stay stored until you tap to equip the selection or use a direct slot key. Empty inventories have no ready target, and the game must finish any active inventory transaction before it can safely draw another item.

By default, the highlighted slot stays in the middle and occupied slot displays gather beside it, using central empty display positions whenever available. Empty slots move to the outside edges, so there are no holes between occupied displays. Occupied items retain their circular browsing order. Odd slot counts have an exact middle; even counts use the left of the two middle positions. This permutes existing horizontal positions, keeping the native bar width and spacing. Actual slot assignments, key mappings and saves stay attached to the same items. Binding labels and SLR battery indicators travel with their slots. The held inventory item's origin counts as occupied for presentation; a first-time world pickup gets a hotbar position after storage.

The main slot has a thick, bright green outline with a soft glow and contrasting inner edge. It follows native HUD visibility and does not receive mouse/controller input. The overlay stays outside slot templates so SLR upgrades cannot clone it into extra slots.

Configure these under REPOConfig → Inventory Controls → Hotbar:

  • Center main item — center the highlighted selection and group occupied slots beside it (default on).
  • Highlight main item — enable/disable the green outline around the browsed selection independently (default on).
  • Outline thickness — 1–10 UI units (default 4).
  • Outline padding — 0–12 extra UI units around the slot (default 4).
  • Extra slot spacing — 0–24 extra UI units between slots, so key labels clear the outline (default 8). The bar narrows itself if it would run off screen.

Visual settings apply immediately. Turning centering off restores native positions. Rendering uses cached slot/battery references; hierarchy scans run when the HUD structure changes. Visual failures disable the presentation for that launch while inventory controls remain available.

Install

Use Import local mod in Thunderstore Mod Manager and select ByteSizeMetal-InventoryControls-1.7.0.zip, then restart normally. Alternatively, place InventoryControls.dll under the active profile's BepInEx/plugins.

Replace the earlier SLRInventoryControls package with this one. The plugin keeps the old internal identity so existing bindings survive, and BepInEx selects the newer version rather than running two input handlers. The configuration filename therefore remains BepInEx/config/local.SLRInventoryControls.cfg; the displayed mod name is Inventory Controls.

Only players wanting these controls need to install this mod. Its native inventory requests use the game's existing multiplayer validation. It changes no upgrade counts, saves, prices or network protocol.

Optional compatibility

SLRUpgradePack 0.6.0 is detected through an optional dependency and reflection; it is not a required DLL reference or package dependency. SLR support activates automatically, respects the inventory upgrade's enabled flag, and never exposes slots beyond the purchased count or active inventory objects. No Swap Drop is optional and no longer needed for slot keys, but it is safe to leave installed: this mod stores before drawing, so its swap/drop handling has nothing to do. Explicit hold-to-drop uses PhysGrabber.ReleaseObject instead of the RequestUnequip method that No Swap Drop intercepts. KeybindLib is not required.

Validation

Release build uses shared compilation disabled. Validation for 1.7.0 includes 62 production navigation/transaction/layout checks run entirely in-process without game assemblies, plus 50 installed game/SLR API checks using metadata only. Layout checks cover every occupancy pattern, selected slot and count from one through nine: unique positions, no internal holes, centered selection and circular occupied order. Direct-slot swaps, safe storage, explicit drops and selection recovery remain covered.

The updated presentation fixture compiles without warnings or errors. Live Unity/controller/multiplayer behavior still needs confirmation after a normal restart; no standalone gameplay fixture is launched while R.E.P.O. is running. The build script packages outside the profile and does not install unless -Install is explicitly supplied.

Thunderstore development is made possible with ads. Please consider making an exception to your adblock.