EHM 1 Database & Saved Game Editor v1: BUG REPORTS & FEATURE REQUESTS
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
-
- Learning to skate
- Posts: 4
- Joined: Fri Aug 14, 2020 5:04 pm
- Favourite Team: Toronto Maple Leafs
Editing Club Competitions issue
Here is the final log from the log entry file:
================== Editing session started: Wednesday 12 August 2020 ==================
14:48:30: Read database C:/Program Files (x86)/Steam/steamapps/common/Eastside Hockey Manager/data/database/database.db
14:48:30: Format Database
14:48:30: Mode EHM 1013/1025
14:48:30: Format Database
14:48:30: Mode EHM 1013/1025
14:48:30: Version 1025
14:48:30 CRITICAL: ERR_FILE_IO_READ_ZERO_BYTES: The file size is zero bytes (i.e. the file is empty). The file is C:/Program Files (x86)/Steam/steamapps/common/Eastside Hockey Manager/data/database/database.db. The location of the error is bool __cdecl Database::openEHM1Database(const class QString &).
14:48:30 CRITICAL: Result Failure
14:48:30: Initialising editor screens...
14:48:35: Elapsed 5.114 secs
================== Editing session started: Wednesday 12 August 2020 ==================
14:48:30: Read database C:/Program Files (x86)/Steam/steamapps/common/Eastside Hockey Manager/data/database/database.db
14:48:30: Format Database
14:48:30: Mode EHM 1013/1025
14:48:30: Format Database
14:48:30: Mode EHM 1013/1025
14:48:30: Version 1025
14:48:30 CRITICAL: ERR_FILE_IO_READ_ZERO_BYTES: The file size is zero bytes (i.e. the file is empty). The file is C:/Program Files (x86)/Steam/steamapps/common/Eastside Hockey Manager/data/database/database.db. The location of the error is bool __cdecl Database::openEHM1Database(const class QString &).
14:48:30 CRITICAL: Result Failure
14:48:30: Initialising editor screens...
14:48:35: Elapsed 5.114 secs
- 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:
EHM 1 Database & Saved Game Editor
Would you mind posting the entire log.txt file? I need to see what happened when you clicked on "Save".
If the database is saved within C:/Program Files/.../ then you must use Run as Admin when loading the Editor. Had you been running the Editor using Run as Admin when you saved the database? The Editor won't have write access to save the file if it is saved in C:/Program Files/.../ without Run as Admin (see here).
-
- Learning to skate
- Posts: 4
- Joined: Fri Aug 14, 2020 5:04 pm
- Favourite Team: Toronto Maple Leafs
EHM 1 Database & Saved Game Editor
I decided to take your advice and Run as Admin and it worked. Why is that the case if I may ask?
- 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:
EHM 1 Database & Saved Game Editor
The C:/Program Files/.../ folder tree (along with certain other folder trees) requires higher access rights as part of Windows' User Access Control (see here). It's basically to protect your system from unwanted modification, such as a virus modifying your system files. Giving the Editor admin access allows it to write to files in that folder tree.GuelphBossman wrote: Fri Aug 14, 2020 8:22 pm I decided to take your advice and Run as Admin and it worked. Why is that the case if I may ask?
An alternative to using Run as Admin is to put the database.db file in a temporary folder such as My Documents or Desktop, edit it using the Editor and then moving it to the EHM Database folder.
-
- Learning to skate
- Posts: 4
- Joined: Fri Aug 14, 2020 5:04 pm
- Favourite Team: Toronto Maple Leafs
EHM 1 Database & Saved Game Editor
Ah OK. Thanks for the help!
- xECK29x
- TBL Rosters Researcher
- Posts: 1010
- Joined: Sun May 03, 2015 2:52 pm
- Custom Rank: Premier Pivot Rosters Man
- Favourite Team: New York Islanders
EHM 1 Database & Saved Game Editor
This tracks with what may have caused it as I did do a league export before saving.archibalduk wrote: Fri Aug 14, 2020 3:17 pm I believe I have located the source of this issue. It looks as though it relates to exporting and importing playable leagues to/from the database (using the .ehm file format). When importing or exporting data, information relating to the database format is saved to the .ehm file in order to ensure that the Editor knows how to decode the .ehm file. If the database format changes in the future then the Editor can check the database format details in the .ehm file in order to ascertain how to decode and import the playable league. This allows us to export an .ehm file from an older format database and import into a newer format database (or vice-versa).
The issue appears to be that the Editor overwrites the database's version number with the version number stored in the .ehm file. So if you import a 1033 format .ehm file into a 1025 format database, the Editor will incorrectly change the database to 1033 rather than leaving it as 1025. I have removed this conflict from the Editor which I *hope* resolves the issue mentioned in the quote above. I still need to fully test this but, at least on paper, this conflict shouldn't arise any further. The difficulty with this issue is that it is proving hard to reproduce, meaning that I am not as confident that the issue is *definitely* fixed as I would ordinarily be.
- 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:
EHM 1 Database & Saved Game Editor
Thanks. That's useful to know.xECK29x wrote: Tue Aug 18, 2020 4:14 pmThis tracks with what may have caused it as I did do a league export before saving.

I'll try and get a test version out as soon as I can (I want to complete the JSON patcher first). Unfortunately I'm being slowed down by the apparent DDOS attack on the site.
](./images/smilies/wallbash.gif)
- xECK29x
- TBL Rosters Researcher
- Posts: 1010
- Joined: Sun May 03, 2015 2:52 pm
- Custom Rank: Premier Pivot Rosters Man
- Favourite Team: New York Islanders
EHM 1 Database & Saved Game Editor
See my email, happy to help there.archibalduk wrote: Tue Aug 18, 2020 9:40 pm Thanks. That's useful to know.
I'll try and get a test version out as soon as I can (I want to complete the JSON patcher first). Unfortunately I'm being slowed down by the apparent DDOS attack on the site.
- xECK29x
- TBL Rosters Researcher
- Posts: 1010
- Joined: Sun May 03, 2015 2:52 pm
- Custom Rank: Premier Pivot Rosters Man
- Favourite Team: New York Islanders
EHM 1 Database & Saved Game Editor
Small item, looks like the Generate Dates tool calendar is off, for instance I am selecting dates to start on Thursday 9/24 but it plops 9/25 as Thursday, looks like the whole calendar is off by a day...or something?
- 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:
EHM 1 Database & Saved Game Editor
No probs - I'll take a look. 

- Javs
- Minor League
- Posts: 238
- Joined: Mon Mar 07, 2005 11:48 pm
- Location: Ontario
EHM 1 Database & Saved Game Editor
Is there a guide to Market Size / Fan Support / Training settings for clubs?
- nino33
- Mr. Goalie
- Posts: 6088
- Joined: Sat Aug 07, 2010 3:37 am
- Custom Rank: Retro Rosters Specialist
- Favourite Team: 1970s hockey
EHM 1 Database & Saved Game Editor
None that I'm aware ofJavs wrote: Thu Sep 03, 2020 4:14 am Is there a guide to Market Size / Fan Support / Training settings for clubs?
- Filip Croatia
- Fringe Player
- Posts: 334
- Joined: Thu Jul 08, 2010 5:55 pm
- Location: Zagreb, Croatia
EHM 1 Database & Saved Game Editor
Closest thing I think you can do is to change club reputation in Editor IIRC.
- nino33
- Mr. Goalie
- Posts: 6088
- Joined: Sat Aug 07, 2010 3:37 am
- Custom Rank: Retro Rosters Specialist
- Favourite Team: 1970s hockey
EHM 1 Database & Saved Game Editor
Market Size, Fan Support, and Training can all be changed in the editor (Reputation too)
There's no guide but the editor can be used to get an example of ranges typically used.
For example, looking at the NHL in the 2019-20 rosters...
Looking at the SHL in the 2019-20 rosters...
In the BCHL in the 2019-20 rosters...
There's no guide but the editor can be used to get an example of ranges typically used.
For example, looking at the NHL in the 2019-20 rosters...
- Market Size ranges from 10-20 (14 teams are in the 15-20 range)
- Fan Support ranges from 10-20 (28 teams are in the 15-20 range)
- Training ranges from 16-20
Looking at the SHL in the 2019-20 rosters...
- Market Size ranges from 12-18 (13 teams are in the 15-20 range)
- Fan Support ranges from 10-20 (13 teams are in the 15-20 range)
- Training ranges from 13-18 (13 teams are in the 15-20 range)
In the BCHL in the 2019-20 rosters...
- Market Size ranges from 8-13
- Fan Support ranges from 6-16 (1 team is in the 15-20 range)
- Training ranges from 10-14
- xECK29x
- TBL Rosters Researcher
- Posts: 1010
- Joined: Sun May 03, 2015 2:52 pm
- Custom Rank: Premier Pivot Rosters Man
- Favourite Team: New York Islanders
EHM 1 Database & Saved Game Editor
Hey Archi,
I wanted to ask if it was possible to create a new Mass-Edit feature, similar to how you do reputations but for PA for players of a specific age. In my DBs I mainly stick to a formula for the following:
Player age:
24 PA = CA + 14
25 PA = CA + 10
26 PA = CA + 8
27 PA = CA + 6
28 PA = CA + 4
29 PA = CA + 2
30+ PA = CA
Would it be possible to implement this? Would help me quickly clean up a lot of players in the DB.
I wanted to ask if it was possible to create a new Mass-Edit feature, similar to how you do reputations but for PA for players of a specific age. In my DBs I mainly stick to a formula for the following:
Player age:
24 PA = CA + 14
25 PA = CA + 10
26 PA = CA + 8
27 PA = CA + 6
28 PA = CA + 4
29 PA = CA + 2
30+ PA = CA
Would it be possible to implement this? Would help me quickly clean up a lot of players in the DB.
- 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:
EHM 1 Database & Saved Game Editor
Sure I can add that to the upcoming release. Looks like I'll have to work this weekend, so I'm expecting it will still be a couple of weeks before I have a release ready.xECK29x wrote: Wed Sep 09, 2020 6:20 pm Hey Archi,
I wanted to ask if it was possible to create a new Mass-Edit feature, similar to how you do reputations but for PA for players of a specific age. In my DBs I mainly stick to a formula for the following:
Player age:
24 PA = CA + 14
25 PA = CA + 10
26 PA = CA + 8
27 PA = CA + 6
28 PA = CA + 4
29 PA = CA + 2
30+ PA = CA
Would it be possible to implement this? Would help me quickly clean up a lot of players in the DB.
- xECK29x
- TBL Rosters Researcher
- Posts: 1010
- Joined: Sun May 03, 2015 2:52 pm
- Custom Rank: Premier Pivot Rosters Man
- Favourite Team: New York Islanders
EHM 1 Database & Saved Game Editor
Thanks!archibalduk wrote: Wed Sep 09, 2020 8:14 pm Sure I can add that to the upcoming release. Looks like I'll have to work this weekend, so I'm expecting it will still be a couple of weeks before I have a release ready.
- 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:
EHM 1 Database & Saved Game Editor: BUG REPORTS & FEATURE REQUESTS
I have split this off into a separate thread: viewtopic.php?f=110&t=20603xECK29x wrote: Fri Sep 11, 2020 1:39 am Archi,
Is there a way to edit the database using 0-100 attributes? This would make working on historical databases much easier as we can copy ratings from games like EA NHL.
- 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:
EHM 1 Database & Saved Game Editor: BUG REPORTS & FEATURE REQUESTS
Unfortunately I have made zero progress with the Editor in recent weeks. My job has been brutal and I'm working seven day weeks right now. Hopefully it will calm down in a week, possibly two weeks.
It's really frustrating as I wanted a demo version of Editor v2 released by the end of this year but I'm now at least 2 months behind.
It's really frustrating as I wanted a demo version of Editor v2 released by the end of this year but I'm now at least 2 months behind.

-
- Prospect
- Posts: 81
- Joined: Sat May 13, 2017 10:32 pm
- Custom Rank: MGSports Account #3
- Favourite Team: Blues/Blackhawks
EHM 1 Database & Saved Game Editor: BUG REPORTS & FEATURE REQUESTS
For Club Errors tell you which ones because I have just one and can't figure it out and maybe one of the four Teams I added to NHL.
- xECK29x
- TBL Rosters Researcher
- Posts: 1010
- Joined: Sun May 03, 2015 2:52 pm
- Custom Rank: Premier Pivot Rosters Man
- Favourite Team: New York Islanders
EHM 1 Database & Saved Game Editor: BUG REPORTS & FEATURE REQUESTS
FYI looks like the NHL Draft Eligibility filter isn't working properly, doesn't seem to make any changes
- TBIF
- Top Prospect
- Posts: 106
- Joined: Sun Jan 01, 2017 8:38 pm
- Custom Rank: 2000/01 Rosters Author
- Favourite Team: Canucks
EHM 1 Database & Saved Game Editor: BUG REPORTS & FEATURE REQUESTS
Hey Archi, curious if there was a way to add a "Do not overwrite existing data" function? Just a little checkbox similar to "calculate pass tend"
Would make going back and doing mass imports much easier.
Would make going back and doing mass imports much easier.
- 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:
EHM 1 Database & Saved Game Editor: BUG REPORTS & FEATURE REQUESTS
What data are you looking to avoid overwriting?TBIF wrote: Fri Oct 23, 2020 5:30 pm Hey Archi, curious if there was a way to add a "Do not overwrite existing data" function? Just a little checkbox similar to "calculate pass tend"
Would make going back and doing mass imports much easier.
-
- Learning to skate
- Posts: 1
- Joined: Thu Oct 06, 2016 1:15 pm
- Favourite Team: Nashville Predators
EHM 1 Database & Saved Game Editor: BUG REPORTS & FEATURE REQUESTS
https://imgur.com/a/WBZT86c
when I try to start a new game this comes and game crashes
database which I edited is xECK29x's Premier Pivot Database (v5.1)
what to do now?](./images/smilies/wallbash.gif)
when I try to start a new game this comes and game crashes
database which I edited is xECK29x's Premier Pivot Database (v5.1)
what to do now?
](./images/smilies/wallbash.gif)
- xECK29x
- TBL Rosters Researcher
- Posts: 1010
- Joined: Sun May 03, 2015 2:52 pm
- Custom Rank: Premier Pivot Rosters Man
- Favourite Team: New York Islanders
EHM 1 Database & Saved Game Editor: BUG REPORTS & FEATURE REQUESTS
Doing some testing with the 1.5 PA ranges and it appears they are being saved into a 1033 header DB just fine, but the new PAs all show visually as -15, is this expected? Using the internal build you shared (0.4.5) but this may be the case with any version that supports 1033.