logicgates.js tutorial

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