• 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!
  • It's time to vote for your favorite Pokémon Battle Revolution protagonist in our new weekly protagonist poll! Click here to cast your vote and let us know which PBR protagonist you like most.
  • 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.

[Error] Help defining viewport height and viewport offset

  • 1
    Posts
    5
    Years
    • Seen Jun 14, 2019
    In pokemon essentials, in the process of instaling EBS, i recieved the following error:

    Exception: NameError
    Message: uninitialized constant VIEWPORT_HEIGHT
    EliteBattle EntryAnimation:101:in `pbBattleAnimation'
    PField_Battles:96:in `pbWildBattle_ebs'
    EliteBattle EntryAnimation:221:in `pbWildBattle'
    PField_Field:387:in `pbBattleOnStepTaken'
    PField_Field:368:in `pbOnStepTaken'
    Game_Player:461:in `update_old'
    Game_Player_Visuals:71:in `follow_update'
    Follow Pokemon:1463:in `update'
    Scene_Map:162:in `follow_update'
    Scene_Map:159:in `loop'

    in the entryanimation script it says the following:

    If you'd like to use just the new transitions from EBS for your project,
    # you'll also need to copy over the EliteBattle_Sprites section of the scripts
    # to your project, as well as the configurations for the following constants:
    # - VIEWPORT_HEIGHT
    # - VIEWPORT_OFFSET

    I have placed the elite battle sprites script, but i do not know what to do about the configuration of viewport height and the viewport offset
    help please!
     
    Last edited:
    In pokemon essentials, in the process of instaling EBS, i recieved the following error:

    Exception: NameError
    Message: uninitialized constant VIEWPORT_HEIGHT
    EliteBattle EntryAnimation:101:in `pbBattleAnimation'
    PField_Battles:96:in `pbWildBattle_ebs'
    EliteBattle EntryAnimation:221:in `pbWildBattle'
    PField_Field:387:in `pbBattleOnStepTaken'
    PField_Field:368:in `pbOnStepTaken'
    Game_Player:461:in `update_old'
    Game_Player_Visuals:71:in `follow_update'
    Follow Pokemon:1463:in `update'
    Scene_Map:162:in `follow_update'
    Scene_Map:159:in `loop'

    in the entryanimation script it says the following:

    If you'd like to use just the new transitions from EBS for your project,
    # you'll also need to copy over the EliteBattle_Sprites section of the scripts
    # to your project, as well as the configurations for the following constants:
    # - VIEWPORT_HEIGHT
    # - VIEWPORT_OFFSET

    I have placed the elite battle sprites script, but i do not know what to do about the configuration of viewport height and the viewport offset
    help please!

    Have you installed Luka's Utilities?
     
    Back
    Top