Hello there, i have a problem with a deplyed MAC or PC (in enigma toolbox) compiled version.
Save won't work.
Reading around i have find some plugins for custom game save path but they won't work too, is a permission problems
and i have also try to change CHMOD to 777 but nothing.
My game is rpg_core.js v1.5.1
For now the only solution that i find is this plugin:
This move gamesave folder outside the game.app but it works only if you put the app in the desktop.
There's a way to change this plugin to absolute path like (documents/username/gamename/gamesave) for MAC and PC?
Thank you
Save won't work.
Reading around i have find some plugins for custom game save path but they won't work too, is a permission problems
and i have also try to change CHMOD to 777 but nothing.
My game is rpg_core.js v1.5.1
For now the only solution that i find is this plugin:
Code:
StorageManager.localFileDirectoryPath = function() {
var path = require('path');
var base = path.dirname(process.mainModule.filename);
var previousFolders = 4;
for(var i = 0; i < previousFolders; i++){
base = path.dirname(base);
}
return path.join(base, 'gamesave/');
};
This move gamesave folder outside the game.app but it works only if you put the app in the desktop.
There's a way to change this plugin to absolute path like (documents/username/gamename/gamesave) for MAC and PC?
Thank you