• 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!
  • 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.

Adding Additional Resolution Error Message

Dylanrockin

That guy
  • 275
    Posts
    14
    Years
    • Seen Jun 9, 2016
    I used this tutorial:https://pokemonessentials.wikia.com/wiki/Tutorial:Adding_Additional_Resolution_Options, so that I could add additional resolutions. I did everything in the tutorial and it worked fine, but two things happened: one was an error message the other when I full screen the game it isn't really full screened but focused on one part of the screen. I noticed that whenever I closed my game and reloaded it, the games resolution would go back to the normal 512 resolution. So I decided to save my game, hoping my settings would save, but upon opening the game this happened.

    The error message that I got said: Script 'ScriptResizer' line 149: NoMethodError occured.

    undefined method '*' for nil:NilClass


    Here's the part of the script I have edited:

    Spoiler:

    The below script is the script it's asking me to change or something, I'm not sure if it knows "factor" or something?

    Spoiler:
     
    Last edited:
    You can continue testing, by just deleting the savefile.

    Also I attempted to solve this error, I did..... in a way...
    I went to PokemonSystem section and added in my new resizefactors on line #74.

    This removed the first error, however cause this error:
    Code:
    ---------------------------
    Pokemon Essentials
    ---------------------------
    Exception: NoMethodError
    
    Message: undefined method `*' for nil:NilClass
    
    SpriteResizer:225:in `initialize'
    
    SpriteResizer:548:in `new'
    
    SpriteResizer:548:in `initializeInternal'
    
    SpriteResizer:541:in `initialize'
    
    SpriteResizer:612:in `new'
    
    SpriteResizer:612:in `setScreenBorderName'
    
    Main:32:in `mainFunctionDebug'
    
    Main:15:in `mainFunction'
    
    Main:15:in `pbCriticalCode'
    
    Main:15:in `mainFunction'
    
    
    
    This exception was logged in ./errorlog.txt.
    
    Press Ctrl+C to copy this message to the clipboard.
    ---------------------------
    OK   
    ---------------------------

    Odd as it is, it looks like the same error, except this one does not show until after the game compiles the data.
     
    You can continue testing, by just deleting the savefile.

    Also I attempted to solve this error, I did..... in a way...
    I went to PokemonSystem section and added in my new resizefactors on line #74.

    This removed the first error, however cause this error:
    Code:
    ---------------------------
    Pokemon Essentials
    ---------------------------
    Exception: NoMethodError
    
    Message: undefined method `*' for nil:NilClass
    
    SpriteResizer:225:in `initialize'
    
    SpriteResizer:548:in `new'
    
    SpriteResizer:548:in `initializeInternal'
    
    SpriteResizer:541:in `initialize'
    
    SpriteResizer:612:in `new'
    
    SpriteResizer:612:in `setScreenBorderName'
    
    Main:32:in `mainFunctionDebug'
    
    Main:15:in `mainFunction'
    
    Main:15:in `pbCriticalCode'
    
    Main:15:in `mainFunction'
    
    
    
    This exception was logged in ./errorlog.txt.
    
    Press Ctrl+C to copy this message to the clipboard.
    ---------------------------
    OK   
    ---------------------------

    Odd as it is, it looks like the same error, except this one does not show until after the game compiles the data.

    Yeah I found out that I can delete my save file (God I am an idiot), I also tried doing the above mentioned thinking it would do something but no luck. It seems I can't save my game in it's resized form, or else I get that message.
     
    Dylanrockin, if you could post a message about this on the Talk page for that tutorial, I would really appreciate it. I didn't foresee that issue when I wrote it, and having a note about it could help other people in the future.

    I totally joined the pokecommunity forums just to reply to this thread. It's good to see people using my tutorials and such.
     
    Ahah! I fixed it, and now I feel dumb for completely skipping over it.

    Go to PokemonSystem section and find:
    Code:
      if !$INEDITOR
        $PokemonSystem=pokemonSystem
        $game_system=Game_System
        $ResizeOffsetX=[0,0][$PokemonSystem.screensize]
        $ResizeOffsetY=[0,0][$PokemonSystem.screensize]
        resizefactor=[0.5,1.0][$PokemonSystem.screensize]
        pbSetResizeFactor(resizefactor)

    and change to:
    Code:
      if !$INEDITOR
        $PokemonSystem=pokemonSystem
        $game_system=Game_System
        $ResizeOffsetX=[0,0,0,0][$PokemonSystem.screensize]
        $ResizeOffsetY=[0,0,0,0][$PokemonSystem.screensize]
        resizefactor=[0.5,1.0,1.25,1.5][$PokemonSystem.screensize]
        pbSetResizeFactor(resizefactor)
      else

    I almost had it... but didn't realize the offsets worked the same way.
     
    Back
    Top