EHM 2007 Hardcode Editor (An exe / hex editor) [WIP]

Discuss all aspects of editing the data and databases in EHM here. Have a question about the EHM Editor, EHM Assistant, editing the .cfg files, hex editing the .dat or .db files? Want to tweak the EHM exe file to change league rules/structure, start date etc? This is the place!
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
MKoivuFan
Checking Line
Posts: 526
Joined: Wed Mar 07, 2007 5:05 am
Custom Rank: MKoivuSports

Re: EHM 2007 Hardcode Editor (An exe / hex editor) [WIP]

Post by MKoivuFan »

can u change the number of teams in a league or no for example WHL..

edit... i changed WHL to 22 teams and had to rename the exe file so we will soon find out if it works or not..
MKoivuFan
Checking Line
Posts: 526
Joined: Wed Mar 07, 2007 5:05 am
Custom Rank: MKoivuSports

Re: EHM 2007 Hardcode Editor (An exe / hex editor) [WIP]

Post by MKoivuFan »

k so after changing it in the hard code editor..

Image

Then i got this

Image

then i decided to save it to a different directory and then copy the exe file back into the ehm07 directory.

If i just double click on the ehm2007whl.exe file

it shows

Image

however if i run as admin because i have vistia on my pc

i get this

Image

but then when i dont run it under admin the standings only register as 21 teams instead of 22

Image

so not sure if i did something wrong or what not..
User avatar
archibalduk
TBL Admin Team
Posts: 20372
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: EHM 2007 Hardcode Editor (An exe / hex editor) [WIP]

Post by archibalduk »

You need to use "Run as Admin" when loading the Editor. Otherwise it cannot save files to C:/Program Files/.../

Always use "Run as Admin" when running the game and when running the Pre-Game Editor. Otherwise you'll end up with a shadow copies of your DB. You'll need to edit your DB again using "Run as Admin" with the Pre-Game Editor to add the 22nd team. Then use "Run as Admin" to load your edited exe. Try simming through the season to see what happens with the 22nd team.

I think you also need to change the League Structure because otherwise it might not allow 22 teams in the league. See if any other leagues have a 22 team league and try copying their settings.
MKoivuFan
Checking Line
Posts: 526
Joined: Wed Mar 07, 2007 5:05 am
Custom Rank: MKoivuSports

Re: EHM 2007 Hardcode Editor (An exe / hex editor) [WIP]

Post by MKoivuFan »

if i want to use another league structure do i have to have the same amount of divisions and teams in those divisions..

for example another thing i was looking into is changing AHL, so if i use NHL as their structure do i have to have 5 divisions of 5 teams each or is it 30 teams with the 4 divisions?
User avatar
archibalduk
TBL Admin Team
Posts: 20372
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: EHM 2007 Hardcode Editor (An exe / hex editor) [WIP]

Post by archibalduk »

MKoivuFan wrote:if i want to use another league structure do i have to have the same amount of divisions and teams in those divisions..

for example another thing i was looking into is changing AHL, so if i use NHL as their structure do i have to have 5 divisions of 5 teams each or is it 30 teams with the 4 divisions?
I don't know. You'll have to experiment and test things out. All I did was write the editor - I haven't tested every possible setting.
MKoivuFan
Checking Line
Posts: 526
Joined: Wed Mar 07, 2007 5:05 am
Custom Rank: MKoivuSports

Re: EHM 2007 Hardcode Editor (An exe / hex editor) [WIP]

Post by MKoivuFan »

just a little update for everyone...
Image

I tried that and i get this error...

Image

I just got to figure out because in the database i did 5 divisions of 5, im gonna try and go with the 4 divisions that AHL has in the original file but ill keep everyone updated..
MKoivuFan
Checking Line
Posts: 526
Joined: Wed Mar 07, 2007 5:05 am
Custom Rank: MKoivuSports

Re: EHM 2007 Hardcode Editor (An exe / hex editor) [WIP]

Post by MKoivuFan »

after finding out the error it was because i had more then 30 teams in the pregame editor... so now the file loads up and in the team selection it shows all 30 AHL teams but in standings it only shows 27 teams so im gonna go ahead and sim 1 full season and see where it leads..
MKoivuFan
Checking Line
Posts: 526
Joined: Wed Mar 07, 2007 5:05 am
Custom Rank: MKoivuSports

Re: EHM 2007 Hardcode Editor (An exe / hex editor) [WIP]

Post by MKoivuFan »

After doing much testing with OHL as WHL League size and everything else was going to try having 21 teams aka expansion team as the 21st team, AHL as a 30 team using NHL settings and everything, the database works just not the standings in EHM like u said im not sure if there if theres some hard coding that does not let u change the standings or something..
User avatar
Manimal
TBL Admin Team
Posts: 6344
Joined: Thu Apr 24, 2008 4:01 am
Custom Rank: EHM Rosters Man
Favourite Team: Djurgårdens IF
Location: Karlstad, Sweden

Re: EHM 2007 Hardcode Editor (An exe / hex editor) [WIP]

Post by Manimal »

MKoivuFan wrote:After doing much testing with OHL as WHL League size and everything else was going to try having 21 teams aka expansion team as the 21st team, AHL as a 30 team using NHL settings and everything, the database works just not the standings in EHM like u said im not sure if there if theres some hard coding that does not let u change the standings or something..
Do all teams play games?
MKoivuFan
Checking Line
Posts: 526
Joined: Wed Mar 07, 2007 5:05 am
Custom Rank: MKoivuSports

Re: EHM 2007 Hardcode Editor (An exe / hex editor) [WIP]

Post by MKoivuFan »

Manimal wrote:
MKoivuFan wrote:After doing much testing with OHL as WHL League size and everything else was going to try having 21 teams aka expansion team as the 21st team, AHL as a 30 team using NHL settings and everything, the database works just not the standings in EHM like u said im not sure if there if theres some hard coding that does not let u change the standings or something..
Do all teams play games?
Only 27 teams show up in standings but when u go to take over as the GM like when u first start up the game and u pick ur team it lists all 30 teams but in the standings it only shows 27 teams so it has to be some hard coding in the standings or something that archi hasn't solved yet with his editor that will problemly will be written in the editor down the road..
User avatar
MillionDollarMan
Junior League
Posts: 5
Joined: Sat Aug 24, 2013 8:18 pm

Re: EHM 2007 Hardcode Editor (An exe / hex editor) [WIP]

Post by MillionDollarMan »

Are you planning on making this work on any version that doesn't use elicense because I tried buying it the way some other guys bought it years after the game was released but it seems that it's no longer possible. Wouldn't EHM 2007 at this point be considered abandonware since it's no longer for sale and official support for it has stopped?
User avatar
archibalduk
TBL Admin Team
Posts: 20372
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: EHM 2007 Hardcode Editor (An exe / hex editor) [WIP]

Post by archibalduk »

I'm afraid I only have the eLicence version and the notes on which I based the editor are based on that version too. So I'm afraid I have no ability to support any other version of the game. Also, I'm not comfortable supporting any cracked version.
Hobbit13
Junior League
Posts: 37
Joined: Fri Jul 13, 2007 12:05 pm
Custom Rank: UUDB & Hex Man!

Re: EHM 2007 Hardcode Editor (An exe / hex editor) [WIP]

Post by Hobbit13 »

Just saw what you guys have been up to! Great job with it but thank god the new EHM will (hopefully) forever retire this headache of a project! :)
User avatar
archibalduk
TBL Admin Team
Posts: 20372
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: EHM 2007 Hardcode Editor (An exe / hex editor) [WIP]

Post by archibalduk »

Welcome back!! :joy:
Hobbit13
Junior League
Posts: 37
Joined: Fri Jul 13, 2007 12:05 pm
Custom Rank: UUDB & Hex Man!

Re: EHM 2007 Hardcode Editor (An exe / hex editor) [WIP]

Post by Hobbit13 »

Hey :-)
How's it been going with the editing work? Have to say looking back over everything i sort of miss it but sadly just don't have the time for it any more. Are you still putting in as much effort as back in the day?
User avatar
Alessandro
Olympic Gold
Posts: 2865
Joined: Sat Aug 27, 2005 1:54 pm
Custom Rank: TBL Rosters Man
Favourite Team: Team Russia
WHL Team: Calgary Flames

Re: EHM 2007 Hardcode Editor (An exe / hex editor) [WIP]

Post by Alessandro »

Hobbit13 wrote:Hey :-)
How's it been going with the editing work? Have to say looking back over everything i sort of miss it but sadly just don't have the time for it any more. Are you still putting in as much effort as back in the day?
Long story short: When you quit, we had to stop
User avatar
archibalduk
TBL Admin Team
Posts: 20372
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: EHM 2007 Hardcode Editor (An exe / hex editor) [WIP]

Post by archibalduk »

In terms of editing the exe - we gave up after you left because nobody else has the expertise like you with the exe (apart from the Hardcode Editor which I based on your work). Also because we've been so busy with the database and writing editors instead.

In terms of editing the DB - we're as busy as we have every been. :-)
User avatar
bennybandits
Learning to skate
Posts: 2
Joined: Wed Nov 22, 2023 3:49 pm
Favourite Team: Frisk Asker

EHM 2007 Hardcode Editor (An exe / hex editor) [WIP]

Post by bennybandits »

Where can i find this now? The link is not working :(
Post Reply