How I lost my script in the stupidest, unpredictable, and most specific way you could possibly imagine

I'm writing this as a permanent record in case someone is writing their script for their big game and so you don't have to go through the same mistakes as me. If you don't wanna read long texts do yourself a favor and please, please make active backups each week or each 3 days of your document/s.

In a sad and possibly hilarious day I lost the script of my game. I'm not talking about a collection of fancy codes or anything like that. I'm talking about writing the whole story about my game, selection of characters (playable and not playable), written game mechanics, even permanent and different effects of setting the Difficulty level Easy/Normal/Hard. I've written more or less 300 pages in 12 sized text, I've re-written dialogues that were previously nonsense and I've written a certain character's motivation to join the party thrice because the previous attempts weren't logical.

This is what remains from my script, a sad screenshot I made a few months back for my profile feed
1658440927449.png


You can imagine my face when I discovered that my document file was irremediably lost.

First some background information about my documents and setup. This may not seem important at first, but it will make sense in all this insanity I experienced.
-I'm using a laptop with Windows 10 from 2017 more or less. With a CPU of i5-6300HQ @2.30GHz and a GPU of GTX 950M. While it has good performance I don't use it for gaming mainly. From the moment I turn the computer on to the insert password screen 5-10 seconds are passed. It's fast.
-For writing documents I use LibreOffice 7.0.3.1, that includes Writer.
-My important work is stored in an external USB hard drive, which includes the script, my art, drawings, ideas, etc...
-From the beginning I opened my script by using the Windows Explorer, going to the folders, double clicking on the file, and that's it. I was slowly getting used to open the file by a quick access. When you open LibreOffice the first thing you see is a list of your recent documents, so with that I naturally got used to open the file that way.

Don't forget about these points because they'll come into play in my story later.

So today I was writing in my script. I added a few dialogues and I had a writer's block. Not a problem. I saved the document, turned the computer off, and decided to go out for a walk to feel inspired, listen to music, that kind of thing. When 2 hours later I came back home, I turned the PC on... and for some unknown reason the PC was starting to take longer than usual. Took it 1 or 2 minutes to show the insert password screen.

Then I opened LibreOffice, clicked my script in the recent documents screen and then suddenly a sudden message appears
"Game Script document not found, the route doesn't exist"
I opened the Windows Explorer and found out that my USB device wasn't detected when it was actually connected. I plugged it out and in and then a Windows message appears
"Something is wrong with your device. Repair it?"
I clicked instinctively in "OK" and waited more or less 2 minutes for the bar to fill it up and that's it.

Then I opened LIbreOffice and clicked in my script, ready to write some more. Wait a moment. It's blank. It was 0 words and 1 page. The file size is 0 bytes. It's as empty as a fresh new document. I went to the folder where the script was and my fears confirmed to be true. Everything inside my script was disintegrated for some reason (I suspect the Windows message of repairing).

Okay, no panic. I'm sure there's a folder with temporary files of backup saves of my file, right? No. The folder is empty. Most likely I haven't configured it to make automatic backups. No files.

I went to the search engine and looked for the problem and the solution. There were people who had the same problem as me but then I realized that none of their descriptions were aligned with what happened to me. No problem, I download the programs that recover files regardless. But:
-One half of the programs couldn't recover my document precisely because it was 0 bytes of size.
and
-Another half of the programs "spawned" fake temporary files of my document as a paywall for these dollar euro bills in exchange. These temporary files don't exist, I've looked there before.

Yeah. This is my considered situation.

I'm not saying that I suddenly got the message "Oh, your document is corrupt!" because that's all the users are reporting and it's not happening to me.
I'm saying that I literally got an empty document with literally nothing there. What's worse, my sequence of events doesn't seem to appear in my search attempts.

I don't know what else to write, honestly. I can only hope someone doesn't make the same mistakes as I did. But number one: always store your important work in your C: drive. In retrospective I could have turned the PC off, unplug and plug my USB device, and the USB could be easily readable as always. I know that because it's not the first time it happened to me... at least without disasters like I had today. But it's been so long without that problem that I forgot about it. I believe that was my mistake because otherwise it's gonna be a divine intervention.
your analysis and solution is not entirely correct.

what most likely happened is either a hardware error or a connection error with your USB drive.
This can happen with ANY drive, because all electronical devices have a limited lifetime and a probability for failures.
Depending on the cause of the error - especially if there was some form of overheating or electricity charge involved - there can be other failures following.

The key to backups is to have multiple backups on different devices, not single versions. Storing data on the root drive actually can have other problems because in case of a complete windows failure that is the drive you have to erase to repair windows.
But number one: always store your important work in your C: drive.
Honestly, that's not a sufficient solution either. Hard drives fail all the time. Every hard drive has a finite lifespan, so the hard drive in your computer definitely will die some day. And it's never a safe bet to assume that that day will be far into the future, because a drive can die at any time, sometimes seemingly at random. You definitely need to be backing up your important work to at least one additional place, and the more the better.

And ideally, at least one of those additional places should be somewhere that's not in the same physical location as you. That way, something like a fire, a burglary, a natural disaster, etc wouldn't mean the end of all your work. For something like a document, something as simple as Dropbox or Google Drive would be sufficient. If you install their software on your computer, then it will create a special folder that you can use just like any other folder, but everything in there will automatically be synchronized to the cloud. That way, you don't really have to do any extra work, but your document will always be backed up.

You don't want to use the auto-syncing feature for your entire RPG Maker project though. I've heard of people winding up with corrupted projects when doing that, because of a design flaw in RPG Maker's editor. For your actual project files, you'd want to manually back those up. You can still back them up to Dropbox (or Google Drive)--but just do it manually, rather than actually working out of the Dropbox folder. Or even better yet, you could use something like Github, for proper version control.
Sorry for your loss, that can be really demoralizing.
I learned the hard way when a music project I had been working on for weeks failed to save correctly and this corrupted the project. That was probably more than a decade ago at this point, but ever since then, I rarely overwrite the same save more than 3 times. I more often than not, save the project as a new project and increment the save by 1...and of course all the usual recommended backing up stuff other folks have recommended.

I hope you are able to keep working on your game despite this major set back.
I've lost 3 hard drives in my life and I can tell you that the primary drive(the OS drive) is not exempt.

HDDs don't usually give signs that they are failing but you can get an idea of their health through the Defrag which can report bad sectors. When they do fail, 2 things can happen..

1. They are "functional enough" to still boot up and this is your 'last chance' to retrieve data from them before # 2 occurs.

2. They don't boot up at all and it's over.

Original thread: https://forums.rpgmakerweb.com/threads/how-i-lost-my-script-in-the-stupidest-unpredictable-and-most-specific-way-you-could-possibly-imagine.149698/