EHM 1 Database & Saved Game Editor v1: BUG REPORTS & FEATURE REQUESTS

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
Post Reply
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 1 Database & Saved Game Editor

Post by Alessandro »

Archi, can you add an option to load another DB without having to close editor?
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 1 Database & Saved Game Editor

Post by Alessandro »

Also, we can't set "start" stage in trade window screen, with "start" not set (it is set for "default" leagues) will call when transfer window opens "trade deadline".
Fredlig
TBL Rosters Researcher
Posts: 153
Joined: Mon Nov 28, 2011 9:48 am

Re: EHM 1 Database & Saved Game Editor

Post by Fredlig »

I used the new function which allows to edit the draft and rights. And after adding a player which was missing from the draft, and adding his draft history and rights, i get the following error message trying to create a new game; select_leagues_screen.ccp 114.

The only thing i did was adding a player, his NHL draft position and rights. Anyone?
User avatar
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: EHM 1 Database & Saved Game Editor

Post by archibalduk »

Alessandro wrote:Archi, can you add an option to load another DB without having to close editor?
Perhaps in the future. It's not a straightforward feature to add. I have tried to set up the Editor in a way that would allow this in the future, but I'm not sure it'll work without some significant further work.
Alessandro wrote:Also, we can't set "start" stage in trade window screen, with "start" not set (it is set for "default" leagues) will call when transfer window opens "trade deadline".
Do you mean that the Start Date checkbox when adding a new Transfer Window is not ticked? If so, I have added this to my to-do list to fix.
Fredlig wrote:I used the new function which allows to edit the draft and rights. And after adding a player which was missing from the draft, and adding his draft history and rights, i get the following error message trying to create a new game; select_leagues_screen.ccp 114.

The only thing i did was adding a player, his NHL draft position and rights. Anyone?
I'll try the same thing and will let you know what I find.
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 1 Database & Saved Game Editor

Post by Alessandro »

archibalduk wrote: Do you mean that the Start Date checkbox when adding a new Transfer Window is not ticked? If so, I have added this to my to-do list to fix.
Yes, exact :thup:
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 1 Database & Saved Game Editor

Post by Alessandro »

There is a problem when exporting/importing teams with multi-conferences (or divisions?).
I can't import Named's czech junior league as it fails to get the divisions, instead of the correct divisions it sets as league's divisions something like olympic qualifications, deutschland cup, and similar stuff.
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 1 Database & Saved Game Editor

Post by Alessandro »

User avatar
Named
TBL Rosters Researcher
Posts: 698
Joined: Tue Apr 07, 2015 8:34 pm
Custom Rank: League structures guru
Favourite Team: Chicago Blackhawks
Location: PL

Re: EHM 1 Database & Saved Game Editor

Post by Named »

I suppose problem might be cause I used 1 Conference and 3 Divisional model inside this conference. It was the same model of league how we had on QMJHL which Riz fixed.
User avatar
CruzerDC
Learning to skate
Posts: 2
Joined: Fri Apr 17, 2015 3:53 am
Favourite Team: Rauman Lukko
Location: Rauma, Finland

Re: EHM 1 Database & Saved Game Editor

Post by CruzerDC »

Hi!
There seems to be an issue when editing staff histories, all i did was edit one players career history (i added his 15/16 season stats), and when i went in to the game and started a new game it loaded normally for a few seconds and then this error message came up
Image
User avatar
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: EHM 1 Database & Saved Game Editor

Post by archibalduk »

CruzerDC wrote:Hi!
There seems to be an issue when editing staff histories, all i did was edit one players career history (i added his 15/16 season stats), and when i went in to the game and started a new game it loaded normally for a few seconds and then this error message came up
I'm getting the same issue. It seems adding a player career history entry is now corrupting the database. This might be related to the issue Fredlig reported above. I'll see if I can figure out the issue.
User avatar
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: EHM 1 Database & Saved Game Editor

Post by archibalduk »

Alessandro wrote:There is a problem when exporting/importing teams with multi-conferences (or divisions?).
I can't import Named's czech junior league as it fails to get the divisions, instead of the correct divisions it sets as league's divisions something like olympic qualifications, deutschland cup, and similar stuff.
Where are the divisions being show as Olympic Qualifying, etc?

When I load Named's structure into the DB, I see that the various divisions are listed as [Out of Range] (see screenshot below). This is because Named has created those new Club Competitions in his DB and they are not present in the unmodified/original version of the TBL Rosters. So you will need to manually add these Club Competitions and then update the linked division for each division entry accordingly. Eventually the Editor will try to do this for you, but right now it doesn't.

Image
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 1 Database & Saved Game Editor

Post by Alessandro »

archibalduk wrote:
When I load Named's structure into the DB, I see that the various divisions are listed as [Out of Range] (see screenshot below). This is because Named has created those new Club Competitions in his DB and they are not present in the unmodified/original version of the TBL Rosters. So you will need to manually add these Club Competitions and then update the linked division for each division entry accordingly. Eventually the Editor will try to do this for you, but right now it doesn't.
I think you may have an old DB. With a newer DB you'll see that divisions are in, and I think that the problem is that he is working that league with divisions rather than conferences.
EDIT: Messed-up divisions are I think in schedule template screen
User avatar
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: EHM 1 Database & Saved Game Editor

Post by archibalduk »

Named wrote:I suppose problem might be cause I used 1 Conference and 3 Divisional model inside this conference. It was the same model of league how we had on QMJHL which Riz fixed.
Alessandro wrote:I think you may have an old DB. With a newer DB you'll see that divisions are in, and I think that the problem is that he is working that league with divisions rather than conferences.
EDIT: Messed-up divisions are I think in schedule template screen
I'm using the v9.0b database and am getting [Out of Range] on the Schedule Templates screen too.

As mentioned above, the Editor does not add the missing Club Comps nor does it attempt to find them. Instead it simply imports the Club Competition ID numbers from the EHM file without any modification. The Club Comp IDs for the linked divisions in this particular structure are 854, 855 and 856. The Schedule Templates use the UID instead (which is also imported direct from the EHM file without modification). The UIDs for the linked divisions are 1,134,982, 1,134,983 and 1,134,984. These IDs and UIDs are from Named's original DB. The fact that the linked divisions have such high UIDs indicate that they were added after import from an EHM 2007 database (i.e. the leagues/divisions are not present in the TBL Rosters). Otherwise the Club Comps would have UIDs around the 10,000 or 49,000 range (as opposed to 1.1 million).

The structure of the league is irrelevant. It's the IDs and UIDs which are relevant and determine the linked Club Comps.

In the Editor, click on Club Comps -> Export Data Model. Search through the exported spreadsheet and see if you can find Club Comps with the IDs and/or UID.
User avatar
Named
TBL Rosters Researcher
Posts: 698
Joined: Tue Apr 07, 2015 8:34 pm
Custom Rank: League structures guru
Favourite Team: Chicago Blackhawks
Location: PL

Re: EHM 1 Database & Saved Game Editor

Post by Named »

I imported into live database which include problematic divisions and still getting like Alessandro Olympic Pre-Qualification Divisions. I posted screen and uploaded some fresh db in which tried to import *.ehm file. Could You have a look on it? I have made model of this league (including comps, divs) in editor 0.1.4. Maybe problem is that we want to import this model into database where divs were created in 2007 db version? DHL leagues also didnt exists in current databases cause name is renamed in import_config file?

"CHANGE_COMP_NAME" "Czech NOEN Elite Junior League" "Czech DHL Elite Junior Liga" "Czech Junior Liga" "" "" ""

Image
Image

http://www10.zippyshare.com/v/m3LS6nIt/file.html
User avatar
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: EHM 1 Database & Saved Game Editor

Post by archibalduk »

I'm not sure you're following what I'm saying above. I'll take a look tomorrow but am virtually certain it'll be as I say above.

Can you follow my instructions above regarding the Export Data Model in the destination database? Which Club Comps have ID 854, 855 and 856?
User avatar
Named
TBL Rosters Researcher
Posts: 698
Joined: Tue Apr 07, 2015 8:34 pm
Custom Rank: League structures guru
Favourite Team: Chicago Blackhawks
Location: PL

Re: EHM 1 Database & Saved Game Editor

Post by Named »

Swedish Four Nations U-20 Tournament 854
Olympic Pre-Qualification 855
Final Olympic Qualification 856

I think You were right but how we can fix it after import? Manually need to delete from structure screen and populate with divisions? DHL Divs have ID 814, 815, 816.

EDIT: Manually fixes works but I suspect there were several problems with Club Competition Classification for Divisions but maybe it was due to wrong comp ID's.
User avatar
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: EHM 1 Database & Saved Game Editor

Post by archibalduk »

Named wrote:I think You were right but how we can fix it after import? Manually need to delete from structure screen and populate with divisions? DHL Divs have ID 814, 815, 816.
Just create the missing Club Comps and then edit the Divisions and Schedule Templates accordingly.
Named wrote:EDIT: Manually fixes works but I suspect there were several problems with Club Competition Classification for Divisions but maybe it was due to wrong comp ID's.
No it won't be due to the incorrect Club Comp IDs.
User avatar
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: EHM 1 Database & Saved Game Editor

Post by archibalduk »

archibalduk wrote:
CruzerDC wrote:Hi!
There seems to be an issue when editing staff histories, all i did was edit one players career history (i added his 15/16 season stats), and when i went in to the game and started a new game it loaded normally for a few seconds and then this error message came up
I'm getting the same issue. It seems adding a player career history entry is now corrupting the database. This might be related to the issue Fredlig reported above. I'll see if I can figure out the issue.
I believe I have found the cause of this and will look to release a fixed version this weekend. The bug is a blatant error made by me when I first started writing the Editor. It's easy to fix, but I don't know why it has only started to affect things now - it should have caused issues as soon as it was possible to add any data anywhere!!
BKarchitect
Second Line
Posts: 656
Joined: Sat Jan 07, 2012 11:21 pm

Re: EHM 1 Database & Saved Game Editor

Post by BKarchitect »

archi - any chance recalculate runtime data is in next version? Thanks :-D
User avatar
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: EHM 1 Database & Saved Game Editor

Post by archibalduk »

BKarchitect wrote:archi - any chance recalculate runtime data is in next version? Thanks :-D
I've been looking at whether I could add this to the fixed version I hope to release tomorrow. However, it's a bit more complex than how it worked with the EHM Updater in EHM 2007 because leagues can have different IDs and new leagues might be added in the future (whereas it was all tied to specific IDs in the EHM 2007 database). So it'll take some time and thought to get working correctly. I'll have it added for the version I release after tomorrow's release. :thup:
BKarchitect
Second Line
Posts: 656
Joined: Sat Jan 07, 2012 11:21 pm

Re: EHM 1 Database & Saved Game Editor

Post by BKarchitect »

No problem thanks archi for all your hard work on the editor! :notworthy:
User avatar
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: EHM 1 Database & Saved Game Editor

Post by archibalduk »

Here is the new version of the Editor (v0.1.6): http://www.ehmtheblueline.com/forums/vi ... 04#p206841

The main reason for this release is to fix a write error which occurs if any club/competition/staff history is added or deleted. This resulted in a corrupt database when next saving. This patch fixes this problem and allows histories to be added/deleted without causing any corruption.

New Features:
  • Added player info spreadsheet exporting.
Fixes and Improvements:
  • Fixed write error which was resulting corrupt databases when editing certain club/competition/staff histories;
  • Improved club competition export spreadsheet;
  • Improved Xlsx spreadsheet heading format;
  • Minor improvements to the Export to Spreadsheet screen (work in progress); and
  • Updated Club Division Level flags.
GooseGaming68
Junior League
Posts: 31
Joined: Sun Aug 14, 2016 2:45 pm
Favourite Team: Washington Capitals

Re: EHM 1 Database & Saved Game Editor

Post by GooseGaming68 »

How do I edit draft pick rights? I'm updating the rosters for up to date transactions. I also want to edit injuries players have but I don't know where to find the screen. For example Pittsburgh traded a 5th round draft pick in 2017 for mike condon from the ottawa senators. I know how to move condon from ottawa to pittsburgh but how do I move the pick from pittsburgh to ottawa? And for the injuries Jonathan Quick got injured the first game of the season and has been out since. That is arguably the reason that the LA Kings are not doing as well as last year. Also what ID are the Capitals? Or the Penguins? Is there a table for that in the schedule template? For the new 9.1 roster update it seems that the schedule is still the same from last year. Now I may be doing something wrong for the schedule but I have deleted and re installed twice now. And I know I'm selecting the correct roster because everything else about it is correct.
User avatar
Javs
Minor League
Posts: 238
Joined: Mon Mar 07, 2005 11:48 pm
Location: Ontario

VCRUNTIME

Post by Javs »

Hey,

I get a VCRUNTIME error when I try to start EHM1 editor. I tried to install Windows Visual C++ 2013 and 2015 and it still doesn't work.

Any suggestions?

NOTE: I couldnt find information anywhere on the site, so I figured I'd get the best response here.
User avatar
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: VCRUNTIME

Post by archibalduk »

Javs wrote:Hey,

I get a VCRUNTIME error when I try to start EHM1 editor. I tried to install Windows Visual C++ 2013 and 2015 and it still doesn't work.

Any suggestions?

NOTE: I couldnt find information anywhere on the site, so I figured I'd get the best response here.
Do you mean the Visual C++ Redistributable? If so, did you install the 32-bit version (x86)? The Editor only works with the 32-bit Redistributable and not the 64-bit version.

If the error message is in English then could you post a screenshot of it please?
Post Reply