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

Linux Error in console

Luka Trklja

Member
Joined
Jul 8, 2016
Messages
121
Solutions
5
Reaction score
8
Location
Croatia
I dont even know what triggers it, TFS 0.3.6 8.6 LINUX

Code:
[Error - TalkAction Interface]
buffer:onSay
Description:
data/lib/034-exhaustion.lua:28: field 'day' missing in date table
stack traceback:
        [C]: in function 'time'
        data/lib/034-exhaustion.lua:28: in function 'set'
        [string "loadBuffer"]:21: in function <[string "loadBuffer"]:8>

034-exhaustion
Lua:
exhaustion =
{
    check = function (cid, storage)
        if(getPlayerFlagValue(cid, PLAYERFLAG_HASNOEXHAUSTION)) then
            return false
        end

        return getPlayerStorageValue(cid, storage) >= os.time(t)
    end,

    get = function (cid, storage)
        if(getPlayerFlagValue(cid, PLAYERFLAG_HASNOEXHAUSTION)) then
            return false
        end

        local exhaust = getPlayerStorageValue(cid, storage)
        if(exhaust > 0) then
            local left = exhaust - os.time(t)
            if(left >= 0) then
                return left
            end
        end

        return false
    end,

    set = function (cid, storage, time)
        setPlayerStorageValue(cid, storage, os.time(t) + time)
    end,

    make = function (cid, storage, time)
        local exhaust = exhaustion.get(cid, storage)
        if(not exhaust) then
            exhaustion.set(cid, storage, time)
            return true
        end

        return false
    end
}
 
Check your database schema, you are most likely missing "day".
Hard to say what table, check exhaustion.set to see what table the query is referring to.
 
Could u clarify that a bit?

Code:
data/lib/034-exhaustion.lua:28: field 'day' missing in date table

It is saying you are missing the field "day" in your date table (sorry missed the date haha)
So check the date table in your database and if it has day in it or not.
 
Code:
data/lib/034-exhaustion.lua:28: field 'day' missing in date table

It is saying you are missing the field "day" in your date table (sorry missed the date haha)
So check the date table in your database and if it has day in it or not.
I dont think I have the date table haha

bump
 
Last edited by a moderator:
I don't think it has anything to do with database tables.

Your script is passing 't' (would be nil from what I can see) to os.time, it expects a table like what os.date("*t") returns or nothing at all.

You only need the time "now" and not some specific date/time, so try changing os.time(t) to os.time().
 
I don't think it has anything to do with database tables.

Your script is passing 't' (would be nil from what I can see) to os.time, it expects a table like what os.date("*t") returns or nothing at all.

You only need the time "now" and not some specific date/time, so try changing os.time(t) to os.time().
Will try that once we do a restart for update, thanks man.
 
I don't think it has anything to do with database tables.

Your script is passing 't' (would be nil from what I can see) to os.time, it expects a table like what os.date("*t") returns or nothing at all.

You only need the time "now" and not some specific date/time, so try changing os.time(t) to os.time().
Dont have much opportunities to restart but did it today, changing what u told me did nothing, still getting the error in console :(
 
Back
Top