The World of Rijon

The official home of Pokémon Brown, Prism and rijonAdventures.

Extras - Implementing error codes in a hack

rijonAdventures and other hacks created by Haruki Hanai follow a simple, 5-digit numerical code-based system for identifying errors and providing solutions to these errors. The tables on the Error Codes page indicate common error codes that players of your hack may encounter while playing the game. They also cover errors that can be resolved in a normal Pokémon game - these games do not display error codes, but the errors may be relevant to the user of your game.

This system is for the use of Pokémon Ruby, Sapphire, FireRed, LeafGreen and Emerald only, as they are the games in the series that are critical with these errors.

This page exists to allow users of your game to identify errors that exist in the Pokémon games already - it should not be used for identifying glitches or bugs placed by you in the game, but errors such as the inability to save. The implementation stage detailed on this page provides steps for you to use this system in your hack.

Developer implementation

If you have your own hack, try to access the text points in your text editor (A-Text) or hex editor (with a table file) and re-point text.

Where ever a message appears, replace it with a message similar to the style indicated below:

ERROR CODE: 00001
The game cannot be saved due to a battery error.
Please refer to http://rijon.nintendo-net.com/errorcodes.html for more information.

The style shown above is to notify the player of the lack of the backup battery. The original message, for instance, read as "Save error. Please exchange the backup memory." This doesn't inform a person using VisualBoyAdvance or the sort of what to do. The system exists to rectify that - a standard URL is given - all the player will have to do is look up the error code on the Error Codes page here and their problem should be fixed.

As a flexibility, the URL doesn't have to link back here. If you have a page on a site somewhere, you may use the error codes table (with the same codes defined for each situation) as long as you link back to the error codes page here.

If you do implement this system,

  1. Change text blocks with errors to error codes and a text block matching the style shown above.
    • If you find an error and there's no error code matching the problem, contact me and I'll add a new error code.
  2. Contact me and your hack will be added into the "Hacks using this system" box.
    • Ensure that the email contains the hack name and the hack's website. If no website is available, a forum thread URL may be used.