Sleepless

Configuration

Last updated on

Shared settings live in config.lua at the resource root. The file returns the table.

local config = {
    versionCheck = true,
    cellSize = 100,
    bufferSize = 1,
    checkInterval = 500,
    debug = false,
    dynamicBuffer = {
        enabled = true,
        speedThreshold = 60,
        restoreThreshold = 45,
    },
}

return config
OptionTypeDefaultDescription
versionCheckbooleantrueCheck GitHub for a newer release on start
cellSizenumber100Cell width and height in meters
bufferSizenumber1Extra rings of cells to stream around the player
checkIntervalnumber500Milliseconds between movement checks. The server never polls faster than 250
debugbooleanfalsePrint cell enter and leave lines
dynamicBuffer.enabledbooleantrueShrink the streamed buffer while the player is moving fast
dynamicBuffer.speedThresholdnumber60Miles per hour where streaming shrinks to the current cell
dynamicBuffer.restoreThresholdnumber45Miles per hour where the full buffer returns

restoreThreshold must stay below speedThreshold. When it does not, the resource uses 15 mph under the shrink speed.

debug only enables those log lines. There is no test command.

On this page

No Headings