47 Replies
flat-fuchsia•11mo ago
Step 1: Place the gates themselves. For example, to make a full-adder, you need 2 XOR, 1 OR, and 2 AND.
Step 2: Plan the connections. Is your diagram simple enough to use wires or is it too complex and needs wifi to avoid intersections?
Step 3a: If you are using wires, make inputs with wire - E2L Lever - logic wire. Connect these to your gates with more logic wire and ensure that each connection only touches 1 of the gate's 8 neighbors. Then, use output on one of the neighbors of the gate and connect that to something else via logic wire.
Step 3b: If you need to use wifi, make your inputs first with wire - E2L Lever - Logic wire - Logic Transmitter. Choose a channel (name) for your input. Then, connect all of the gates that need those to a receiver and logic wire set to the same channel. You may also funnel the output of a gate through a logic transmitter.
Step 4: Once everything is connected for the main circuitry, make your outputs with a Logic Wire - L2E Constant - Wire.
Step 5: Use shock tool on your various inputs to toggle them and see if they work as expected.
ratty-blush•11mo ago
what is logicates.js
ur mod?
like a machines mod?
flat-fuchsia•11mo ago
logicgates.js is a mod that adds logic gates that i made
adverse-sapphire•11mo ago
show a picture of the tutorial <:moji_despair:1079506855811891211>
flat-fuchsia•11mo ago
um
okay?
flat-fuchsia•11mo ago
step 1: gate layout
flat-fuchsia•11mo ago
step 2: "the plan"
flat-fuchsia•11mo ago
step 3b: wifi
flat-fuchsia•11mo ago
step 5: testing
adverse-sapphire•11mo ago
i put logic wire connected to output and nothing happens when i shock it
flat-fuchsia•11mo ago
jesus christ what is that giant block of red
ok all logic gates and outputs should be 1 pixel max
logic wires should idealy be 1 pixel wide at max but it doesnt matter due to my fabulous electricity system
shock doesnt work on logic wires because they dont use sandboxels electricity. this is why E2L converters are needed
adverse-sapphire•11mo ago
update: i found out i needed wire, not logicWire for it to work
adverse-sapphire•11mo ago
woah it really is flawless
flat-fuchsia•11mo ago
yep
adverse-sapphire•11mo ago
wifi is kinda hard to use because its hard to remember where the signal goes and if you don't use wifi you get overlap problems because the game is 2D
my recomended solution: draw lines between reciever-transmitter pairs like this
adverse-sapphire•11mo ago
you gonna add this?
flat-fuchsia•11mo ago
.. nah
just use debug to check the channel
adverse-sapphire•11mo ago
or what about a feature where hovering over a transmitter/reciever shows the channel name in the bottom right corner
flat-fuchsia•11mo ago
good idea
ill make that a f e a t u r e
adverse-sapphire•11mo ago
is there a solution to always having to put a line of wire and then E2L button and then logic wire?
its annoying to do this every time i want to send a charge
adverse-sapphire•11mo ago
you could add a thing where shocking a logicWire will not shock but instead will set the charge to active
flat-fuchsia•11mo ago
i could add a logicshock tool
adverse-sapphire•11mo ago
or make shock switch to the behavior that logicshock would do if shocking a logic wire
flat-fuchsia•11mo ago
(doesnt work if channel name is too long)
adverse-sapphire•11mo ago
is there a mod to zoom in?
if there isn't you/someone else can make one so that its easier to build logic gates
but make it a seperate mod (like zoomer.js or something) so you can zoom without having to have logic gates
actualy...
flat-fuchsia•11mo ago
flat-fuchsia•11mo ago
forgot to add quotes hold on
flat-fuchsia•11mo ago
\
flat-fuchsia•11mo ago
flat-fuchsia•11mo ago
wooo
flat-fuchsia•11mo ago
adverse-sapphire•11mo ago
i shocked the left side of the bottom wire and it stays on and not turning off
flat-fuchsia•11mo ago
umm. yea
thats how logic wires work.
they are toggle instead of pulses
adverse-sapphire•11mo ago
oh
flat-fuchsia•11mo ago
because, spoiler alert:
it is a PAIN to get logic to be good with pulses
its toggle for your own sanity
adverse-sapphire•8mo ago
good
what is lstate 0, 1 and 2
flat-fuchsia•8mo ago
-2 represents an uncharged spreader
-1 is an uncharged buffer
0 is uncharged
1 is a charged buffer
2 is charge spreader
fascinating-indigo•8mo ago
Full adder, although it seems its already been done but still pretty fun.
flat-fuchsia•8mo ago
nice!
why does each input have 2 wifi
adverse-sapphire•8mo ago
no answer
fascinating-indigo•8mo ago
My bad I was at school I'm not sure what you mean by wifi but every input has 2 outputs if that's what you mean
flat-fuchsia•8mo ago
flat-fuchsia•8mo ago
a transmitter can transmit to multiple receivers that have the same channel
fascinating-indigo•8mo ago
I see that makes sense. Could be optimised
adverse-sapphire•8mo ago
sandboxels officialy goes in the "logic sandboxes" folder
adverse-sapphire•6mo ago
👍
what's a buffer
flat-fuchsia•6mo ago
buffers are used to help prevent charge mixing as well as help remove the randomness of sandboxels