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

Map Connection with Events on border can cause stack level too deep? #181

Closed jianmingyong closed 2 years ago

jianmingyong commented 2 years ago

Update: It seems like putting any Event on the border of the map (in certain order) will cause the game to crash when they are connected.

How to reproduce: Case A:

Map A => Map B (Connected from A to B)

In the example above, if you have a map connection between A and B, if you have an event at the right border of Map B, the game simply crashes.

Case B:

Map B  (Connected from A to B)
   ^
Map A (Main map)

In this case, if you have an event on the top border of Map B, it would crash.

The direction in which the connection is made would mean that the connected map's border can't have an event at all.

Official logs... without modification.

[2022-05-30 23:01:44 +0800]
[Pokémon Essentials version 20]

Exception: SystemStackError
Message: stack level too deep

Backtrace:
Maruno17 commented 2 years ago

Fixed.