Oh, so it's this error. I think I know a way to solve it. If I'm correct, the error is happening because this plugin only lets Pokemon Essentials create PokemonSystem variables defined in the plugin. All the variables on the options script are still being called and used on other scripts (like the last one mentioned in the error log) but throw errors because those variables are never created. If it's that, change the code you shared earlier with this:
class PokemonSystem
attr_accessor :battle_ui
alias custUI_initialize initialize
def initialize
custUI_initialize
@battle_ui = 0 # Default battle ui (see also Settings::BATTLE_UI)
end
end
This should initialize all the variables in the options script and other plugins that add variables in the PokemonSystem as well as the variable in this plugin. I had the same problem with some of my plugins when trying to test the game without a save file and this solved it.
Error when enter to Option Menu
Here the log:
[Pokémon Essentials version 21]
Exception: NoMethodError
Message: undefined method `[]' for nil:NilClass
Backtrace:
[Customizable Battle UI] 001_Script.rb:21:in `block in <main>'
307:UI_Options:43:in `get'
307:UI_Options:301:in `block in pbStartScene'
307:UI_Options:301:in `times'
307:UI_Options:301:in `pbStartScene'
307:UI_Options:375:in `pbStartScreen'
305:UI_Load:324:in `block (2 levels) in pbStartLoadScreen'
079:MessageConfig:575:in `pbFadeOutIn'
305:UI_Load:321:in `block in pbStartLoadScreen'
305:UI_Load:306:in `loop'
How to fix this?