@Malebranche Which *creates are you referring to?
*create strength 50
*create otherstat ""
Those ^^ at the beginning of your startup.txt file after the scene list. The *create command is for your global (or constantly used) stats.
So under all my stats and before any exposition, Iāve added *sm_init Song_Of_The_Fallen | 3. Song_Of_The_Fallen is what Iāve put as my game_id in smPlugin.js with a slotCount of 3. But now itās throwing up this error.
Which is strange since I added both of those to my index file? I added it to the index file in the mygame folder since the one in the web folder doesnāt seem to have anywhere for me to put it. I did the same thing for the original save.js system that began this thread, and that worked fine. Iāve also placed copies of smPlugin.js and smPluginMenuAddon to both the mygame folder and the web folder.
Reading up, specifically looking at what @Flurrywinde11 posted, I get the impression that youāre also supposed to declare *sm_load and sm_save? Iāve also fiddled with the quick-save-menu .zip folder @CJW linked to in another thread, but to no avail.
So you have a copy of each one in the mygame & in the web folder (4 files in total 2 of each)?
Yes, but the error comes up either way. You say youāve manged to get it working? Is there any chance i could see a snippet of your relevant code?
I only have 1 copy of each, placed within my web folder, like so:
In index.html:
And in startup.txt:
Thatās pretty much exactly, what mine isā¦which index file did you edit?
The one in the mygame folder.
Still throws up the same error, though it also throws up this.
Iām downloaded the lastest version of choicescript from the website and Iām busy updating my firefox, hopefully thatāll have some effect, because as far as I can tell weāre doing exactly the same thing.
If you remove smPluginMenuAddon.js from your index.html for a bit, save index.html, and double click index to open it, does it still throw up the localStorage error?
Yup except now thatās the only error it throws up, and whatās really weird is I managed to get it sort of working on the quick-save-menu.zip folder I mentioned earlier (which I just realised is actually from your Saving āon the flyā topic). So figured I could just move my scene files over that and see what happens, and it threw this up.
Iām starting to think itās just not meant to be.
Ok, then if itās still throwing up that particular error, itās probably your browser (which you said you already updated)⦠Do you have any settings on your browser such as ādo not accept cookies from 3rd party websitesā checked?
Iām 100% certain itās not my browser. Iāve managed to get it working perfectly on that quick-save-menu.zip folder, Iāve done multiple tests and itās completly functional. I then went through the same steps for my actual game, and it still gives the same errors. I think the issue must have something to do with something in my scene files, which is odd since this is the only time Iāve tried to do anything outside of choicescript to those specific files.
Hmm⦠well, about the only other thing I can recommend trying, if you havenāt already, is to reset everything, as in copy all your scene files to another folder, re-download CS, then re-download the other files (smPlugin.js etc.).
A bit of a random question, but you do have your gameās name and the amount of save slots assigned to it separated by a pipe ( | ) with a space on either side right? Sorry if it sounds like Iām asking a stupid question, but since I canāt see your files, I donāt know what or what you didnāt do.
Can you zip up and post your entire āwebā folder?
@Malebranche I do yes, whatās frustrating is that I was able to get it to work, but when I try following the exact same steps on my actual game it throws up errors.
@Flurrywinde11 Doesnāt seem like I can upload .zip files, but hereās a dropbox link
smPlugin MUST come BEFORE the add-on file in index.html, this almost certainly the problem youāre having.
@CJW Iāve checked and it is before.
Iām able to get it working using an earlier example of yours as a testing base, but whatever I do doesnāt seem to translate.
Your problem was an old (and damaged) version of smPlugin.js - thus it wasnāt loading correctly.
Replace smPlugin.js with the latest one found here.
@CJW Yeah, Iāve since managed to get it working aside from two issues. If I donāt remove *author Left4Bed, the game crashes and when you quicksave it doesnāt change the name of your save file, even though it did save. So it reads as āNo Dataā even though it has been saved and can be loaded.