Author Topic: Auto Save  (Read 9179 times)

Would it be possible to setup an auto save script that would have a dedicated lan server save every so often, like once an hour?

And also load from the most recent auto save when the dedicated server is restarted?

Quite possible and i belive very easy, but i dont want to do it =(

No, I don't think it's possible without knowing the save function...if you know it, just make a schedule that calls a function that saves, and recall it every hour or whenever.


If I knew the save function, I'd do it. But I don't, so I won't. :D

Umm, getting the function name is cake.  Just run retail with the editor mod and open the save GUI in F10.  Then click on the button that saves your work and get the function name there.  Now, knowing what variables to send to the function, that's the hard part.

Give me 10 mins and I'll whip up a script.  :cookieMonster:

Another JookScript on the way =D

JookScript is a terrible name btw.


JookScript: Auto Save

Code: [Select]
function AutoSave(%name,%minutes);
{
schedule("" @ %minutes @ "000,savebuild," @ %name @ "");
schedule("" @ %minutes @ "000,AutoSave");
}

Has not been tested.

Usage: AutoSave(##SAVENAME##,##MINUTES##);

EDIT: Had to fix it so it'd loop.
« Last Edit: March 01, 2007, 08:55:42 PM by Jookia »

Pardon me, look at my edited post.

Umm, why are you releasing something that you haven't tested?



Sweet, thanks!

I'm gonna try this out

Tell me if it works.