• 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.
  • Eevee Expo's webhost has been having technical issues since Nov. 20th and you might be unable to connect to our site. Staff are also facing issues connecting, so please send a DM to Cat on-site or through Discord directly for faster service!
Pokemon Contests and Pokeblocks [Beta]

Resource Pokemon Contests and Pokeblocks [Beta] 0.7.1

wrigty12

Tester-Coder Hybrid
Member
Joined
Jul 24, 2022
Posts
550
I have a problem wanting to adapt this to my version 21 of essentials, when the contest ends and the tape is received, I get an error on the line 71 aprox
$stats.pokemon_contests_won_total += 1 it says that is not defined, but when i set it to =0 and then =1 it has no problem, how can i fix this to work normally?
Did you start a new game after installing the plugin? It should have been initialized on new game.

It's working after you do = 0 or = 1 because you're initializing it yourself. After that, += would work.

Long story short, just start a new game or save your game after you do that initialization yourself.
 

Tsoukinator

Novice
Member
Joined
Mar 12, 2024
Posts
34
Hello, I'm attempting to use this in v21.1.
Thank you for making this available, I'm attempting to get it working though running into some bugs (inevitably)
Though, I'm having less success than the previous person - I seem to get errors the second after I talk to the Contest Hall person.

Just as they send me on my move route from the desk, I get the error of "uninitialized constant PBMoveRoute::Left"
I wouldn't mind fixing this myself, though I'm not too sure how to go about it.

PS: If anyone else has a guide on how to get (most) of these quirks I'll be encountering fixed for v21.1, I'll be very curious to hear!
 

komeiji514

Elite Trainer
Member
Joined
Oct 28, 2023
Posts
275
Hello, I'm attempting to use this in v21.1.
Thank you for making this available, I'm attempting to get it working though running into some bugs (inevitably)
Though, I'm having less success than the previous person - I seem to get errors the second after I talk to the Contest Hall person.

Just as they send me on my move route from the desk, I get the error of "uninitialized constant PBMoveRoute::Left"
I wouldn't mind fixing this myself, though I'm not too sure how to go about it.

PS: If anyone else has a guide on how to get (most) of these quirks I'll be encountering fixed for v21.1, I'll be very curious to hear!
Change that to PBMoveRoute::LEFT. The same for other PBMoveRoutes.
 

Tsoukinator

Novice
Member
Joined
Mar 12, 2024
Posts
34
Change that to PBMoveRoute::LEFT. The same for other PBMoveRoutes.
Thanks heaps, I realised that they were indeed lowercase, rather than the upper case version in 21.1.
I looked back at lavendersiren's earlier posts and was able to get to the point that my contest works and I come out successfully.

I didn't want to start a new save, so I just created the following function to create all the stats required, and had an NPC call it for me.
Dropped it here if anybody else needs it.
Ruby:
Expand Collapse Copy
def set_contest_stats()
  $stats.pokemon_contests_participated_total = 0
  $stats.pokemon_contests_participated_category = [0,0,0,0,0]
  $stats.pokemon_contests_participated_rank = [0,0,0,0]
  $stats.pokemon_contests_participated_category_rank = [[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]]
  $stats.pokemon_contests_won_total = 0
  $stats.pokemon_contests_won_category = [0,0,0,0,0]
  $stats.pokemon_contests_won_rank = [0,0,0,0]
  $stats.pokemon_contests_won_category_rank = [[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]]
end

I'm now trying to get the berry blending working. I'm getting an issue loading the image for the berry blender background.
Can't see the obvious issue in the code, though if anyone else has encountered, would appreciate a helping hand.

Exception `SDLError' at [Pokeblocks v20.1] 002_BerryBlender_Scenes.rb:320 - Error loading image 'Graphics/Pictures/Pokeblock/UI Berry Blender//Behind': Unsupported image format

After sorting out the PokeBlocks, my next step will be seeing whether it's possible to get the Summary page showing correctly.
I've got a few other plugins installed, specifically the Enhanced Pokemon UI & Modular UI Scenes which I believe are causing incompability issues.
 
Last edited:

wrigty12

Tester-Coder Hybrid
Member
Joined
Jul 24, 2022
Posts
550
Yeah I never looked into to complete list of everything that would need updated for v21 because I know there's a lot that would. I'm likely not going to update this to v21+ myself unless I just revamp the entire plugin to be cleaner in general (unsure if/when that will happen).

Good luck giving it a shot though.

As for the Summary, yep you'll have to dive into how to set up the Summary for those plugins because they didn't exist when I made mine
 
Back
Top