logicgates.js tutorial

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