One of my files may be messed up.

So yesterday I was working on a side game, and everything was going fine. today, I loaded the same game, when the logo would appear but then nothing would happen afterward. To see if it was my steam or the game, I removed all the files of said game and tried to open another project. The project opened fine, and allowed me to edit everything perfectly. This made me believe that it has something to do with my files. The only thing  changed between yesterday and today was that I added a song (.ogg) to the BGM file, but removing it didn't do anything. Any fixes? Thanks in advance!
In a copy of your project, replace each file with a new one from a new project until the copy loads again. Then make another copy and replace only the last file replaced in the first copy (the replacement that got everything working).


If more than one file is damaged, repeat until you know all damaged files.


Then it depends on which files are damaged - sometimes the data can be recovered, sometimes not - that's why you should use backups or one of the scripts for automatic backups.
I ended up recovering the first map by moving the data files to a new game, but when I move the others, they don't show up in game, is there a way to fix that?
That is because some of the map data is outside the map files themselves.


1) remove the additional map files from the new project


2) open the new project and create enough (empty) maps to get to the map ID of your highest numbered map file


3) copy the original mapfiles, overwriting the empty maps


then the maps should be in the new project

Original thread: https://forums.rpgmakerweb.com/threads/one-of-my-files-may-be-messed-up.36083/