Hello all, I've been faced with a dilemma as of late, and have tried many methods in an attempt to get this to work.
1. I've tried creating a custom json file to handle the data its seems to work but there are many things I don't understand so this method seems to bring me to an impasse.
2. I've also attempted modifying existing saved variables to store the data needed in simplified forms. I've been met with the same problem as the first attempt.
lastly after a little while of searching I found this made by @Poryg and modified albeit slightly then tried implementing it.
var old_CGO = DataManager.createGameObjects;
DataManager.createGameObjects = function() {
old_CGO.call(this);
$myObject_SaveInfo = new My_Object();
};
var old_MSC = DataManager.makeSaveContents;
DataManager.makeSaveContents = function() {
var contents = old_MSC.call(this);
contents.myObject_SaveInfo = $myObject_SaveInfo;
return contents;
};
var old_ESC = DataManager.extractSaveContents;
DataManager.extractSaveContents = function(contents){
old_ESC.call(this, contents);
if (contents.myObject_SaveInfo) {$myObject_SaveInfo = contents.myObject_SaveInfo;}
};
needless to say it still isn't working I've found out that the code needs an additional part maybe even two, as I understand it the function/methods needed are already available if only I knew where to look I could copy and modify them.
conclusion. I lack the knowledge necessary to make the modifications and as there are no documentation assistance is necessary.
any info on how to save data int, Boolean, string, arrays multidimensional arrays, objects even if only an int I can work with that. Many thanks in advance.
1. I've tried creating a custom json file to handle the data its seems to work but there are many things I don't understand so this method seems to bring me to an impasse.
2. I've also attempted modifying existing saved variables to store the data needed in simplified forms. I've been met with the same problem as the first attempt.
lastly after a little while of searching I found this made by @Poryg and modified albeit slightly then tried implementing it.
var old_CGO = DataManager.createGameObjects;
DataManager.createGameObjects = function() {
old_CGO.call(this);
$myObject_SaveInfo = new My_Object();
};
var old_MSC = DataManager.makeSaveContents;
DataManager.makeSaveContents = function() {
var contents = old_MSC.call(this);
contents.myObject_SaveInfo = $myObject_SaveInfo;
return contents;
};
var old_ESC = DataManager.extractSaveContents;
DataManager.extractSaveContents = function(contents){
old_ESC.call(this, contents);
if (contents.myObject_SaveInfo) {$myObject_SaveInfo = contents.myObject_SaveInfo;}
};
needless to say it still isn't working I've found out that the code needs an additional part maybe even two, as I understand it the function/methods needed are already available if only I knew where to look I could copy and modify them.
conclusion. I lack the knowledge necessary to make the modifications and as there are no documentation assistance is necessary.
any info on how to save data int, Boolean, string, arrays multidimensional arrays, objects even if only an int I can work with that. Many thanks in advance.