You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mkxp uses the single-precision floating-point format for this and similar attributes while RGSS uses double-precision.
However even if it would be changed to double-precision you would still be able to find differences in very few cases. 1.8.1 is ancient and the code to convert between floating-point numbers and strings contained some bugs.
It will be nice if mkxp can implement it. Make mkxp behave more consistent with original engine.
The following is a surprising behavior I found in current implementation:
# let (xxxxx / yyyyy.to_f) to be 0.9sprite.zoom_x=xxxxx / yyyyy.to_f# ...# ...# sprite.zoom_x is 0.8999 here and fail to enter the if-condition since 0.8999 is not larger than or equals to 0.9ifsprite.zoom_x >= 0.9# ...# ...end
Example:
In original RPG Maker XP engine, it prints 0.9
But it prints 0.8999999761581421 in mkxp (OSX binary)
The text was updated successfully, but these errors were encountered: