I was wondering if it was more so to do with the portal itself then actually any of the code. I will definitely change those doors though to fix a lot of those issues, which seem to be the main root of the problems!Joat wrote:I haven't found the exact problem, but I have found some useful things:Addendum: I have further thought on the matter, and there is one other thing they share that no other class does: their Agility stat. This led me to try a few more tests:
- The freeze can reliably be reproduced by holding "move backward" immediately upon entering the shop from the Earth village.
- The angle is not the issue. Turning around and heading forward into the portal produced the same result.
- The speed seems to be part of the issue. Going slower, or moving forward THEN back, did prevent the freeze.
- Timing is not the issue. If I wait a bit before moving backward into the entrance, the freeze still occurs.
- This freeze always works for the knight and mage, but never seems to work for any other class. Both of those classes are tied for the tallest in the game, but even changing the knight's height to match the warrior's did not prevent the glitch from triggering on him, so it seems it may not be the height itself that causes it. Still, the fact that it only seems to trigger on the knight and mage seems worth looking into.
So apparently, the problem is that the player is interacting with the back of the unintended linedef of the portal, instead of the front of the intended linedef of the portal.
- After changing the knight's agility, there was no freeze.
- After thickening the portal, there was no freeze.
- After removing the script execution effect from the back of the portal, there was no freeze.
- After removing the script execution effect from the front of the portal, there was a freeze (nothing should have happened at all when trying to enter from that side).
(Also, I am also tempted to ask you to officially play test my game from now; you have been extremely helpful with your thoughts, suggestions and general bug testing, and It could be extremely helpful. Its something I am considering heavily!)