MZ unable to read project file

As the title suggests, when I go to try to open a project I've been working on for months, I get this popup. I was in visustella's doodad editor when my PC unexpectedly shut down (a separate PC problem that happens rarely)

Believing there was a problem with the doodads, I copied the corrupted project and deleted the doodads data file then tried to run the project and got the same popup. Do I need to start the whole project over and meticulously copy files one by one to a new project file? Any help or insight would be appreciated.
If the only corrupted file is the game.rmmzproject file, then this should be trivial to recover. Simply open the file in Notepad or some other text editing software, and paste the following line in it:
Code:
RPGMZ 1.2.1

Make sure the number matches your current version of MZ.

If you can't open the file for some reason, delete it and make a new game.rmmzproject file. I'd recommend turning on "Show file extensions" just to be sure that you didn't actually create a game.rmmzproject.txt file instead.

PS: My copy of game.rmmzproject only has 1 line. While I don't think you'd have a problem if your file had an additional empty line, I've had to manually fix my plugins.js file because my text editor has an auto-formatter, which adds new lines to JavaScript files. If I were you, I'd play it safe and make sure the file only has 1 line, and doesn't end with another, empty one.
If the only corrupted file is the game.rmmzproject file, then this should be trivial to recover. Simply open the file in Notepad or some other text editing software, and paste the following line in it:
Code:
RPGMZ 1.2.1

Make sure the number matches your current version of MZ.

If you can't open the file for some reason, delete it and make a new game.rmmzproject file. I'd recommend turning on "Show file extensions" just to be sure that you didn't actually create a game.rmmzproject.txt file instead.

PS: My copy of game.rmmzproject only has 1 line. While I don't think you'd have a problem if your file had an additional empty line, I've had to manually fix my plugins.js file because my text editor has an auto-formatter, which adds new lines to JavaScript files. If I were you, I'd play it safe and make sure the file only has 1 line, and doesn't end with another, empty one.
Thanks for the quick reply! Alright, I did what you said and added the text to the project file (even double-checked copy-pasting a new .rmmzproject file and compared the two) but now I'm getting a new popup saying "Unable to read file Actors.json." ??
Thanks for the quick reply! Alright, I did what you said and added the text to the project file (even double-checked copy-pasting a new .rmmzproject file and compared the two) but now I'm getting a new popup saying "Unable to read file Actors.json." ??
I think you will have to replace all the corrupted ones (the files that the engine reports that it cannot read), one by one.

The backups are you friends.
I think you will have to replace all the corrupted ones (the files that the engine reports that it cannot read), one by one.

The backups are you friends.
Oh dang, that's what I thought, I do have a backup but it's before ~40 hours of eventing and scriptwriting over the last couple of weeks... I'm gonna make a backup every day now. Lesson learned lol.
@FiercestPixel yes, backups are always needed.

however you should NOT simply go to backups and ignore the loss and the error.
There is always a reason for this type of error, and you need to find that reason to prevent a repeat or you will lose much more work in the future.

unexpected shutdowns - depending on how they happen - can be indicators of hardware problems, of virus-infections or a few other possible causes. Finding the true cause before the computer totally crashes irreparably will make repairing the problem much easier and much cheaper.
@FiercestPixel yes, backups are always needed.

however you should NOT simply go to backups and ignore the loss and the error.
There is always a reason for this type of error, and you need to find that reason to prevent a repeat or you will lose much more work in the future.

unexpected shutdowns - depending on how they happen - can be indicators of hardware problems, of virus-infections or a few other possible causes. Finding the true cause before the computer totally crashes irreparably will make repairing the problem much easier and much cheaper.
Yeah, It's definitely a hardware issue. I built my first PC back in late 2020 and apparently, I didn't hook something up correctly. I get a random shutdown about once a week now and I can't seem to be able to find out what's causing it.
apparently, I didn't hook something up correctly
unlikely
most connectors are self-arresting in modern computers, and those that aren't are made in a way that they would stand out if not correctly inserted and a simple push would correct that.

more likely you have a defective component or a broken cable somewhere, and only identifying and replacing that will help. Or your power supply is too weak for the components and needs to be replaced with a better one.
I get a random shutdown about once a week now and I can't seem to be able to find out what's causing it.
Those unexpected shut downs left me thinking, taking into account that it is not a post for pc failure diagnostics, I recommend that you check first the hardware part and the temperature part, then the rest.
You say you built your PC in late 2020. Did you buy an RTX 3080 or RTX 3090?
If so, that might be your problem. I've got a 3080 myself, and my screen occasionally blacks out (usually when I watch Netflix and proceed to the next episode). In some cases my PC recovers, and in others, it crashes and restarts.

If you have an old GPU lying around, you could try and replace your new GPU with it, see if the problem persists. Once you're sure it's the GPU, get your warranty. Although with the current global shortage, I'd probably wait a bit before sending your GPU in.
I'm also having this issue. I'm working on my game on my laptop. I set the laptop on a table so it would charge without closing the project. I did save the game. When opened the laptop, everything I had open shut down.

I edited the game file to have the line:

RPGMZ 1.9.0

But now I get this when I tried to open the project:
1757365517248.png


How do I fix this?

@Brigg, please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. You can review our forum rules here. Thank you.


Please make a new thread instead.

Original thread: https://forums.rpgmakerweb.com/threads/mz-unable-to-read-project-file.136010/