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
Extracting .dat files
Forum rules
This is the forum to discuss all aspects of editing the EHM data and tweaking the game.
Have a bug or feature request for the EHM Editor? Post them in the EHM Editor thread. Please start a new thread or post in another thread if you have a question about how to use the EHM Editor.
Given the large number of questions on similar topics, we ask that you start a new thread for a new question unless you can locate a similar question in an existing thread. This will hopefully ensure that similar questions do not get buried in large threads.
Useful links: EHM 1 Assistant (Download) | EHM 1 Editor (Download) | EHM 1 Editor Tutorials | Editing Rules & Structures Guide | Converting EHM 2004 / 2005 DBs to EHM 1 | Converting an EHM 2007 DB to EHM 1 | Extra_config.cfg | Import_config.cfg | Player Roles
This is the forum to discuss all aspects of editing the EHM data and tweaking the game.
Have a bug or feature request for the EHM Editor? Post them in the EHM Editor thread. Please start a new thread or post in another thread if you have a question about how to use the EHM Editor.
Given the large number of questions on similar topics, we ask that you start a new thread for a new question unless you can locate a similar question in an existing thread. This will hopefully ensure that similar questions do not get buried in large threads.
Useful links: EHM 1 Assistant (Download) | EHM 1 Editor (Download) | EHM 1 Editor Tutorials | Editing Rules & Structures Guide | Converting EHM 2004 / 2005 DBs to EHM 1 | Converting an EHM 2007 DB to EHM 1 | Extra_config.cfg | Import_config.cfg | Player Roles
- Animal31
- Fourth Line
- Posts: 441
- Joined: Tue Sep 27, 2011 2:54 am
- Favourite Team: Abbotsford Heat
- archibalduk
- TBL Admin Team
- Posts: 20373
- Joined: Tue Jul 06, 2004 8:44 pm
- Custom Rank: Seaside + Fruit Juice Mode
- Favourite Team: Guildford (EPL) / Invicta (NIHL)
- Location: United Kingdom
- Contact:
Re: Extracting .dat files
Are you using C/C++? If so, you need to set the endianness by adding the following line to the top of your code:
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
Code: Select all
#pragma pack(1)