Maruno17 / pokemon-essentials

A heavily modified RPG Maker XP game project that makes the game play like a Pokémon game. Not a full project in itself; this repo is to be added into an existing RMXP game project.
Other
208 stars 398 forks source link

Day Cares broken in stock Essentials v19.1 with Hotfixes v1.0.7 plugin #141

Closed M1CR0H4CK3R closed 2 years ago

M1CR0H4CK3R commented 2 years ago

`[Pokémon Essentials version 19.1] [Generation 8 Project v1.1.0] [v19.1 Hotfixes 1.0.7]

Exception: RuntimeError Message: Script error in event 3 (coords 4,4), map 472 (Lavaridge Day Care): Exception: NoMethodError Message: undefined method `isSpecies?' for nil:NilClass

***Full script: pbDayCareDeposit(pbGet(1))

Backtrace: 221:Overworld_DayCare:55:in block in pbDayCareDeposit' 221:Overworld_DayCare:51:ineach' 221:Overworld_DayCare:51:in pbDayCareDeposit' (eval):1:inexecute_script' 033:Interpreter:137:in eval' 033:Interpreter:137:inexecute_script' 034:Interpreter_Commands:1030:in command_355' 034:Interpreter_Commands:116:inexecute_command' 033:Interpreter:127:in block in update' 033:Interpreter:87:inloop'

Backtrace: 033:Interpreter:189:in rescue in execute_script' 033:Interpreter:135:inexecute_script' 034:Interpreter_Commands:1030:in command_355' 034:Interpreter_Commands:116:inexecute_command' 033:Interpreter:127:in block in update' 033:Interpreter:87:inloop' 033:Interpreter:87:in update' 032:Scene_Map:157:inblock in update' 032:Scene_Map:155:in loop' 032:Scene_Map:155:inupdate' `

The error happens immediately upon choosing a Pokemon. First a blank text box opens, and upon closing it I get the above error.

The error above is from a town in my game, but the error also happens in the example maps, namely Lerucean Town's Day Care.

If this has been fixed in a newer version of the hotfixes plugin, please notify me and close this issue.

M1CR0H4CK3R commented 2 years ago

Turns out it's an issue with the latest Generation 8 Project's compatibility, but the error is so vague and unhelpful, so I cannot diagnose the issue.

Maruno17 commented 2 years ago

I'm closing this because the error message includes third party content (namely, the Generation 8 Project plugin). Reopen this report if you can replicate this error without that plugin.

M1CR0H4CK3R commented 2 years ago

The default Day Care Lady event in Lerucean Town has several outdated script methods, one of which was causing the crash in question. I figured out the correct syntax of the event and remade it so it works, but you really should test your own Day Care Lady.