Hi, I find myself stuck with a problem I've been having for the past week. yeah a week... maybe more idk at this point however I do know what the problem is. Attached is a horribly coded example of my thing where it does a thing namely copies data from an object and loads it when it is needed. The code runs and should be more or less straightforward. its a menu for save/load only for save rn as this is where my problems reside.
now, the problem is that I need to add a new var to this.
that's been accomplished, now when I try to load the data which needs to be loaded before actually opening a file, the data returns the original, in this case its 777 even after loading a file editing the data and saving it before restarting the game the data still returns 777. personally I think the idea is sound I have a funny feeling that the problem lies...lays.... with how I try to pull the data. For the most part I've been accessing the data by....
this hasn't worked out well for me so far. anyway any and all help, info is greatly appreciated. (my method of coding is horrid i know) thanks for your helps. :blush:
now, the problem is that I need to add a new var to this.
JavaScript:
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.customData = 777; // <<---- like this
return info;
};
that's been accomplished, now when I try to load the data which needs to be loaded before actually opening a file, the data returns the original, in this case its 777 even after loading a file editing the data and saving it before restarting the game the data still returns 777. personally I think the idea is sound I have a funny feeling that the problem lies...lays.... with how I try to pull the data. For the most part I've been accessing the data by....
JavaScript:
DataManager.makeSavefileInfo().customData
this hasn't worked out well for me so far. anyway any and all help, info is greatly appreciated. (my method of coding is horrid i know) thanks for your helps. :blush: