• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist poll!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

"Uninitialized constant PBMoveRoute" error

JokerBen

Director of Pokémon Nobelium
  • 239
    Posts
    12
    Years
    • Seen Aug 29, 2023
    This is odd. I know what some of it means, but not all...Help?

    ---------------------------
    Pokemon Essentials
    ---------------------------
    Exception: NameError

    Message: uninitialized constant PBMoveRoute

    Compiler:3138:in `pbAddPassageList'

    Compiler:3353:in `pbFixEventUse'

    Compiler:3248:in `pbEachPage'

    Compiler:3221:in `each'

    Compiler:3221:in `pbEachPage'

    Compiler:3248:in `pbFixEventUse'

    Compiler:2977:in `pbCompileTrainerEvents'

    Compiler:2962:in `each'

    Compiler:2962:in `pbCompileTrainerEvents'

    Compiler:2957:in `each'



    This exception was logged in

    C:\Users\Ben\Saved Games/Pokemon_ Adventures in Kanto/errorlog.txt.

    Press Ctrl+C to copy this message to the clipboard.
    ---------------------------
    OK
    ---------------------------
     
    The compiler has found an event it thinks is a door, so it's trying to turn it into a proper door event with all the correct event commands. The event is one with a single page containing a "Transfer Player" command, has no graphic, and is between impassable tiles like so (green O is the event):

    Code:
    [COLOR=Red]X X[/COLOR]
    [COLOR=Red]X[/COLOR][COLOR=Green]O[/COLOR][COLOR=Red]X[/COLOR]
    That's not the error. That's when the error appears, and it gives you something to look for.

    In your scripts, have a look for module PBMoveRoute and see if there's a Down=1 line in it. If not, there should be. If there is, find the problem event and adjust it so that it's not recognised as a probable door (the simplest way would be to copy-paste its event page without making any changes).

    Oh, and I took the liberty of changing this thread's title to one that's actually descriptive. You know, like the rules say you should do.
     
    The compiler has found an event it thinks is a door, so it's trying to turn it into a proper door event with all the correct event commands. The event is one with a single page containing a "Transfer Player" command, has no graphic, and is between impassable tiles like so (green O is the event):

    Code:
    [COLOR=Red]X X[/COLOR]
    [COLOR=Red]X[/COLOR][COLOR=Green]O[/COLOR][COLOR=Red]X[/COLOR]
    That's not the error. That's when the error appears, and it gives you something to look for.

    In your scripts, have a look for module PBMoveRoute and see if there's a Down=1 line in it. If not, there should be. If there is, find the problem event and adjust it so that it's not recognised as a probable door (the simplest way would be to copy-paste its event page without making any changes).

    Oh, and I took the liberty of changing this thread's title to one that's actually descriptive. You know, like the rules say you should do.

    Well, you got me this time with the rules... But thanks for the help! It turns out, after
    I get the error, (I did it through the external editor) I play it through Debug and save it, then it works on the editor again!
     
    Ah, External Editor. Yeah, that doesn't have the module I mentioned, hence the error.

    Generally speaking, it's probably best not to try compiling from the External Editor, for this reason. When doing a full compile, do it from within RMXP.
     
    Back
    Top