Page 66 of 82
Editing Club Competitions issue
Posted: Fri Aug 14, 2020 5:53 pm
by GuelphBossman
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
EHM 1 Database & Saved Game Editor
Posted: Fri Aug 14, 2020 8:20 pm
by archibalduk
GuelphBossman wrote: Fri Aug 14, 2020 5:53 pm
Here is the final log from the log entry file:
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).
EHM 1 Database & Saved Game Editor
Posted: Fri Aug 14, 2020 8:22 pm
by GuelphBossman
I decided to take your advice and Run as Admin and it worked. Why is that the case if I may ask?
EHM 1 Database & Saved Game Editor
Posted: Fri Aug 14, 2020 8:30 pm
by archibalduk
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?
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.
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.
EHM 1 Database & Saved Game Editor
Posted: Sat Aug 15, 2020 1:36 am
by GuelphBossman
Ah OK. Thanks for the help!
EHM 1 Database & Saved Game Editor
Posted: Tue Aug 18, 2020 4:14 pm
by xECK29x
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.
This tracks with what may have caused it as I did do a league export before saving.
EHM 1 Database & Saved Game Editor
Posted: Tue Aug 18, 2020 9:40 pm
by archibalduk
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.
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.
](./images/smilies/wallbash.gif)
EHM 1 Database & Saved Game Editor
Posted: Wed Aug 19, 2020 11:56 am
by xECK29x
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.
See my email, happy to help there.
EHM 1 Database & Saved Game Editor
Posted: Wed Sep 02, 2020 7:19 pm
by xECK29x
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?
EHM 1 Database & Saved Game Editor
Posted: Wed Sep 02, 2020 9:52 pm
by archibalduk
No probs - I'll take a look.

EHM 1 Database & Saved Game Editor
Posted: Thu Sep 03, 2020 4:14 am
by Javs
Is there a guide to Market Size / Fan Support / Training settings for clubs?
EHM 1 Database & Saved Game Editor
Posted: Fri Sep 04, 2020 4:09 pm
by nino33
Javs wrote: Thu Sep 03, 2020 4:14 am
Is there a guide to Market Size / Fan Support / Training settings for clubs?
None that I'm aware of
EHM 1 Database & Saved Game Editor
Posted: Fri Sep 04, 2020 4:54 pm
by Filip Croatia
Closest thing I think you can do is to change club reputation in Editor IIRC.
EHM 1 Database & Saved Game Editor
Posted: Fri Sep 04, 2020 6:25 pm
by nino33
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...
- 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
EHM 1 Database & Saved Game Editor
Posted: Wed Sep 09, 2020 6:20 pm
by xECK29x
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.
EHM 1 Database & Saved Game Editor
Posted: Wed Sep 09, 2020 8:14 pm
by archibalduk
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.
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.
EHM 1 Database & Saved Game Editor
Posted: Thu Sep 10, 2020 2:08 am
by xECK29x
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.
Thanks!
EHM 1 Database & Saved Game Editor: BUG REPORTS & FEATURE REQUESTS
Posted: Sun Sep 13, 2020 2:09 pm
by archibalduk
xECK29x 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.
I have split this off into a separate thread:
viewtopic.php?f=110&t=20603
EHM 1 Database & Saved Game Editor: BUG REPORTS & FEATURE REQUESTS
Posted: Sun Sep 13, 2020 2:32 pm
by archibalduk
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.

EHM 1 Database & Saved Game Editor: BUG REPORTS & FEATURE REQUESTS
Posted: Sun Sep 13, 2020 10:05 pm
by Mgomrjsurf
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.
EHM 1 Database & Saved Game Editor: BUG REPORTS & FEATURE REQUESTS
Posted: Mon Sep 14, 2020 5:08 pm
by xECK29x
FYI looks like the NHL Draft Eligibility filter isn't working properly, doesn't seem to make any changes
EHM 1 Database & Saved Game Editor: BUG REPORTS & FEATURE REQUESTS
Posted: Fri Oct 23, 2020 5:30 pm
by TBIF
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.
EHM 1 Database & Saved Game Editor: BUG REPORTS & FEATURE REQUESTS
Posted: Sat Oct 24, 2020 9:32 am
by archibalduk
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.
What data are you looking to avoid overwriting?
EHM 1 Database & Saved Game Editor: BUG REPORTS & FEATURE REQUESTS
Posted: Mon Oct 26, 2020 3:06 pm
by Fingol
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)
EHM 1 Database & Saved Game Editor: BUG REPORTS & FEATURE REQUESTS
Posted: Tue Oct 27, 2020 5:32 pm
by xECK29x
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.