VXA to MV?

Hello! (Again, I'm finding myself referring to this site a lot...)
I bought RPGMV recently due to the capabilities it had that RPGVXA did not. However, I was working on a game in VXA, and now I need to transfer the data from that game into MV. Specifically, I'm trying to transfer the maps, but I'm also hoping to transfer a specific troop and some events, but I can remake those on my own if necessary. I have heard about the script you can put into your project to transfer it to MV, but there's one problem: I was using the trial version of VXA, and can't edit my project info anymore. Is there any way the that at least the map data (and also the tilesets, come to think of it) can be transferred from VXA to MV without editing the VXA files?
Thank you very much!
EDIT: I didn't think this deserved it's own comment, but it looks like accomplishing this is a very complicated process. Is it too late to mention that I have zero experience in programming?
I just opened a Map's rvdata2 and it looks like this.
Spoiler: this could be a big project
Screen%20Shot%202017-02-25%20at%207.54.35%20PM.png
If you point me in the direction of getting this thing decompressed then, it could be like a huge project or a small project depending on the ruby object structure similarities to a json object and many more factors.
@mogwai it's a ruby marshal file if I remember well.
@mogwai it's a ruby marshal file if I remember well.
This information helped.
I've gone on a quest to learn about this Ruby Marshal, and it lead me to a console app on Github that uses Ruby Marshal and Zlib to unzip or inflate it, but I tried all my gzip and archive programs and this was a no go. Then I thought about the plain text which obviously isn't is not compressed so I spent hours trying to compress only the uncompressed strings hoping I could decompress the thing as a whole... None of my efforts work, until I notice that you don't even have to use Zlib. That was a waste of time. All I have to do is define inspect when I puts the text.

I used this to decrypt the rvdata2 in VX Ace... just 4 lines...
PHP:
target = "Z:/Glob/Games/Resources/buttsQuest/Data/Map006.rvdata2"
code = Marshal.load(File.binread(target))
File.open("Z:/Glob/Games/Resources/buttsQuest/Data/marshal.txt", "w") do |file|
  file.puts code.inspect
end

Spoiler: Voila! decrypted unserialized rvdata2 ruby object
Screen%20Shot%202017-02-26%20at%203.02.18%20AM.png

The next step is the tedious back and forth comparing of this to JSON.

EDIT:
Ok, now this is what it looks like after I apply some beautification. This could work I'm thinking...
Spoiler: beautified rvdata2, looks more like json now
Screen%20Shot%202017-02-26%20at%203.41.26%20AM.png
Is this the one you found?
https://github.com/instore/node-marshal
The links appear to be the same thing, yes. So, what I've gathered so far, is that by plugging in the four line script you made...
PHP:
target = "Z:/Glob/Games/Resources/buttsQuest/Data/Map006.rvdata2"
code = Marshal.load(File.binread(target))
File.open("Z:/Glob/Games/Resources/buttsQuest/Data/marshal.txt", "w") do |file|
  file.puts code.inspect
end
...I can transfer the ruby script into JSON script. What I'm confused about, is how would I apply the script, and once I have the cleaned up JSON code, would I apply it to my game simply by adding it where it belongs on the files?
Please don't make me have to wait three days to bump this up...
Why don't you just send your uncompressed project to someone who has the full version of Ace and get them to do it for you?
Good idea Shaz! Anyone you know who would do that?
EDIT: Nobody in the thread is online... and I just made a post...
Oh, no... Do I have to wait until Wednesday for a response now?
This is going to be a web app. I'm going to do all the Marshal parsing with PHP.

This is what I've learned so far.

It's going to take at least a week. At first I tore into that compressed data with a bunch of preg_replace_callback, but then I realize I'm going to have to start all of yesterday's work from scratch today because every rvdata2 variable has a different hex based on line position I think. It's based on where it falls.

I just use url_encode to get the hex.
I've stuck an emoji in there so I can study the patterns.

Screen%20Shot%202017-02-28%20at%2011.37.28%20AM.png


Those instance variables become encoded after their first appearance. For instance with switch1_idi I have to focus on hex 10 and hex 06 to know where it's used again. The i after it means it's an integer. Integers are also a funky little hex code. It only goes as high as 127 and then I need to learn how to use php unpack.

This sounds really smart, but I'm actually pretty dull, but I'm going to get the hang of this soon.
Oh, wow... uh... You didn't have to go all the way for one simple request, but... Thank you for this, I'm sure many people will find this useful.
Don't worry. I needed something to work on. I've got the time.

Ignore my first two posts tho. After day two, I've learned that manually decoding all that Marshal is insane. I got so far, but my efforts would only prove futile on rvdata2 from different machines with different memory (signatures?).

But this web app is still going to happen. I've learned that I can write my app in ruby and execute it with php. So now I don't have to write my own Marshal module.

EDIT:
BTW. I learned a better way to get the full data as the uncompressed ruby class hash form or whatever it's called, from VXA.
PHP:
rv = load_data("Data/Actors.rvdata2")
# this is just my game path
File.open("Z:/Glob/Games/Resources/buttsQuest/Data/Actorsdata.txt", "w") do |file|
  file.puts rv.inspect
end
I've already done that for all the libraries and now I'm analyzing how my external Marshal rb can unpack and populate the classes. After that I need to tinker to learn how to convert it into an associative array in PHP and make certain changes for MV, and then create a download link for the JSON. It's probably going to take me a week, but I'm having a good time.
I've abandoned making this a web app on my server, but this is still going to happen. I'm so warm.

Running Marshal load on rvdata is dangerous online because somebody could use Ruby to DROP my Wordpress database or something.

But I've learned that the node js in RPG Maker MV can process a ruby process just like php (same terminology; different function) so I just put my web app into the MV html.

So far I've generated perfect parsable JSON files out of all the Ace rvdata2 in my game, but I still have yet to tinker to make it match the MV json. For starters I converted the under_scores into camelCaps, but I know there has got to be more to it than that.

Right now I'm taking a break from the coding to do some design work on the interface. Here is just a sneak peak.
interface-optim.gif


What do you think?

I'm going to make it convert the rvdata2, not the actual rvproj2. I'll have it create an img folder of dummy files to reference and replace when you change your Ace graphics to MV ones.
Oh, wow... Neat! I can't wait to see the final product... Thank you so much for this!
The interface and the exports are done, so I'm like at 50%.
Spoiler: something in the works...


Now I need to break down all the file dependencies of each JSON from putting it in a MV game, so I can create small dummy files to be later manually replaced by your own Ace graphic edits.

I want to represent a tilemap too with a dummy graphic, but my angle of learning the tilemap is like when I going to manually string parse all those unicode Marshal characters; I need to slow down a bit and find a tutorial or a documentation on what the tile numbers mean in the JSON.

EDIT: Now that I think about it. All the ace files are already in the game... Music and stuff is instantly transferable I think. I learned how to build up images on a canvas and save them in another script, perhaps if I'm not too bold, I may try my hand in a simplified graphic conversion.
Update: I feel like a boob. I was Googling for that tutorial or reference on the differences between Ace and Mv titlesets and I stumpled upon this: https://forums.rpgmakerweb.com/index.php?threads/vx-ace-to-mv-converter.45296/
So it seems that @Shaz already wrote a Ace to Mv converter. You might want to check it out. That's what she was talking about.

I can't believe I didn't know about it and I can't believe no one mentioned it.

From what I understand in the op, it doesn't convert the resources either, so I'm going to make mine convert the resources.
The converter is a script that you can put into VX Ace. It is not an MV plug-in.
But that's the problem: I was on the trial version of VXA, and I can't access my project anymore. It's cool that she made that, but I'm trying to figure out how to convert a VXA project to MV without editing the project.
As awesome as this is, the reason nobody mentioned it is because it wouldn't help. (If you're still here @Shaz, no offense.)
No worries. Her Ruby thing actually showed me all the MV from VXA property names so now I'm on a roll. I could have my Ace converter finished as early as tomorrow morning if I hurry.

Update EDIT: It's tomorrow morning since I made this ^ post and I'm having amazing beginners' luck. Here are some quick screens of my Ace game converted to MV all by script, no graphic editing. I can't play the game yet, but I'm surprised how most of the graphics and the data from the JSON survives into the editor.
Spoiler: my terrible Ace game now in the MV editor!
Screen%20Shot%202017-03-07%20at%2011.07.18%20AM.png

Screen%20Shot%202017-03-07%20at%2011.08.42%20AM.png

I need to work on this ^ The Ace icons don't seem to need resized the same.
Screen%20Shot%202017-03-07%20at%2011.07.33%20AM.png

Screen%20Shot%202017-03-07%20at%2011.09.15%20AM.png
Really? Awesome! I didn't think that would help, since I don't know the difference and similarities between JSON and Ruby(That goes for any programming language, actually). It's great to know that helped! (Thanks, @Shaz!)
Sorry for the delay. I'm stuck sitting on 80-possibly70% complete.

The data in the classes, animations, and tilesets has turned out to be quite the math problem, even directly referencing Shaz's ruby functions to convert them. I'm using javascript instead of ruby and I'm making an object instead of an object string so it's a little different. It's fun though, very full-filling.

These ones are done for sure.
ACTORS
ARMORS
CLASSES

They are an exact match to the JSON I generated with Shaz's script on http://jsondiff.com/.
Very rewarding when I get an identical JSON.
Update! I pulled a late nighter and I worked out all the kinks to get the first functional version!

Windows Version (.zip)
https://drive.google.com/open?id=0B5Wl5t3fnFXGUU5xVjhRSndkR0E

Mac Version (.dmg)
https://drive.google.com/open?id=0B5Wl5t3fnFXGQXN5ZDlpbl9DcDQ

It's big because it has a pre-converted RTP to speed up the time converting ace graphics to mv img. The image resizing is done with HTML5 and saved with node.js, done in optional pixel resize or anti-aliasing.

I can't convert OGG to M4A for MV. I tried. ffmpeg stuff is over my head. RTP will be M4A/OGG so you can listen to it in MV, but custom music will just have a dummy M4A that will need to be manually replaced.

The JSON functionality (that it even works) is all thanks to @Shaz because I didn't know any of those commands and stuff. I was infringing on her script big time to make sure mine was identical to hers. The only difference is I used javascript to add/remove all the necessary properties because I'm lousy with ruby. There is one ruby component that is run with node js and that's the part that marshal loads the rvdata2 into readable data. It could probably do all the rvdata2 synchronous, but I put it on a timeout because I had a few crashes with it in testing. I don't think slow matters when you only have to do a game once.

This is version 0.1 because whenever I get a functional version of a script I get excited and neglect testing.

Original thread: https://forums.rpgmakerweb.com/threads/vxa-to-mv.75322/