!save "15
saveDelay = 15 * 60 * 1000 -- 15 minutes for each save.
storageValue = 2342
if (getGlobalStorageValue(storageValue) == -1) then
function save(saveDelay)
saveData()
debugPrint(">>>>PLAYERS SAVED<<<<")
addEvent(save, saveDelay, saveDelay)
end
addEvent(save, saveDelay, saveDelay)
setGlobalStorageValue(storageValue, 1)
end
serverSaveHour is not the frequence of the save server in hours. It's the hour when it will be saved. -,-"
For example, if you put 6, the server will be saved and restarted (if you want) at 06:00 am. If you want an AUTO SAVE you'll have to make/get a LUA script which saves the server frenquently, or, if you have a basic knowledge in c++, you can do that in sources.
Yours,
Rafael Hamdan;
yes at the 0.3 has it in a npc script just find save_server find autoclean tooMight this work on 0.3?
Disabled save in config.lua
enter data/global.lua
And paste this code:
Code:saveDelay = 15 * 60 * 1000 -- 15 minutes for each save. storageValue = 2342 if (getGlobalStorageValue(storageValue) == -1) then function save(saveDelay) saveData() debugPrint(">>>>PLAYERS SAVED<<<<") addEvent(save, saveDelay, saveDelay) end addEvent(save, saveDelay, saveDelay) setGlobalStorageValue(storageValue, 1) end
Then the saves will save every 15 minutes.
Tested and works on TFS 0.2.13 (its what im using right now on my Znote server the last week, got no probs with it.)
Hes correct, config.lua save only saves once every 24 hour, you only choose when to save.
I recomand you to disable it, and fix the global save I showed you.