Besiege

Besiege

Logic extensions mod
Dark Jan 14, 2022 @ 8:44pm
Logic Gates Broken?
Hello,

Got back into this mod after the update. Obviously sad to hear it doesn't work with the new variables, but that's fine.

I seem to be running into a console error. It is the following: https://i.ibb.co/k4Sqxv3/image.png

No matter what I do in my code it appears to not work. I can't remember if I'm doing this right, but I tried both 1000 and 00 for the pid.

var state = false; function test() { state ? out(1000, 1) : out(1000, 0); state = !state; setTimeout(0.5, test); } test();
< >
Showing 1-3 of 3 comments
Lambda  [developer] Jan 15, 2022 @ 3:53am 
Hello. Could you please provide more detailed steps to reproduce it? Maybe a small 2-3 block machine .bsg file which fails with this error.
Dark Jan 15, 2022 @ 8:33pm 
It seems to happen just by playing a logic gate block in a scene alongside a code block, at least.
Lambda  [developer] Jan 16, 2022 @ 7:44am 
I've made the following machine:
1) Logic gate, Input A = 1000, Input B = I, Emulate = C, Mode = OR
2) Water cannon, shoot = C, "hold to shoot" activated
3) CPU block, pio00 = 1000, code
var state = false;

function test() {
state ? out(0, 1) : out(0, 0);
state = !state;

setTimeout(0.5, test);
}

test();

In this setup everything works as expected, logic gate switches every 0.5 seconds and activates/disables water cannon.
Last edited by Lambda; Jan 16, 2022 @ 7:45am
< >
Showing 1-3 of 3 comments
Per page: 1530 50