In the chance that my game ever crashes, would it possible for a sound to play when game crashes?
Like an "Oops" sound effect or something of the sort?
How to make a sound play when the game crashes.
● ARCHIVED · READ-ONLY
-
-
Hmmm.... Interesting question...
-
You would probably have to change your Windows (OS) settings. I don't know if VXA would handle it without you breaking into the source code. (I am not a programmer, so this is PURELY speculation, maybe someone will have more info.)
-
Hmm.. crash you means because script error? I f yes then maybe this can helps.. :p
class Exception alias :bolu_whatever_script_error :initialize def initialize(*args) bolu_whatever_script_error(*args) RPG::SE.new("Battle1", 100, 100).play end endTry paste that on the very top of the script editor.
Battle1 filename is only an example.
After that try to do something silly, like creating variable or something that cause game crash You'll hear the sound played :p .
-
I tried that and it seems to also play the sound when I'm loading a game or in the save menu.Hmm.. crash you means because script error? I f yes then maybe this can helps.. :p
class Exception alias :bolu_whatever_script_error :initialize def initialize(*args) bolu_whatever_script_error(*args) RPG::SE.new("Battle1", 100, 100).play end endTry paste that on the very top of the script editor.
Battle1 filename is only an example.
After that try to do something silly, like creating variable or something that cause game crash You'll hear the sound played :p .
But it does play the sound when the game crashes so that's a good thing. -
Well I don't really test it though :p . Okay I see what I can do about that.
-
Alright, thank you. :)
-
Uhh well, after I check out, actually my method above is not a good thing to do and should not be used. I'm sorry but I can't help you with this.
-
Well, alright.
-
For somethiing like an RGSS error though, I dont think the Exception class is gonna help at all. It would be nice, but doubtful imo.
-
Ask yourself how to make the game not to crash instead ;)
-
What is your reason for wanting something like this?
RGSS error is fine. That's how you can capture stack traces.For somethiing like an RGSS error though, I dont think the Exception class is gonna help at all. It would be nice, but doubtful imo. -
@Tsuki - lol yea thats true, never thought of that :D
-
It's true that I could stop the crashes from happening. I just wanna make the crash a little more noticeable and also have a little more flare when it happens.
-
I guess I don't really know, I just wanna give a little more flare to a crash error I suppose.What is your reason for wanting something like this?
RGSS error is fine. That's how you can capture stack traces. -
I know a lot of the old games from the 80's and 90's had this feature. It was something of the nature of "Oops, you did something we didn't expect.", then it crashed the game (or exited to dos if it could recover enough to do that). Would be nice to be able to add that, or maybe a prompt telling them to contact the developer to get the error fixed instead of just crashing to desktop.
-
I remember those, I remember in Sonic 1 I think, where they gave you the level select thingy if it crashed.I know a lot of the old games from the 80's and 90's had this feature. It was something of the nature of "Oops, you did something we didn't expect.", then it crashed the game (or exited to dos if it could recover enough to do that). Would be nice to be able to add that, or maybe a prompt telling them to contact the developer to get the error fixed instead of just crashing to desktop.
-
The game that actually came to mind when I posted that was Space Quest 1 (the remade version), though I think almost any of the old Sierra adventure games had the "Oops, you did something we didn't expect" catch-all.
-
I think I would prefer to play a game that didn't crash, than one that did a big song and dance while going about it ;)
-
The next time that there's a game jam type thing, I should totally make that.I think I would prefer to play a game that didn't crash, than one that did a big song and dance while going about it ;)