[Solved] Browsers say "this save is for a different game"

Hello,

I have tried to play my game in a browser and everything seems to be working, but when I save the game it says "this save is for a dirrerent game". I have tried this with edge and chrome and they both have the same issue, my firefox is not able to save games at all for some reason.

If you want to check it out for yourself this is where I have uploaded it:
This is where I uploaded the game, but the issue is fixed now:

I haven't encountered this bug before (my previous version of the game worked in browsers) and it does not happen when I launch the game from RPGMaker itself. Does anybody have an idea why this could be happening?

Plugins I am using that might be relevant to this are YEP_SaveCore and FELSKI_AUTOSAVE
I've had a look at your game, and have identified the problem. The error message appears because your save file is not recognized as a valid save file.

For some reason, RPG Maker MV only checks the validity of saves for web games. When you play your game locally, MV assumes your saves are always valid. This is why you're not seeing this error when playtesting.

To be valid, your save file must contain a globalId of "RPGMV", indicating that it was made for an RPG Maker MV game. This is correct.

Your save file must also contain a title that matches your gameTitle of "Battle For Sanity". Unfortunately, the title says "Normal Save" instead. This is caused by a plugin named FELSKI_AUTOSAVE.

I'm not trying to point fingers, but it seems the author of the FELSKI_AUTOSAVE plugin didn't understand the purpose of the saveFileInfo.title. I can't really blame them, though, considering the validity check only runs when the game is deployed in the web (and few people ever test for that, since it requires running a server).

The easiest fix would be to disable or remove that plugin.
Your save file must also contain a title that matches your gameTitle of "Battle For Sanity". Unfortunately, the title says "Normal Save" instead. This is caused by a plugin named FELSKI_AUTOSAVE.
Thank you for figuring that out. Do you maybe know a way to modify the plugin to change the save title (I wouldn't mind if it was just hardcoded)?
I know i could also use Yanfly's autosave plugin, but I'd prefer to stick with the felski one because it does not overwrite previous save files.
Thank you for figuring that out. Do you maybe know a way to modify the plugin to change the save title (I wouldn't mind if it was just hardcoded)?
I know i could also use Yanfly's autosave plugin, but I'd prefer to stick with the felski one because it does not overwrite previous save files.
You can either delete lines 166 - 171 of the plugin:
JavaScript:
    Felski.AUTOSAVE.DataManager_makeSavefileInfo = DataManager.makeSavefileInfo;
    DataManager.makeSavefileInfo = function() {
        var info = Felski.AUTOSAVE.DataManager_makeSavefileInfo.call(this);
        info.title = Felski.AUTOSAVE.triggerText;
        return info;
    };
This doesn't really serve any purpose other than change the text displayed in the Save window (and this is clearly not how it should be done), so it can be deleted without any additional changes to the plugin. Line 27 explicitly allows editing the plugin: * You are allowed to edit the code.

Or you can change the value of the "Save Standard Text" parameter. By default that value is "Normal Save". Simply change it to the title of your game "Battle For Sanity" and it should work. I recommend copy-pasting the title from your game, because this must match exactly, including any whitespaces and capitalization (lowercase "f" is not the same as uppercase "F")

Personally, I think the first solution is better. If you intend to make more games with this plugin, you can just copy the "fixed" plugin into any future project. Otherwise, you'd have to remember that the "Save Standard Text" parameter must match your game's title. If you change the title after that, you might forget to update the parameter, and then you might waste another couple of hours trying to figure out why your saves have broken again.
You can either delete lines 166 - 171 of the plugin:
JavaScript:
    Felski.AUTOSAVE.DataManager_makeSavefileInfo = DataManager.makeSavefileInfo;
    DataManager.makeSavefileInfo = function() {
        var info = Felski.AUTOSAVE.DataManager_makeSavefileInfo.call(this);
        info.title = Felski.AUTOSAVE.triggerText;
        return info;
    };
Thank you again, I will try deleting those lines then.
Edit: I tried it and it worked
I forgot to mention this, but once you update your game on Newgrounds, it's possible the bug is still around. This is because browsers usually cache JavaScript and other resource files. If that happens, just press Ctrl + F5 to force the browser to clear its cache (or Google how to clear the cache for the browser you're using).

It's possible that Newgrounds already handles clearing the cache for you when you update your game. But if the bug is still around, clearing the cache should be the first thing you try.
I forgot to mention this, but once you update your game on Newgrounds, it's possible the bug is still around. This is because browsers usually cache JavaScript and other resource files. If that happens, just press Ctrl + F5 to force the browser to clear its cache (or Google how to clear the cache for the browser you're using).

It's possible that Newgrounds already handles clearing the cache for you when you update your game. But if the bug is still around, clearing the cache should be the first thing you try.
Thanks for the warning, fortunately everything worked right away though.

Original thread: https://forums.rpgmakerweb.com/threads/solved-browsers-say-this-save-is-for-a-different-game.143846/