MV Run python on RMMV

Hi guys

I am a python programmer. I am aware of JS limitations compared to python. I know JS is the best fit for games.

Does anyone know the way to run python on RMMV or a plugin to do that?

Thanks
JS doesn't really have any limitations compared to python - there are some things that can be expressed more easily in python (list comprehensions come to mind), but nothing that will actually limit a developer. If you're determined to use python there are options, but IMO learning javascript would be easier and take less time than trying to integrate python:
  • Embed a python interpreter in javascript using something like PyPy.js. Performance isn't as bad as I expected, the main performance loss is in startup time due to the size of the python interpreter and optimum performance requiring the JIT compiler to warm up. It's unclear if PyPy.js supports including python modules or the python standard library, so even though you will be able to use python you may not be able to use the python libraries you're used to.
  • Compile python to javascript using something like Transcrypt or Pyjs. Both of those options are heavily based around compiling a single application as a web page, rather than integrating python into an existing mostly-JS project like RMMV. I don't know what you'd need to do to get it working. Transcrypt explicitly does not support standard python libraries, and asks you to use JS libraries instead; I didn't check Pyjs. Both these options will perform just as well as using JS directly, so there is no practical performance penalty, apart from a small (~20K😎 amount of extra code.
Either way you are going to have to do some work to ensure it builds correctly for RMMV and is called in the appropriate places.
Thanks

Original thread: https://forums.rpgmakerweb.com/threads/run-python-on-rmmv.128772/