I have a really stupid idea.

I strongly want a battle script that I used in rpg maker vx ace in my games, and now want to use in mv, but the script is something like 15,000+ lines and I don't know Javascript.  I've tried looking for programs to convert from ruby to javascript and it doesn't work.  So I had an idea that's either brilliant or idiotic.  Possibly both.


Would it be possible for an mv game to call a vx ace sub-game for the battles and pass the relevant data to it, via a shared set of saved files (not actual game save files, but some kind of


intermediary, perhaps in plain text, that both games could read and write to), wait while the battle plays in the vx ace game, and then receive the new data back and resume?
I don't think so, RPGMaker MV and VX Ace are two different makers. 
I know, but a program can launch another program.
I wonder if anyone has tried Opal to convert ACE scripts to MV.


http://opalrb.org/


I'm sure you'd still have to go through and change some of the variable/method names around since MV names things slightly differently then it did in ACE.


Since I don't own or use ACE I couldn't help with the conversion but if you can get the ruby to javascript conversion to work I could possibly help debug the resulting code if it's not too terribly mangled.


EDIT:
 


Guess I missed it but Opal isn't a standalone solution. Probably not a good choice since it depends on the Opal source for the resulting code to work.
Yeah, I think you should probably do this by hand, to be safe. So sorry there isn't another solution I can think of
Sorry, no - it'll be faster to rewrite the battlesystem from scratch than to convert it from RGSS3.


Because that are two additional reasons why automatic Ruby-to-Javascript conversions won't work:


1) RGSS is based on Ruby, but it is not identical - it not only added new commands, but also removed commands that are not needed in the RM context. So any automated converter assuming Ruby will have problems converting that.


2) Scripts for Ace are programmed to access the Ace-Engine, and the MV-Engine used slightly different ways and names and methods. So the conversion won't find the correct jump-in-points even if it works correctly in itself.
I know I can't convert it.  I tried that already.


I'm talking about having MV call an instance of Ace and letting Ace handle the battles.
No, that is even more impossible due to access restrictions for webbrowsers and other barriers.
Well... as a theoretical thought experiment it should be possible to trigger the battle events, save all the states before the battle start, call an external process to calculate the battle, returns the results and read them back on MV. This could be a way.


But okay, I wouldn't try this to mix MV and VX.

Original thread: https://forums.rpgmakerweb.com/threads/i-have-a-really-stupid-idea.59671/