Scrap Mechanic

Scrap Mechanic

View Stats:
T flip flop, how??
Can't create one using normal logic, anyone found out how to make them in the current version of the game? Any videos I find is either some kid doing a ADHD rant over his creation showing nothing, or someone using an old version so it doesn't work.

Basically, I want to make a switch using single pulse inputs.
< >
Showing 1-13 of 13 comments
Can use three logic gates, two set to nor and one set to or. One nor feeds into the or, the or feeds into the other nor, and the the last nor feeds into the first nor.

I think this is what your looking for.
Perfect, thanks <3
Your welcome
Forgot to say that your inputs can be on one nor gate and another input to reset it on the other nor gate and any outs are from the or gate.
Coming back to the game years later, this seems to be what I used primarily. However, in the current version, this logic contraption has a chance to spaz out. What's the fix? Are there better designs?
Originally posted by gleeby deeby:
Coming back to the game years later, this seems to be what I used primarily. However, in the current version, this logic contraption has a chance to spaz out. What's the fix? Are there better designs?
Both nor gates into an and gate. and gate into or gate.
best solution ive found: put a sensor on a piston and set it to switch mode. have the piston push the sensor into a block
Quite noisy but also rather simple. I am genuinely surprised that this whole time they didn't add a toggle gate to the game yet.
I feel really stupid for ignoring mods for this game this long considering I mod pretty much everything I play but I found a great mod that adds flops and switches which solved my problem entirely.
I think there is a single block RS FlipFlop in Fant's mod (custom game): https://steamcommunity.com/sharedfiles/filedetails/?id=2820096455
Just my two cents: most people ignore the signal propagation delays, and complain that logic does not work :-) If you click a button used as input fast enough - you can introduce a single tic-wide pulse which only goes into the first logic gate and then propagates into the next gates but leaves the first one, so the system state (especially when there are feedback loops) usually becomes pretty weird. So, any complicated combination of gates in vanilla needs pulse extenders on the inputs. Usually it's just a few blocks in series which get the same input in parallel and then send it out for multiple tics serially.

This was already widely known in 2020, when this thread was born, and it's not a problem, just a good and detailed simulation which allows for interesting timing tricks.
Originally posted by No one:
Just my two cents: most people ignore the signal propagation delays, and complain that logic does not work :-) If you click a button used as input fast enough - you can introduce a single tic-wide pulse which only goes into the first logic gate and then propagates into the next gates but leaves the first one, so the system state (especially when there are feedback loops) usually becomes pretty weird. So, any complicated combination of gates in vanilla needs pulse extenders on the inputs. Usually it's just a few blocks in series which get the same input in parallel and then send it out for multiple tics serially.

This was already widely known in 2020, when this thread was born, and it's not a problem, just a good and detailed simulation which allows for interesting timing tricks.
There are also ways to make variable tick generators, I have one but I'd need to pull up the schematic. It's like a timer, an XNOR gate, an AND gate and a NOR I think? Forget the order though. And whatever the timer is set to is the tick length.

Was so proud of myself for coming up with that one all those years ago.
OR gate into spudgun pointed at a switch.

Three XOR gates into a loop. Nor gate into AND gate. AND gate into all three XOR gates. Choice of input into NOR, AND gates.

Originally posted by gleeby deeby:
Coming back to the game years later, this seems to be what I used primarily. However, in the current version, this logic contraption has a chance to spaz out. What's the fix? Are there better designs?
I'm interested in what you used before. Can you upload it to the workshop? Maybe we can find an update.
< >
Showing 1-13 of 13 comments
Per page: 1530 50

Date Posted: Nov 5, 2020 @ 12:43pm
Posts: 13