Go Back   The PokéCommunity Forums > Creative Discussions > Game Development > Pokémon Essentials
Reload this Page [Question] Rare crash when running between connected maps

Notices
For all updates, view the main page.

Pokémon Essentials All questions and discussion about Pokémon Essentials, the Pokémon game kit for RPG Maker XP, go in here. Also contains links to the latest downloads and the Essentials Wiki.



Reply
 
Thread Tools
  #1    
Old December 25th, 2013 (11:51 PM). Edited December 26th, 2013 by TheRedMage.
TheRedMage TheRedMage is offline
 
Join Date: Aug 2013
Gender: Male
Posts: 9
Started to get an odd error after we updated to 13, just curious if anyone's seen anything similar.

Exception: NoMethodError
Message: undefined method `[]' for nil:NilClass
PokemonField:1426
PokemonField:1423:in `call'
PBEvent:54:in `trigger'
PBEvent:49:in `each'
PBEvent:49:in `trigger'
Game_Character_2:67:in `update_move'
Game_Character_2:6:in `update_old2'
Walk_Run:96:in `update'
Game_Event_:249:in `update'
Game_Map_:422:in `update'


------

It happens when we're transitioning from one map to another. They're set in sequence, so there aren't multiple maps involved. The setup is something currently like this-

A
BCD

A isn't touching anything but B. B is only touching A and C, etc.

The transition issue normally happens from A->B or B->A. And 90% of the time or so (estimated; I haven't actually measured) it seems to be when we're running, rather than walking. Is it just an issue of the map being too large/having too many events? I wouldn't think so given that the demo's Route2 isn't any longer than our Route1.

Any ideas? This only happened once we updated to 13, and we haven't touched any of the scripts mentioned in the errors.
Reply With Quote
  #2    
Old December 26th, 2013 (11:35 AM).
Leaf Shinigami's Avatar
Leaf Shinigami Leaf Shinigami is offline
Comic-Book Writer in Training
 
Join Date: Feb 2005
Location: Expecting something clever eh?
Age: 21
Gender: Male
Nature: Hardy
Posts: 86
Why was this moved from the bug report thread?
__________________
My FC: 3137 8798 9776
Reply With Quote
  #3    
Old December 26th, 2013 (12:21 PM).
Joltik's Avatar
Joltik Joltik is offline
 
Join Date: Jan 2010
Gender: Male
Nature: Modest
Posts: 112
Ok, I have had this exact same issue before. The problem happens when there is a moving event close to a map connection and you try looking at it from the other side of the connection.
Sometimes essentials can't handle this very well.
My solution was to move the events that need constant updating away from the connection.
I don't know, however, how to fix the problem in a satisfactory way.

Hope I've helped.
__________________

Check out my DeviantArt account! My game project is called Pokemon Subrosia.
My DeviantArt | Old DeviantArt
Reply With Quote
  #4    
Old December 26th, 2013 (01:27 PM).
Maruno's Avatar
Maruno Maruno is offline
Lead Dev of Pokémon Essentials
Moderator
 
Join Date: Jan 2008
Location: England
Posts: 4,140
Quote originally posted by Leaf Shinigami:
Why was this moved from the bug report thread?
Quote originally posted by TheRedMage:
Started to get an odd error after we updated to 13...
Quote originally posted by TheRedMage:
...we updated...
That's why. So often people claim that they haven't touched anything relevant, but they have. Or they claim they updated to the latest version properly, but they didn't. The word "updated" can't be trusted.

Giu, if you knew of this bug, why didn't you ever mention it? Working around it is worse than finding an actual fix, but I can only try to fix things I know are broken. I still don't know from your description exactly what kinds of events are affected nor how to cause the problem to occur.
__________________
Reply With Quote
  #5    
Old December 26th, 2013 (02:02 PM).
Leaf Shinigami's Avatar
Leaf Shinigami Leaf Shinigami is offline
Comic-Book Writer in Training
 
Join Date: Feb 2005
Location: Expecting something clever eh?
Age: 21
Gender: Male
Nature: Hardy
Posts: 86
Quote originally posted by Maruno:
That's why. So often people claim that they haven't touched anything relevant, but they have. Or they claim they updated to the latest version properly, but they didn't. The word "updated" can't be trusted.

Giu, if you knew of this bug, why didn't you ever mention it? Working around it is worse than finding an actual fix, but I can only try to fix things I know are broken. I still don't know from your description exactly what kinds of events are affected nor how to cause the problem to occur.
http://www.pokecommunity.com/showthread.php?t=314595

You could've atleast tried to look at what threads he made before posting that, Maruno.
__________________
My FC: 3137 8798 9776
Reply With Quote
  #6    
Old December 26th, 2013 (02:32 PM).
TheRedMage TheRedMage is offline
 
Join Date: Aug 2013
Gender: Male
Posts: 9
@Giu-

Gotcha. Yeah, we do have a few wanderers right at the edge of one of the maps, so we'll see if fixing that changes things. Thanks the idea mang.

@Maruno-

The post that Sam linked was the post the one we had seen before. If it is caused by moving events during transitions, might be something to look at. For now, we'll just edit the events.
Reply With Quote
  #7    
Old December 26th, 2013 (03:44 PM).
Radical Raptr's Avatar
Radical Raptr Radical Raptr is offline
#BAMFPokemonNerd
 
Join Date: Mar 2011
Location: everywhere
Age: 20
Gender: Male
Nature: Sassy
Posts: 1,092
Send a message via Skype™ to Radical Raptr
this may be this error or not, i don't know, but try and see if on the map that causes the error, one of your events has a tileset as a graphic that does not exist - check every event and make sure it's graphic is set to what it should be, and if it doesnt look like it has a graphic or shouldnt, make sure it is set to none
if that desnt work then start a new game and se if its an error from transitioning from 12 to 13
if that doesnt fix it, remake the map without any events and see what happens and put each event where it should be and test them
(you can easily remake a map by taking the select tool [the dotted line one] on the 3rd layer, and selecting from one corner to the other corner of the map)
__________________

~My Deviantart - Litharreon Wiki - Litharreon Game Download~

Reply With Quote
  #8    
Old December 26th, 2013 (05:32 PM). Edited December 26th, 2013 by Joltik.
Joltik's Avatar
Joltik Joltik is offline
 
Join Date: Jan 2010
Gender: Male
Nature: Modest
Posts: 112
Quote:
Giu, if you knew of this bug, why didn't you ever mention it? Working around it is worse than finding an actual fix, but I can only try to fix things I know are broken. I still don't know from your description exactly what kinds of events are affected nor how to cause the problem to occur.
Actually I mentioned it before, more than once. This is an old bug. I reported it several times in this forum, but no one had a solution.
I carefully made many experiments to find the source of the crash, and I concluded it was caused by a problem in updating events in other maps.

Whant I found out is:
The crash happens when events are moving close to the boundary of the map, in the other side of the connection.
Events moving with any frequency can cause the crash, but events moving with higher frequencies tend to cause it more often.
The crash happens as soon as the moving event is one square away from the players view sight.
If the moving event happens to be a little bit further away when you cross the boundary, no crash happens.
Animated autotiles, definetely don't cause the crash.
The crash happens whether the event is moving randomly or is in a predefined trajectory.
Events that are updating, but are not chaning in position, do not cause the game to crash.
For some reason, a few moving events that meet the above criteria do not cause the crash.

Related threads:
http://www.pokecommunity.com/showthread.php?t=314595
http://www.pokecommunity.com/showthread.php?t=305259
__________________

Check out my DeviantArt account! My game project is called Pokemon Subrosia.
My DeviantArt | Old DeviantArt
Reply With Quote
Reply
Quick Reply

Sponsored Links
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are UTC -8. The time now is 01:53 AM.