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

Windows Server Save Causes Crash?

Collz

Pandas Go RAWR!!!
Joined
Oct 10, 2008
Messages
2,091
Reaction score
57
Location
New York
Well my server has been crashing a lot recently, but the last thing that shows on the console before it crashes every time is the server save broadcast. Then it either crashes or freezes. It doesn't happen on every server save, but when it does crash, it's during a save. Could the server save be the reason why my server is crashing?

Here is the script, just in case anyone needs it.
Lua:
local config = {
	broadcast = {120, 30},
	shallow = "no",
	delay = 120,
	events = 30
}

config.shallow = getBooleanFromString(config.shallow)

local function executeSave(seconds)
	if(isInArray(config.broadcast, seconds)) then
		local text = ""
		if(not config.shallow) then
			text = "Full s"
		else
			text = "S"
		end

		text = text .. "erver save within " .. seconds .. " seconds, please mind it may freeze!"
		doBroadcastMessage(text)
	end

	if(seconds > 0) then
		addEvent(executeSave, config.events * 1000, seconds - config.events)
	else
		doSaveServer(config.shallow)
	end
end

function onThink(interval)
	if(table.maxn(config.broadcast) == 0) then
		doSaveServer(config.shallow)
	else
		executeSave(config.delay)
	end

	return true
end
 
I had the problem that it reloads everything at global save.
You need source edit and replace or remove this: (Search it with ALT + SHIFT + F)
reloadInfo(RELOAD_ALL);

just comment it like that:
//reloadInfo(RELOAD_ALL);
 
Back
Top