I get this error when i try to run the game, any fix?
View attachment 4815456
I tried running it the html file in palemoon/firefox and it works for a while before I get this error
View attachment 4815464
playing on mac btw, i'd appreciate any help
The issue with this one is in the rpg_managers.js plugin (which you'll find in folder: app.nw -> js).
Open it with a text editor (I use CotEditor):
Find this line (Quickest way is to Command+f decode):
ImageManager.loadNormalBitmap = function(path, hue) {
// キャッシュの中に画像が存在しているか否か?
var key = this._generateCacheKey(path, hue);
var bitmap = this._imageCache.get(key);
// 存在していない場合?
if (!bitmap) {
bitmap = Bitmap.load(path);
bitmap.addLoadListener(function() {
bitmap.rotateHue(hue);
});
this._imageCache.add(key, bitmap);
// 描画準備が整っていない場合?
}else if(!bitmap.isReady()){
bitmap.decode();
}
return bitmap;
};
and replace it with:
ImageManager.loadNormalBitmap = function(path, hue) {
// キャッシュの中に画像が存在しているか否か?
var key = this._generateCacheKey(path, hue);
var bitmap = this._imageCache.get(key);
// 存在していない場合?
if (!bitmap) {
bitmap = Bitmap.load(decodeURIComponent(path));
bitmap.addLoadListener(function() {
bitmap.rotateHue(hue);
});
this._imageCache.add(key, bitmap);
// 描画準備が整っていない場合?
}else if(!bitmap.isReady()){
bitmap.decode();
}
return bitmap;
};
Also: given you're running this on a Mac: you can also replace your app.icns with the one in this zip to make the app a bit more aesthetic.