How to crash an RPG Maker MV game intentionally?

chrrsy

Veteran
Veteran
Joined
Feb 5, 2017
Messages
74
Reaction score
14
First Language
English
Primarily Uses
RMMV
I want to get RPG Maker MV to crash/throw up an authentic error message for a part of a game. How can I do this?
To be clear, I don't want to simulate a crash -- I want a genuine crash that'll put up an error message, and one that would be able to triggered at a certain point during gameplay.
Thanks!
 

Ossra

Formerly Exhydra
Veteran
Joined
Aug 21, 2013
Messages
1,076
Reaction score
850
First Language
English
Primarily Uses
RMMV
@Aeonex You could use 'throw'

Code:
throw new Error("Now you've done it ... ");
 

chrrsy

Veteran
Veteran
Joined
Feb 5, 2017
Messages
74
Reaction score
14
First Language
English
Primarily Uses
RMMV
@Aeonex You could use 'throw'

Code:
throw new Error("Now you've done it ... ");
Thanks!
I put it in a script command and it didn't do anything. Am I doing something wrong?
 

Ossra

Formerly Exhydra
Veteran
Joined
Aug 21, 2013
Messages
1,076
Reaction score
850
First Language
English
Primarily Uses
RMMV
@Aeonex Hmm, are you using Yanfly Engine Core?
 

Ossra

Formerly Exhydra
Veteran
Joined
Aug 21, 2013
Messages
1,076
Reaction score
850
First Language
English
Primarily Uses
RMMV
@Aeonex Yanfly Engine Core will attempt to catch and handle any error, unfortunately.
 

chrrsy

Veteran
Veteran
Joined
Feb 5, 2017
Messages
74
Reaction score
14
First Language
English
Primarily Uses
RMMV
@Aeonex Yanfly Engine Core will attempt to catch and handle any error, unfortunately.
Ahh, I see. Any way to continue using it and still have the errors?
 

Ossra

Formerly Exhydra
Veteran
Joined
Aug 21, 2013
Messages
1,076
Reaction score
850
First Language
English
Primarily Uses
RMMV
@Aeonex Yes, although that would mean commenting out some code that is built-in to the plugin. There is no switch to disable the error protection. Comment out line 1849 through 1862 in the Yanfly Engine Core plugin. That should allow for Script Command errors.
 

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

Latest Threads

Latest Posts

Latest Profile Posts


Currently working on the second protagonist's story and her companion, making good progress. But I am looking forward to return to my other protagonist and continue his story and have him joined by a new companion. :)
mlogan wrote on alltheyuriz's profile.
Please be aware that our Status rules ask members not to make more than 2 status updates in 24 hours.
rux
Just 80% of my motivation on game making lmao, anyone got tips on how to not be unmotivated?
I've signed up for a job training program for people with Asperger's Syndrome. I went to a "test run" today so they could see how well I did with simple jobs, and I amazed them. Most new people do it in 30+ minutes, while I finished in a mere 15 minutes. Gives me time to work on a screenplay for Studio MDHR...

Forum statistics

Threads
105,470
Messages
1,013,927
Members
137,109
Latest member
Springy120
Top