public

Rpg Maker Developers Group

Simple enough for a child, powerful enough for a developer

2 Followers

How to make RMMV ignore error and just proceed?

BMM Archive · July 15, 2026

Preserved forum archive. This topic stores the original first post and locally mirrored RPG Maker Web attachments when available. It is posted by the BMMPlay archive account, not by the original creator.

Original Source

  • Original title: How to make RMMV ignore error and just proceed?
  • Original author: vectorinox
  • Original date: January 29, 2017
  • Source thread: https://forums.rpgmakerweb.com/threads/how-to-make-rmmv-ignore-error-and-just-proceed.74265/
  • Source forum path: Game Development Engines > RPG Maker Javascript Plugins > Javascript/Plugin Support

Summary

As an example, this is one of my code that counts every events within 3 tiles of the player. try { for (var i =1; i { if (Math.abs($gameMap.events().x - $gamePlayer.x) { if (Math.abs($gameMap.events().y - $gamePlayer.y)

Archived First Post

As an example, this is one of my code that counts every events within 3 tiles of the player.

try { for (var i =1; i<300; i++)


{ if (Math.abs($gameMap.events().x - $gamePlayer.x) <= 3)


{ if (Math.abs($gameMap.events().y - $gamePlayer.y) <= 3)


{ $gameVariables.setValue(14, $gameVariables.value(14) + 1)


}}}} catch(err){}

 


Now the code doesn't matter, but what really annoys me that the game sometimes randomly throw this error:


Protected download


Which is the reason I include "try { } catch(err) { }" in the code, so it will just proceed instead of crashing.


But this too, apply to all codes in the game. Sometime an error appear and I can't figure out why or where. So it is best to just ignore it (not the best option, I know).


But placing the "try { } catch(err) { }" line in every code in the game is tedious and not elegant. 


So is there a line in the RMMV error handling that can be modified to ignore any errors and just proceed?

Downloads / Referenced Files

Log in to download

Log in, then follow the RPG Maker Developers Group to see these download links.

Log in to download

Referenced Images / Attachments

Untitled-1.jpg
Untitled-1.jpg
Creator Claims / Removal

If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.

#rpg-maker-archive#js-support

Replies (0)

No replies yet.

0 replies 1 view

Log in to reply.

User Avatar