I am getting quite a few of those last days of my tests so I will post 3 of them in this thread, All of them are scripts in the TFS itself without any of my changes.
First one: occurs on magic_rope script when casting it on a hole that has no south position (above it) so it successfully teleports me north position but throws this warning.
Just doing like in this gif.
I am also getting those ones
I haven't changed any of the above scripts, I am using the main ones included in TFS 1.4.2
Magic_rope, Add_skill, and Teleport_ntiles
I am aware that the last 2 warns are triggered because I wrote a high value, so I added a limit on them by myself (If there's a better solution then I will go with it otherwise my limit is mostly enough).
But for the first one, I don't know why it happens, I might be missing some commits/fixes from TFS 1.5.
First one: occurs on magic_rope script when casting it on a hole that has no south position (above it) so it successfully teleports me north position but throws this warning.
Code:
Lua Script Error: [Spell Interface]
data/spells/scripts/support/magic_rope.lua:onCastSpell
LuaScriptInterface::getNumber(). Argument -1 has out-of-range value for unsigned short: -1
stack traceback:
[C]: in function '__add'
data/lib/core/position.lua:38: in function 'moveUpstairs'
data/spells/scripts/support/magic_rope.lua:11: in function <data/spells/scripts/support/magic_rope.lua:1>
I am also getting those ones
Code:
Lua Script Error: [TalkAction Interface]
data/talkactions/scripts/teleport_ntiles.lua:onSay
LuaScriptInterface::getNumber(). Argument -1 has out-of-range value for unsigned short: -2
stack traceback:
[C]: in function 'teleportTo'
data/talkactions/scripts/teleport_ntiles.lua:20: in function <data/talkactions/scripts/teleport_ntiles.lua:1>
Code:
Lua Script Error: [TalkAction Interface]
data/talkactions/scripts/add_skill.lua:onSay
LuaScriptInterface::getNumber(). Argument 2 has out-of-range value for unsigned __int64: -1.2824513806854554e+19
stack traceback:
[C]: in function 'addSkill'
data/talkactions/scripts/add_skill.lua:55: in function <data/talkactions/scripts/add_skill.lua:24>
Magic_rope, Add_skill, and Teleport_ntiles
I am aware that the last 2 warns are triggered because I wrote a high value, so I added a limit on them by myself (If there's a better solution then I will go with it otherwise my limit is mostly enough).
But for the first one, I don't know why it happens, I might be missing some commits/fixes from TFS 1.5.