Bug City
I spent the majority of this past week delving into the laundry list of bugs. There were bugs like improper attack ranges, some UI bugs, etc. The main one that I want to talk about now is the infamous Highlight tile bug.
A bit of a summary of this bug is that for various reasons, the HighlightTiles function in the TestCharacterController class would cause errors at seemingly random. Unfortunately, I don't have a screenshot of the error, but it was an index out-of-bounds error. The function that was causing it is down below.
The SetTileState is the function that handles the coloring of the tiles based off of their current state. Originally, I didn't have the if check in the SetTileState. I believe that the source of these mysterious issues was because the tileState array was somehow not getting all of its indices set. What makes it mysterious though is that this bug didn't appear consistently. It seemed to only appear on some devices and rarely at that. We still aren't sure what caused the bug, but this fix seemed to do the trick in doing away with it for good.
10-3-2021
By - Jose Garcia
Comments
Post a Comment