Apr 6, 2012

Once in a while, Game Maker decides to shit all over your project and piss you off royally.

GMvania currently keeps crashing when I run the executable, citing an "Unexpected error has occurred". I debugged for an hour and narrowed it down to my instance_deactivate_region code (not a script, just the built-in functions). I noticed I had a semantic error, so I fixed it. Still crashed. I changed it to instance_deactivate_all. Still crashed. I changed it to instance_deactivate_object(all). Still crashed.

So I made a FOR loop that would deactivate each instance one at a time and record its object_index to a file. From there I was able to figure out which objects were actually in the room. The game crashed upon reaching the highest object_index in the room. So I tried limiting the FOR loop so it wouldn't deactivate ALL the instances.

After a couple hours of debugging and having only the least-essential instances deactivated (so keeping the status_control, obj_Belmont and prt_ground activated), I've deduced that GM hates me and won't let me run the game with just those three objects in the room. What the hell?!

No comments:

Post a Comment

©TheouAegis Productions™. Powered by Blogger.