Inventory Sensor

by Optera

Adds a combinator that reads inventories, fuel and equipment grid of locomotives, wagons, cars, furnaces, assemblers, roboports, rocket silos and reactors.

Content
a month ago
0.14 - 2.0
33.5K
Circuit network

b Unrecoverable error with Ultracube

4 months ago

When running along with ultracube, I get the following crash when producing matter replication gel.

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

Error while running event Inventory Sensor::on_tick (ID 0)
Filter conflicts with filter in slot 2.
stack traceback:
[C]: in function 'set_slot'
Inventory Sensor/control.lua:499: in function 'UpdateSensor'
Inventory Sensor/control.lua:204: in function <Inventory Sensor/control.lua:182>

4 months ago

I get it too.

Error while running event Inventory Sensor::on_tick (ID 0)
所选物品与索引 2 处的筛选器冲突。
stack traceback:
[C]: in function 'set_slot'
Inventory Sensor/control.lua:499: in function 'UpdateSensor'
Inventory Sensor/control.lua:204: in function <Inventory Sensor/control.lua:182>

4 months ago

thanks. What is ultracube? I have an idea what the crash is. Do you happen to look at an entity that has multiple inventories (e.g. fuel for a burner and a another grid for items) and do those happen to have the same items in them?

3 months ago

Its another mod. The entity I was working with when I observed the crash had fuel as well as inputs and outputs, yes. The good news is that with the latest updates the crash seems to have gone away. Thanks

3 months ago

great. The filter conflict was always there, so it could have been triggered by any mod. Thanks for testing and confirming that it is fixed.

a month ago
(updated a month ago)

great. The filter conflict was always there, so it could have been triggered by any mod. Thanks for testing and confirming that it is fixed.

No - IMHO neither it needs other mods nor it's fixed. Any entity with more than 1 inventory can trigger it.
I just took an empty requester chest, connected an inventory sensor with it and put 1 copper plate into the main inventory. Up to here everything is fine and the sensor shows the copper plate. Then I tried to add another copper plate to the trash inventory - and boom 😏 - the error occurs. See here https://imgur.com/a/hIJJnIv

As far as I have been able to test this so far this PR https://github.com/hgschmie/factorio-0ptera-Inventory-Sensor/pull/5 fixes it - so it would be fine, if you could accept it.

a month ago

will look at it. Thank you.

a month ago

This should be fixed with 2.0.5

New response