Page 1 of 1

Extracting .dat files

Posted: Fri Aug 30, 2013 5:39 am
by Animal31
Ive been doing some programming on my own, for S&G, and ive been working with .dat files. I can write and read my own strings and numbers from my own dat files, because im just writing straight up ascii hex values, and reading ascii hex values, but when I read the EHM dat files, its a jumbled mess. Does it have to do with the endian (the back bit goes first, or vice versa), or is it encrypted? or what?

I know we have working tools, but I wanted a go at my own, and I cant see to get started

Re: Extracting .dat files

Posted: Sun Sep 01, 2013 4:32 pm
by archibalduk
Are you using C/C++? If so, you need to set the endianness by adding the following line to the top of your code:

Code: Select all

#pragma pack(1)
If you're still struggling, you might want to try the tutorial I put together here: http://www.ehmtheblueline.com/forums/vi ... 110&t=8593