AdamantSpartan
Dev of Pokémon Adamant
- 21
- Posts
- 8
- Years
- Somewhere ouside Detroit
- Seen Oct 20, 2021
So I'm working on my game when I started getting an error whenever I loaded into certain maps.
Now what I think is strange is that if I load into a map that works and run into the "broken" map all of the events still work, so the issue appears to be in the transfer process. I've tried transferring into doors for the event and onto a normal tile.
Transferring into a "non-broken" map is successful. As well as house doors that lead in and out of that map.
I have tried creating a new save file and I get the same issue.
I've also turned off all autorun events aside from door events (there are no parallel processes) and I still get the same issue.
Here is the error log:
(The Aipom head is ":-1-:" minus the dashes)
Exception: RuntimeError
Message: Script error within map 77:
Exception: NoMethodError
Message: (eval):1:in `pbExecuteScript'undefined method `y' for nil:NilClass
***Full script:
($game_map.events[@event_id].y - $game_player.y).abs == 0 && ($game_map.events[@event_id].x - $game_player.x).abs == 0
Interpreter:243:in `pbExecuteScript'
Interpreter:794:in `eval'
Interpreter:243:in `pbExecuteScript'
Interpreter:794:in `command_111'
Interpreter:320:in `execute_command'
Interpreter:193:in `update'
Interpreter:106:in `loop'
Interpreter:198:in `update'
Game_Event:265:in `update'
Game_Map:453:in `update'
Interpreter:281:in `pbExecuteScript'
Interpreter:794:in `command_111'
Interpreter:320:in `execute_command'
Interpreter:193:in `update'
Interpreter:106:in `loop'
Interpreter:198:in `update'
Game_Event:265:in `update'
Game_Map:453:in `update'
Game_Map:451:in `each'
Game_Map:451:in `update'
Any advice? I can't seem to figure it out on my own.
Now what I think is strange is that if I load into a map that works and run into the "broken" map all of the events still work, so the issue appears to be in the transfer process. I've tried transferring into doors for the event and onto a normal tile.
Transferring into a "non-broken" map is successful. As well as house doors that lead in and out of that map.
I have tried creating a new save file and I get the same issue.
I've also turned off all autorun events aside from door events (there are no parallel processes) and I still get the same issue.
Here is the error log:
Spoiler:
(The Aipom head is ":-1-:" minus the dashes)
Exception: RuntimeError
Message: Script error within map 77:
Exception: NoMethodError
Message: (eval):1:in `pbExecuteScript'undefined method `y' for nil:NilClass
***Full script:
($game_map.events[@event_id].y - $game_player.y).abs == 0 && ($game_map.events[@event_id].x - $game_player.x).abs == 0
Interpreter:243:in `pbExecuteScript'
Interpreter:794:in `eval'
Interpreter:243:in `pbExecuteScript'
Interpreter:794:in `command_111'
Interpreter:320:in `execute_command'
Interpreter:193:in `update'
Interpreter:106:in `loop'
Interpreter:198:in `update'
Game_Event:265:in `update'
Game_Map:453:in `update'
Interpreter:281:in `pbExecuteScript'
Interpreter:794:in `command_111'
Interpreter:320:in `execute_command'
Interpreter:193:in `update'
Interpreter:106:in `loop'
Interpreter:198:in `update'
Game_Event:265:in `update'
Game_Map:453:in `update'
Game_Map:451:in `each'
Game_Map:451:in `update'
Any advice? I can't seem to figure it out on my own.