Turning rvdata2 into txt and back

I was wondering if rvdata2 files could be turned into some form of raw code that can be edited in a text editor like Notepad++. I need to do a fairly major overhaul in my game, so being able to do it in raw would speed it up quite a lot.
Specifically I need to replace a couple faceset files with other files, and relatedly the indexes all need to become 0. It is to make the project work with a script called "Placeholder Graphics" by Hime, where each facefile and index is redirected by use of a list of files called "%actor[id]" so a text box does not show the actual graphic, but the face graphic in the actor corresponding to the ID. But yeah, for that each text box I want to do that needs to actually link to its correct new "%actor" equivalent, and doing that in the editor would take very, very long.
technically yes.
I believe I've done it once to help a user recover some files, but I don't remember porting it over to a txt.
I decompiled raw data, and sent it to another file, via a middle step where I grabbed the data I needed.

and the data I needed *could* have been printed as text, so in theory the whole thing should be able to be printed as text.
it'd be a massive string tho.

you could potentially do it through the editor, because I know you can access the events and map objects from the top, so it should only take a big loop and several calls to grab the whole thing and fix it, but it would only fix *that*, and nothing else.
have in mind that doing it that way could potentially corrupt the file, so make a backup.
Well there are various ways to do this

1) You can read the files in raw form and copy-paste them into a text file (though this probably be unreadable as it will probably be in binary form or something)
2) Read the data and process them as needed then turn the processed data into strings that can be saved in a text file

I think I used the File class to do that

Both would be doable via the script editor.. Then you just reverse your process to being them back as .rvdata2 files
I would love it if someone could help me fix my rvdata2 files. Computer crashed on me and now they won't open in the project. I have pulled the maps into a new project, but they are fairly useless without the tilesets and custom items I had.
Necro-post notice: @jwsterz

Please start your own thread stating what issues you are having (what error messages).

If the file can't be opened in Ace, it's unlikely you'll be able to have it converted to text and back.

Original thread: https://forums.rpgmakerweb.com/threads/turning-rvdata2-into-txt-and-back.106330/