[RD] The case of the mysterious overwritten file.

Mouthwash

Escaped Lunatic
Joined
Sep 26, 2011
Messages
9,370
Location
Hiding
This is about how I feel right now.

I'm updating my mod for Crusader Kings II. I have a special mod folder where I keep all my files, and another folder where I keep the version of CKII that existed before the last DLC. Winmerge allows me to compare files between all three of them.

Since landed_titles is a very big file with a lot of changes, I don't simply move it to my mod folder. I take its post-Holy Fury version and place it on the desktop, and, over the course of many hours, painstakingly integrate all my changes into it. Then I rename the one in the mod folder to something else, to use as a reference in case I messed something up, and moved the updated version into it.

I just clicked on Notepad++ again. It immediately told me that some files appear to no longer exist (which happens when you move them to different locations), would I like to remove them from the editor, yadda yadda, and seeing no reason not to I clicked yes.

Imagine my surprise when, after reopening it, it was IDENTICAL to the previous version. There's no possibility that I clicked the wrong one. In that folder, there is only landed_titles.txt and previous landed_titles.txt. It cannot have somehow 'reverted' to an earlier state because it was never identical to the other one, being from version 3.0.1.

Closing the tabs is what lost me access to the updated version, but how could a file be changed simply from moving it? The only thing I can think of is that previous landed_titles.txt used to have the same name, so somehow it overwrote the new landed_titles.txt when I placed it in the same folder.

Notepad++'s restore recent tabs function didn't get me it back. I don't think I opened it in Winmerge. I'm NOT doing all the grunt work over again, not on your life. I'd tear apart my computer to get it back.

If it turns out I can't, I would be willing to pay someone on here to do that grunt work, but they'd have to be meticulous.
 
did you check for deleted files on your computer (desktop path to be more precise)? Also just to be sure in your Recycle Bin? You might be able to find any deleted file still sitting around. - I'd probably try one typical file retrieval program (I quite like Recuva).
 
Nothing was deleted, as far as I can tell. The file just somehow seems to have become identical to the other one.
 
Did you actually save your changes? (i've done something similar when mucking around with Star Wars Empire at War mods.........on more than one occasion........stupid Hardpoints.xml........5 hours wasted......)
 
Nothing was deleted, as far as I can tell. The file just somehow seems to have become identical to the other one.

thing is if you moved the file (overwriting something else) you copied it to the new location and deleted it from the old path - so there might be something retrievable. Also Notepad++ does saves its cached versions as described here: https://stackoverflow.com/questions/29617349/notepad-cached-files-location
Those would now be deleted but you might be able to recover them.
 
File permissions issue? On a Sims forum, I remember that one user had problems with their antivirus reverting some of their save files to older versions.

Disk sector issues can cause all sorts of weird problems too. After getting it sorted out it can't hurt to run a chkdsk.
 
Did you actually save your changes? (i've done something similar when mucking around with Star Wars Empire at War mods.........on more than one occasion........stupid Hardpoints.xml........5 hours wasted......)
File permissions issue? On a Sims forum, I remember that one user had problems with their antivirus reverting some of their save files to older versions.

Yes and yes. Everything worked the way it was supposed to.

thing is if you moved the file (overwriting something else) you copied it to the new location and deleted it from the old path - so there might be something retrievable. Also Notepad++ does saves its cached versions as described here: https://stackoverflow.com/questions/29617349/notepad-cached-files-location
Those would now be deleted but you might be able to recover them.

The only backups I see are some random things from the past year. If I use Recuva, where should I search? The desktop? The folder for the mod files?
 
I tried it. Deep scan on my whole computer. Woke up this morning to find it frozen at 17% and had to use task manager to shut it down.

I'm feeling pretty energetic, so I guess I will just... do... it... all over again. There will be no errors this time. :trouble:
 
try non deep scan first - often that is enough for most recoverable data

I did, and nothing came up.

I'm already done with the replacement. Can't believe it took only four hours (the work was a lot more familiar) and I caught some mistakes I missed on the first one.
 
Back
Top Bottom