Hello 🙂 ,
i created a new json file and try to write the data in other variables.
But i have no clue how could it work.
var $dataTest = null;DataManager._databaseFiles.push({ name: '$dataTest', src: 'Test.json'});Game_System.prototype.addTestLine = function(_id) { _field1 = $dataTest[_id].field1;};Console says -> TypeError: Cannot read property '1' of null.
'1' is the _id i commit.
$dataTest in console show me all objects i wrote in the json file, so it's basically available.
i created a new json file and try to write the data in other variables.
But i have no clue how could it work.
var $dataTest = null;DataManager._databaseFiles.push({ name: '$dataTest', src: 'Test.json'});Game_System.prototype.addTestLine = function(_id) { _field1 = $dataTest[_id].field1;};Console says -> TypeError: Cannot read property '1' of null.
'1' is the _id i commit.
$dataTest in console show me all objects i wrote in the json file, so it's basically available.