HTML Twine 2.10 with sugarcube 3.37.3 Save/Load

Marduk73

Newbie
Jul 19, 2021
20
4
Hello folks; Twine 2.10 with Sugarcube 3.37.3 makes me despair. At the end of a day, I get to a diary in which the most important events of the day are summarized, after which it goes to the next morning, this is done via a button. So far so functions. But, I want him to make a autosave at this point, which I can then continue as a sequel in the intro. But no matter how, he only give a error. Help...
 

Greeedium

Newbie
Dec 17, 2021
40
24
Have you tried the docs?


Code:
Config.saves.isAllowed = function (saveType) {
    if (saveType === Save.Type.Auto) {
        return tags().includes("autosave");
    }

    return true;
};
Then adding the "autosave" tag to every passage that should trigger an autosave?