47 Replies
mute-gold•14mo 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.
afraid-scarlet•14mo ago
what is logicates.js
ur mod?
like a machines mod?
mute-gold•14mo ago
logicgates.js is a mod that adds logic gates that i made
vicious-gold•14mo ago
show a picture of the tutorial <:moji_despair:1079506855811891211>
mute-gold•14mo ago
um
okay?
mute-gold•14mo ago
step 1: gate layout

mute-gold•14mo ago
step 2: "the plan"

mute-gold•14mo ago
step 3b: wifi

mute-gold•14mo ago
step 5: testing

vicious-gold•14mo ago
i put logic wire connected to output and nothing happens when i shock it

mute-gold•14mo 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
vicious-gold•14mo ago
update: i found out i needed wire, not logicWire for it to work
vicious-gold•14mo ago
woah it really is flawless

mute-gold•14mo ago
yep
vicious-gold•14mo 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

vicious-gold•14mo ago
you gonna add this?
mute-gold•14mo ago
.. nah
just use debug to check the channel
vicious-gold•14mo ago
or what about a feature where hovering over a transmitter/reciever shows the channel name in the bottom right corner
mute-gold•14mo ago
good idea
ill make that a f e a t u r e
vicious-gold•14mo 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

vicious-gold•14mo ago
you could add a thing where shocking a logicWire will not shock but instead will set the charge to active
mute-gold•14mo ago
i could add a logicshock tool
vicious-gold•14mo ago
or make shock switch to the behavior that logicshock would do if shocking a logic wire
mute-gold•14mo ago
(doesnt work if channel name is too long)

vicious-gold•14mo 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...
mute-gold•14mo ago

mute-gold•14mo ago
forgot to add quotes hold on
mute-gold•14mo ago
\

mute-gold•14mo ago

mute-gold•14mo ago
wooo
mute-gold•14mo ago

vicious-gold•14mo ago
i shocked the left side of the bottom wire and it stays on and not turning off

mute-gold•14mo ago
umm. yea
thats how logic wires work.
they are toggle instead of pulses
vicious-gold•14mo ago
oh
mute-gold•14mo ago
because, spoiler alert:
it is a PAIN to get logic to be good with pulses
its toggle for your own sanity
vicious-gold•10mo ago
good
what is lstate 0, 1 and 2
mute-gold•10mo ago
-2 represents an uncharged spreader
-1 is an uncharged buffer
0 is uncharged
1 is a charged buffer
2 is charge spreader
narrow-beige•10mo ago
Full adder, although it seems its already been done but still pretty fun.

mute-gold•10mo ago
nice!
why does each input have 2 wifi
vicious-gold•10mo ago
no answer
narrow-beige•10mo 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
mute-gold•10mo ago

mute-gold•10mo ago
a transmitter can transmit to multiple receivers that have the same channel
narrow-beige•10mo ago
I see that makes sense. Could be optimised
vicious-gold•10mo ago
sandboxels officialy goes in the "logic sandboxes" folder

vicious-gold•9mo ago
👍
what's a buffer
mute-gold•9mo ago
buffers are used to help prevent charge mixing as well as help remove the randomness of sandboxels