Save Title

saveTitle1.jpg
By default, when you save a game, the title that is used is the title of the game.
However, this isn't very useful. It would be better to show something more relevant to the actual save file, such as a map location, or the current chapter, or anything else.

With this plugin, you can use events to determine what the current save title should be.
 
More information and downloads available at HimeWorks​
Plugin has been updated to v1.1 in response to a request.

The save title can be a formula. For example, if you want the save title to be the name of the map that you're on, instead of having to set the title everytime you enter a new map, you can write

Code:
TH.setSaveTitle("$gameMap.displayName()");
And then the game will automatically ask for the map's name when it's saving.
Hello.

Is there a possibility to make this compatible with ArkDG's Save Engine?


Thank you.
Beautiful. 
Hello.

Is there a possibility to make this compatible with ArkDG's Save Engine?


Thank you.

What is the issue with that save engine?
What is the issue with that save engine?



I've been trying to set the file name for ArkDG's system as your save title. With very little success. 
I'm unsure what variable to pull from the Save Title plugin. But when I toggle between the two they work as intended.


Save Title 1.pngSave Title 2.png


There aren't any errors. I just feel like there's a way to pull the string I created from your plugin into the way he inputs allows to have customized titles using variables. 

Thanks for your time. 
I've been trying to set the file name for ArkDG's system as your save title. With very little success. 
I'm unsure what variable to pull from the Save Title plugin. But when I toggle between the two they work as intended.


There aren't any errors. I just feel like there's a way to pull the string I created from your plugin into the way he inputs allows to have customized titles using variables. 

Thanks for your time. 



There is a "title" variable associated with each savefile by default.


You should find where the File # is being drawn, and see how to replace that with the savefile's title.


I imagine there will be references to playtime around that code, which is also stored with the savefile. You can look for that to determine how to grab the title.
There is a "title" variable associated with each savefile by default.


You should find where the File # is being drawn, and see how to replace that with the savefile's title.


I imagine there will be references to playtime around that code, which is also stored with the savefile. You can look for that to determine how to grab the title.

Not sure what I can do hahaha. I think he's renaming the actual file. not the title. as I don't see any call for the title (like by default the game name, or via your plugin any kind of string or formula)

It was worth asking, though. Thanks again. 
Well, what do you want it to look like?
Well, what do you want it to look like?

edit.png


Thank you.
Thank you.


If you look at this part, you'll see that this is where the "File #" is drawn


Window_SavefileStatus.prototype.drawFileId = function(id, x, y) {
var info = DataManager.loadSavefileInfo(id);
brokenID = id;
var icon_on = 0;
if (ark_icon_on == 'y') {icon_on = 33;}
if (info && ark_player_name[1] != 'n' && info.player_name != null && info.player_name != undefined && info.player_name != info.location) {
this.drawText(info.player_name + ' ' + id, x + ark_fileId_x + icon_on, y + ark_fileId_y);
} else { this.drawText(TextManager.file + ' ' + id, x + ark_fileId_x + icon_on, y + ark_fileId_y, 180);}
};


So looking at where drawFileId is called, you'll find yourself at


Window_SavefileStatus.prototype.refresh = function() {


line 1245


this.drawFileId(id, rect.x, rect.y);
if (info) {
this.changePaintOpacity(valid);
this.drawContents(info, rect, valid);
this.changePaintOpacity(true);
} else {

}


You could just change that to

Code:
if (info) {
    this.drawText(info.title, rect.x + 40, rect.y, rect.width, this.lineHeight());
    this.changePaintOpacity(valid);            
    this.drawContents(info, rect, valid);
    this.changePaintOpacity(true);            
} else {
    this.drawFileId(id, rect.x, rect.y);
}
Can I name the chapter for the Save title based on the player's progress?
Can I name the chapter for the Save title based on the player's progress?

Based on where they are in progress, just make an event or a common event with switches that will execute the plugin command to change the title to respective chapter.
anoo..
excuse me..


when i use it..


i can't load on android..
sankyu
anoo..
excuse me..


when i use it..


i can't load on android..
sankyu



Does it load on PC?
Does it load on PC?

yeah, it's work on PC 🙂
yeah, it's work on PC 🙂

I did not test this on android so I'm not sure what might be happening.


The save file can be loaded correctly when this plugin is disabled?
I did not test this on android so I'm not sure what might be happening.


The save file can be loaded correctly when this plugin is disabled?

still no..
if just disable it..
I must overwrite the save file to make it back to normal, then i can load the save game :3 🙂
Not work on web browser, too. And I found the problem.


in rpg_manager line 260


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);
}
} else {
return false;
}
};


So we can see the problem is when the game play on web (and maybe mobile too), It will compare the title from the save file and current title of game. If they're different, the game saved file will be considered as not a game saved file. This thing is really suck when we want to custom save title for our game. Hope you will fix it @Tsukihime
Not work on web browser, too. And I found the problem.


in rpg_manager line 260



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);
}
} else {
return false;
}
};


So we can see the problem is when the game play on web (and maybe mobile too), It will compare the title from the save file and current title of game. If they're different, the game saved file will be considered as not a game saved file. This thing is really suck when we want to custom save title for our game. Hope you will fix it @Tsukihime



That's pretty strange. This means that if you changed the name of your game, it would instantly break all existing save files as well.


A different property will need to be used for the displayed save title in this case.

Original thread: https://forums.rpgmakerweb.com/threads/save-title.54107/