Page 1 of 1

Autosave App

Posted: March 26th, 2010, 12:03 am
by Leo_V117
Does anyone ever get annoyed when Youve spent hours on a map and your computer crashes and you realise that you didnt save the map?

Well..... I have a solution to that problem.

If you already have an "autoexec.cfg" file just simply paste the code into the bottom of the file and save it.

Code: Select all

autosave = [
    echo AutoSave ON
    echo Autosave: Autosave Active
    echo Created by: Leo_V117
    asloop_on = 1;
    autosave_loop
]

autosave_loop = [
    sleep 50000 [
        if (= $asloop_on 1) [
            savemap
            echo Autosave: The Map was successfully saved
            autosave_loop
        ] []
    ]
    adscript = [
        echo AutoSave OFF
        asloop_on = 0;
        autosave_loop
        autosave = [
            echo AutoSave ON
            asloop_on = 1;
            autosave_loop
        ]  
    ]
]
If not. Download the autoexec.cfg from one of my other apps and paste the code at the bottom.

Then type /autosave into the console and let the engine do the rest.

Re: Autosave App

Posted: March 26th, 2010, 12:40 am
by GR1M
Keep up the good work :), it was smart of you to create a autoexec.

Re: Autosave App

Posted: March 26th, 2010, 7:32 am
by Leo_V117
heh heh. The autosave was designed for win 7 users. as the editor always crashes.