Sunday, July 13, 2014

Dev Blog 14 - Bug Discovery

While implementing some new artwork, I stumbled across a serious bug.

If the player gets past the first two riddles and quits during Level 3 (owl level), and immediately hits play again, the first level is loaded (as expected). After beating the first level, the riddle for the 4th level is shown ("shoe" riddle) as opposed to the expected "Map" riddle.

The scene index on the RiddleScript is shown as 3, while the expected indices for Riddle 2 is 4, for riddle 3 is 6, and for riddle 4 is 8.

There is clearly a bug in the quitting code, some variable needs to be reset. Potentially this bug could actually be exploited and used to save progress during a game session.

Additionally there appears to be a bug with the scene expectations code. When matching a scene index of 3 with an ExpectedSceneIndex of 8, something should go wrong. Looking into how the ExpectedSceneIndex is used and compared to the scene index.

I'll be working on fixing this all day tomorrow, and perhaps taking advantage of it to easily save game progress.

No comments:

Post a Comment