- 59
- Posts
- 9
- Years
- Seen Aug 9, 2020
This happens when a field encounter is generated:
And this happens when the encounter is generated through Debug mode:
I haven't modified any of the scripts the error log lists. It started happening simply when I deleted some maps and started a new game. Trainer battles function perfectly. I started using a text comparer with my -small- edits and the stock Essentials and there is no difference in those scripts. Where should I keep looking?
Code:
Exception: NoMethodError
Message: undefined method `length' for nil:NilClass
PokemonBag:421:in `pbQuantity'
PokemonField:977:in `pbGenerateWildPokemon'
PokemonField:1009:in `pbWildBattle'
PokemonField:1473:in `pbBattleOnStepTaken'
PokemonField:1497:in `pbOnStepTaken'
Game_Player_:449:in `update_old'
Walk_Run:75:in `update'
Scene_Map:104:in `update'
Scene_Map:101:in `loop'
Scene_Map:114:in `update'
And this happens when the encounter is generated through Debug mode:
Code:
Exception: NoMethodError
Message: undefined method `length' for nil:NilClass
PokemonBag:421:in `pbQuantity'
PokemonField:977:in `pbGenerateWildPokemon'
PokemonField:1009:in `pbWildBattle'
PokemonDebug:753:in `pbDebugMenu'
PokemonDebug:297:in `loop'
PokemonDebug:823:in `pbDebugMenu'
PokemonPauseMenu:242:in `pbStartPokemonMenu'
PokemonPauseMenu:241:in `pbFadeOutIn'
PokemonPauseMenu:241:in `pbStartPokemonMenu'
PokemonPauseMenu:142:in `loop'
I haven't modified any of the scripts the error log lists. It started happening simply when I deleted some maps and started a new game. Trainer battles function perfectly. I started using a text comparer with my -small- edits and the stock Essentials and there is no difference in those scripts. Where should I keep looking?