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

Help with EBS issues

350
Posts
5
Years
  • Another error pops out-
    Script 'EliteBattle_BitmapWrapper' line 368:NoMethodError occured

    undefined method 'isVersion17?' for nil:NilClass
     
    Last edited:
    1,682
    Posts
    8
    Years
    • Seen today
    def isVersion17? is a utility function t hat checks if one of the renamed classes exists (if so, probably v17) I think earlier downloads of Marin's copy of EBS missed that function, provided my memory didn't fail me.
    Try redownloading it, as I'm sure he's fixed it by now, but worry case scenario, make your own that always returns true for your v17 projects (must return false for v16)
    Code:
    def isVersion17?
      return true
    end
    don't use this unless the new download is also missing EBS.
     
    350
    Posts
    5
    Years
  • Hey!!I had forgot to Put PositionerScripts.rxdata!!!Thats why i was facing these errors...But What to do with PositionerScripts.rxdata????
     
    Last edited:
    350
    Posts
    5
    Years
  • It worked!!!The System Worked!!!!!
    But Now when i Enter a battle it gives an error -

    ###########################
    [Pokemon Essentials version 17.2]
    Exception; NoMethodError
    Message: undefined method 'length' for nil:NilClass
    PItem_Bag:101:in 'Quantity'
    Pitem_Bag:106:in 'pbHasItem?'
    PField_Encounters:345:in 'pbGenerateWildPokemon'
    PField_Battles:88:in 'pbWildBattle_ebs'
    EliteBattle_EntryAnimations: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'
    FollowPokemon:1463:in 'update'
    ########################
    But I dont get this error when i open the bag before a wild battle



    ------Does The Next Gen UI not Support Mouse Module ???
     
    1,403
    Posts
    10
    Years
    • Seen Apr 29, 2024
    But I dont get this error when i open the bag before a wild battle

    I assume that means the bag isn't initialized until it's first opened, and that starting a battle without initializing the bag causes it to crash.

    You could try finding the code that initializes the bag, and making it run immediately after the game starts (i.e. just before the first map loads/after the player chooses Continue/New Game).
     

    Damien.aspiring.fandev

    Chapter 16 A New Dawn { ||:^❩ )
    960
    Posts
    7
    Years
  • ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦
    Oh gosh, you mean an other fan-dev released EBS for v17,2?
    ... can we hav link pls?
    Help with EBS issues

    ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦
     
    350
    Posts
    5
    Years
  • ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦
    Oh gosh, you mean an other fan-dev released EBS for v17,2?
    ... can we hav link pls?
    Help with EBS issues

    ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦
    Link......https://mobile.twitter.com/MarinMakesGames/status/1021134167906701312
     
    350
    Posts
    5
    Years
  • I assume that means the bag isn't initialized until it's first opened, and that starting a battle without initializing the bag causes it to crash.

    You could try finding the code that initializes the bag, and making it run immediately after the game starts (i.e. just before the first map loads/after the player chooses Continue/New Game).


    Should i Replace the whole pokemon essentials again????Since i am new to Programming,Can i know how to it???I know some examples of initializing objects in ruby...
     
    1,403
    Posts
    10
    Years
    • Seen Apr 29, 2024
    Should i Replace the whole pokemon essentials again?
    I guess you can, but you'll probably get the same errors. Computers aren't magical, if you write the same code/do the same things you'll get the same results.

    Since i am new to Programming,Can i know how to it???I know some examples of initializing objects in ruby...
    Uh. I don't know what you're asking.

    Your error message starts like this:
    Code:
    Message: undefined method 'length' for nil:NilClass
    PItem_Bag:101:in 'Quantity'
    So you're going to have to look at line 101, work out what thing is unexpectedly nil (if the code says something.length then it will probably be the something). And then work out how to prevent it being nil.

    That probably means finding the code in Essentials that runs when the bag is opened, and seeing if it does something like:
    Code:
    if somethingElse==nil
      somethingElse=...
    end
    And copying that somewhere useful. Possibly just above line 101. somethingElse may or may not have the same name as something.

    That's the quick description of the quick hack to fix the problem.
     

    Damien.aspiring.fandev

    Chapter 16 A New Dawn { ||:^❩ )
    960
    Posts
    7
    Years
  • ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦
    I wonder... the EBS download includes the resources, but lacks the scripts...
    I do, have scripts here, but they're for E v.16, and attempting to use scripts
    and resources on v17,2 results in the displaying of Hilbert cosplaying as Red and
    the battling pokémon to have their full .png files instead of one frame at once,
    with nothing else changed at first glance (soil roundels, background, health bars and interface remain the same)...
    Did you find the updated scripts somewhere? Or, did you perhaps update the old scripts by yourself?
    If the latter, you could take over the abandoned EBS and be hailed as its resurrector,
    without needing to further update it either due to a thing that happened a while ago!

    ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦
     
    350
    Posts
    5
    Years
  • I guess you can, but you'll probably get the same errors. Computers aren't magical, if you write the same code/do the same things you'll get the same results.


    Uh. I don't know what you're asking.

    Your error message starts like this:
    Code:
    Message: undefined method 'length' for nil:NilClass
    PItem_Bag:101:in 'Quantity'
    So you're going to have to look at line 101, work out what thing is unexpectedly nil (if the code says something.length then it will probably be the something). And then work out how to prevent it being nil.

    That probably means finding the code in Essentials that runs when the bag is opened, and seeing if it does something like:
    Code:
    if somethingElse==nil
      somethingElse=...
    end
    And copying that somewhere useful. Possibly just above line 101. somethingElse may or may not have the same name as something.

    That's the quick description of the quick hack to fix the problem.

    Thank You!!!I understood the Problem!!! It was "bag.length"
    GUESS WHAT??I FIXED IT !!!
    THANK U MAN!!!
    YOU'RE GREAT
     
    38
    Posts
    5
    Years
    • Seen Feb 21, 2022
    It worked!!!The System Worked!!!!!
    But Now when i Enter a battle it gives an error -

    ###########################
    [Pokemon Essentials version 17.2]
    Exception; NoMethodError
    Message: undefined method 'length' for nil:NilClass
    PItem_Bag:101:in 'Quantity'
    Pitem_Bag:106:in 'pbHasItem?'
    PField_Encounters:345:in 'pbGenerateWildPokemon'
    PField_Battles:88:in 'pbWildBattle_ebs'
    EliteBattle_EntryAnimations: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'
    FollowPokemon:1463:in 'update'
    ########################
    But I dont get this error when i open the bag before a wild battle



    ------Does The Next Gen UI not Support Mouse Module ???

    How did you solve the first problem?
     
    38
    Posts
    5
    Years
    • Seen Feb 21, 2022
    def isVersion17? is a utility function t hat checks if one of the renamed classes exists (if so, probably v17) I think earlier downloads of Marin's copy of EBS missed that function, provided my memory didn't fail me.
    Try redownloading it, as I'm sure he's fixed it by now, but worry case scenario, make your own that always returns true for your v17 projects (must return false for v16)
    Code:
    def isVersion17?
      return true
    end
    don't use this unless the new download is also missing EBS.

    When I use this it gives me a new error:

    Script 'EliteBattle_Scene' line 1855: NameError occurred.

    Uninitialized constance PokeBattle_Scene::INCLUDEGEN6
     

    Poq

    144
    Posts
    6
    Years
    • Seen Aug 28, 2021
    A lot of these general methods are designed in Luka's Utilities, which is a separate download.
    You can get it here.
     
    3
    Posts
    4
    Years
    • Seen Dec 18, 2020
    i am getting this error even though I have all the scripts in
    Exception: NameError
    Message: uninitialized constant VIEWPORT_HEIGHT
    EliteBattle_5:101:in `pbBattleAnimation'
    Overworld_Random_Encounters:628:in `pbWildBattle_ebs'
    EliteBattle_5:221:in `pbWildBattle'
    Debug_Menu:301:in `pbDebugMenuActions'
    Debug_Menu:744:in `pbDebugMenu'
    Debug_Menu:710:in `loop'
    Debug_Menu:746:in `pbDebugMenu'
    PScreen_PauseMenu:251:in `pbStartPokemonMenu'
    PScreen_PauseMenu:250:in `pbFadeOutIn'
    PScreen_PauseMenu:250:in `pbStartPokemonMenu'
     
    Back
    Top