47 Replies
rare-sapphire•10mo 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.
fascinating-indigo•10mo ago
what is logicates.js
ur mod?
like a machines mod?
rare-sapphire•10mo ago
logicgates.js is a mod that adds logic gates that i made
eastern-cyan•10mo ago
show a picture of the tutorial <:moji_despair:1079506855811891211>
rare-sapphire•10mo ago
um
okay?
rare-sapphire•10mo ago
step 1: gate layout
rare-sapphire•10mo ago
step 2: "the plan"
rare-sapphire•10mo ago
step 3b: wifi
rare-sapphire•10mo ago
step 5: testing
eastern-cyan•10mo ago
i put logic wire connected to output and nothing happens when i shock it
rare-sapphire•10mo 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
eastern-cyan•10mo ago
update: i found out i needed wire, not logicWire for it to work
eastern-cyan•10mo ago
woah it really is flawless
rare-sapphire•10mo ago
yep
eastern-cyan•10mo 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
eastern-cyan•10mo ago
you gonna add this?
rare-sapphire•10mo ago
.. nah
just use debug to check the channel
eastern-cyan•10mo ago
or what about a feature where hovering over a transmitter/reciever shows the channel name in the bottom right corner
rare-sapphire•10mo ago
good idea
ill make that a f e a t u r e
eastern-cyan•10mo 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
eastern-cyan•10mo ago
you could add a thing where shocking a logicWire will not shock but instead will set the charge to active
rare-sapphire•10mo ago
i could add a logicshock tool
eastern-cyan•10mo ago
or make shock switch to the behavior that logicshock would do if shocking a logic wire
rare-sapphire•10mo ago
(doesnt work if channel name is too long)
eastern-cyan•10mo 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...
rare-sapphire•10mo ago
rare-sapphire•10mo ago
forgot to add quotes hold on
rare-sapphire•10mo ago
\
rare-sapphire•10mo ago
rare-sapphire•10mo ago
wooo
rare-sapphire•10mo ago
eastern-cyan•10mo ago
i shocked the left side of the bottom wire and it stays on and not turning off
rare-sapphire•10mo ago
umm. yea
thats how logic wires work.
they are toggle instead of pulses
eastern-cyan•10mo ago
oh
rare-sapphire•10mo ago
because, spoiler alert:
it is a PAIN to get logic to be good with pulses
its toggle for your own sanity
eastern-cyan•7mo ago
good
what is lstate 0, 1 and 2
rare-sapphire•7mo 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•7mo ago
Full adder, although it seems its already been done but still pretty fun.
rare-sapphire•7mo ago
nice!
why does each input have 2 wifi
eastern-cyan•7mo ago
no answer
fascinating-indigo•7mo 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
rare-sapphire•7mo ago
rare-sapphire•7mo ago
a transmitter can transmit to multiple receivers that have the same channel
fascinating-indigo•7mo ago
I see that makes sense. Could be optimised
eastern-cyan•6mo ago
sandboxels officialy goes in the "logic sandboxes" folder
eastern-cyan•5mo ago
👍
what's a buffer
rare-sapphire•5mo ago
buffers are used to help prevent charge mixing as well as help remove the randomness of sandboxels