I found an unusual bug in RGSS2Player, regardless of which DLL is being used (RGSS1 or RGSS2). It doesn't seem to happen on every PC, but I was able to track the bug down. It happens when one tries to assign the angle of Sprite where the angle is "ANGLE % 360 == 180". That means that the angle is a value like 180, 540, 800, -180, 540, 800, etc.
This is a highly technical explanation why the bug seems to happen.
Quote[21:28] Blizzard: holy shit...
[21:28] Blizzard: I know EXACTLY what is causing the problem
[21:28] Blizzard: it happens only in RGSS2Player
[21:28] Blizzard: now
[21:29] Blizzard: there is something called a Quaternion
[21:29] Blizzard: it is a data structure of 4 float values that determines the orientation of an object in 3D space
[21:30] Blizzard: it is oftern a simpler way to represent orientation than using values for position, direction and rotation around each axis (basically a matrix)
[21:30] Blizzard: RMXP was coded using DirectDraw
[21:30] Blizzard: which is basically a simple 2D render interface for games
[21:30] Blizzard: since RMVX runs much faster, I assume that Enterbrain switched to DirectX
[21:30] Blizzard: which is much, much faster
[21:31] Blizzard: and supports both 3D and 2D rendering, depending on what you actually need
[21:31] Blizzard: but in DirectX everything is still in 3D space
[21:31] Blizzard: so even all 2D rendering actually has a Z coordinate
[21:31] Blizzard: and here comes the problem
[21:32] Blizzard: when using Quaternions, there is a problem
[21:32] Blizzard: they have a problem when the roation is exactly 180°
[21:32] Blizzard: because of this, some sort of division by zero error happens
[21:32] Blizzard: that is
[21:32] Blizzard: the Quaternion returns the same value for 180° as for 0°
[21:33] Blizzard: I can't remember which operation you have to do, but it was something with rotation
[21:33] Blizzard: and this is basically what probably crashes RGSS2Player
[21:33] Blizzard: but I am surprised that it doesn't happen on other PCs
[21:33] Aegisrox: amazing!
[21:33] Aegisrox: can be for the version of directX?
[21:34] Blizzard: possible
[21:34] Blizzard: it could be the DLL that is actually loaded
[21:34] Blizzard: since I have the DirectX SDK installed on my PC for development
[21:34] Blizzard: so it's possible that games might not be using a stock DLL
[21:35] Aegisrox: so that can be the reason because anybody else report this error
[21:35] Blizzard: yes
[21:35] Blizzard: RGSS2Player probably has a bit of extra code
[21:36] Blizzard: something that links the RGSS DLL and DirectX DLLs
[21:40] Blizzard: though I still believe that this is Enterbrain's bug
[21:40] Blizzard: there may only be versions of the DirectX DLLs that handle that error automatically
If anybody cares to report this bug to Enterbrain, feel free to do so. This bug completely crashes the RGSS2Player, it's not just a scripting error.
EDIT: I remember about 4 years ago when I was coding Shaman Odyssey, I encountered the same problem with quaternions. I think a mulitplication operation with a matrix caused the rotation to be 0 instead of 180 while all other angles worked completely fine. This is a "bug" in how quaternions work. I believe that Enterbrain tried to do an inverse operation where they tried to get the quaternion from an angle of 180 with a matrixwhich may be actually impossible and hence Game.exe crashes.
EDIT: I made a fix for it: http://forum.chaos-project.com/index.php/topic,13040.0