This game is crashing after the first round in the editor. - Printable Version +- 2DWorlds Forums (http://2dworlds.buildism.net/forum) +-- Forum: 2DWorlds (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=4) +--- Forum: Bug Reports (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=23) +--- Thread: This game is crashing after the first round in the editor. (/showthread.php?tid=109) |
This game is crashing after the first round in the editor. - Ghosty - 11-26-2012 It's basically a remake of my old Asteroid Dodgers (or Meteor Shower or whatever I called it) from the old site, totally redone from scratch. I need to work on adding the final touches and some balancing to make it actually survivable, but it should be working just fine. However, when I load it in the editor and hit play, after it completes the first round, I get a NegativeArrayException. Code: java.lang.NegativeArraySizeException Any ideas why? I'm going to try to debug it some more later, but if anyone else can help that'd be great. http://2dworlds.org/game.php?id=31 Here's the script I believe to be the problem: Code: function checkWhoSurvived() The game freezes, and then the music begins to play again. So I suspect the problem is somewhere here: game.World.BGM:play() game.World.Meteors.Create.Value = true ticky(140, 140) EDIT: It is also now crashing with this error at other times as well. RE: This game is crashing after the first round in the editor. - Ghosty - 12-07-2012 At some point in the past week or two, this bug seems to have been fixed. Thanks, Jacob! RE: This game is crashing after the first round in the editor. - Ghosty - 12-16-2012 It's back. :/ Same error, and like before, only happens at the end of the first round. |