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
Djungelurban
Prospect
Posts: 58
Joined: Thu Nov 26, 2009 9:57 am

Re: EHM 1 Database & Saved Game Editor

Post by Djungelurban »

archibalduk wrote:Switching teams in playable leagues involves also updating the league structure of the relevant league (the structure includes a list of teams which play in each league/conference). This is the part of the Editor I'm working on at the moment. Hence it won't be possible to switch teams in playable leagues until I've finished this section of the Editor.
Huh, I find it a little weird that league structure data is used when selecting which teams go into a league, I don't think it used to be like that in the SI games of old (remember making leagues with like 40 teams in good old CM2 by just changing the league, something the engine clearly wasn't made to do but handled effortlessly none the less). But in any case, I'm glad to know that you're looking into it. Thanks!
Alessandro wrote:(I think) You need to set Arizona as inactive (eg delete all the nation/league information), and replace them with Vegas with the same division/conference setup. Then you have to add this line in the import config file
"FORCE_DATABASE_SET_TEAMS" "National Hockey League"
I have no time to test it, but i guess it's right.
EDIT: I didn't read that you want the Thunder in, I thought you wanted the new Vegas team. You have to replace the Thunder with another team in the ECHL (same alignment setup), then add "FORCE_DATABASE_SET_TEAMS" "ECHL" too.
Let us know.
I don't seem to be able to get it to work 100%. I mean, I think the idea is sound and I think it would have worked if not for one small detail. I did all the things you said, except the ECHL thing since I was moving the old defunct IHL franchise Las Vegas Thunder and not Las Vegas Wranglers so it wasn't needed. And when importing using the "FORCE_DATABASE_SET_TEAMS" command it locks in the division set for each team in the 2007 database. If I then run that database it works to a degree, but since the division don't match up with what the game expects it to be there are no teams in the NHL and no schedule set. And if I go into the imported database and change divisions, the team and division info no longer match up with what I imported and EHM crashes. So then you think that maybe I can set everything correctly in the 2007 database already and yes, that would probably work, except there's no Metropolitan Division in the database and I can't convert any existing club competition into the Metropolitan Division or creating a new competition since I'm then met with an error message... So yeah, the Metropolitan Division seems to be a problem here... Otherwise I'm sure your suggestion would have worked... Or maybe I screwed up somewhere, I will definitely not rule that out. But atleast it's a temporary problem since Archi is on the case already so in the worst case scenario I just have to be a bit patient and all will be solved eventually. :)
User avatar
hockeykid9878
Junior League
Posts: 9
Joined: Sun Dec 29, 2013 12:07 am

Re: EHM 1 Database & Saved Game Editor

Post by hockeykid9878 »

Edit

Nvm I figured it out sorry to bother everyone.
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 »

hockeykid9878 wrote:Hello everyone,

I apologize if this has been covered but I am having trouble opening the tbl 8.2 roster into the newest alpha build of the editor. I haven't tried the older more tested one in months (if it is even still the same version I tried before). The problem I seem to be having is that when I download the 8.2 rosters, the required database file isn't in the folder. I'm not sure if it is something I am doing or what. I can load the index file associated with the 8.2 rosters but that is not the correct file and I know that. Any help would be appreciated. Thanks.
Load EHM, click on the Import button and select the v8.2 database. This will create the database.db file which you can then edit using the Editor.
Djungelurban wrote:
archibalduk wrote:Switching teams in playable leagues involves also updating the league structure of the relevant league (the structure includes a list of teams which play in each league/conference). This is the part of the Editor I'm working on at the moment. Hence it won't be possible to switch teams in playable leagues until I've finished this section of the Editor.
Huh, I find it a little weird that league structure data is used when selecting which teams go into a league, I don't think it used to be like that in the SI games of old (remember making leagues with like 40 teams in good old CM2 by just changing the league, something the engine clearly wasn't made to do but handled effortlessly none the less). But in any case, I'm glad to know that you're looking into it. Thanks!
Yeah it's more complex this time around. In the past we did not have any control over league structures as it was all hard-coded (e.g. EHM 2007 and CM2) and so it was easy to swap teams around. The new DB allows a lot more flexibility but this also means things are a little more complex. One of the settings relates to conferences and divisions which allows you to set which clubs are in which division. So when you switch teams you must also update the list of teams in the relevant division (the screenshot below shows the relevant part of the Editor which is a work in progress).

Image
Djungelurban
Prospect
Posts: 58
Joined: Thu Nov 26, 2009 9:57 am

Re: EHM 1 Database & Saved Game Editor

Post by Djungelurban »

That looks beautiful, and way easier. I'm thinking I might aswell just wait until you finish up that part of the editor before finalizing my database. Heck, might even be able to make a somewhat accurate 1994-95 patch then, even though the thought of plopping 4 IHL teams in the 4 vacant NHL spots has been bobbing around in my head so long I kinda wanna see how it would turn out.

Also, while poking around in the database I've been looking at the transfer rules editor and the rules available to choose from seem just awfully specific sometimes. Which makes me think that those may be database generated somehow too. If so, you think we'd at some point might be able to generate entirely new rule sets? Cause the computer teams' tendency to not sign enough players to get even close to the contract limit has kinda bothered me and I was thinking that maybe there could be a way to sort of force them to sign more by having like a minimum contract limit of 45. Looking through the available options I'm not sure there is right now, but if the rules really are editable to that degree, maybe someday it will be possible.
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 »

Djungelurban wrote:That looks beautiful, and way easier. I'm thinking I might aswell just wait until you finish up that part of the editor before finalizing my database. Heck, might even be able to make a somewhat accurate 1994-95 patch then, even though the thought of plopping 4 IHL teams in the 4 vacant NHL spots has been bobbing around in my head so long I kinda wanna see how it would turn out.
Just bear in mind that the Editor is incomplete right now and once you start making the EHM 1 format database your master database, you'll no longer be able to use the EHM Updater or the EHM 2007 Pre-Game Editor (as neither of these are compatible with EHM 1 databases).

I hope, however, to add some sort of import/export of league structures to the upcoming version of the Editor. So you could, for example, continue with an EHM 2007 format master database and then, for each release of your database: (1) Convert it to EHM 1 format and (2) Import your custom league structure via the Editor to the EHM 1 format database.
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 »

Djungelurban wrote:That looks beautiful, and way easier. I'm thinking I might aswell just wait until you finish up that part of the editor before finalizing my database. Heck, might even be able to make a somewhat accurate 1994-95 patch then, even though the thought of plopping 4 IHL teams in the 4 vacant NHL spots has been bobbing around in my head so long I kinda wanna see how it would turn out.
No, wait. I thought the metropolitan division was in the game, but it is not. This means that you simply need to list all NHL teams. Like this
"FORCE_DATABASE_SET_TEAMS" "Kontinental Hockey League"
"CHANGE_TEAM_DIVISION_DATA" "Admiral Vladivostok" "Kontinental Hockey League" "Kontinental Hockey League Chernyshev Division"
Of course you have to change the KHL with the NHL and relevant teams/conference/divisions. Be sure to list all the 30 teams of course.
Sorry, but I don't really have time to test and/or write you more... but I think it's enough information.
Let us know.
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 »

In regards to making changes to the teams in the NHL when importing a 2007 database into the new EHM, there's this thread that I think might be helpful (I think you can copy/paste the code in the thread and make your changes to it, thus saving time and effort) http://www.ehmtheblueline.com/forums/vi ... 10&t=16771
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 »

Great find Nino - that should really be what our friend needs.
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 »

Alessandro wrote:Great find Nino - that should really be what our friend needs.
I hope so/thanks for the kind words :-)
Djungelurban
Prospect
Posts: 58
Joined: Thu Nov 26, 2009 9:57 am

Re: EHM 1 Database & Saved Game Editor

Post by Djungelurban »

Well, that should be exactly what I need right there! Awesome find there nino! If there are any further complications I'll get back to you but I doubt it. Patch is still some ways out, but I'll atleast should be able to start play testing now. :D
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 »

Djungelurban wrote:Well, that should be exactly what I need right there! Awesome find there nino! If there are any further complications I'll get back to you but I doubt it. Patch is still some ways out, but I'll atleast should be able to start play testing now. :D
Excellent! :thup: It's good Iceman made the effort/posted about it :nod:
dr quincy
Learning to skate
Posts: 1
Joined: Sun Dec 06, 2015 4:45 pm
Favourite Team: wild

Re: EHM 1 Database & Saved Game Editor

Post by dr quincy »

I'll admit I'm pretty poor at this kind of thing, so it's probably just me: I used the Editor and opened up a database on the rosters Archibalduk created. I changed the date on the database header to 2016. I started the game and everything seemed ok. I was able to select Sept 2016 as a start date, but when I got to the screen where usually I can pick the team I want to take over, there were no teams there. The "pick a team for me" button was still there, but there weren't any actual NHL teams listed. When I opened another database it worked fine, so it must have been something with what I edited, but the only thing I changed was the date in the Database header.
User avatar
hockeykid9878
Junior League
Posts: 9
Joined: Sun Dec 29, 2013 12:07 am

Re: EHM 1 Database & Saved Game Editor

Post by hockeykid9878 »

Not sure if this has been addressed, I ran into a crash bug today after editing a database, that I had already edited. I go to start a new game with a database I've edited twice after playing for a bit after the first edit. It goes to load the screen where you set up your name and pick a team and crashes. (This is on the newest Alpha Build).
User avatar
hockeykid9878
Junior League
Posts: 9
Joined: Sun Dec 29, 2013 12:07 am

Re: EHM 1 Database & Saved Game Editor

Post by hockeykid9878 »

hockeykid9878 wrote:Not sure if this has been addressed, I ran into a crash bug today after editing a database, that I had already edited. I go to start a new game with a database I've edited twice after playing for a bit after the first edit. It goes to load the screen where you set up your name and pick a team and crashes. (This is on the newest Alpha Build).

Okay so again I believe I fixed the issue myself. I went and created a player and gave him a contract to the Leafs without a date or salary.
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 »

hockeykid9878 wrote:Not sure if this has been addressed, I ran into a crash bug today after editing a database, that I had already edited. I go to start a new game with a database I've edited twice after playing for a bit after the first edit. It goes to load the screen where you set up your name and pick a team and crashes. (This is on the newest Alpha Build).
Thanks for reporting. :thup:
hockeykid9878 wrote:Okay so again I believe I fixed the issue myself. I went and created a player and gave him a contract to the Leafs without a date or salary.
So are you saying that you think by setting a contract expiry date and salary fixed the issue?

I tried creating a blank player and the only things I set were his name and his contracted & playing for club (Toronto Maple Leafs). I left his expiry date and salary to the default values (1.2.1900 and 0). The game loaded fine and the player appeared fine in game.

I wonder if you did not set the player's Job For Club and Classification? The Editor needs to be a bit more helpful here because it will ignore any change to Job For Club if the Classification is set to Invalid (which it is when creating a new player or non-player). So you currently have to set Classification first. I will fix that in the next version.

If you come across any other issues or if I have not fully understood what you felt was the issue then let me know and I'll look further into it. :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 »

dr quincy wrote:I'll admit I'm pretty poor at this kind of thing, so it's probably just me: I used the Editor and opened up a database on the rosters Archibalduk created. I changed the date on the database header to 2016. I started the game and everything seemed ok. I was able to select Sept 2016 as a start date, but when I got to the screen where usually I can pick the team I want to take over, there were no teams there. The "pick a team for me" button was still there, but there weren't any actual NHL teams listed. When I opened another database it worked fine, so it must have been something with what I edited, but the only thing I changed was the date in the Database header.
Thanks for pointing this out. I am getting the same issue too. I have tested out the TBL Rosters v8.2 and set 2013 and 2016 start dates but have run into exactly the same issue (even when setting the dates in both the Database and Saved Game Header screens). National teams can be selected but the NHL is blank. This issue will take a bit of digging (it used to work fine)...
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 »

There's still a lot to do in order to make the league rules and structures fully editable (I'm about 40-50% of the way there), but I've done enough to have a bit of a play around with EHM. So here are a couple of screenshots of the Scottish National League which is now playable in game (albeit currently using the Norwegian Elite League structure and settings):

Image

Image
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:There's still a lot to do in order to make the league rules and structures fully editable (I'm about 40-50% of the way there), but I've done enough to have a bit of a play around with EHM.
That's great news/awesome to hear! 8-) As always, thanks for your efforts! :notworthy:
User avatar
hockeykid9878
Junior League
Posts: 9
Joined: Sun Dec 29, 2013 12:07 am

Re: EHM 1 Database & Saved Game Editor

Post by hockeykid9878 »

archibalduk wrote:
hockeykid9878 wrote:Not sure if this has been addressed, I ran into a crash bug today after editing a database, that I had already edited. I go to start a new game with a database I've edited twice after playing for a bit after the first edit. It goes to load the screen where you set up your name and pick a team and crashes. (This is on the newest Alpha Build).
Thanks for reporting. :thup:
hockeykid9878 wrote:Okay so again I believe I fixed the issue myself. I went and created a player and gave him a contract to the Leafs without a date or salary.
So are you saying that you think by setting a contract expiry date and salary fixed the issue?

I tried creating a blank player and the only things I set were his name and his contracted & playing for club (Toronto Maple Leafs). I left his expiry date and salary to the default values (1.2.1900 and 0). The game loaded fine and the player appeared fine in game.

I wonder if you did not set the player's Job For Club and Classification? The Editor needs to be a bit more helpful here because it will ignore any change to Job For Club if the Classification is set to Invalid (which it is when creating a new player or non-player). So you currently have to set Classification first. I will fix that in the next version.

If you come across any other issues or if I have not fully understood what you felt was the issue then let me know and I'll look further into it. :thup:
I am not entirely sure what the issue was. I think it might have something to do with the Leafs being over the contract limit in the original database. Although it could have been that I forgot to set a job title for the player as well. All I did was edit a few things in the database, mostly potential on some young Leafs prospects, and created a new player that I contracted to the Chatham Maroons. After this I played this version for a few months without any problems but got bored of it. So then I went and edited the same database that I was just running in the game and edited a few more prospects and contracted my edited player to the Leafs then ran into the crash once I was done. To fix it, I gave my edited player an actual salary while removing useless players from the Leafs to get them under the contract limit who are not even apart of the organization anymore.

Also random question about the editor, is it possible, or is it in the plans to include a filter option for the players like there was in the 2007 editor?
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 »

hockeykid9878 wrote:Also random question about the editor, is it possible, or is it in the plans to include a filter option for the players like there was in the 2007 editor?
I plan to add filters but only once all editing screens are up and running.
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 - I don't get what you did with the Scottish league. Is it in INSTEAD of the Norway one or what?
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 »

Alessandro wrote:Archi - I don't get what you did with the Scottish league. Is it in INSTEAD of the Norway one or what?
For the purposes of that test, it was instead. I simply changed the league that is linked to that particular structure along with the Ruling Body and Transfer Rules settings (so I didn't make any changes to the Scottish or Norwegian league themselves). There is the ability to add extra league structures via the Editor but I need to iron out a couple of bugs (i.e. so that we can add additional playable leagues rather than swapping them around).
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:
Alessandro wrote:Archi - I don't get what you did with the Scottish league. Is it in INSTEAD of the Norway one or what?
For the purposes of that test, it was instead. I simply changed the league that is linked to that particular structure along with the Ruling Body and Transfer Rules settings (so I didn't make any changes to the Scottish or Norwegian league themselves). There is the ability to add extra league structures via the Editor but I need to iron out a couple of bugs (i.e. so that we can add additional playable leagues rather than swapping them around).
Yes, because more or less you can achieve the same thing with the import_config file...
We need to create/activate leagues :notworthy:
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 »

Killjoy! :D You are of course technically correct - albeit that swapping the league around using import_config is a little more involved.

In any event, I have the copy and paste function working and have been able to add the Scottish league as a new playable league (rather than replacing an existing league). :thup:
zbguy
Top Prospect
Posts: 121
Joined: Wed Aug 28, 2013 7:01 pm

Re: EHM 1 Database & Saved Game Editor

Post by zbguy »

archibalduk wrote:Killjoy! :D You are of course technically correct - albeit that swapping the league around using import_config is a little more involved.

In any event, I have the copy and paste function working and have been able to add the Scottish league as a new playable league (rather than replacing an existing league). :thup:
So what this means we'll be able to add playable leagues via the Ruling Bodies and Transfer Rules screens? I've never done this before and I'm trying to predict how it would work.

Related question: In the Transfer Rules section, there's a dropdown about what kind of Draft each league has. I can see that some leagues have their drafts in there, but where is the data on those drafts stored? Is that a yet-to-come feature for the editor?
Post Reply