Unexpected file format on a rpgm vxa project that wasn't optimised

Hi there, A friend of mine was working on a rpg maker project until his pc crashed. When he tried to open the file again he then was shown this message:
1671412778236.png


When he then tried to play the project he then came across these messages:
1671412954148.png
this message twice
and then this message:
1671413007943.png



In a discord server, he then disclosed how he didn't make a backup, fortunately i manage to transport all of the graphics and maps onto a blank project and it seams to work fine. However i cannot find a way to recover the data from the corupted build of the game (eg.Actors.rvdata2,Armor.rvdata2 etc...). I looked online and found here.
Link:

The progame that was linked on that site was experied and no longer worked.

Tl'dr: I need to find a way to recover the data from the corupted project. Any help?
file corruption essentially means that the files are destroyed and can't be recovered.

however, not all corrupted files are unique or containing data.

so your first step would be to use the last backup to replace the damaged files one by one.

if you don't have a backup (very bad decision on your side), then you can try to recover by using files from a new project.
That will cause loss of data in case of database files.

as far as map files go, you usually only use one map (the one active when the corruption occurs), but if the mapinfo file was destroyed you need to trick the engine to replicate it.
so if your mapinfo is corrupted, ask here for detailed instructions on how to do that after you replaced all other corrupted files.


if you're unsure on how to copy files you might want to make a backup of the damaged project to prevent further damage.
so if your mapinfo is corrupted, ask here for detailed instructions on how to do that after you replaced all other corrupted files.
How do you do it?
check the highest number of mapfiles in your damaged project
create a new project somewhere else (can be deleted later
open the new project, create new maps without doing anything until you are on the map number your found.
copy the mapinfo file (and ONLY the mapinfo, nothing else) from the new project to the corrupted project
The dll file is easy to replace if it had been installed in the corresponding Windows system32 folder. Why do I say that? Because there's still a chance to recover it if you had the system recovery feature enabled at that time. Another way to deal with it would be to download one of your own demos with the dll included there.

Concerning Actors.rvdata2 and the like, you're out of luck or grace or the like. Only a systematic backup of your files could have helped you get a not so old copy of those files. You could install Ruby on your PC and try to make IRB (Ruby's own MSDOS like shell) read the files via File.open("filename.rvdata2", "rb") { some code here } , yet, I cannot guarantee you that you'll ever get anything out of them.
I need to find a way to recover the data from the corupted project
(eg.Actors.rvdata2,Armor.rvdata2 etc...)
Whenever the project is damaged with the software stating that cannot read from actors.rvdata2, then the file is corrupted and the easiest way to recover is from a backup. If there are no backups, then if the project was shared with anyone use that, otherwise it's starting from scratch.

To determine if the file is corrupt, when you start the program and it reads the project data it will give you a message that the file is unreadable and close down.
Take note of the file name and replace it with a copy from a new project. Then start the program again. Continue until you get the project loaded. If you replaced every file then, you're essentially starting from scratch. But like andar said the map data files are probably not corrupted. Just maybe the last one that was worked on and the mapinfos data file.

If none of that is an option or works, then Kyonides is right, you're basically out of luck.

Always make backups

Original thread: https://forums.rpgmakerweb.com/threads/unexpected-file-format-on-a-rpgm-vxa-project-that-wasnt-optimised.153403/