MV (SOLVED) First time posting, need help making the save file name be custom actor name

Hello! First of all, if I am posting incorrectly, someone please redirect me to where I should properly post it. If not, also tell me if I posted correctly lol.

Anyways, does anyone know any way that I can make the save file name be a custom actor name? I am using Yanfly Save Core for the save menu. I want it so that the save file name when a new save is made to be the name that the player inputs at the beginning of the game. In addition to that, I want it so that files with no progress whatsoever on it just default to say "No data" to indicate that there's, well, no data at all in the save. If this is even possible, please let me know. Also, am I able to remove those numbers on the side? Any help is appreciated!

Below is a mock-up of what I want it to look like.

mockup.png
Hello! First of all, if I am posting incorrectly, someone please redirect me to where I should properly post it. If not, also tell me if I posted correctly lol.
either js/plugin support or plugin requests. in this case, its your call really.
this change would need to be done through a plugin, not only because the data has to be handled with a plugin, but also because youre already using Yanfly's plugin to handle your saves.

that being said, save this as a .js file and introduce it to your project as a plugin below yanfly's save one. itll make the save file name the same name as actor 1's

Spoiler
Code:
DataManager.makeSavefileInfo = function() {
    var info = {};
    info.globalId   = this._globalId;
    info.title      = $dataSystem.gameTitle;
    info.characters = $gameParty.charactersForSavefile();
    info.faces      = $gameParty.facesForSavefile();
    info.playtime   = $gameSystem.playtimeText();
    info.timestamp  = Date.now();
    info.fileName   = $gameActors.actor(1).name();

    return info;
};
Window_SavefileList.prototype.drawFileId = function(id, x, y) {
    var info = DataManager.loadSavefileInfo(id)
    if (info){
        if (DataManager.isAutoSaveFileId(id)) {
            if (this._mode === 'save') {
                this.changePaintOpacity(false);
            }
            this.drawText(info.fileName + '(Auto)', x, y, 180);
        } else {
            this.drawText(info.fileName, x, y, 180);
        }
    }
    else
        this.drawText("No Data", x, y, 180);
};
gave it a quick test and it looks fine. you'll want to delete all your old saves though.
It seems to be conflicting with other scripts or something. I don't know what I'm doing wrong, but the script just isn't working.

I have it directly under the Yanfly Save Core script and have it named "SaveNames.js"

It works to a point having all of the files be called "No Data" but the moment you save and try to load the game it gives this message.

Screenshot 2025-06-07 001349.png


And yes, I did delete my saves
ah, i forgot i had changed my testing project to use a modified set of core scripts. just made a fresh one and i see its not a native function. heres the readjustment:

Spoiler
Code:
DataManager.makeSavefileInfo = function() {
    var info = {};
    info.globalId   = this._globalId;
    info.title      = $dataSystem.gameTitle;
    info.characters = $gameParty.charactersForSavefile();
    info.faces      = $gameParty.facesForSavefile();
    info.playtime   = $gameSystem.playtimeText();
    info.timestamp  = Date.now();
    info.fileName   = $gameActors.actor(1).name();

    return info;
};
Window_SavefileList.prototype.drawFileId = function(id, x, y) {
    var info = DataManager.loadSavefileInfo(id)
    if (info)
        this.drawText(info.fileName, x, y, 180);
    else
        this.drawText("No Data", x, y, 180);
};
Yup, works like a charm! Thanks!
This thread is closed due to being marked as solved. If you need it reopened, you can report it to let us know.

For any future requests, you can use the report button at the bottom of the post to place an item in our queue. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/solved-first-time-posting-need-help-making-the-save-file-name-be-custom-actor-name.178147/