Why is this happening? How can I fix it? I exited with saving my project, so what's happening???
I have the steam version and the only plugins I use are the defaults and the ones from yanfly. Help
Edit: I replaced the js file and I can actually edit my project now... but now a few maps are just blank. Reset. For no reason apparently. Anyone know why this is? Thanks in advance.
your files have been damaged, that is the reason - and there is always a reason why such a damage happens, it's never random.
Unfortunately that reason can sometimes be a little bit obscure to the regular user, so I'm listing the most common possibilities for you - you'll have to check yourself what might have happened in your case.
1) power failure before shutdown was complete (Windows needs to wait until the HDD cache had been magnetically saved to the disk, this is one reason why 'shutdown' exists and you should never power off your computer directly).
That includes having a main switch for your monitor and computer and printer, because that main switch simulates a power failure if turned.
2) Harddrive nearing end-of-life or defective
End-of-life is usually 5-10 years for electronic components, but bad environment or damage can age them sooner
3) conflicted cloudsync
NEVER work on your project while it is in a cloud-sync'ed folder, even if it looks as if it is an easy backup. It's not, it's russian roulette with your files.
All RPG-Makers open their files like a database, NOT like regular files. And 99% of all cloudsync services (onedrive, dropbox, whatever) cannot handle database access rules, they only work for regular files. That means the file gets zeroed as soon as a cloudsync is attempted at the same time as the RM works with the file - you might get lucky for several months, but sooner or later it's goodbye file.
4) virus-infection or rampaging background program/anti-virus
Nothing to do but to try to find what other program was responsible for the deletion.
One additional comment:
Most of the causes (especially 1&3) can only destroy the currently loaded map file.
If several maps were destroyed at the same time, then this points out to a general hardware or windows problem (2&4).
As for fixing it: that is why all developers for everything (not only for RPG-Makers but every programmer, artist and designer) learn to make backups of larger works.
So I hope you have a recent backup to copy the file from there.