- Joined
- Oct 25, 2015
- Messages
- 449
- Reaction score
- 268
- First Language
- English
Ok so in order to save generated items and actors onto the game I use the following:
var data = JSON.stringify($dataItems); var fs = require('fs'); var dirPath = function(){ var path = window.location.pathname.replace(/(\/www|)\/[^\/]*$/, '/data/'); if (path.match(/^\/([A-Z]\
/)) { path = path.slice(1); } return decodeURIComponent(path); }; var filePath = dirPath() + 'Items.json'; fs.writeFileSync(filePath, data);The problem is: JSON for actors and Items is shared through all save files. For a pokemon type game this is not a problem since they typically have only one save file.
Also this writes onto the data used for making the game so it wont show up in the database.
I tried using: http://www.rpgmakermv.co/threads/doublex-rmmv-dynamic-data.661/
But it doesn't work properly and gives me errors.
Does anyone else know of way besides writing to the JSON files?
I suppose I could hook into Game_System but I am not sure on how much space this would take up.
var data = JSON.stringify($dataItems); var fs = require('fs'); var dirPath = function(){ var path = window.location.pathname.replace(/(\/www|)\/[^\/]*$/, '/data/'); if (path.match(/^\/([A-Z]\
Also this writes onto the data used for making the game so it wont show up in the database.
I tried using: http://www.rpgmakermv.co/threads/doublex-rmmv-dynamic-data.661/
But it doesn't work properly and gives me errors.
Does anyone else know of way besides writing to the JSON files?
I suppose I could hook into Game_System but I am not sure on how much space this would take up.
