How to make a sound play when the game crashes.

Joined
Apr 17, 2013
Messages
283
Reaction score
5
First Language
English
Primarily Uses
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?
 

??????

Diabolical Codemaster
Veteran
Joined
May 11, 2012
Messages
6,513
Reaction score
3,202
First Language
Binary
Primarily Uses
RMMZ
Hmmm.... Interesting question...
 

Sausage_Boi

Game Dev. "Artist."
Veteran
Joined
Sep 10, 2014
Messages
1,733
Reaction score
681
First Language
Americanese
Primarily Uses
RMVXA
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.)
 

BoluBolu

Veteran
Veteran
Joined
Apr 24, 2014
Messages
452
Reaction score
117
Primarily Uses
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 .
 
 
Joined
Apr 17, 2013
Messages
283
Reaction score
5
First Language
English
Primarily Uses
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.

But it does play the sound when the game crashes so that's a good thing.
 

BoluBolu

Veteran
Veteran
Joined
Apr 24, 2014
Messages
452
Reaction score
117
Primarily Uses
Well I don't really test it though :p . Okay I see what I can do about that.

 
 

BoluBolu

Veteran
Veteran
Joined
Apr 24, 2014
Messages
452
Reaction score
117
Primarily Uses
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.
 

??????

Diabolical Codemaster
Veteran
Joined
May 11, 2012
Messages
6,513
Reaction score
3,202
First Language
Binary
Primarily Uses
RMMZ
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.
 

Indinera

Indie Dev
Veteran
Joined
Mar 13, 2012
Messages
1,970
Reaction score
846
First Language
French
Ask yourself how to make the game not to crash instead ;)
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
What is your reason for wanting something like this?

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.
RGSS error is fine. That's how you can capture stack traces.
 
Last edited by a moderator:

??????

Diabolical Codemaster
Veteran
Joined
May 11, 2012
Messages
6,513
Reaction score
3,202
First Language
Binary
Primarily Uses
RMMZ
@Tsuki - lol yea thats true, never thought of that :D
 
Joined
Apr 17, 2013
Messages
283
Reaction score
5
First Language
English
Primarily Uses
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.
 
Joined
Apr 17, 2013
Messages
283
Reaction score
5
First Language
English
Primarily Uses
What is your reason for wanting something like this?

RGSS error is fine. That's how you can capture stack traces.
I guess I don't really know, I just wanna give a little more flare to a crash error I suppose.
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,522
Reaction score
14,255
First Language
English
Primarily Uses
RMVXA
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.
 
Joined
Apr 17, 2013
Messages
283
Reaction score
5
First Language
English
Primarily Uses
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.
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,522
Reaction score
14,255
First Language
English
Primarily Uses
RMVXA
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.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
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 ;)
 
Joined
Apr 17, 2013
Messages
283
Reaction score
5
First Language
English
Primarily Uses
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.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:

Forum statistics

Threads
105,854
Messages
1,016,998
Members
137,562
Latest member
tamedeathman
Top