Remember that save files are based on the game name, not the folder - if the game is still just named "Pokemon Essentials v21", it's pulling from the same place.
Everything relating to the game both the clean one and the one I am developing in \AppData\Roaming are gone. Not sure why it is happen when i have this installed.
Oh, that would explain why I wasn't encountering the issue and you were - because this is when a new PokemonSystem object is created for options, and that's not normally done when there's an existing save file! Good catch, and sorry I was pushing you away from the right solution!
Oh, that would explain why I wasn't encountering the issue and you were - because this is when a new PokemonSystem object is created for options, and that's not normally done when there's an existing save file! Good catch, and sorry I was pushing you away from the right solution!
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:
Ruby:
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.
The backtrace doesn't suggest anything is connected to this plugin. View attachment 20386
Line 29 is pbSetResizeFactor([$PokemonSystem.screensize, 4].min), so if you're getting an error saying that it's trying to compare nil with an integer, that means $PokemonSystem.screensize is nil. This plugin doesn't make any changes to anything relating to screensize, and I was able to install it myself with no issues.
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:
Ruby:
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.
It seems that $game_variables needs to be initialized:
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)
$game_variables = []
end
end
When I open the settings before entering the game, there will be an error message
This section is for the discussion of the tutorials and resources on Eevee Expo. To find tutorials and resources, check out the Tutorial and Resource Manager for optimal navigation.