susanw1 / Factorio-Inventory-Trim

A mod for Factorio that automatically frees inventory slots by removing insignificant excess quantities
MIT License
1 stars 0 forks source link

Inventory-Trim/control.lua:443: attempt to index global 'p' (a nil value) #27

Closed susanw1 closed 10 months ago

susanw1 commented 10 months ago

https://mods.factorio.com/mod/Inventory-Trim/discussion/65983887552f8ecf7ef100d7

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.