amadornes / SCM-Localization-Issues

Localization and issues for Super Circuit Maker
16 stars 19 forks source link

Mod interaction - Inventory Scanner does not work with storage drawers #300

Open ariosos opened 7 years ago

ariosos commented 7 years ago

Using the version in the Direwolf20 pack.

1 - Create a circuit with an inventory scanner, and a redstone signal going into a glowstone lamp on the circuit. 2 - Place a normal chest with an item in it behind the circuit and verify that the lamp turns on. 3 - Now replace with chest with a 1x1 storage drawer and put an item in it.

No signal is present. I can kind of understand why storage drawers may be tricky (1x2, 2x2 drawers), but it should at least read the 1x1 drawer.

scm_inventoryscanner

convict999 commented 7 years ago

Dostorage drawers even have it implimented? Does a vanilla comparator work?

Netrilix commented 7 years ago

You can use a vanilla comparator with Storage Drawers if they're upgraded with a Redstone upgrade and, in that case, the signal can be read from the circuit (as a direct input, without the Inventory Scanner).

However, that solution doesn't work when you're trying to use the circuit to control an EnderIO item conduit attached to the drawer, because even a level 1 Redstone signal will turn the conduit on. The seemingly simple solution to this would be to, instead of using the Redstone upgrade, use an Inventory Scanner to check the status of the inventory directly. Then it can be run through the circuit properly without affecting the attached conduit until you actually want to send the Redstone signal to it. But, if the Inventory Scanner is just a comparator in disguise, rather than an actual inventory interface, that's not possible.

Edit: I've solved this issue for my particular use case. It's irrelevant to the issue at hand, but I figured I'd leave it here for reference in case others need it. Here is the circuit. The storage drawer has the Redstone upgrade, and the EnderIO conduit ignores the drawer's Redstone signal if it sees an Insulated Redstone Conduit, which takes the signal from the circuit and passes it to the Item Conduit. With the Constant set to 128, the conduit only takes items from the drawer if it is over half full.