Posts: 1,264
Thanks: 8196 in 47 Posts
22 Achievements
Header differences between DBPF versions
I'm trying to recover some lost TS4 packages using PhotoRec, which works by detecting the header of deleted files. I created a custom search pattern and set it to scan, and it gave me over 60 GB of files - that's more like my TS3 CC horde than my TS4 one, which just had a couple dozen choice bits of CC. While creating the search pattern, I noted that the only difference between DBPF packages in TS3 and TS4 is a lonely x01 in the first line, and now I'm thinking that there should be other differences in the headers that I could use to try and refine my search pattern - there's enough of a difference between TS2 and TS3 packages for this nifty little tool (
http://modthesims.info/download.php?t=381097) to exist, which automatically distinguishes between the two based on (I assume) the header.
The header for a random TS4 package:
00000000 44 42 50 46 02 00 00 00 01 00 00 00 00 00 00 00 |DBPF............|
00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| - everything beyond this line seems to be unique to the individual package file
00000020 00 00 00 00 03 00 00 00 00 00 00 00 5c 00 00 00 |............\...|
00000030 00 00 00 00 00 00 00 00 00 00 00 00 03 00 00 00 |................|
00000040 0f a0 04 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000060 78 9c ec bd 5f 6c 1b 5b 7e e7 59 94 44 ac a3 b8 |x..._l.[~.Y.D...|
00000070 57 32 60 be 73 8c 1d ec 5d 3d 79 61 cc 9b 01 d2 |W2`.s...]=ya....|
00000080 03 19 98 0e 36 d3 14 9a a5 59 6b 30 88 f3 60 63 |....6....Yk0..`c|
00000090 ad a7 0d 7a 27 c0 20 0e a2 f5 f5 0d 7c 8d 45 5e |...z'. .....|.E^|
Header for random TS3 package:
00000000 44 42 50 46 02 00 00 00 00 00 00 00 00 00 00 00 |DBPF............|
00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| - ditto
00000020 00 00 00 00 09 00 00 00 00 00 00 00 24 01 00 00 |............$...|
00000030 00 00 00 00 00 00 00 00 00 00 00 00 03 00 00 00 |................|
00000040 72 d0 02 00 00 00 00 00 00 00 00 00 00 00 00 00 |r...............|
00000050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000060 10 fb 00 0d 83 e1 12 00 00 00 ba 0c 00 00 01 07 |................|
00000070 01 e2 26 06 00 00 3c 00 70 00 72 00 65 00 01 03 |..&...<.p.r.e...|
00000080 73 03 0f 74 00 3e e0 63 00 6f 00 01 15 6d 03 11 |s..t.>.c.o...m..|
00000090 6c 00 61 e0 65 00 20 00 01 09 6e 01 09 6d e0 3d |l.a.e. ...n..m.=|
If anyone could help clear up the difference between the two and maybe give me a gently push in the right direction as to how to narrow down the differences between the two, that'd be great, as it'd save me from searching through thousands upon thousands of package files to find the dozen or so that I need from TS4. Thanks!
Quote:
|
Originally Posted by jje1000
If this succeeds, then we will have driven a stake through the metaphorical heart of pudding.
|
♥ Receptacle Refugee ♥
Now also on Tumblr !