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

EHM 1 Database & Saved Game Editor

Post by Alessandro »

It's an EHM bug, unfortunately these things are AFAIK hardcoded
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:

EHM 1 Database & Saved Game Editor

Post by archibalduk »

Manimal has encountered an issue where the DB is saved as a blank file. I don't know what the cause is but I'll add something to the next release to check that the file is successfully saved and to display an error message.

I haven't checked the current release, but I do know there is an issue with the unreleased version I'm working on where saving the DB after importing an .ehm will result in the DB being saved to the .ehm file. I am fixing this for the next release. If in the meantime this happens to anybody then just rename the .ehm file to database.db and this should be fine (but I have not tested this).
User avatar
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

Post by xECK29x »

Just a small request for a future release, very low priority. Can you add some validation to City coordinates? I see there is a mix of Longitude coordinates with and without '-' at the beginning, not sure if this will impact how the game chooses cities for generated players/staff.
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:

EHM 1 Database & Saved Game Editor

Post by archibalduk »

xECK29x wrote: Fri Jun 01, 2018 6:03 pm Just a small request for a future release, very low priority. Can you add some validation to City coordinates? I see there is a mix of Longitude coordinates with and without '-' at the beginning, not sure if this will impact how the game chooses cities for generated players/staff.
I'm not sure I follow. Longitude ranges from -180 (west) and +180 (east) with zero being located at the Prime Meridian in Greenwich. London. Are you saying that cities are missing a negative when they shouldn't?
User avatar
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

Post by xECK29x »

archibalduk wrote: Tue Jun 05, 2018 8:44 pm I'm not sure I follow. Longitude ranges from -180 (west) and +180 (east) with zero being located at the Prime Meridian in Greenwich. London. Are you saying that cities are missing a negative when they shouldn't?
Actually yes, sorry it's been a hell of a week. Any country in the western hemisphere that does not have a - for Longitude, can that be addressed? If it doesn't have any impact in the game who cares, just something I noticed.
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

EHM 1 Database & Saved Game Editor

Post by Manimal »

In Sweden there is a new rule that limits the number of transfer loans in a season. Can that be added to the Editor?
Now we can only allow or disallow loans
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:

EHM 1 Database & Saved Game Editor

Post by archibalduk »

Manimal wrote: Thu Jun 07, 2018 7:33 pm In Sweden there is a new rule that limits the number of transfer loans in a season. Can that be added to the Editor?
Now we can only allow or disallow loans
Unfortunately I cannot add new settings to the Editor. The Editor simply displays the available settings. It would be down to Riz to add any new settings.
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:

EHM 1 Database & Saved Game Editor

Post by archibalduk »

xECK29x wrote: Wed Jun 06, 2018 12:53 am
archibalduk wrote: Tue Jun 05, 2018 8:44 pm I'm not sure I follow. Longitude ranges from -180 (west) and +180 (east) with zero being located at the Prime Meridian in Greenwich. London. Are you saying that cities are missing a negative when they shouldn't?
Actually yes, sorry it's been a hell of a week. Any country in the western hemisphere that does not have a - for Longitude, can that be addressed? If it doesn't have any impact in the game who cares, just something I noticed.
This wouldn't work because some countries straddle the east and west hemispheres - such as England and France. Have you come across a lot of cities with incorrect longitudes? If so, please can you provide some examples?
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:

EHM 1 Database & Saved Game Editor

Post by archibalduk »

I have returned to the Editor for the first time in about two months today. I want to get another release out later this month if possible. I'm making some final fixes and also improving EHM 2004 compatibility (it is nearly getting close enough to be able to convert it to EHM 2007 format for importing into EHM 1).
User avatar
CJ
TBL Rosters Researcher
Posts: 3411
Joined: Tue Nov 08, 2011 6:34 pm
Custom Rank: Formerly jhcjobpb
Favourite Team: Florida Panthers
Location: Finland

EHM 1 Database & Saved Game Editor

Post by CJ »

Hello Archie.

Will you fix the adding of cities to the next update? As we're still not able to add longitude and latitude into it. :-k

It's one of the things I need for the 1998 database, as I don't know any other way how to add new cities to the game.
BKarchitect
Second Line
Posts: 656
Joined: Sat Jan 07, 2012 11:21 pm

EHM 1 Database & Saved Game Editor

Post by BKarchitect »

Speaking of cities - do the geographic coordinates (outside the nation and state) affect the game in any way? Do the coordinates help populate generated players in proximity to leagues/teams?
User avatar
Javs
Minor League
Posts: 238
Joined: Mon Mar 07, 2005 11:48 pm
Location: Ontario

EHM 1 Database & Saved Game Editor

Post by Javs »

archibalduk wrote: Sat Jun 09, 2018 10:45 pm Unfortunately I cannot add new settings to the Editor. The Editor simply displays the available settings. It would be down to Riz to add any new settings.
If there was ever a way to limit the amount of transfers per season then Canadian junior leagues can be 90% accurate.
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:

EHM 1 Database & Saved Game Editor

Post by archibalduk »

CJ wrote: Mon Jun 11, 2018 2:56 pm Hello Archie.

Will you fix the adding of cities to the next update? As we're still not able to add longitude and latitude into it. :-k

It's one of the things I need for the 1998 database, as I don't know any other way how to add new cities to the game.
If I am able to re-produce the issue then I'll fix it for the upcoming release.
BKarchitect wrote: Mon Jun 11, 2018 3:58 pm Speaking of cities - do the geographic coordinates (outside the nation and state) affect the game in any way? Do the coordinates help populate generated players in proximity to leagues/teams?
I think longitude/latitude might be used to ascertain how close clubs/arenas are. But I might be mixing this up with an old version of Football Manager.
User avatar
CJ
TBL Rosters Researcher
Posts: 3411
Joined: Tue Nov 08, 2011 6:34 pm
Custom Rank: Formerly jhcjobpb
Favourite Team: Florida Panthers
Location: Finland

EHM 1 Database & Saved Game Editor

Post by CJ »

Team colours don't show up again in v0.2.8. Worked in v0.2.7. (Maybe you had the same issue with v0.2.6?) The editor shows only gray and black logos. Once you change a colour on the team the other ones get corrected though.
BKarchitect
Second Line
Posts: 656
Joined: Sat Jan 07, 2012 11:21 pm

EHM 1 Database & Saved Game Editor

Post by BKarchitect »

This is way, way down the list but along with universal player sorting/filtering by ratings (I know you can do it already on individual team screens - which is awesome), could you add a function that sorts not just by birth year but perhaps by (NHL) Draft year? Basically September 16, Year XX thru September 15, Year XX+1? Would come in handing when filtering younger players by eligible draft class.

Thanks archi!
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:

EHM 1 Database & Saved Game Editor

Post by archibalduk »

CJ wrote: Tue Jun 12, 2018 8:08 pm Team colours don't show up again in v0.2.8. Worked in v0.2.7. (Maybe you had the same issue with v0.2.6?) The editor shows only gray and black logos. Once you change a colour on the team the other ones get corrected though.
I can't remember, but I think this was only an issue with v0.2.8 - but I'm not sure. In any event, I already fixed it for the upcoming version. :thup:
BKarchitect wrote: Tue Jun 12, 2018 10:16 pm This is way, way down the list but along with universal player sorting/filtering by ratings (I know you can do it already on individual team screens - which is awesome), could you add a function that sorts not just by birth year but perhaps by (NHL) Draft year? Basically September 16, Year XX thru September 15, Year XX+1? Would come in handing when filtering younger players by eligible draft class.

Thanks archi!
Maybe. I still need to get the attribute filtering up and running. Whether I can add draft year filtering depends on the performance of the attribute filter. The more items you make it possible to filter by, the slower the filter (and the staff table is already a slow table). I'll have a think...
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:

EHM 1 Database & Saved Game Editor

Post by archibalduk »

CJ wrote: Mon Jun 11, 2018 2:56 pm Hello Archie.

Will you fix the adding of cities to the next update? As we're still not able to add longitude and latitude into it. :-k

It's one of the things I need for the 1998 database, as I don't know any other way how to add new cities to the game.
I have fixed this. I have also fixed the Importer spreadsheets not accepting commas as the decimal point. Spreadsheets can now use dots or commas (or a combination of both). The Editor will use commas or dots according to your system settings. I think I have caught all instances of this across the Editor screens, but if anything looks like it has been missed when I release the next version then let me know.
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:

EHM 1 Database & Saved Game Editor

Post by archibalduk »

xECK29x wrote: Sun Apr 29, 2018 4:48 pmNot sure if this is a bug or not but I noticed a lot of players won't have their year of birth set, I have to manually hit enter to get it to register. I don't think this is an issue in-game but maybe that is something that can be enforced on save?
Fixed. :thup:
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:

EHM 1 Database & Saved Game Editor

Post by archibalduk »

Here is a new version: viewtopic.php?f=148&t=16014

This adds a few new importer spreadsheets (officials, staff award history and staff preferences) along with a few UI changes and a number of bug fixes. The Editor can now decode about 99% of the EHM 2004 database and I hope to add EHM 2004 to EHM 2007 conversion in the next main release. Thank you to everybody who reported bugs. :thup:

I think this will probably be the last release until I have completed the usual summer research for the TBL Rosters. But I might release a minor update if anybody finds any bugs or there is something critical we need for the TBL Rosters.

CHANGELIST: VERSION 0.2.9 (16-Jun-2018)

New Features:
  • Added a file size error message when the database saved as a blank or small file size;
  • Added copy, paste and invert/cycle buttons to each colour editor;
  • Added copy all colours and paste all colours to the Clubs and Nations editing screens;
  • Added data validation to the Awards History and Club History tables (the table is now re-sorted and unlinked entries are deleted);
  • Added duplicate staff reporting (via Export Spreadsheets screen);
  • Added Mass Edit drop-down menu to the People tab;
  • Added mass editor (people): Delete all players and/or staff;
  • Added mass editor (people): Free agent utility (players and/or staff);
  • Added first names and second names exporting;
  • Added "ignore old entries" setting when importing staff award history;
  • Added officials exporting;
  • Added officials importing;
  • Added right-click menu to the Player Roster and Staff Roster tabs of the Clubs editing screen in order to quickly set players/staff free agents;
  • Added saved game unpacking via the File -> Unpack button;
  • Added staff award history exporting;
  • Added staff award history importing;
  • Added staff preferences exporting;
  • Added staff preferences importing; and
  • Enabled deletion of officials via the Officials editing screen.
Fixes and Improvements:
  • Added a row count indicator to the bottom of each editing screen;
  • Added club competition/league research spreadsheet exporting;
  • Added year of birth validation to players/staff and officials;
  • Any editing screens where there are no rows of data will be disabled;
  • Clarified the labels of not applicable items on the Rules & Structure importing screen;
  • Decimal points using a comma are now correctly processed in editing screens and Importer spreadsheets;
  • EHM 2005 Staff Preferences data is now transferred from the Staff table to the Staff Preferences table;
  • Fixed a major issue with the database being saved to an .ehm file after importing an .ehm file into the database;
  • Fixed an issue with the colour previews not updating;
  • Fixed an issue with the last edited field being reset when saving;
  • Improved decoding of EHM 2004 databases (but it is not 100% complete yet);
  • Moved Record ID and Unique ID indicators to the bottom of each editing screen;
  • Player career history is always validated with the Set Linked Data setting enabled;
  • The navigation lists on each editing screen are now correctly updated after the database tables have been re-ordered;
  • The Staff and Officials editing screens now show the person's age for EHM 2004-2007 databases;
  • Updated the application icon with the new TBL logo;
  • Various adjustments to the player/staff matching functions, particularly in respect of the Staff Smart Import; and
  • Year of Birth is automatically calculated irrespective of whether the Sort Staff Data setting is enabled.
User avatar
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

Post by xECK29x »

Amazing work as always Archi! This added a lot of the features I think a lot of us were waiting on! Now to get started on all the award updates in my DB!
User avatar
riazorblues86
Top Prospect
Posts: 128
Joined: Sat Apr 11, 2015 7:49 pm
Favourite Team: New Jersey Devils

EHM 1 Database & Saved Game Editor

Post by riazorblues86 »

Hi Archi,

I have one question regarding EHM Editor. Hope you can help.

Real world trade happened between 2 teams, which one team get a player, while other get drafts pick. So, I manage to change the player team in player section, but how do i change the
draft pick for other team? Is possible to change the draft pick in editor?

Hope you can help.

Thank you.

Regards,
User avatar
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

Post by xECK29x »

riazorblues86 wrote: Sun Jun 17, 2018 3:44 pm Is possible to change the draft pick in editor?
Draft picks are found in extra_config.cfg which you can edit with a tool like Notepad++ or Sublime. These config files are loaded alongside the DB and should be placed in the same folder as the .db file.
User avatar
CJ
TBL Rosters Researcher
Posts: 3411
Joined: Tue Nov 08, 2011 6:34 pm
Custom Rank: Formerly jhcjobpb
Favourite Team: Florida Panthers
Location: Finland

EHM 1 Database & Saved Game Editor

Post by CJ »

archibalduk wrote: Sat Jun 16, 2018 12:05 pm I have fixed this. I have also fixed the Importer spreadsheets not accepting commas as the decimal point. Spreadsheets can now use dots or commas (or a combination of both). The Editor will use commas or dots according to your system settings. I think I have caught all instances of this across the Editor screens, but if anything looks like it has been missed when I release the next version then let me know.
Super awesome! :thup:
88_06_12
Junior League
Posts: 29
Joined: Sun Mar 25, 2018 4:10 pm
Favourite Team: Leksand

EHM 1 Database & Saved Game Editor

Post by 88_06_12 »

Hello!

When importing a file in "Rules & Structures" with the 0.2.8 version the file appeared in the db-folder, with 0.2.9 the file does not do that, it isn't seen anywhere. Does that matter? Or is the file in the db 'hidden'? Rookie question, sorry for that.

In this case i thinking of the 'Hockeyettan Schedule' file. Just to be sure the save can live a long life and not be stopped due to errors.

Thanks for your time!
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:

EHM 1 Database & Saved Game Editor

Post by archibalduk »

The file appeared in the same folder as the DB in version 0.2.8 because of a bug (the DB file was being saved into the .ehm file). The Editor imports the contents of the .ehm file into the DB and so there is no separate file once imported as it is contained within the DB file. The .ehm file is just a handy way to transfer data from one DB to another.
Post Reply