So I figured out reason my game crashes in building is because Pokegear phone feature which I only notice until now and I can't figure it
the error code:
[Pokémon Essentials version 21.1]
Exception: NoMethodError
Message: undefined method `has_flag?' for nil:NilClass
Backtrace:
Item_Phone:323:in `can_make?'
Item_Phone:372:in `make_incoming'
Item_Phone:558:in `block in <main>'
Event_Handlers:89:in `block in trigger'
Event_Handlers:89:in `each_value'
Event_Handlers:89:in `trigger'
Event_HandlerCollections:63:in `trigger'
Scene_Map:162:in `updateSpritesets'
Scene_Map:176:in `update'
Scene_Map:238:in `block in main'
the script in Item_Phone that causing game to crash:
def can_make?
return false if $game_map.metadata.has_flag?("NoPhoneSignal")
return true
end
it only happen at indoor building such as warehouse and mansion, and yeah i didn't register any trainers on pokegear so i think it try to recall nonexistent trainer / recall in indoor that having "NoPhoneSignal" which i can't find it on metadata, hence the error
how to fix it? or how to disable pokegear random call all together as default without you needing to disable it manually?
the error code:
[Pokémon Essentials version 21.1]
Exception: NoMethodError
Message: undefined method `has_flag?' for nil:NilClass
Backtrace:
Item_Phone:323:in `can_make?'
Item_Phone:372:in `make_incoming'
Item_Phone:558:in `block in <main>'
Event_Handlers:89:in `block in trigger'
Event_Handlers:89:in `each_value'
Event_Handlers:89:in `trigger'
Event_HandlerCollections:63:in `trigger'
Scene_Map:162:in `updateSpritesets'
Scene_Map:176:in `update'
Scene_Map:238:in `block in main'
the script in Item_Phone that causing game to crash:
def can_make?
return false if $game_map.metadata.has_flag?("NoPhoneSignal")
return true
end
it only happen at indoor building such as warehouse and mansion, and yeah i didn't register any trainers on pokegear so i think it try to recall nonexistent trainer / recall in indoor that having "NoPhoneSignal" which i can't find it on metadata, hence the error
how to fix it? or how to disable pokegear random call all together as default without you needing to disable it manually?