Staredit Network

Staredit Network -> Modding Assistance -> DatEdit problem
Report, edit, etc...Posted by dumbducky on 2006-08-15 at 09:32:13
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?
Report, edit, etc...Posted by TERRAINFIGHTER on 2006-08-15 at 09:34:44
I've heard of this problem repeatedly, it's caused by over-writing a .dat file with a differant type of .dat file... tongue.gif
Report, edit, etc...Posted by dumbducky on 2006-08-15 at 09:43:52
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?
Report, edit, etc...Posted by BroodKiller on 2006-08-15 at 09:57:31
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.
Report, edit, etc...Posted by dumbducky on 2006-08-15 at 10:16:52
I have no hex editor. Perhaps I should upload my .dat to SEN?
Report, edit, etc...Posted by BroodKiller on 2006-08-15 at 10:22:00
Nah, get Total Commander here:
http://www.ghisler.com/

You'll learn something new smile.gif
Report, edit, etc...Posted by dumbducky on 2006-08-15 at 10:35:52
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?
Report, edit, etc...Posted by BroodKiller on 2006-08-15 at 10:43:25
If you don't do it - DatEdit won't do it.
Report, edit, etc...Posted by dumbducky on 2006-08-15 at 11:29:09
Alright, problem solved.
Next Page (1)