Exception `NoMethodError' at [[DBK] Enhanced Battle UI] [002] Selection Menu.rb:277 - undefined method `visible' for nil:NilClass
When I changed the Settings: UI_PROMPT_DISPLAY ==2 to 1 in line 277, pressing the S key still resulted in an error message:
Exception NoMethodError 'at [DBK] Enhanced Battle UI [005] PokeBall UI. rb: 9- undefined method
pbCanUsePokeBall?' for #<SafariBattle>
I deleted the content of line 277 and added "return false if pbInSafari" in def pbToggleBallInfo (idxBattler)?
Solved this error.
Thank you, this helped fix a similar issue I was having after installing all the updated dbk addons. I was receiving the error below during any wild encounter in safari zone. Slight change to your fix though.
Fix:
Inside [[DBK] Enhanced Battle UI] [002] Selection Menu.rb.
I did not delete line 227 and only changed line 9 to "return false if pbInSafari?" under def pbToggleBattleInfo
Error:
[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.9]
Exception: NoMethodError
Message: undefined method `visible' for nil:NilClass
Backtrace:
[[DBK] Enhanced Battle UI] [002] Selection Menu.rb:277:in `block in pbCommandMenuEx'
[[DBK] Enhanced Battle UI] [002] Selection Menu.rb:274:in `loop'
[[DBK] Enhanced Battle UI] [002] Selection Menu.rb:274:in `pbCommandMenuEx'
SafariBattle:233:in `pbSafariCommandMenu'
[Deluxe Battle Kit] [001] Animation Utilities.rb:293:in `block in pbStartBattle'
[Deluxe Battle Kit] [001] Animation Utilities.rb:292:in `loop'
[Deluxe Battle Kit] [001] Animation Utilities.rb:292:in `pbStartBattle'
SafariZone:133:in `block (2 levels) in pbSafariBattle'
Overworld_BattleIntroAnim:55:in `pbSceneStandby'
SafariZone:133:in `block in pbSafariBattle'