Gravityhamster48
Member
Howdy all!
I have a question concerning my game GunDown.
I noticed that in (to my knowledge it only happens in) world 3 on any stage that very rarely, the game crashes when you go to the shop. Straight up shuts down. It does not freeze. It does not report any error. The problem is: GunDown is randomly generated. VERY randomly generated. And (lesson learned) when I created the engine for my game I neglected to add seeding. I'm virtually too far down the road to add seeding (post-release) so I'll just have to make it a lesson for later. The problem this causes is that I cannot test the issue. It is totally random whether the crash happens or not and it seldom happens. Like, for as many times as I've played through the game and gone to the shop and played in World 3, the game has only crashed maybe 4 or 5 times without a report, each time being related to this behavior.
So here's the thing: from my experience of making games in GameMaker, I've known the program to freeze if you have an infinite loop (duh), fail to start and throw a compiling error, crash and tell you the game ran out of memory, or crash and return an error report. Additionally, on insanely rare occasions, I've had a game crash without any indication of what went wrong. This has only happened in two of my projects and they were both my longest running and largest projects: GunDown and another un-released game that I quit making. With the latter, I fixed the issue, but I don't even remember how and I'm not sure I even understood why what I did fixed it.
Question 1: My assumption is that my project corrupted somewhere. Considering the game doesn't freeze, I assume it's not an infinite loop. Considering the game doesn't return an error message, I'm guessing I don't have a code problem (I could be wrong, though). And considering it doesn't say it ran out of memory, I would think it doesn't have anything to do with, well, running out of resources. Am I somewhat accurate in assuming this? Does someone have any knowledge on a game suddenly shutting off?
With that assumption, I decided to import everything into a fresh, empty project file. I did this by exporting all the resources into an extension and importing them into the new project file. The game compiles and runs fine though I haven't tested for the crash yet (which will be an ordeal to do).
Question 2: Will exporting into an extension and importing the files into the new project carry the corruption with it? Or is there no way to know?
My guess is it depends if the corruption is within an object or within some underlying piece of the project whether or not this will actually resolve the issue.
UPDATE:
Exporting into an extension and importing the files into the new project did not fix the crash.
UPDATE 2:
It appears to be related to a while loop after all. I fixed one loop that was crashing it, but I seem to have something else crashing as well. Will update with a solution later on. (If I can find one)
Thank you in advance and let me know if you have any questions,
~Gravityhamster
I have a question concerning my game GunDown.
I noticed that in (to my knowledge it only happens in) world 3 on any stage that very rarely, the game crashes when you go to the shop. Straight up shuts down. It does not freeze. It does not report any error. The problem is: GunDown is randomly generated. VERY randomly generated. And (lesson learned) when I created the engine for my game I neglected to add seeding. I'm virtually too far down the road to add seeding (post-release) so I'll just have to make it a lesson for later. The problem this causes is that I cannot test the issue. It is totally random whether the crash happens or not and it seldom happens. Like, for as many times as I've played through the game and gone to the shop and played in World 3, the game has only crashed maybe 4 or 5 times without a report, each time being related to this behavior.
So here's the thing: from my experience of making games in GameMaker, I've known the program to freeze if you have an infinite loop (duh), fail to start and throw a compiling error, crash and tell you the game ran out of memory, or crash and return an error report. Additionally, on insanely rare occasions, I've had a game crash without any indication of what went wrong. This has only happened in two of my projects and they were both my longest running and largest projects: GunDown and another un-released game that I quit making. With the latter, I fixed the issue, but I don't even remember how and I'm not sure I even understood why what I did fixed it.
Question 1: My assumption is that my project corrupted somewhere. Considering the game doesn't freeze, I assume it's not an infinite loop. Considering the game doesn't return an error message, I'm guessing I don't have a code problem (I could be wrong, though). And considering it doesn't say it ran out of memory, I would think it doesn't have anything to do with, well, running out of resources. Am I somewhat accurate in assuming this? Does someone have any knowledge on a game suddenly shutting off?
With that assumption, I decided to import everything into a fresh, empty project file. I did this by exporting all the resources into an extension and importing them into the new project file. The game compiles and runs fine though I haven't tested for the crash yet (which will be an ordeal to do).
Question 2: Will exporting into an extension and importing the files into the new project carry the corruption with it? Or is there no way to know?
My guess is it depends if the corruption is within an object or within some underlying piece of the project whether or not this will actually resolve the issue.
UPDATE:
Exporting into an extension and importing the files into the new project did not fix the crash.
UPDATE 2:
It appears to be related to a while loop after all. I fixed one loop that was crashing it, but I seem to have something else crashing as well. Will update with a solution later on. (If I can find one)
Thank you in advance and let me know if you have any questions,
~Gravityhamster
Last edited: