Error when I deploy Android (MV)

Hello everyone!
I was very happy when I am deploy android, and it's all thanks to him (Even I don't understand what he said, but I did just like what he did), but I got error when I want to test the game, see the issue of plugins
1696007040376.png

I really don't understand what kind of problem, when I deploy as PC, it works really fine, but using mobiles, it took me like 4 hours to figured out the problem, and this is what I got.

Check the picture
1.jpg

I need someone can tell me how I can fix it?
I think you need to remove "fullScreenResolution" as I think android dont have
something like that and is mostly Windows/Linux/Mac based.

you can turn the plugin off for android and see if it works by than, otherwise,
it needs probably a modification to make it work for android or check if
its "isMobileDevice" to grab the resolution of it?
additionally, you need to move the project to a folder that is
1) NOT in a clouddrive (onedrive)
and
2) has a name that is not breaking networking rules

(the many %-replacements on your folderpath at the bottom of the trace are all symbols and letters not allowed for HTML games. please use a foldername that has only latin letters and arabic numbers)
Wow, that is a lot of stuff wrong in that console.
Well, there was a plugins are not supporting web or android, some of them are fine, and some of them are not, for example, this picture
1696009887834.png

I just don't get why YEP_Core engine not support web or android, CC_FontTexture is only my hope for making pixel font 100% (without blury), OcRam I will remove it, so these 2 yep and cc is the main I want to use, so why I?
Edit: is it because of "_" underscore?
I just don't get why YEP_Core engine not support web or android
There's nothing in that screenshot that says YEP_CoreEngine doesn't support Web or Android.

It's saying it can't load your Actors database. The Yanfly plugin isn't even the most recent thing at the top - not sure why you think it's at fault.

Have you done what Andar suggested and removed any Arabic characters from your filepath? _ is absolutely fine.
I never used Arabic words, mostly is English, so I don't why I got error, pc was working perfectly fine, if underscore is fine, then I don't know what's the problem, and Actor database all I did is English names.
than check this forum that most people have issues (event for itch.io)
throw Actors.json error and can be fixed like that.

normal to windows doesn't have that problem, just web based and android
are mostly web based design, so that fix can work out for you.
I really don't know why it won't work, I tried every time, and it won't allow me to disable
Google Chrome/Opera:
To disable use the following command line:
--allow-file-access-from-files

  • Create a browser shortcut on the Desktop.
  • Right-click on it and select Properties.
  • In the "Destination" box enter the parameter after the second quotation mark with a space and save.
Edit: It removed Actor database so suddenly (I don't know how, even I didn't use command line for chrome), and now it shows me CrossEngine, and some other's plugin. In the beginning test, like 5 second was working, it shows splash, and logo, and then it shows error

22.jpg
Ok, I think I did what I saw on YouTube that you need to use --allow-file-access-from-files in cmd, so I did that, and I can't see actor database error, the only I got error is CrossEngine, Eli, and MOG
I never used Arabic words, mostly is English, so I don't why I got error
This shows two of your problems in your own screenshot:
1696007040376.png


Move the output to a folder that is outside neDrive and has only latin letters (the %xx.are replacement codes for forbidden symbols)
I don't know if that part are arabic symbols or whatever, but it will cause problems.
you need to move the output to a different, simpler folder.
@Andar I moved another folder, which is out of OneDrive, that's I already solved.
Now, about Cross Engine, I think I found a solution but not 100% (like 85% or 90%), I just found a threads was same my problem of Cross Engine, this person was asked for deploy Cross Engine on Android, of course 100% was working for pc, but for Android it will take much longer to figure out, so I removed in JS code for Cross Engine "space var fs = require("fs");", but still got the problem, so I was searching the answer, but it was a lucky chance to do this code
JavaScript:
_.isNewNWjs = false; //process.versions['node-webkit'] >= "0.13.0" && Utils.RPGMAKER_VERSION >= "1.6.0";
which is you need to put it, so I decide to use it and it works perfectly, but the only a small problem is the actor stand, when I press down, it goes down without play animation.

So I think maybe some of you can figured out the problem

Check the video
FINALLY!!!!!
AT LAST!!! IT'S WORKING FINE!!!!! NOW I CAN CONTINUE MY WORK!!!

BUT!!........ it's the worst solution and you will write it all the files of img/characters


Thanks to Lheku Qhukyaru for helping me and understand the issue, the problem is Restart didn't use nodejs for html and android, which is what the CrossEngine dev used to read the files to store them in an array for future use with character poses (line 579+), but JavaScript cannot read local files without a server and I do not find a way.

JavaScript:
var _crossengine_game_sys_init = Game_System.prototype.initialize
Game_System.prototype.initialize = function() {
     _crossengine_game_sys_init.call(this);
    //create a list of image files in our character directory. 
    // This is necessary for the automatic pose recognition
    // so for example you can have $Character(f6).png and $Character(f6)_idle(f3).png
    // and the default pose code to apply _idle will detect the right character name
    //
    this.crossEngine={};
    
    //var fs = require ("fs");
    //yanfly's doodads have a solution for path name changing when deployed
    //which I am using!
    //var path = require('path');
    //var base = path.dirname(process.mainModule.filename);
    //let dir = fs.readdirSync( './img/characters/' );
    //let dir = fs.readdirSync( path.join(base, '/img/characters/'));

        //MODIFY THIS
    let dir = ["!Chest.png", "!Crystal.png", "!Door2.png", "!Flame.png", "!Other1.png", "!Other2.png", "!Switch1.png", "!Switch2.png", "$!JitterTest(f1).png", "$Area01.png", "$bigBullet(f1)(d1).png", "$Bulletin01.png", "$B_ChargedShot(f12)(s4)(y-8)(d-1).png", "$E_Angel(d1)(f1)(y124).png", "$E_Angel(f1)(y124).png", "$E_Angel(f1).png", "$E_Angel(f1)_act01.png", "$E_Angel(f1)_casting.png", "$E_Angel(f1)_damage.png", "$E_Bat.png", "$E_Bat_act01.png", "$E_Bat_attacking.png", "$E_Bat_casting.png", "$E_Bat_damage.png", "$E_Behemoth(f1).png", "$E_Behemoth(f1)_act01.png", "$E_Behemoth(f1)_damage.png", "$E_BehemothG(f1).png", "$E_BehemothG(f1)_act01.png", "$E_FireSpirit(f1).png", "$E_FireSpirit(f1)_act01.png", "$E_FireSpirit(f1)_damage.png", "$E_Ghost.png", "$E_Ghost_act01.png", "$E_Ghost_attacking.png", "$E_Ghost_casting.png", "$E_Ghost_damage.png", "$E_Imp.png", "$E_Imp_act01.png", "$E_Imp_attacking.png", "$E_Imp_casting.png", "$E_Imp_damage.png", "$E_Imp_melee.png", "$E_Minotaur.png", "$E_Minotaur_damage(d1)(f3)(s1).png", "$E_Slime.png", "$E_Slime_act.png", "$E_Slime_act01.png", "$E_Slime_attacking.png", "$E_Slime_casting.png", "$E_Slime_damage.png", "$E_Succubus(f1).png", "$E_Succubus(f1)_act01.png", "$E_Succubus(f1)_casting.png", "$E_Succubus(f1)_damage.png", "$E_Werewolf(f1)(d2).png", "$E_Werewolf(f1).png", "$E_Willowisp(f1).png", "$E_Willowisp(f1)_act01.png", "$E_Willowisp(f1)_attacking.png", "$E_Willowisp(f1)_damage.png", "$Hero01.png", "$Hero01_act01.png", "$Hero01_act02.png", "$Hero01_bow01(f3)(s1).png", "$Hero01_bow02(f3)(s1).png", "$Hero01_cast01.png", "$Hero01_casting.png", "$Hero01_damage.png", "$Hero01_dash.png", "$Hero01_idle.png", "$Hero01_jump.png", "$Hero01_pick.png", "$Hero01_shd01.png", "$Hero01_swd01(f3)(y16)(s1).png", "$Hero01_swd02(f3)(y16)(s3).png", "$Hero01_sword01.png", "$Hero01_victory.png", "$Hero02.png", "$Hero02_act01.png", "$Hero02_act02(Y30).png", "$Hero02_bow01(F3)(S1).png", "$Hero02_cast01.png", "$Hero02_casting.png", "$Hero02_damage.png", "$Hero02_dash.png", "$Hero02_idle.png", "$Hero02_jump.png", "$Hero02_pick.png", "$Hero02_shd01.png", "$Hero02_spear01(f3)(y30)(s1).png", "$Hero02_victory.png", "$Hero03.png", "$Hero03_act01.png", "$Hero03_act02.png", "$Hero03_bow01(f3)(s1).png", "$Hero03_cast01.png", "$Hero03_casting.png", "$Hero03_damage.png", "$Hero03_dash.png", "$Hero03_idle.png", "$Hero03_jump.png", "$Hero03_pick.png", "$Hero03_victory.png", "$Hero01_standing.png"];
    
        this.crossEngine.characterNameList = dir.filter( elm => elm.match(new RegExp(`.*\.(png)`, 'ig')));
    this.crossEngine.characterNameListLC=['hello world'];//this should never appear in game.
    //slice off the .png extension
    for (var index =0; index<this.crossEngine.characterNameList.length;index++)
    {
        this.crossEngine.characterNameList[index]=this.crossEngine.characterNameList[index].slice(0, -4);
        //create a lower case version of it so that we can do case matching for poses
        this.crossEngine.characterNameListLC[index]=this.crossEngine.characterNameList[index].toLowerCase();
    }
};
I know it's the worst solution, but I have no choice to add images and codes for file names.

Those people who need to use mobile, this is a solution, make sure to credits for Lheku Qhukyaru

Original thread: https://forums.rpgmakerweb.com/threads/error-when-i-deploy-android-mv.161591/