Yanfly Save Core does not work HTML5

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,517
Reaction score
14,248
First Language
English
Primarily Uses
RMVXA
That's because when you add a plug-in you *MUST* start a new game. Old saves will not work. This is because they add variables which the old saves will not recognize. So yes, to the engine, when you add that plug-in it thinks it is from a different game as it is from a different game, one without the plug-in.
 

TheUnsaid

Villager
Member
Joined
Sep 22, 2019
Messages
10
Reaction score
2
First Language
English
Primarily Uses
RMMV
That's because when you add a plug-in you *MUST* start a new game. Old saves will not work. This is because they add variables which the old saves will not recognize. So yes, to the engine, when you add that plug-in it thinks it is from a different game as it is from a different game, one without the plug-in.
I did start a new game. My game isn't that long, so I usually start a new game to test.
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,517
Reaction score
14,248
First Language
English
Primarily Uses
RMVXA
But did you delete the old saves or move them to a new directory? If they are still there it will throw off the system. As it is, it looks like it is finding an old save that doesn't match what it wants so it is marking it as for another game based on that screenshot.
 

TheUnsaid

Villager
Member
Joined
Sep 22, 2019
Messages
10
Reaction score
2
First Language
English
Primarily Uses
RMMV
But did you delete the old saves or move them to a new directory? If they are still there it will throw off the system. As it is, it looks like it is finding an old save that doesn't match what it wants so it is marking it as for another game based on that screenshot.
Please try for yourself as you're a completely new user. It's very accessible and won't take your time.
I swear even fresh runs cause that error.
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,517
Reaction score
14,248
First Language
English
Primarily Uses
RMVXA
The thing is, I use that plug-in and it works for me. So it is something else causing it.
 

TheUnsaid

Villager
Member
Joined
Sep 22, 2019
Messages
10
Reaction score
2
First Language
English
Primarily Uses
RMMV
The thing is, I use that plug-in and it works for me. So it is something else causing it.
For HTML5 as well?
I have no problems on Desktop mind you.
 

Ossra

Formerly Exhydra
Veteran
Joined
Aug 21, 2013
Messages
1,076
Reaction score
854
First Language
English
Primarily Uses
RMMV
@TheUnsaid There appears to be a check against the title of the save and the title of the game during the save game verification code. I am not sure if that was added in recently or not, but once I removed the check everything worked as normal. The code that follows is a quick-fix and has the title check removed. Copy and paste the code into a '.js' file, plop it into the plugins folder, and add it as a plugin. That should fix the issue. Probably.

Code:
DataManager.isThisGameFile = function(savefileId) {
    var globalInfo = this.loadGlobalInfo();
    if (globalInfo && globalInfo[savefileId]) {
        if (StorageManager.isLocalMode()) {
            return true;
        } else {
            var savefile = globalInfo[savefileId];
            return (savefile.globalId === this._globalId);
        }
    } else {
        return false;
    }
};


EDIT: Or if you don't want to add the above as a plugin, you can edit line 273 and 274 of '/js/rpg_managers.js' :

Code:
DataManager.isThisGameFile = function(savefileId) {
    var globalInfo = this.loadGlobalInfo();
    if (globalInfo && globalInfo[savefileId]) {
        if (StorageManager.isLocalMode()) {
            return true;
        } else {
            var savefile = globalInfo[savefileId];
            return (savefile.globalId === this._globalId &&
                    savefile.title === $dataSystem.gameTitle);
            // Remove the '&& savefile.title === $dataSystem.gameTitle'
            // The line should appear as 'return (savefile.globalId === this._globalId);'
        }
    } else {
        return false;
    }
};
 

TheUnsaid

Villager
Member
Joined
Sep 22, 2019
Messages
10
Reaction score
2
First Language
English
Primarily Uses
RMMV
@Ossra
Can I hug you?

So it wasn't a save core problem. It was a basic RPG Maker problem.
 

Ossra

Formerly Exhydra
Veteran
Joined
Aug 21, 2013
Messages
1,076
Reaction score
854
First Language
English
Primarily Uses
RMMV
@TheUnsaid Well, there is an issue going on somewhere, since that check has been around since at least MV version 1.2. But, for a quick-fix you can at least use the code above.
 

SeaPhoenix

Veteran
Veteran
Joined
May 14, 2015
Messages
249
Reaction score
230
First Language
English
Primarily Uses
RMMV

Aloe Guvner

Walrus
Veteran
Joined
Sep 28, 2017
Messages
1,628
Reaction score
1,115
First Language
English
Primarily Uses
RMMV
The save files for MV web browser games are stored in localStorage. This data storage is segregated for each domain, so if you only host one MV game on your domain then you're fine to remove that check as described above. However if you have more than one MV game on your domain then you need that check.
 

TheUnsaid

Villager
Member
Joined
Sep 22, 2019
Messages
10
Reaction score
2
First Language
English
Primarily Uses
RMMV
The save files for MV web browser games are stored in localStorage. This data storage is segregated for each domain, so if you only host one MV game on your domain then you're fine to remove that check as described above. However if you have more than one MV game on your domain then you need that check.
Don't games have a unique identifier though?
"
savefile.globalId === this._globalId
"
What's wrong with just relying on that?
 

Ossra

Formerly Exhydra
Veteran
Joined
Aug 21, 2013
Messages
1,076
Reaction score
854
First Language
English
Primarily Uses
RMMV
@TheUnsaid The 'globalId' is always -- for now at least -- set to 'RPGMV'. So there is no built-in, unique identifier for each game. YEP Save Core adds in a unique identifier, though.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts


My only regret is the portal mirror effect is too subtle to show up in these GIFs. It probably just needs more sparkles. :LZSwink:
Microsoft: Hey, let's waste money advertising the Xbox Series X when nobody has any in stock, we don't seem to be making more, we aren't taking preorders and you can't get on a waiting list. BEST. IDEA. EVER.
So I'm practicing ITC with a spirit box, and decide to try to contact my deceased soulmate. It actually gave me multiple identifiers. Me, still a bit skeptical, asked aloud "Fine but does he still love me?" and the box spoke and printed the word "Forever" at the same time. Been a mess of tears since. :kaocry:
Been scratching away at my game and making progress, but just had a revelation. I'm working in full screen and adjusting all my pictures accordingly, but will they resize if someone's screen is smaller?? I hope this doesn't turn out to be a problem later.

Forum statistics

Threads
105,635
Messages
1,015,170
Members
137,307
Latest member
MrKaito
Top