• 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.
  • Reminder: AI-generated content is not allowed on the forums per the Rules and Regulations. Please contact us if you have any questions!
Pokemon Contests and Pokeblocks [Beta]

Resource Pokemon Contests and Pokeblocks [Beta] 0.7.1

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:
Expand Collapse Copy
[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?
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.

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:
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.

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.
oh yeah thank you! that fixed it! 😄
 
I'm having an issue after using all the various solutions above. I'm using the Gen 9 move pack and I have defined every move in the "movesx_contest.txt"

When starting contests I'm getting this error and moves will not display in the UI before crashing:

Pokémon Essentials v21.1
[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.9]
Script error in event 1 (coords 6,9), map 32 (Normal Contest)
Exception: NoMethodError
Message: undefined method `contest_can_be_used?' for #<GameData::Move>
***Full script: pbPokemonContest
Backtrace:
[Pokemon Contests Script] 004_Move.rb:33:in `contest_description'
[Pokemon Contests Script] 004_Contest_Core.rb:674:in `pbMoveShowDetails'
[Pokemon Contests Script] 004_Contest_Core.rb:609:in `pbChooseMove'
[Pokemon Contests Script] 004_Contest_Core.rb:281:in `block in pbScene'
[Pokemon Contests Script] 004_Contest_Core.rb:278:in `loop'
[Pokemon Contests Script] 004_Contest_Core.rb:278:in `pbScene'
[Pokemon Contests Script] 004_Contest_Core.rb:745:in `pbStartScreen'
[Pokemon Contests Script] 004_Contest_Core.rb:176:in `block in pbTalentRound'
MessageConfig:598:in `pbFadeOutln'
[Pokemon Contests Script] 004_Contest_Core.rb:173:in `pbTalentRound'


EDIT: We got everything working in V21.1! :)
 
Last edited:
Back
Top