v19.1 Eevee to Sylveon Evolution breaks game.

This thread pertains to v19.1 of Pokémon Essentials.

Dvalor53

Rookie
Member
Joined
Nov 11, 2021
Posts
4
Age
33
I keep getting this error when it is time for Eevee to evolve. If I remove Sylvan from the evolution options. It seems to not crash the game anymore.

1636936271236.png



The error seems to be talking about this line of code under the Evolution Script.
Code:
GameData::Evolution.register({
  :id            => :HappinessMoveType,
  :parameter     => :Type,
  :minimum_level => 1,   # Needs any level up
  :level_up_proc => proc { |pkmn, parameter|
    if pkmn.happiness >= 160
      next pkmn.moves.any? { |m| m && m.id > 0 && m.type == parameter }
    end
  }
})

My guess is that something is broken with the Sylveon evolution option. This error happens even if I don't have a fairy move on Eevee, but stops crashing if I remove the Sylveon evolution option. This section of script is over my head and I would appreciate any help. Line 7 is actually line 336 in the script.
 

Dvalor53

Rookie
Member
Joined
Nov 11, 2021
Posts
4
Age
33
I have it in the v19.1 Hotfixes folder that is located in the Plugins folder. C:\"..."\Pokemon v1\Plugins\v19.1 Hotfixes\

I believe that it compiles on its own most of the time. I have forced it to do so while running the game twice.

1637027902792.png
 
Top