shapez.io icon indicating copy to clipboard operation
shapez.io copied to clipboard

[Feature Request] Virtual Color Mixer

Open alexanderpas opened this issue 4 years ago • 9 comments

Every building which modifies items has an virtual equivalent for use on the wires layer, except for the color mixer.

The addition of the virtual color mixer would allow for the creation of universal color mixers without contant signals, where if given all 3 if the basic paint inputs, it would be able to create any given color, no matter in which belt contains which color of paint.

alexanderpas avatar Dec 22 '20 14:12 alexanderpas

Hmm. Shouldn't be too hard to implement, I'll see if I can do that for you and open a PR. (Don't expect it to be fast though. Sorry about that.)

darkwater4213 avatar Jan 02 '21 20:01 darkwater4213

Could be nice to have as a building but is already possible via logic: image

Alex-x90 avatar Mar 16 '21 22:03 Alex-x90

You do realize that this would be a pain to construct the first time in every MAM map that you have (with plenty of room for human error) and that it takes up massive amounts of space, not to mention that it has about a half-second of ping, right? (No offense... Just pointing out that it isn't exactly a totally viable solution...)

darkwater4213 avatar Mar 17 '21 01:03 darkwater4213

In a MAM, all you should need to do is decompose a color into its RGB components, which shouldn't be too hard (only requires that bottom left or bottom right module)

EmeraldBlock avatar Mar 17 '21 01:03 EmeraldBlock

But it's still complicated. There's an unstacker; why not a mixer (or even an un-mixer?)

darkwater4213 avatar Mar 17 '21 02:03 darkwater4213

because the other ones are infeasible to make

EmeraldBlock avatar Mar 17 '21 02:03 EmeraldBlock

Not really. The virtual mixer would work much the same as the normal, and the un-mixer would just return two reds if it were given a red.

darkwater4213 avatar Mar 17 '21 04:03 darkwater4213

huh? I mean that you can't make virtual stackers, unstackers, rotators, or painters without manually accounting for about every shape (due to floating layer stuff, and even ignoring that it would be much more complicated)

EmeraldBlock avatar Mar 17 '21 04:03 EmeraldBlock

While a virtual color mixer could be nice to have in niche situations, it's borderline useless. Most MAMs don't even use smart mixers, and even if you are using a smart mixer it's easily possible to do so without a virtual color mixer. What emerald block meant is that a virtual color mixer/unmixer is entirely possible only with (relatively) small logic, while all other types of operations (virtual stackers, painters, cutters, etc.) would essentially require you to make an absolutely enormous lookup table with every possible shape input, making them infeasible to do with logic.

Alex-x90 avatar Mar 17 '21 05:03 Alex-x90

As described above, additionally a virtual color mixer is present in Wires+.

dengr1065 avatar Nov 10 '22 15:11 dengr1065