• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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
4
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:
    350
    Posts
    5
    Years
  • 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?
     
    1,682
    Posts
    8
    Years
    • Seen today
    Attention grabbing Quote

    Hey Andrzinho14! Welcome to PokeCommunity!

    I've moved your thread because the Scripts & Tutorials Section is for, well, Scripts & Tutorials! You can ask questions either here, or if it's related to a script/tutorial, in the relevant thread in the other section.
     
    Back
    Top