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

Solved massive erros

lopez65

Member
Joined
May 10, 2012
Messages
289
Solutions
1
Reaction score
14
Location
Barcelona
Hello again
I just tested the TFS 1.1 House makert buy / sell, and start the server does not throw me any errors thanks @Limos, but by giving use I get this:

Code:
Lua Script Error: [Action Interface]
data/actions/scripts/house_shop.lua:onUse
data/actions/scripts/house_shop.lua:464: attempt to call global 'getThingPos' (a
nil value)
stack traceback:
        [C]: in function 'getThingPos'
        data/actions/scripts/house_shop.lua:464: in function <data/actions/scrip
ts/house_shop.lua:463>

Lua Script Error: [Action Interface]
data/actions/scripts/house_shop.lua:onUse
data/actions/scripts/house_shop.lua:464: attempt to call global 'getThingPos' (a
nil value)
stack traceback:
        [C]: in function 'getThingPos'
        data/actions/scripts/house_shop.lua:464: in function <data/actions/scrip
ts/house_shop.lua:463>

Lua Script Error: [Action Interface]
data/actions/scripts/house_shop.lua:onUse
data/actions/scripts/house_shop.lua:464: attempt to call global 'getThingPos' (a
nil value)
stack traceback:
        [C]: in function 'getThingPos'
        data/actions/scripts/house_shop.lua:464: in function <data/actions/scrip
ts/house_shop.lua:463>

Lua Script Error: [Action Interface]
data/actions/scripts/house_shop.lua:onUse
data/actions/scripts/house_shop.lua:464: attempt to call global 'getThingPos' (a
nil value)
stack traceback:
        [C]: in function 'getThingPos'
        data/actions/scripts/house_shop.lua:464: in function <data/actions/scrip
ts/house_shop.lua:463>

Lua Script Error: [Action Interface]
data/actions/scripts/house_shop.lua:onUse
data/actions/scripts/house_shop.lua:464: attempt to call global 'getThingPos' (a
nil value)
stack traceback:
        [C]: in function 'getThingPos'
        data/actions/scripts/house_shop.lua:464: in function <data/actions/scrip
ts/house_shop.lua:463>

Lua Script Error: [Action Interface]
data/actions/scripts/house_shop.lua:onUse
data/actions/scripts/house_shop.lua:464: attempt to call global 'getThingPos' (a
nil value)
stack traceback:
        [C]: in function 'getThingPos'
        data/actions/scripts/house_shop.lua:464: in function <data/actions/scrip
ts/house_shop.lua:463>

Lua Script Error: [Action Interface]
data/actions/scripts/house_shop.lua:onUse
data/actions/scripts/house_shop.lua:464: attempt to call global 'getThingPos' (a
nil value)
stack traceback:
        [C]: in function 'getThingPos'
        data/actions/scripts/house_shop.lua:464: in function <data/actions/scrip
ts/house_shop.lua:463>

Lua Script Error: [Action Interface]
data/actions/scripts/house_shop.lua:onUse
data/actions/scripts/house_shop.lua:464: attempt to call global 'getThingPos' (a
nil value)
stack traceback:
        [C]: in function 'getThingPos'
        data/actions/scripts/house_shop.lua:464: in function <data/actions/scrip
ts/house_shop.lua:463>

Lua Script Error: [Action Interface]
data/actions/scripts/house_shop.lua:onUse
data/actions/scripts/house_shop.lua:464: attempt to call global 'getThingPos' (a
nil value)
stack traceback:
        [C]: in function 'getThingPos'
        data/actions/scripts/house_shop.lua:464: in function <data/actions/scrip
ts/house_shop.lua:463>

Lua Script Error: [Action Interface]
data/actions/scripts/house_shop.lua:onUse
data/actions/scripts/house_shop.lua:464: attempt to call global 'getThingPos' (a
nil value)
stack traceback:
        [C]: in function 'getThingPos'
        data/actions/scripts/house_shop.lua:464: in function <data/actions/scrip
ts/house_shop.lua:463>

Lua Script Error: [Action Interface]
data/actions/scripts/house_shop.lua:onUse
data/actions/scripts/house_shop.lua:464: attempt to call global 'getThingPos' (a
nil value)
stack traceback:
        [C]: in function 'getThingPos'
        data/actions/scripts/house_shop.lua:464: in function <data/actions/scrip
ts/house_shop.lua:463>

Lua Script Error: [Action Interface]
data/actions/scripts/house_shop.lua:onUse
data/actions/scripts/house_shop.lua:464: attempt to call global 'getThingPos' (a
nil value)
stack traceback:
        [C]: in function 'getThingPos'
        data/actions/scripts/house_shop.lua:464: in function <data/actions/scrip
ts/house_shop.lua:463>

Lua Script Error: [Action Interface]
data/actions/scripts/house_shop.lua:onUse
data/actions/scripts/house_shop.lua:464: attempt to call global 'getThingPos' (a
nil value)
stack traceback:
        [C]: in function 'getThingPos'
        data/actions/scripts/house_shop.lua:464: in function <data/actions/scrip
ts/house_shop.lua:463>

Lua Script Error: [Action Interface]
data/actions/scripts/house_shop.lua:onUse
data/actions/scripts/house_shop.lua:464: attempt to call global 'getThingPos' (a
nil value)
stack traceback:
        [C]: in function 'getThingPos'
        data/actions/scripts/house_shop.lua:464: in function <data/actions/scrip
ts/house_shop.lua:463>
Swllivanco has logged out.
Swllivanco has logged in.

Lua Script Error: [Action Interface]
data/actions/scripts/house_shop.lua:onUse
data/actions/scripts/house_shop.lua:464: attempt to call global 'getThingPos' (a
nil value)
stack traceback:
        [C]: in function 'getThingPos'
        data/actions/scripts/house_shop.lua:464: in function <data/actions/scrip
ts/house_shop.lua:463>

Lua Script Error: [Action Interface]
data/actions/scripts/house_shop.lua:onUse
data/actions/scripts/house_shop.lua:464: attempt to call global 'getThingPos' (a
nil value)
stack traceback:
        [C]: in function 'getThingPos'
        data/actions/scripts/house_shop.lua:464: in function <data/actions/scrip
ts/house_shop.lua:463>

Lua Script Error: [Action Interface]
data/actions/scripts/house_shop.lua:onUse
data/actions/scripts/house_shop.lua:464: attempt to call global 'getThingPos' (a
nil value)
stack traceback:
        [C]: in function 'getThingPos'
        data/actions/scripts/house_shop.lua:464: in function <data/actions/scrip
ts/house_shop.lua:463>

Lua Script Error: [Action Interface]
data/actions/scripts/house_shop.lua:onUse
data/actions/scripts/house_shop.lua:464: attempt to call global 'getThingPos' (a
nil value)
stack traceback:
        [C]: in function 'getThingPos'
        data/actions/scripts/house_shop.lua:464: in function <data/actions/scrip
ts/house_shop.lua:463>

Lua Script Error: [Action Interface]
data/actions/scripts/house_shop.lua:onUse
data/actions/scripts/house_shop.lua:464: attempt to call global 'getThingPos' (a
nil value)
stack traceback:
        [C]: in function 'getThingPos'
        data/actions/scripts/house_shop.lua:464: in function <data/actions/scrip
ts/house_shop.lua:463>
----------------------------------------------------------------------------------------------
this is the theard original: http://otland.net/threads/tfs-1-0-house-market-buy-sell.210724/

I hope your friends for help
Greetings and thanks for reading ;)
 
Code:
function getThingPos(uid)
     local thing
     if uid >= 0x10000000 then
         thing = Creature(uid)
     else
         thing = Item(uid)
     end
     if thing == nil then
         return false
     end
     local stackpos = 0
     local tile = thing:getTile()
     if tile ~= nil then
         stackpos = tile:getThingIndex(thing)
     end
     local position = thing:getPosition()
     position.stackpos = stackpos
     return position
end
Update compat.lua
https://github.com/otland/forgottenserver/blob/master/data/compat.lua
 
Did you save it and restarted the server? This error means the function doesn't exist, it can't give that error if the function is added.
 
@Limos

It will no way, I do it with the god even and did well, comes out the same, which can be ?, I followed all the steps of the original therad and you set me those "END" now starts without errors, but use is to give the basket and I get everything I put in the first post, which is what I'm doing wrong?
 
Last edited:

Uhh now get a new error: S


Lua Script Error: [Action Interface]
data/actions/scripts/house_shop.lua:eek:nUse
data/actions/scripts/house_shop.lua:464: attempt to call global 'isHousetile' (a
nil value)
stack traceback:
[C]: in function 'isHousetile'
data/actions/scripts/house_shop.lua:464: in function <data/actions/scrip
ts/house_shop.lua:463>
The truth is that it seems a bit complicated right?

OMG was the problem, house_shop.lua, here Limos friend, just had to enable it and it works xDD me equally say you have tried by all means to help and that is something worthy of praise sincerely thank you for your help friend.
Greetings

error.png



[Really solved]
 
Last edited by a moderator:
Back
Top