• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.
  • The Eevee Expo Game Jam has concluded! 🎉 Head on over to the game jam forum to play through the games.
    Don't forget to come back September 21st to vote for your favorites!
  • Reminder: AI-generated content is not allowed on the forums per the Rules and Regulations. Please contact us if you have any questions!
Enhanced Battle UI [DBK Add-On] [v21.1]

Resource Enhanced Battle UI [DBK Add-On] [v21.1] v2.0.9

Some problems when viewing some move info. Move with function code "HitThreeTimesPowersUpWithEachHit" cannot be viewed before using. Here is the errorlog.
[2024-10-10 17:26:12 +0800]
[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.9]

Exception: NoMethodError
Message: undefined method `+' for nil:NilClass

Backtrace:
009_MoveEffects_MultiHit.rb:83:in `pbBaseDamage'
[[DBK] Enhanced Battle UI] [004] Move Info UI.rb:143:in `pbUpdateMoveInfoWindow'
[[DBK] Enhanced Battle UI] [004] Move Info UI.rb:16:in `pbToggleMoveInfo'
[[DBK] Enhanced Battle UI] [000] Main.rb:237:in `pbFightMenu_Extra'
[Deluxe Battle Kit] [003] Command Menu Refactor.rb:270:in `block in pbFightMenu'
[Deluxe Battle Kit] [003] Command Menu Refactor.rb:221:in `loop'
[Deluxe Battle Kit] [003] Command Menu Refactor.rb:221:in `pbFightMenu'
[Deluxe Battle Kit] [003] Command Menu Refactor.rb:296:in `pbFightMenu'
009_Battle_CommandPhase.rb:231:in `block (2 levels) in pbCommandPhaseLoop'
009_Battle_CommandPhase.rb:222:in `loop'
 
Lucidious89 updated Enhanced Battle UI [DBK Add-On] [v21.1] with a new update entry:

v2.0.5 Update

  • Fixed an issue with the move Triple Kick causing errors when viewed in the Move Info UI.
  • Added placeholder effect description text for custom weather/terrain so that it doesn't cause errors when viewing the Battler Info UI.
  • Battlers that have damage caps set via the "battlerHPCap" midbattle command will now display this in their list of effects in the Battler Info UI.
  • When you have a partner trainer with you in battle, you can now see the Tera Type of their...

Read the rest of this update entry...
 
Seems in the hail weather the description will become "Unknown weather."
This line should be like this, I think.
desc = _INTL("Unknown weather.") if !desc
 
Report: When a pokemon is holding a type gem and after viewing a move boosted by the gem, using a move that shouldn't trigger the gem will still trigger the gem. Adding battler.effects[PBEffects::GemConsumed] = nil after bonus text could solve it.
 
Report: Why do I get this exception while displaying the move infos about Triple Kick, Triple Axel? I'm running the latest version of this plugin and i didn't touched their function (of the moves), neither the enhanced battle ui/deluxe battlekit modules. I read that this was patched. I also tried some tweaks but other than having the value correctly displayed for the first move execution (and later the value of the third hit) or having the correct value displayed, but the damage of the three hits that stays at the move base power, i couldn't get anything to work correctly.
Exception: NoMethodError
Message: undefined method `+' for nil:NilClass

Backtrace:
009_MoveEffects_MultiHit.rb:112:in `pbBaseDamage'
[[DBK] Enhanced Battle UI] [004] Move Info UI.rb:139:in `pbUpdateMoveInfoWindow'
[[DBK] Enhanced Battle UI] [004] Move Info UI.rb:16:in `pbToggleMoveInfo'
[[DBK] Enhanced Battle UI] [000] Main.rb:237:in `pbFightMenu_Extra'
[Deluxe Battle Kit] [003] Command Menu Refactor.rb:270:in `block in pbFightMenu'
[Deluxe Battle Kit] [003] Command Menu Refactor.rb:221:in `loop'
[Deluxe Battle Kit] [003] Command Menu Refactor.rb:221:in `pbFightMenu'
[Deluxe Battle Kit] [003] Command Menu Refactor.rb:296:in `pbFightMenu'
009_Battle_CommandPhase.rb:230:in `block (2 levels) in pbCommandPhaseLoop'
009_Battle_CommandPhase.rb:221:in `loop'
 
Report: Why do I get this exception while displaying the move infos about Triple Kick, Triple Axel? I'm running the latest version of this plugin and i didn't touched their function (of the moves), neither the enhanced battle ui/deluxe battlekit modules. I read that this was patched. I also tried some tweaks but other than having the value correctly displayed for the first move execution (and later the value of the third hit) or having the correct value displayed, but the damage of the three hits that stays at the move base power, i couldn't get anything to work correctly.
Exception: NoMethodError
Message: undefined method `+' for nil:NilClass

Backtrace:
009_MoveEffects_MultiHit.rb:112:in `pbBaseDamage'
[[DBK] Enhanced Battle UI] [004] Move Info UI.rb:139:in `pbUpdateMoveInfoWindow'
[[DBK] Enhanced Battle UI] [004] Move Info UI.rb:16:in `pbToggleMoveInfo'
[[DBK] Enhanced Battle UI] [000] Main.rb:237:in `pbFightMenu_Extra'
[Deluxe Battle Kit] [003] Command Menu Refactor.rb:270:in `block in pbFightMenu'
[Deluxe Battle Kit] [003] Command Menu Refactor.rb:221:in `loop'
[Deluxe Battle Kit] [003] Command Menu Refactor.rb:221:in `pbFightMenu'
[Deluxe Battle Kit] [003] Command Menu Refactor.rb:296:in `pbFightMenu'
009_Battle_CommandPhase.rb:230:in `block (2 levels) in pbCommandPhaseLoop'
009_Battle_CommandPhase.rb:221:in `loop'
You're either mistaken about having the latest update installed, or you changed the function code for Triple Kick/Axel in your game. This error is impossible to get otherwise.
 
this is the meta file from your plugin:
Name = [DBK] Enhanced Battle UI
Version = 2.0.6
Essentials = 21.1
Requires = Deluxe Battle Kit,1.2.3
Website = https://lucidious89-tutorials.gitbo...for-v21.1/add-on-tutorials/enhanced-battle-ui
Credits = Lucidious89

And this is the function of triple kick (same as triple axel since is the same one) in my game, that i didn't change because i don't have to since i like the moves the way they were programmed...
#===============================================================================
# Hits 3 times. Power is multiplied by the hit number. (Triple Kick)
# An accuracy check is performed for each hit.
#===============================================================================
class Battle::Move::HitThreeTimesPowersUpWithEachHit < Battle::Move
def multiHitMove?; return true; end
def pbNumHits(user, targets); return 3; end

def successCheckPerHit?
return @accCheckPerHit
end

def pbOnStartUse(user, targets)
@calcBaseDmg = 0
@accCheckPerHit = !user.hasActiveAbility?(:SKILLLINK)
end

def pbBaseDamage(baseDmg, user, target)
@calcBaseDmg += baseDmg
return @calcBaseDmg
end
end

Btw i tweaked your plugin to show the basedamage of the single hit move so i don't get the exception anymore, but if you also add other custom multi hit moves that are incremental like the aformentioned one you'll get it, since i didn't change anything from both ends (the basic script and your plugin ones)...
 
this is the meta file from your plugin:
Name = [DBK] Enhanced Battle UI
Version = 2.0.6
Essentials = 21.1
Requires = Deluxe Battle Kit,1.2.3
Website = https://lucidious89-tutorials.gitbo...for-v21.1/add-on-tutorials/enhanced-battle-ui
Credits = Lucidious89

And this is the function of triple kick (same as triple axel since is the same one) in my game, that i didn't change because i don't have to since i like the moves the way they were programmed...
#===============================================================================
# Hits 3 times. Power is multiplied by the hit number. (Triple Kick)
# An accuracy check is performed for each hit.
#===============================================================================
class Battle::Move::HitThreeTimesPowersUpWithEachHit < Battle::Move
def multiHitMove?; return true; end
def pbNumHits(user, targets); return 3; end

def successCheckPerHit?
return @accCheckPerHit
end

def pbOnStartUse(user, targets)
@calcBaseDmg = 0
@accCheckPerHit = !user.hasActiveAbility?(:SKILLLINK)
end

def pbBaseDamage(baseDmg, user, target)
@calcBaseDmg += baseDmg
return @calcBaseDmg
end
end

Btw i tweaked your plugin to show the basedamage of the single hit move so i don't get the exception anymore, but if you also add other custom multi hit moves that are incremental like the aformentioned one you'll get it, since i didn't change anything from both ends (the basic script and your plugin ones)...
Have you by any chance installed Hotfixes or some other plugin that involves battles? Any of them may be overwriting some moves and causing this error
 
this is the meta file from your plugin:
Name = [DBK] Enhanced Battle UI
Version = 2.0.6
Essentials = 21.1
Requires = Deluxe Battle Kit,1.2.3
Website = https://lucidious89-tutorials.gitbo...for-v21.1/add-on-tutorials/enhanced-battle-ui
Credits = Lucidious89

And this is the function of triple kick (same as triple axel since is the same one) in my game, that i didn't change because i don't have to since i like the moves the way they were programmed...
#===============================================================================
# Hits 3 times. Power is multiplied by the hit number. (Triple Kick)
# An accuracy check is performed for each hit.
#===============================================================================
class Battle::Move::HitThreeTimesPowersUpWithEachHit < Battle::Move
def multiHitMove?; return true; end
def pbNumHits(user, targets); return 3; end

def successCheckPerHit?
return @accCheckPerHit
end

def pbOnStartUse(user, targets)
@calcBaseDmg = 0
@accCheckPerHit = !user.hasActiveAbility?(:SKILLLINK)
end

def pbBaseDamage(baseDmg, user, target)
@calcBaseDmg += baseDmg
return @calcBaseDmg
end
end

Btw i tweaked your plugin to show the basedamage of the single hit move so i don't get the exception anymore, but if you also add other custom multi hit moves that are incremental like the aformentioned one you'll get it, since i didn't change anything from both ends (the basic script and your plugin ones)...
I see what the problem is, nvm. I think I somehow uploaded a different version of the move script in my last update that excluded the Triple Kick fix. Very weird.
 
Lucidious89 updated Enhanced Battle UI [DBK Add-On] [v21.1] with a new update entry:

v2.0.7 Update

  • Fixed a visual bug that would erroneously display the Ball UI button prompt when the player doesn't have any Poke Balls in their inventory.
  • Fixed an issue with held type-boosting Gems triggering after viewing a move in the Move Info UI even when the Gem shouldn't trigger.
  • Fixed an issue with Triple Kick and other moves that was thought to have been fixed in a previous version.

Read the rest of this update entry...
 
Hi Lucidius,

I'm having this issue with the latest version. I doesn't close the game, but the battle keeps going normally ignoring the enhanced menu that keeps displaying

Pokémon Essentials v21.1
[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.9]
Exception: TypeError
Message: Argument 0: Expected string
Backtrace:
087:DrawText:1109:in `text_size'
087:DrawText:1109:in `block in pbDrawTextPositions'
087:DrawText:1108:in `each'
087:DrawText:1108:in `pbDrawTextPositions'
[[DBK] Enhanced Battle UI] [003] Battler Info Ul.rb:375:in `pbAddEffectsDisplay' [[DBK] Enhanced Battle UI] [003] Battler Info Ul.rb:175:in `pbUpdate BattlerInfo' [[DBK] Enhanced Battle UI] [003] Battler Info Ul.rb:20:in `pbOpenBattlerInfo' [[DBK] Enhanced Battle UI] [002] Selection Menu.rb:207:in `block in pbSelectBattlerInfo' [[DBK] Enhanced Battle UI] [002] Selection Menu.rb:199:in `loop'
[[DBK] Enhanced Battle UI] [002] Selection Menu.rb:199:in `pbSelectBattlerInfo'
 
Hi Lucidius,

I'm having this issue with the latest version. I doesn't close the game, but the battle keeps going normally ignoring the enhanced menu that keeps displaying

Pokémon Essentials v21.1
[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.9]
Exception: TypeError
Message: Argument 0: Expected string
Backtrace:
087:DrawText:1109:in `text_size'
087:DrawText:1109:in `block in pbDrawTextPositions'
087:DrawText:1108:in `each'
087:DrawText:1108:in `pbDrawTextPositions'
[[DBK] Enhanced Battle UI] [003] Battler Info Ul.rb:375:in `pbAddEffectsDisplay' [[DBK] Enhanced Battle UI] [003] Battler Info Ul.rb:175:in `pbUpdate BattlerInfo' [[DBK] Enhanced Battle UI] [003] Battler Info Ul.rb:20:in `pbOpenBattlerInfo' [[DBK] Enhanced Battle UI] [002] Selection Menu.rb:207:in `block in pbSelectBattlerInfo' [[DBK] Enhanced Battle UI] [002] Selection Menu.rb:199:in `loop'
[[DBK] Enhanced Battle UI] [002] Selection Menu.rb:199:in `pbSelectBattlerInfo'
Need a lot more info, because this isn't directly a plugin issue. Your base Essentials scripts can't draw text for some reason. Somewhere along the chain, there's an incompatibility somewhere. Either with changes you made, another plugin, or a custom effect that you've added.
 
Need a lot more info, because this isn't directly a plugin issue. Your base Essentials scripts can't draw text for some reason. Somewhere along the chain, there's an incompatibility somewhere. Either with changes you made, another plugin, or a custom effect that you've added.
I've managed to identify when the issue happens.

It only happens when the weather is Hail/Snow. I tested every other weather type, only happens with Hail. I've noticed as well that the weather type when hail, doesn't display with label and description, as if it wasn't able to recognize it as weather.

The only think I can imagine that affects weather is Gen9 pack that somehow alters this weather type
 
Last edited:
I've managed to identify when the issue happens.

It only happens when the weather is Hail/Snow. I tested every other weather type, only happens with Hail. I've noticed as well that the weather type when hail, doesn't display with label and description, as if it wasn't able to recognize it as weather.

The only think I can imagine that affects weather is Gen9 pack that somehow alters this weather type
What is your HAIL_WEATHER_TYPE set to in the Gen 9 Pack settings?
 
0, classic hail
Yeah, that's why. I just assumed anyone using the Gen 9 Pack would have Snow enabled, so I never bother to test regular Hail when it's installed. Anyway, I updated it, so reinstall.
 
Lucidious89 updated Enhanced Battle UI [DBK Add-On] [v21.1] with a new update entry:

v2.0.8 Update

  • The "Damage Gate" effect displayed in the Battler Info UI for wild boss Pokemon may no longer incorrectly display negative numbers as its value.
  • The Move Info UI will now properly display Z-Moves that are being converted into a different one. For example, if the base move is Weather Ball and it is currently raining, the Move Info UI will show the actual Z-Move that the move will become (Hydro Vortex) instead of showing Breakneck Blitz.

Read the rest of this update entry...
 
Lucidious89 updated Enhanced Battle UI [DBK Add-On] [v21.1] with a new update entry:

v2.0.9 Update

  • Fixed a bug that would cause a crash when viewing the Battler Info UI of a battler who is in the middle of a two-turn attack.
  • Overhauled the entirety of the effects list in the Battler Info UI. The description text for effects have also been improved to be more detailed or specific if possible.
  • The following effects have been added the list of displayable effects:
    • Mega Evolution
    • Primal Reversion
    • Ultra Burst
    • Charging turn of a two-turn attack
    • All...

Read the rest of this update entry...
 
Hello!
I get this error when looking at my Pokemon with the Enhanced Battle UI. The game will continue as normal after it pops up.
[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.9]

Exception: ArgumentError
Message: Invalid argument passed to method.
Expected nil to be one of [Symbol, GameData::Type, String], but got NilClass.

Backtrace:
Validation:29:in `validate'
GameData:100:in `get'
[[DBK] Terastallization] [002] UI.rb:88:in `pbDisplayTeraType'
[[DBK] Enhanced Battle UI] [003] Battler Info UI.rb:307:in `pbAddTypesDisplay'
[[DBK] Enhanced Battle UI] [003] Battler Info UI.rb:174:in `pbUpdateBattlerInfo'
[[DBK] Enhanced Battle UI] [003] Battler Info UI.rb:83:in `block in pbOpenBattlerInfo'
[[DBK] Enhanced Battle UI] [003] Battler Info UI.rb:28:in `loop'
[[DBK] Enhanced Battle UI] [003] Battler Info UI.rb:28:in `pbOpenBattlerInfo'
[[DBK] Enhanced Battle UI] [002] Selection Menu.rb:207:in `block in pbSelectBattlerInfo'
[[DBK] Enhanced Battle UI] [002] Selection Menu.rb:199:in `loop'
As I'm not too good with code, I'm not exactly sure what the issue could be or how it could be solved, but looking through previous replies, something similar seemed to have happened when people didn't have the Terastallization plugin installed. However, I do. Anyway, just letting you know or if someone does have the solution. It's not breaking anything so far so nbd.
 
Back
Top