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

Help with EBS issues

Another error pops out-
Script 'EliteBattle_BitmapWrapper' line 368:NoMethodError occured

undefined method 'isVersion17?' for nil:NilClass
 
Last edited:
are you using Essentials 17?

That seems to be what it's asking.
 
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.
 
Hey!!I had forgot to Put PositionerScripts.rxdata!!!Thats why i was facing these errors...But What to do with PositionerScripts.rxdata????
 
Last edited:
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 ???
 
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).
 
❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦
Oh gosh, you mean an other fan-dev released EBS for v17,2?
... can we hav link pls?
[PokeCommunity.com] Help with EBS issues

❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦
 
❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦
Oh gosh, you mean an other fan-dev released EBS for v17,2?
... can we hav link pls?
[PokeCommunity.com] Help with EBS issues

❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦
Link......https://mobile.twitter.com/MarinMakesGames/status/1021134167906701312
 
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...
 
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.
 
❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦
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!

❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦ ❦
 
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
 
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?
 
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
 
A lot of these general methods are designed in Luka's Utilities, which is a separate download.
You can get it here.
 
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