Yanfly Save Core does not work HTML5

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,522
Reaction score
14,255
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,522
Reaction score
14,255
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,522
Reaction score
14,255
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
251
Reaction score
232
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

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,853
Messages
1,016,990
Members
137,562
Latest member
tamedeathman
Top