Closed BetaTypeCoda closed 2 months ago
@BetaTypeCoda Because you are now using a 2.37.x version of SugarCube to build your project I strongly suggest you read the Updating to any version ≥2.37.0 from a lesser version section of the SugarCube documentation, as it contains answers to your reported issues.
↑ That. Greyelf has the right of it.
Additionally. You have config.saves.autosave
in there twice, with different values no less. It is not helpful to have multiple versions of the same configuration value.
Assuming you want the second version, because that's the version that's taking effect now, you want something like this:
Config.saves.maxAutoSaves = 1;
Config.saves.isAllowed = function (saveType) {
return !tags().includes('noreturn');
};
And as to the second error you received, it tells you exactly what's wrong. It's coming from the first version you have:
config.saves.autosave = "autosave";
Is "autosave"
any of the types listed in the error? No. It's neither a boolean
(true
or false
), an Array<string>
(array of strings), a function
, or a nullish value (null
or undefined
). It is a string
value, which the error also tells you. Hence, the error.
Describe the bug. It opens my browser, but an error message appears and I'm unable to do anything. My stories are made from templates I got from Itch.io, so part of the problem might be them being out of date.
On one of the templates I use, someone was also having the same issues, but they managed to fix it and posted a way to fix it. So far it seems to work but it displays a different error saying, 'config is not defined'. The person suggested to change 'config' to 'Config' in JavaScript to which I did but got this message.
To Reproduce: Steps to reproduce the behavior:
Expected behavior. Run games.
Screenshots.
Project details.
Desktop details.
Additional context. I use story templates from Itch.io. So, I'm thinking them being out of date is the issue.