amadornes / SCM-Localization-Issues

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

Request: Strength Inverter #263

Closed eslachance closed 6 years ago

eslachance commented 7 years ago

This might be resolved another way but it seems like it would be simpler with either of the possibilities requested.

My situation is that I have an EnderIO capacitor bank which, with a comparator/inventory scanner, outputs a max redstone signal when it's full, and a signal of 0 when it's empty. Now, I'm providing 15k RF/t from a DeepResonance crystal to this capacitor, and I obviously don't want to waste any of it. So, the idea is that I want to provide a signal that's essentially exactly inverted (255 from the capacitor would output 0, 0 from the capacitor would output 255). I can't simply invert it with a redstone torch, which is all or nothing.

By using a signal inverter, this would be super simple: when the capacitor is full the signal turns off, if it's empty the signal strengh would be full. With a bit of creative circuits and I could figure out a way to make it work between exact percentage values.

Obviously I'm trying to reproduce features in a Power Monitor in EnderIO (which I finally realized, while writing this, I had in the DireWolf20 pack and could use!), but I think it would be a great addition to SCM anyways.

dokranke commented 7 years ago

Well, you could substract from 255, than you have a inverted signal.