• 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.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Dawn, Gloria, Juliana, or Summer - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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.

"filename is nil" error for a Pokémon sprite

  • 2
    Posts
    10
    Years
    • Seen Jul 5, 2024
    Um hi, this error has stopped me from being able to play test. I'm using v16, and I have made custom sprites, and maps.

    ---------------------------
    Pokemon Essentials
    ---------------------------
    Exception: RuntimeError
    Message: filename is nil
    SpriteWindow:218:in `initialize'
    Pokemon_Sprites:188:in `new'
    Pokemon_Sprites:188:in `pokemon='
    Pokemon_Sprites:174:in `initialize'
    PScreen_Load:172:in `new'
    PScreen_Load:172:in `pbSetParty'
    PScreen_Load:171:in `each'
    PScreen_Load:171:in `pbSetParty'
    PScreen_Load:323:in `pbStartLoadScreen'
    Main:6:in `main'
    ---------------------------
     
    Um hi, this error has stopped me from being able to play test. I'm using v16, and I have made custom sprites, and maps.

    ---------------------------
    Pokemon Essentials
    ---------------------------
    Exception: RuntimeError
    Message: filename is nil
    SpriteWindow:218:in `initialize'
    Pokemon_Sprites:188:in `new'
    Pokemon_Sprites:188:in `pokemon='
    Pokemon_Sprites:174:in `initialize'
    PScreen_Load:172:in `new'
    PScreen_Load:172:in `pbSetParty'
    PScreen_Load:171:in `each'
    PScreen_Load:171:in `pbSetParty'
    PScreen_Load:323:in `pbStartLoadScreen'
    Main:6:in `main'
    ---------------------------

    You really should be more detailed about what you did. Making new maps can in no way break your game, nor can adding new sprites. Did you remove or edit something?
     
    Last edited:
    Maruna sir please help me...
    everytime it shows filename.nil
    then i rename it and play my game a little and then save it.
    after it when again i run my game to play from where i saved it again shows filename is nil.
    the process repeats again and again. please help
     
    Maruna sir please help me...
    everytime it shows filename.nil
    then i rename it and play my game a little and then save it.
    after it when again i run my game to play from where i saved it again shows filename is nil.
    the process repeats again and again. please help

    When you get the filename is nil error on the load screen, you have a missing icon for a pokemon in your party, usually from a save with a different project. You can separate the save file by renaming the project in RMXP (Game>Change Title...), or by going to your Saved Games folder and deleting Game.rxdata from the folder that has the name of your project.
     
    Thankyou Vendily, I wanted a reply frm u only.
    though there's a problem...everytime i save my game everytime the error comes. and then everytime i have to rename my project
     
    Back
    Top