Space Engineers

Space Engineers

244 ratings
[QoL] Easy Inventory Management
5
2
2
2
2
   
Award
Favorite
Favorited
Unfavorite
Type: Mod
Mod category: Script, Other
File Size
Posted
Updated
528.157 KB
2 Dec, 2022 @ 12:41pm
21 Jun, 2023 @ 3:12pm
38 Change Notes ( view )

Subscribe to download
[QoL] Easy Inventory Management

In 1 collection by DraygoKorvan
Quality of Life Mods
7 items
Description
Tired of assemblers jamming up? Not having the ability to easily fill a weld ship with needed components? Prioritize refineries to specific ores? This mod will let you control all this!

This mod is also intended to be server friendly, and has controls for server admins to limit the number of inventory actions that can happen in a tick.

Using this mod will set Use Conveyor System to Off on all blocks (as this mod completely takes over), if you remove this mod you will have to re-enable that setting on all blocks

Note that this mod is still under active development. Some ship configurations may not work, see notes below

Dev Branch: https://steamproxy.net/sharedfiles/filedetails/?id=2912290967

Inventory Management
Players are able to set Limits and Quotas for items on individual blocks. Think of limits as the upper limit as to the number of items that the block is allowed to have, quotas are minimums, if the block has less than the minimum it will attempt to pull items from other inventories in the grid until it reaches that minimum.

The Inventory Manager will manually adjust quotas on production blocks if quota is not set based on the needs of the block. It will move any item that is unneeded out of the input inventory and back into storage. No more Gravel filling up and jamming your assembler!

You can copy settings to other blocks using the copy button in the terminal, you can also paste the settings to multiple blocks at a time.

Please note that this mod does not support non-weaponcore sorters. It is best to build and use your inventory without this block, as it should not be needed anymore.

Server Settings
The Text HUD API Admin menu (Alt+F10 or Shift+Alt+F10) in the top left corner contains a few options to control how much compute the server spends on inventory per tick.
  • Max Compute Per Tick - Maximum amount of compute the server is allowed to do per tick for Inventory Management
  • Max Compute Per Grid - Maximum amount of compute the server is allowed to do per grid per tick, this is to prevent single grids from consuming the entire global pool of work.
  • Network Compute Cost - Extra compute cost for network related operations (operations that generate network traffic)
  • Per Grid Delay - How many ticks must pass before the next audit of a grid. Defaults to 10.
  • Start Profiler - Starts the profiler on the server, note that output is only given to the log and console on DS, if you are locally hosting or playing singleplayer it will output to chat and the log.
These options let you control how much CPU the mod will use on a server per tick to manage inventories. As this will replace all keen inventory operations this should result in better performance and stability for large worlds. If you notice your sim speed dropping you may lower the Max Compute value to free up resources for other operations. Note that lowering this value will make automatic inventory operations take longer but should result in a stable simspeed (not barring other things slowing inventory down).

If network bandwidth is an issue increase the network compute cost value to slow down inventory operations that use network.

Mod API

Modders can create their own inventory requests using this mod:
Api file is here:
Steam\steamapps\workshop\content\244850\2896517058\Data\Scripts\InventoryQOL\EasyInventoryManagerAPI.cs
Note do not register in OnAddedToContainer. Questions, ask on my discord.

Future plans / Known Issues

Removing this mod from a world will result in Use Conveyor Systems to be set to Off on all blocks, just be aware.

Known issues:
  • Sorters are not properly used by this mod, and can cause inventory functions to cease
  • Actions do not currently apply to block groups, this seems to be a limitation in the game itself
  • Build and repair mod blocks will not auto-pull components, you should be able to set a quota on the B&R block to make it pull components.
  • Welders do not weld projections.
  • Assemblers on co-op mode no longer share queue with other assemblers
  • Shift+MMB shortcut does not work

Future plans:

  • Offload inventory management to this mod from weaponcore
  • Optimize Inventory Group formation
  • Proper Sorter support for Inventory Group separation
  • Perhaps add priority settings for inventory quota's
  • Configurable Per grid audit delay in ticks done

Bugs?

Blueprint your non-functional grid and share on my Discord in the #quality-of-life-bugs channel, please keep in mind known issues above.

Discord
Questions, ask on my discord server. I do not read or accept unsolicited direct messages.
Discord[discord.gg]
Popular Discussions View All (1)
6
1 Feb, 2024 @ 5:05pm
[Bug Reports]
'KeithFromCanada' Olson
277 Comments
Raizil 6 Aug, 2024 @ 1:31pm 
Conveyor system set to off breaks so many of my assemblers and refineries, also i no longer have the Conveyor Access option on my HUD, how do i fix this???
Omega 21 May, 2024 @ 1:20am 
like orangelemongamer has asked, the defaulting of the conveyor system off breaks a saddening amount of things, having the option to enable it would be appreciated, even if it disables the Inventory Management system.
Chinchipos 7 May, 2024 @ 2:37pm 
Хрень несусветная, очень неудобно по сравнению с скриптовыми сортировщиками
KEJWII 30 Apr, 2024 @ 6:57am 
I don't know why, but this mod seems a bit... "worse" than Automated Inventory Sorting

maybe it's because there is no tutorial video about it
orangelemongamer 6 Apr, 2024 @ 1:41pm 
Hi, is there anyway to change the 'default use conveyor system off' back to on again? I've got some mods that spawn in trade ships and stations but because every store block has use conveyor system defaulted off its impossible to trade, removing that entire portion of the game. I wouldn't mind so much if I could enable creative for a sec, turn it back on, then continue as normal but the mod just completely removes it.
Thanks :selike:
DraygoKorvan  [author] 20 Mar, 2024 @ 5:22pm 
Set the ejectors to only intake stone (set limits of all ore to 0 except stone). Yes it does invalidate sorters.
Koki 20 Mar, 2024 @ 2:11pm 
This mod seems to cause sorters to become moot as i have noticed my miners jettisoning ore as well as stone no matter what I do to the sorters
DraygoKorvan  [author] 10 Mar, 2024 @ 6:59pm 
There is no way to set priority. Large depots or storage should not use the quota setting, you should use the limit setting.
Xx_Morgan Freeman_xX 10 Mar, 2024 @ 6:18pm 
is there anyway of setting priority? if i have to cargo containers on the same/different grids both set to pull x amount of components can i make one get it first? for example: i have a small ship with a cargo container set to pull 100x steel plates, but the large grid ive docked to has a cargo container with a quota set to 1 million steel plates(its so high to pull all available in the system) and it wont allow the small ship to pull 100x from the container with the quota while docked
Fagottini 28 Feb, 2024 @ 12:24pm 
After game (or computer) restart all works now. Strange....

Please do the following features:
- A way to disconnect the connection (as in disabling the sorter)
- Whitelist (like in the sorter)
- One way connection (again, like with the sorter)
- Search window (like in the event controller)