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

Post by archibalduk »

Thank you - I'm glad it is of use! :)

Something random I came across the other day is that you can use an asterisk (*) as a wildcard when using the text search filters. E.g. "new*rangers" will bring up the New York Rangers.
BKarchitect
Second Line
Posts: 656
Joined: Sat Jan 07, 2012 11:21 pm

Re: EHM 1 Database & Saved Game Editor

Post by BKarchitect »

Awesome new feature archi - anybody who edits databases I would think would love this "one-screen editing ability". Can't wait!
User avatar
EZJaeger
Junior League
Posts: 7
Joined: Thu Jun 30, 2016 9:09 pm
Favourite Team: Boston Bruins
Location: London, UK

Re: EHM 1 Database & Saved Game Editor

Post by EZJaeger »

archibalduk wrote:The latest version of the Eastside Hockey Manager 1 Database Editor can be downloaded here: http://www.ehmtheblueline.com/editor
Is anyone playing on Mac with a PlayonMac mirror and managed to make this work? this is impossible...
I would like to eliminate the salary cap, since it does not go up or down and my save has a bug where teams are attributed with cap penalties that I don't know how they were aggregated.... :rant:
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 1 Database & Saved Game Editor

Post by archibalduk »

EZJaeger wrote:
archibalduk wrote:The latest version of the Eastside Hockey Manager 1 Database Editor can be downloaded here: http://www.ehmtheblueline.com/editor
Is anyone playing on Mac with a PlayonMac mirror and managed to make this work? this is impossible...
I read on Reddit that somebody had gotten it running on the Mac (with PlayonMac IIRC). I have been trying to get OS X up and running using Virtual Box but it is prone to crashing and I'm struggling to get the compiler running. I'll try it again in the coming weeks. If I can get it to work then I may be able to compile a Mac version of the Editor. It's a big IF.
EZJaeger wrote:I would like to eliminate the salary cap, since it does not go up or down and my save has a bug where teams are attributed with cap penalties that I don't know how they were aggregated.... :rant:
Editing saved games is highly risky and usually ends with irreparable corruption. Try editing the "transfer_rules_config.cfg" file which accompanies the database. You can edit this in any text editor.
User avatar
EZJaeger
Junior League
Posts: 7
Joined: Thu Jun 30, 2016 9:09 pm
Favourite Team: Boston Bruins
Location: London, UK

Re: EHM 1 Database & Saved Game Editor

Post by EZJaeger »

Hi Archi,

the problem that I have is that If the roster update is a subscription from steam workshop e.g. TBL 10.1, I cannot find the appropriate database config file in the "database" folder.
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 1 Database & Saved Game Editor

Post by archibalduk »

User avatar
EZJaeger
Junior League
Posts: 7
Joined: Thu Jun 30, 2016 9:09 pm
Favourite Team: Boston Bruins
Location: London, UK

Re: EHM 1 Database & Saved Game Editor

Post by EZJaeger »

Thank you. Followed the instructions and changed the cap value but there were no changes. Is there a higher salary cap value limit to input or shall I just change the value to 0?
User avatar
Primis
Freeware Moderator
Posts: 1698
Joined: Tue Aug 03, 2010 7:46 pm
Location: Michigan, USA

Re: EHM 1 Database & Saved Game Editor

Post by Primis »

archibalduk wrote:Haha! :D There were a lot of changes between the September 2017 version and the current version, so it should be a nice surprise features-wise!
It is, in fact. It is very different. You're doing great work here, Archi.

With the Staff filters, can you add an option to filter by PA/CA eventually? Thanks.
User avatar
nino33
Mr. Goalie
Posts: 6088
Joined: Sat Aug 07, 2010 3:37 am
Custom Rank: Retro Rosters Specialist
Favourite Team: 1970s hockey

Re: EHM 1 Database & Saved Game Editor

Post by nino33 »

Am I correct in thinking I can use the Editor to add a single player to the database? i.e. I can add players manually one at a time rather than using a spreadsheet?

To do so do I click on "Add Item" on the Players & Staff screen?
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 1 Database & Saved Game Editor

Post by Manimal »

nino33 wrote:Am I correct in thinking I can use the Editor to add a single player to the database? i.e. I can add players manually one at a time rather than using a spreadsheet?

To do so do I click on "Add Item" on the Players & Staff screen?
Yes
User avatar
nino33
Mr. Goalie
Posts: 6088
Joined: Sat Aug 07, 2010 3:37 am
Custom Rank: Retro Rosters Specialist
Favourite Team: 1970s hockey

Re: EHM 1 Database & Saved Game Editor

Post by nino33 »

Manimal wrote:
nino33 wrote:Am I correct in thinking I can use the Editor to add a single player to the database? i.e. I can add players manually one at a time rather than using a spreadsheet?

To do so do I click on "Add Item" on the Players & Staff screen?
Yes
Thanks! :thup:
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 1 Database & Saved Game Editor

Post by archibalduk »

Primis wrote:
archibalduk wrote:Haha! :D There were a lot of changes between the September 2017 version and the current version, so it should be a nice surprise features-wise!
It is, in fact. It is very different. You're doing great work here, Archi.

With the Staff filters, can you add an option to filter by PA/CA eventually? Thanks.
That's the long term plan. It's a little more complex than the existing filters because it involves pulling data from three tables (i.e. the basic staff data table, the player attributes table and the non-player attributes table). I need to give it some thought because the filtering needs to be as efficient as possible when filtering all of that data given the volume of staff data present. As you will see, filtering the staff data is already a bit slow (and that's filtering against just the staff data table).
nino33 wrote:Am I correct in thinking I can use the Editor to add a single player to the database? i.e. I can add players manually one at a time rather than using a spreadsheet?

To do so do I click on "Add Item" on the Players & Staff screen?
I am working on the buttons/menus running along the lower edge of the screen at the moment (needs some tidying up IMO) - I'll try and make that button a little more obvious (e.g. "Add New Person" instead of "Add New Item", etc).
User avatar
nino33
Mr. Goalie
Posts: 6088
Joined: Sat Aug 07, 2010 3:37 am
Custom Rank: Retro Rosters Specialist
Favourite Team: 1970s hockey

Re: EHM 1 Database & Saved Game Editor

Post by nino33 »

I'm getting a crash of the Editor while working on the 74DB
If I click on the Kingston Canadians team on the Clubs tab the Editor crashes

Also, in looking into it I noticed a few team names on the Clubs tab list were highlighted in yellow!
I figured the yellow highlight was to highlight an error issue; I found that entering the "Nation" got rid of the yellow (IIRC it had been None -1)
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 1 Database & Saved Game Editor

Post by archibalduk »

Could you email a copy of your current DB to me please? I will take a look at the crash.

That's right - the Editor will highlight in yellow if an active team does not have a nation or Reputation set. The game will crash if a team on a playable league has no nation or a Reputation of zero. I don't think this will be an issue with the next version of the game however (but it seems to make sense to ensure these are set for playable teams anyhow).

P.s. I'll get back to you this week on your previous email. :-)
User avatar
nino33
Mr. Goalie
Posts: 6088
Joined: Sat Aug 07, 2010 3:37 am
Custom Rank: Retro Rosters Specialist
Favourite Team: 1970s hockey

Re: EHM 1 Database & Saved Game Editor

Post by nino33 »

archibalduk wrote:Could you email a copy of your current DB to me please? I will take a look at the crash.
DB emailed/thanks :thup:

archibalduk wrote:That's right - the Editor will highlight in yellow if an active team does not have a nation or Reputation set. The game will crash if a team on a playable league has no nation or a Reputation of zero. I don't think this will be an issue with the next version of the game however (but it seems to make sense to ensure these are set for playable teams anyhow).
I thought it was pretty cool! :nerd:
lucamo99
Learning to skate
Posts: 3
Joined: Fri Mar 02, 2018 3:07 pm
Favourite Team: HC Lugano

Re: EHM 1 Database & Saved Game Editor

Post by lucamo99 »

What can I do to see the text on the left? https://imgur.com/a/NoBN9
Dadonov
Learning to skate
Posts: 1
Joined: Sat Mar 03, 2018 2:24 am
Favourite Team: Buffalo Sabres

Re: EHM 1 Database & Saved Game Editor

Post by Dadonov »

I have absolutely no idea how to use the editor, the main thing I want to do is be able to change prospect's potential, but when I see a player has a potential of: -15, I have no idea what that means, and what to change it to. Say I want to make some random prospect like Ivan Chukarov a future superstar and give him the best possible potential, how would I go about doing that?
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 1 Database & Saved Game Editor

Post by archibalduk »

lucamo99 wrote:What can I do to see the text on the left? https://imgur.com/a/NoBN9
What screen resolution are you using? It looks like the screen size is too small for the Editor.
Dadonov wrote:I have absolutely no idea how to use the editor, the main thing I want to do is be able to change prospect's potential, but when I see a player has a potential of: -15, I have no idea what that means, and what to change it to. Say I want to make some random prospect like Ivan Chukarov a future superstar and give him the best possible potential, how would I go about doing that?
The negative Potential Ability ratings mean that the game will randomly generate a Potential Ability for each saved game within a certain range.

See here: viewtopic.php?p=6795#p6795
lucamo99
Learning to skate
Posts: 3
Joined: Fri Mar 02, 2018 3:07 pm
Favourite Team: HC Lugano

Re: EHM 1 Database & Saved Game Editor

Post by lucamo99 »

I use a 1920 x 1080 screen, I have a laptop 13' is it normal or my settings are wrong?
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 1 Database & Saved Game Editor

Post by archibalduk »

That resolution should be plenty large enough. Given the size of your screen, I suspect you have the scaling setting up pretty high and this would result in the issue you're seeing.

Right click on your desktop and click on Display Settings. There is a setting entitled "Scale and layout: Change the size of text, apps and other items". Reduce the percentage value. This should fix it, but the downside is that everything will look smaller on your screen.

Alternatively, right-click on your EHM Editor.exe file -> Properties -> Compatibility. You will see a setting entitled "Override high DPI scaling behaviour". You could try enabling this and trying the various settings in the drop-down menu. I'm not sure it will make much of a difference though.
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 1 Database & Saved Game Editor

Post by archibalduk »

xECK29x wrote:Looks like creating any new club, not sure if it is something with junior/national U20 records having issues. I'll know it happens because a GUI bug appears shortly after saving. You won't see it instantly after creating the club and saving, what will happen is when I go to assign staff to the club I'll see the name of the club change in the selection box to Zaire U20 or Zimbabwe or some other nation, that is how I know it occurred. When I look up the nation I saw in the selection box usually the city, arena, and reputation info of the club I created will overwrite the country, and make it a junior team. After a long editing session creating clubs I have to figure out what national team was overwritten and manually correct the changes via the tip you gave me in the other thread. Sometimes it will bug out for teams I created weeks ago, it's pretty weird.

Happy to do a Zoom meeting or something to show you in person, just PM me. I should be able to reproduce it pretty easily.
I have been unable to reproduce this bug. Creating new teams doesn't cause any issue when I try it (I have been testing using your Pivot Rosters). Could you email to me a copy of a database with the issue present please? ehmtheblueline AT gmail DOT com.

Also, if you can post a step by step of how you can recreate the issue then that would be very useful.
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

Re: EHM 1 Database & Saved Game Editor

Post by xECK29x »

archibalduk wrote:
xECK29x wrote:Looks like creating any new club, not sure if it is something with junior/national U20 records having issues. I'll know it happens because a GUI bug appears shortly after saving. You won't see it instantly after creating the club and saving, what will happen is when I go to assign staff to the club I'll see the name of the club change in the selection box to Zaire U20 or Zimbabwe or some other nation, that is how I know it occurred. When I look up the nation I saw in the selection box usually the city, arena, and reputation info of the club I created will overwrite the country, and make it a junior team. After a long editing session creating clubs I have to figure out what national team was overwritten and manually correct the changes via the tip you gave me in the other thread. Sometimes it will bug out for teams I created weeks ago, it's pretty weird.

Happy to do a Zoom meeting or something to show you in person, just PM me. I should be able to reproduce it pretty easily.
I have been unable to reproduce this bug. Creating new teams doesn't cause any issue when I try it (I have been testing using your Pivot Rosters). Could you email to me a copy of a database with the issue present please? ehmtheblueline AT gmail DOT com.

Also, if you can post a step by step of how you can recreate the issue then that would be very useful.
Sent!
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 1 Database & Saved Game Editor

Post by archibalduk »

xECK29x wrote:Sent!
Thanks so much for this. :thup: I have identified the issue and have fixed about 95% of the issue. The remainder is taking some more figuring out.

The issue is because the GUI goes out of sync with the data when either importing data or when running any validation functions (which are applied when saving the database). When you add a new club, it is added to the end of the clubs table. Then when you save, the database is re-ordered and the national teams are put to the end of the clubs table. However, the GUI still thinks that the newly created team is at the end of the table when in fact it is the final U20 national team (being Zaire in the first instance). This means that you are actually editing Zaire U20 after you save the database when it appears from the GUI that you are editing your newly created team. This could potentially happen with many editing screens (including staff). I have now fixed this aspect of the issue.

A second issue is that even with this issue fixed, there is some copying of data from the newly created record to the final club in the clubs table (being Zaire U20). It only affects certain values and specifically those with drop-down menus. Strangely, it is not all drop-downs but just the Professional Status drop-down. A similar issue appears when importing data via a spreadsheet - the item currently viewed in the Editor will not be fully updated (specifically, certain drop-down menus). I was aware of this latter issue and have been trying to fix it, but now I know that the issue is much wider than I first thought. Had it not been for this additional issue, the temporary work around would be to navigate to another record immediately after saving as this would refresh the GUI. But this doesn't work because of this second "copying" issue.

The temporary work around is to exit the Editor after saving the database. It's not ideal, but all I can suggest whilst I continue to look at the bug.
User avatar
nino33
Mr. Goalie
Posts: 6088
Joined: Sat Aug 07, 2010 3:37 am
Custom Rank: Retro Rosters Specialist
Favourite Team: 1970s hockey

Re: EHM 1 Database & Saved Game Editor

Post by nino33 »

archibalduk wrote:The temporary work around is to exit the Editor after saving the database. It's not ideal, but all I can suggest whilst I continue to look at the bug.
Just to clarify, is this only in regards to adding a new club?
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 1 Database & Saved Game Editor

Post by archibalduk »

I've fixed the copying issue now, which is a relief. Thanks again to xECK29x for reporting this. :thup: I'll try and get a new version out sooner rather than later but it'll need to wait until I have completed and fully tested the roster management changes.

I still need to fix the issue with the Importer though. It's a fairly minor issue, but an issue nonetheless.
Post Reply