Save Title

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,839
First Language
English
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
 
Last edited by a moderator:

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,839
First Language
English
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.
 
Last edited by a moderator:

HintonR

Veteran
Veteran
Joined
Mar 2, 2016
Messages
197
Reaction score
26
First Language
English
Primarily Uses
RMMV
Hello.

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


Thank you.
 

Harken_W

Veteran
Veteran
Joined
Oct 13, 2015
Messages
80
Reaction score
22
First Language
English
Primarily Uses
N/A
Beautiful. 
 

HintonR

Veteran
Veteran
Joined
Mar 2, 2016
Messages
197
Reaction score
26
First Language
English
Primarily Uses
RMMV
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. 
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,839
First Language
English
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.
 

HintonR

Veteran
Veteran
Joined
Mar 2, 2016
Messages
197
Reaction score
26
First Language
English
Primarily Uses
RMMV
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. 
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,839
First Language
English
Well, what do you want it to look like?
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,839
First Language
English
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);
}
 

HintonR

Veteran
Veteran
Joined
Mar 2, 2016
Messages
197
Reaction score
26
First Language
English
Primarily Uses
RMMV
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.
 
Last edited by a moderator:

Radis3D

Just a Devilz
Veteran
Joined
Nov 1, 2015
Messages
172
Reaction score
33
First Language
Indonesian
Primarily Uses
RMVXA
anoo..
excuse me..


when i use it..


i can't load on android..
sankyu
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,839
First Language
English
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?
 

Radis3D

Just a Devilz
Veteran
Joined
Nov 1, 2015
Messages
172
Reaction score
33
First Language
Indonesian
Primarily Uses
RMVXA
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 :)
 

Sait™

Villager
Member
Joined
Apr 7, 2016
Messages
22
Reaction score
5
Primarily Uses
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
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,839
First Language
English
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.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

--Turn Based Battles--

Hero:
Look, it is Minotaur!
M. Knight: Let's go attack it!
Hero: Wait, no, it is just standing there!!
HUD Display: It is M. Knight's turn.
(M. Knight attacks Minotaur)
HUD Display: It is Minotaur's turn.
Hero: (Facepalms) Now look what you did! You made the Minotaur attack us!
Randomly deciding to create some tombs/sarcophagi last minute is probably not the best choice in a timed game jam...
There are only a few days left in our Spooktober Spooktacular Game Jam! Hope you are working hard to get your game in!
Where do i have to play Heisei Pistol Show the same creator that made Re: Kinder Parun
I really get the feeling I should be doing regular YouTube videos whenever I make something cool in my game, instead of waiting for massive changes. But not going to lie... I always feel like it's never quite enough to merit an update, until it's a drastic change. :kaoswt:

Forum statistics

Threads
104,558
Messages
1,007,127
Members
136,040
Latest member
Nicoh
Top