Inventory Trim

by SusanW

Excess items in the character inventory get moved to the logistics trash, to keep inventory slots free. Tidy, clean and simple. No more clicking away those annoying small stacks of items that turn up and jam up the inventory!

Utilities
7 months ago
1.1 - 2.0
770
Logistic network Storage

b attempt to index global 'p' error

2 years ago
(updated 2 years ago)

Hi! I just started using this mod, and immediately upon researching invertory trim, I get an error that kicks me out to the main menu.

Sorry, I don't really understand code super well, so I'm not sure what to do with this.

The mod Inventory Trim (0.1.2) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event Inventory-Trim::on_research_finished (ID 18)
Inventory-Trim/control.lua:443: attempt to index global 'p' (a nil value)
stack traceback:
Inventory-Trim/control.lua:443: in function <Inventory-Trim/control.lua:437>

Edit: I am playing with Krastorio 2 and Space Exploration, plus a smattering of other mods. I checked to see if the mod trimmed with the technology requirement disabled, and so far I haven't seen it happen.

2 years ago
(updated 2 years ago)

Okay, the mod seems to work on new saves regardless of other mods. My existing save doesn't seem to play nice with it, no matter how many mods I disable.

2 years ago

Hi, ok, looks like a bug on my part, just investigating...

2 years ago

Yep, reproduced it, and fixed it. Please update it and try again. Sorry about that - thanks for raising it!

New response