How to pull data from other save files?

Long story short, I can't find a save/load menu plugin that works for me, so I'm going to make my own with images and event commands, but that would require me to show the information for each file.

Are there any scripts that allow me to pull data from other save files? Like health, names, variables and stuff?
That's pretty technical. There's not some simple script call for pulling some bit of information out of a save file.

There's a DataManager._globalInfo object that stores specific pieces of information about save files as the games are saved. If you want to retrieve information that's not already stored in there, you'd have to change the code to add the extra pieces of data there.

It doesn't really make sense to go that in-depth into the code and then say you're going to event the save menu, rather than just change the appearance of the Scene_Load via a plugin.
Well, if DataManager.globalInfo stores specific pieces of data, which ones are stored? And how do I get their values? I might be able to work with them.
The information you already see by default - which actors are in the party and how long the game has been played.

Window_SaveFileList.prototype.drawItem(), drawTitle(), and drawContents() (amongst others) show examples of how that data is obtained and used.
Well, if DataManager.globalInfo stores specific pieces of data, which ones are stored? And how do I get their values? I might be able to work with them.
This is the code that makes the global info:

Code:
DataManager.makeSavefileInfo = function() {
    const info = {};
    info.title = $dataSystem.gameTitle;
    info.characters = $gameParty.charactersForSavefile();
    info.faces = $gameParty.facesForSavefile();
    info.playtime = $gameSystem.playtimeText();
    info.timestamp = Date.now();
    return info;
};

When you want to add more data, you want to create a custom plugin (with any name) and either override or alias this function. Assuming you are a beginner, I suggest overriding this function.

Code:
DataManager.makeSavefileInfo = function() {
    const info = {};
    info.title = $dataSystem.gameTitle;
    info.characters = $gameParty.charactersForSavefile();
    info.faces = $gameParty.facesForSavefile();
    info.playtime = $gameSystem.playtimeText();
    info.timestamp = Date.now();

    info.customVariable1 = $gameVariables.value(1);
    info.location = $gameMap.displayName() || 'Unknown Location; // <-- new data
    return info;
};

When you struggle with this procedure, then I suggest opening a commission and looking for a developer to design the whole save/load menu for you because there's no simple command to extract information from save files (that have not yet been loaded).

After that, you can call these functions:

Code:
DataManager.savefileExists(1)
- returns true/false

DataManager.savefileInfo(1).customVariable1
DataManager.savefileInfo(1).location
This is the code that makes the global info:

Code:
DataManager.makeSavefileInfo = function() {
    const info = {};
    info.title = $dataSystem.gameTitle;
    info.characters = $gameParty.charactersForSavefile();
    info.faces = $gameParty.facesForSavefile();
    info.playtime = $gameSystem.playtimeText();
    info.timestamp = Date.now();
    return info;
};

When you want to add more data, you want to create a custom plugin (with any name) and either override or alias this function. Assuming you are a beginner, I suggest overriding this function.

Code:
DataManager.makeSavefileInfo = function() {
    const info = {};
    info.title = $dataSystem.gameTitle;
    info.characters = $gameParty.charactersForSavefile();
    info.faces = $gameParty.facesForSavefile();
    info.playtime = $gameSystem.playtimeText();
    info.timestamp = Date.now();

    info.customVariable1 = $gameVariables.value(1);
    info.location = $gameMap.displayName() || 'Unknown Location; // <-- new data
    return info;
};

When you struggle with this procedure, then I suggest opening a commission and looking for a developer to design the whole save/load menu for you because there's no simple command to extract information from save files (that have not yet been loaded).

After that, you can call these functions:

Code:
DataManager.savefileExists(1)
- returns true/false

DataManager.savefileInfo(1).customVariable1
DataManager.savefileInfo(1).location
Thank you, you're a lifesaver!

Original thread: https://forums.rpgmakerweb.com/threads/how-to-pull-data-from-other-save-files.173357/