• 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.
  • The Eevee Expo Game Jam has concluded! 🎉 Head on over to the game jam forum to play through the games.
    Don't forget to come back September 21st to vote for your favorites!
  • Reminder: AI-generated content is not allowed on the forums per the Rules and Regulations. Please contact us if you have any questions!

Egg Hatching Frozen?

Cross Agento

Novice
Member
Joined
Jun 27, 2021
Posts
41
I was working on my game, only to find that hatching eggs is not working? When an egg tries to hatch, it goes to the screen, and just freezes there. No animation, but the music loops forever. Eventually, the whole game just stopped responding. I tried copying over the egg hatching animation script from base Pokemon Essentials 21.1, but nothing. I tried moving all my plugins into base Pokemon Essentials, and the egg hatches fine there. No clue where I could fix the issue, but I think it's in the scripting in RPG Maker.
 
So, I'd propose examining the issues from two possible angles:

First, are you having the egg issue with a loaded game? If you're loading in and then having an egg issue with the hatch screen, it might be that you've added to the code since you started the loaded playthrough. This can create weird issues where code gets messed up and weird glitches like this happens. That said, I'd recommend testing if it happens in a fresh new playthrough if you haven't.

Second, and more difficult, perhaps something in the code got messed up or is getting called somewhere else. For debugging, here's a few questions:
  • What's the last text that shows before it soft locks (or, does text even show)?
  • Does the egg sprite itself show?
  • What music plays? Is it the end-of-battle music or the Evolution song that it changes to by default for the egg?
Basically, in UI_EggHatching, the egg UI is called by this, at least in v. 20:
Code:
Expand Collapse Copy
class PokemonEggHatchScreen
  def initialize(scene)
    @scene = scene
  end

  def pbStartScreen(pokemon)
    @scene.pbStartScene(pokemon)
    @scene.pbMain
    @scene.pbEndScene
  end
end
See def pbStartScreen(pokemon). So, when the screen starts, it runs pbStartScreen (appears above this text in this UI_EggHatching section, draws the egg) before then running pbMain (which plays the Evolution music and then shows the animation) before then ending (which... ends). Basically, knowing how exactly far the scene goes will help isolate the issue to which section of code is having trouble.
 
Back
Top