Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

What causes "Game.exe has encountered a problem" type errors?

Hi, I'm having some trouble, trying to integrate RGSS2 into my XP game. The errors seem to happen at random, and it isn't a game error as such so does not point me to a line.

The error is the standard "Game.exe has encountered a problem and has had to close".

I am using the legal version of XP (I know the old PK version used to get this error a lot), but am using RGSS2 within my game as per Dargor's tutorial.

I'm wondering if anyone knows what typically sparks this error, so I can try and fix it. It seems to happen at random, but if there's a common trigger that seems to set it off it would be useful to know. :)
 
I have the same problem. It occures when you change from a scene to another (somethimes with a delay of like 4-5 seconds after the scene change).
As for me, it happens mostly with my FF6 SDK (XP+RGSS2) but it also happens on VX and I really don't know why. :(
I'm still trying to figure this shit out...
 

Zeriab

Sponsor

I remember I got such an error when playing around with DLL files and calls. It might happen if the DLL call crash.
I am not at all sure though it might be worth a check
 
Alot of the times when I encounter a "Critical Error at Address ??????" message, quite simply, it'll have something to do with a bitmap or window or something that didn't dispose. As stupid as that sounds, you'd think it'd give you a more precise message, and sometimes it does, it'll tell you "RGSS Error failed to dispose" or something, but not always.

Even using SDK::Scene_Base, which does a great job of disposing of most instance variables which respond to 'dispose', it doesn't dispose anything and everything that responds to dispose. For instance, if you're storing a disposable object in an array, and the array itself is held in an instance variable, then most likely I don't think that those objects will dispose, so during 'main_dispose' you'll have to do something like...

super
@array_of_windows.each do |win|
  win.dispose
end

I'm sure theres other things too, I think perhaps it happens if you do a File.open and forget to File.close later on, or if you delete an open file. I'll look into this more, I know I've gotten this error the other night.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top