• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[TFS1.4.2]HOW TO FIX ERROR "ARGUMENT -1" IN NPCS

Zarosiano

New Member
Joined
Dec 9, 2022
Messages
21
Reaction score
1
How should I apply this fix? My Server doesn't even have that src folder. When I used a 1.3 yes, but I migrated to 1.4 a while ago and it doesn't have it there, however, I have the "Argument -1" bug
The error is similar to this

I saw that there is this FIX.

Fixed variable type in npc.cpp

the server does not crash, the player is still connected, I can even sell and buy items in the store. Only the error appears on the server panel.
 
BUMP, The same goes for going up or down stairs. However, the game does not crash


Lua:
Lua Script Error: [Action Interface]
data/actions/scripts/other/teleport.lua:onUse
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/actions/scripts/other/teleport.lua:4: in function <data/actions/scripts/other/teleport.lua:2>
1671042990692.png
 
Back
Top