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

Server error 10054 after a few mins TFS 0.4 8.60 Client

Dkadsfe

Member
Joined
Apr 1, 2016
Messages
280
Reaction score
22
Hey guys I recently downloaded a server just for fun, there was a few errors but I am trying to fix them, anyways after a few minutes the server just stops working and says server error 10054 when I try to log in, there is no error on my console what could be the cause of this?

Could it be my save lua?
Code:
function executeSaveServer()
    doSaveServer()
    doBroadcastMessage("Server Saved, next save in " .. table.concat(string.timediff(interval / 1000)) .. ".")
    return true
end

function onThink(interval, lastExecution, thinkInterval)
    doBroadcastMessage("Automatic Server save in 10seconds!")
    addEvent(executeSaveServer, 10000)
    return true
end
I tried to find a way to make it save
Code:
        <globalevent name="save" interval="900000" event="script" value="save.lua"/> <!-- 15min -->

There is also this error but I'm thinking its either one of the scripts or one of the SQLite files
Code:
[11:25:11.081] OTSYS_SQLITE3_PREPARE(): SQLITE ERROR: no such function: UNIX_TIMESTAMP ( SELECT houses.owner, houses.id as hid, houses.name as house_name ,players.name FROM houses
[11:25:11.089]             LEFT JOIN players ON players.id=houses.owner
[11:25:11.092]             LEFT JOIN accounts ON players.account_id=accounts.id
[11:25:11.096]             WHERE players.lastlogin < (UNIX_TIMESTAMP() - 7*24*60*60)
[11:25:11.100]                         AND      players.world_id =0)

Or the clean lua's error
Code:
[11:27:20.505] [Error - LuaInterface::loadFile] data/globalevents/scripts/clean.lua:2: unexpected symbol near '┬'
[11:27:20.510] [Warning - Event::loadScript] Cannot load script (data/globalevents/scripts/clean.lua)
[11:27:20.515] data/globalevents/scripts/clean.lua:2: unexpected symbol near '┬'

clean.lua
Code:
function executeClean(interval)
    doCleanMap()
    doBroadcastMessage("Game map cleaned, next clean in " .. table.concat(string.timediff(interval / 1000)) .. ".")
    return true
end
 
function onThink(interval)
    doBroadcastMessage("Game map cleaning within 30 seconds, please pick up your items!")
    addEvent(executeClean, 30000, interval)
    return true
end

Code:
        <globalevent name="clean" interval="7200000" event="script" value="clean.lua"/> <!-- 2 Hours -->
Just to clarify I'm very much a noob at this so idk what the errors mean :( I just want to play a server by myself without it shutting down
 
Last edited:
Back
Top