Ookami-sama Posted October 28, 2018 Share Posted October 28, 2018 A TNT pack is set to explode on pressing R; a button continually presses E; a NOT gate is set with input E, output R, so it sends the R keypress when E is NOT active. This means that the E key is always active from start, so the NOT gate is always inactive from start. Well, should be. As it happens, the TNT pack explodes right from the start anyway. This happens whatever the order is of placing gates. It would seem as per this gif that buttons are initialised after logic gates, so the NOT gate is activated by default at the start. This is especially disturbing with TNT contraptions such as explosive armour (which will belong to an Emperor-class boss tank by the way), because everything goes off before I press a key. Although a little unrelated, do notice also that buttons in gifs are grey after some time. Screenshots do not exhibit this behaviour. Link to comment Share on other sites More sharing options...
Entity Posted October 28, 2018 Share Posted October 28, 2018 It's not that the buttons are initialized after the logic gates, it's that the NOT gate has not had a chance to evaluate its input yet, so on the first state evaluation tick it is active, to disable on the next tick. ย Initial state is hard. ย On a related sidenote: The inconsistent behaviour between test flight and launch is still there, @Micha, I thought you were adding the initial logic gate delay to test flight too? Link to comment Share on other sites More sharing options...
Ookami-sama Posted October 28, 2018 Author Share Posted October 28, 2018 Now with button E; NOT E => R; button T; R AND T => Y; dynamite Y. First four frames, everything is on false; then suddenly, on the fifth frame both buttons and the NOT gate light up; sixth frame the NOT gate goes back to false, AND gate got its two entries last frame and lights up; seventh frame the TNT blows up diligently, in a flash of green-then-orange pretty colours. Now to figure out a way around this... Link to comment Share on other sites More sharing options...
unmog Posted November 2, 2018 Share Posted November 2, 2018 I ran into this similar problem with order of inputs when testing Entitys infinite generator idea. In theory it should work if the order worked off what I assumed would be... instead I think I need to add even more logic to add a delay. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now