That question is a bit more compley than you think.
First, you would need an androd player for RMXP-data.
That is made more difficult by the graphics library being closed source and never published.
Someone made such a player by illegal reverse engineering years ago, but for a commercial game an illegal player is a no-go. I only mention this here so you can be careful if you see linkes there.
Howeverthere was also a project to replace the closed-source graphics library in a legal way with a DirectX-compatible one.
Unfortunately I do not know if that project was completed and if they went on to an android version after that. But it is one thing you should search for.
Second, how many scripts are you using in your game?
if your game is script-heavy that will be an additional problem in porting.
Because I heard that Ruby-scripts (which the RMXP is based on) have problems on mobiles (that is one of the reasons they changed the script base to javascript with MV/MZ).
Ah yes, I am a software developer and I just have a lot of trouble with ruby code xD
Yes, my game uses many scripts.
I know that exists some commercial game made with RPG MAKER.
Probably the most famous is To the moon.
I think everyday how they could set it up.
How they could send it on the smartphone stores?
Hmm, reading on Wikipedia, they made the smartphone version via a unity porting?
JoiPlay with its RPG Maker extension can help you run most of RMXP games on Android. I posted a phone screenshot of KBribe XP, my custom RGSS script, weeks ago. This extension is based on an open source project called mkxp-z. It uses its own set of technologies so it can run on Windows, Linux and yes, even Android.
Wow, it would be so good!
Could it work on commercial games?
I'll take a look at it, thanks!
Yes, To The Moon was completely re-created with Unity. This has been the case for a few RPG Maker games that were ported to either different versions of RPG Maker (a lot of the old horror games got ported over to MV) or different engines entirely (Ara Fell was ported to Unity as well).
Worst case, you could always sell your game on Steam/Itch.io and tell players they might be able to play it on their smartphone with an emulator. The heavier your game is on scripting, though, the less likely it is to be compatible with such things.
Ok, precious info, thanks!
Ah yes but the big of the people could have trouble with emulators.
A lot of people wants: click and go xD
Ok thanks, I'll make some extra research and maybe if I find the way to encapsulate the game with a legal emulator, maybe the trick is done!
Updates!
Ok, the game runs on smartphone with Joiplay+RPGMAKER plugin, but it stops when scripts come.
Hmm I'll try if KBribe XP works in some way? hmm
Even the Windows release of that game uses mkxp. It's interesting to hear it has been ported to mobile platforms as well.
Actually, some time after Ancurio finished the Linux port of mkxp, he managed to release a windows binary compiled against Ruby 2.1. AFAIK, it's the last link of the original binaries that's still available online. I think it was compiled back in 2015 or 2018. There were Linux executables on his web hosting site, but he let that account expired about a year ago.
Even so it makes me think you are confused with the release dates of the Windows / Linux games and the mobile ones. I'll try to check that out but it's not a priority right now. 😛