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
Definitely related to Lua 5.4, since it separated floating point numbers from integers and we only push floating point due to LuaJIT not supporting integers. The easy solution is to just drop LuaJIT support, it's not as useful as it used to be and is stuck in Lua 5.1
It's definitely not a small problem, it's not only visual. It breaks the code, for example string.format called on a double value with %d will throw an error, so everywhere, where it's used it may break code unexpectedly.
Before creating an issue, please ensure:
support matter (use https://otland.net/forums/support.16/ for support)
Steps to reproduce (include any configuration/script required to reproduce)
Some values are shown as floating point (probably related to changes in lua 5.3+)
/clean
!pos
FYI: I achieved expected behavior thanks to some changes in code:
lua_pushnumber
tolua_pushinteger
(ofc. not everywhere because for e.g. ExperienceStages are of type float)Expected behaviour
All of these numbers should be presented as
integer
:Actual behaviour
!pos
cordinates/clean
result messageEnvironment
TFS master branch: 954bb01 (unmodified)
Windows 10 Pro (22H2)
Microsoft Visual Studio 2022
Debug/Release x64
Lua version:
5.4.4
OTClient (mehah)
The text was updated successfully, but these errors were encountered: