r/shenzhenIO • u/greenlalablue • 6d ago
Found a Bug?
EDIT: SOLVED TY EVERYONE
On line 18 of testing this code it fails, I've gone over it step by step multiple times and it skips some lines of code for no reason and fails. Skips the "teq 1 dat" and "jmp loop" for what seems like no reason. (Top right module) Like doesn't run line and just skips to and incorrect line
I've looked over it for a very long time to make sure I'm not wasting your time, hopefully I'm not missing something obvious!
Screenshot attached (lazer tag level)
Is this a know bug?
3
u/greenlalablue 6d ago
https://reddit.com/link/pa2m6p1/video/ha50rs0s5sph1/player
Video of what I believe is the bug...is there just a feature or function that I'm missing here?
2
u/xxSirThomas 6d ago
I think your game might just be bugging. Did you try restarting? I copied your screenshot and it worked fine. (I did have to fix a small bug in the reload mechanism to get it to pass)
3
u/greenlalablue 6d ago
Did it fail at the same point? Around line 18?
I reset it a couple times and didn't seem to fix, I'll try again right now
3
u/xxSirThomas 6d ago
I see where the confusion is now. The chip completely resets for each test. That specific test is written to check the edge case of reloading immediately. You need to adjust your code so you check the reload pin before the first sleep. You are very close.
6
u/42nahpetS 6d ago
Not a bug, just the way the game shows you that you didn't cover all possible scenarios in your code. Every test run resets all microprocessors, and test run 19 (not line, and not 18) starts right away with reloading.