• 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!

Action Solving Argument -1 has out-of-range value for unsigned short: -1 in stairs

angelo fabris

Member
Joined
Dec 15, 2021
Messages
10
Reaction score
7
I was facing a problem in my server (tfs 1.5). When I use some stair and the default sqm was not clear, it display the following error:
Argument -1 has out-of-range value for unsigned short: -1

I tried to find some solutions but I dont found anything in forums. So here is the solution.

You need to open /data/lib/core/position.lua

and change this line:
local position = self + Position.directionOffset[direction]

to:

local position = Position(self.x + Position.directionOffset[direction].x, self.y + Position.directionOffset[direction].y, self.z)

and restart your server.
 
Back
Top