Yanfly Save Core does not work HTML5

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,600
Reaction score
14,327
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,600
Reaction score
14,327
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,600
Reaction score
14,327
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
857
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
857
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
255
Reaction score
235
First Language
English
Primarily Uses
RMMV

Aloe Guvner

Walrus
Veteran
Joined
Sep 28, 2017
Messages
1,628
Reaction score
1,118
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
857
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 Profile Posts

werewolf and his friends added!!

YAY! I just posted my third Guide! Setting up STEAM Integration in RPG Maker MV WITH updated NW.js (huge performance update)
rux
MUCLSES!!! :epicface: :epicface:
If you're reviewing someone else's game, don't focus only on the negative and criticize them. Use positive constructive feedback. As game developers, we need to empower one another; not put each other down.
just posted a song I made for my game a while back... I sampled the HEY from Earthworm Jim's Snot a problem levels lol...

Forum statistics

Threads
107,500
Messages
1,030,103
Members
139,629
Latest member
Beasuce
Top