Did you start a new save file after you installed the plugin? It's trying to update a stat for how many contests were won, but that stat only gets initialized when a new save is started up.heya I was just trying out the plugin for my game cause I really want to implement contests into it and all worked fine until the winner is decided and walks up to the judge, which then crashes the game with this error message
Ruby:[2025-12-13 11:42:09 +0100] [Pokémon Essentials version 20.1] [v20.1 Hotfixes 1.0.7] [EBDX v1.4.5 (E20)] Script error in Common Event, map 224 (Contest 2) Exception: NoMethodError Message: undefined method `+' for nil:NilClass ***Full script: pbPokemonContest Backtrace: [Pokemon Contests Script] 009_Results.rb:77:in `pbResults' [Pokemon Contests Script] 007_Preparations.rb:13:in `pbPokemonContest' (eval):1:in `execute_script' Interpreter:143:in `eval' Interpreter:143:in `execute_script' Interpreter_Commands:1112:in `command_355' Interpreter_Commands:116:in `execute_command' Interpreter:133:in `block in update' Interpreter:90:in `loop' Interpreter:90:in `update'
I was wondering why that happened? I have absolutely 0 clue about ruby so i am at a loss here :,D
could it be an incompatibility issue with v20.1 ebdx?
If you don't want to start a new file for some reason (though, you should never get attached to your save files during game creation, as adding plugins commonly need new save files for things to be set up correcty), you can create an NPC to talk to that runs the script
$stats.initializeContestStats, then save your game. Remember to delete your NPC after that, though.
Last edited:
