I decided to save my datedit progress, so I did. Then everything screwed up. For units I edited, shields are enabled, and set to 65535 for every unit, and all weapons are phase disruptor(fenix dragoon). with max hits set to 67, space taken is 33 +.5. The rest of the units just have scrambled stats, but still not normal ones.
All I did before saving was set a move control to flingy.dat, edit the flingy, and edit some weapon cooldown and damage. I also set shields to one unit.
Is there any way to recover my progress?
I've heard of this problem repeatedly, it's caused by over-writing a .dat file with a differant type of .dat file...
Wait, there's a difference? I thought they were all the same...
Lets say I make a change to the flingy.dat. And then a change to the weapons. Now I click save. What dat will be saved?
The one which editor you have currently opened.
And TF is right - this is caused by saving a DAT file with different name than it should have. This may happen if you have multiple DAT files in one folder, and while you're in the Save dialog box, you select a different DAT and press OK. This will save the file under improper name and screw up the data. DATs do not have header sections, so the program can't really tell what type of a DAT was just opened...but wait, it can check the filesize....hmm - I think I should implement this, as a security countermeasure.
As for recovering...hmm...try chaning the filename and opening in different editors to figure out what DAT it actually is. Or you can check the "real" filesize. Here's how to do it:
1.Get yourself a hex editor/viewer. The one that comes with Total Commander is ok.
2.Select your file and press F3, then change the View mode to "Hex".
3.Browse through the file until you encounter a long section with 0s.
4.Check the offset where this section begins (the address is on the left-hand side of the window)
5.Tell me what it is.
If you do this, we may yet recover your data,but I can't guarantee anything.
I have no hex editor. Perhaps I should upload my .dat to SEN?
Wait! I just realized I have a backup in the .MPQ i was using to test. It has pre-changes progress. Unless the MPQ automatically updates itself, but it doesn't do that right?
If you don't do it - DatEdit won't do it.