Editing league rules and structures in EHM 1

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: Editing league rules and structures in EHM 1

Post by Alessandro »

Search function.
User avatar
Primis
Freeware Moderator
Posts: 1698
Joined: Tue Aug 03, 2010 7:46 pm
Location: Michigan, USA

Re: Editing league rules and structures in EHM 1

Post by Primis »

How difficult would it be to create a schedule template generator? Where you plug in your parameters (# of teams, # of games, league structure, etc), and it spits out a file you can then import into the DB?
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: Editing league rules and structures in EHM 1

Post by nino33 »

Primis wrote:How difficult would it be to create a schedule template generator? Where you plug in your parameters (# of teams, # of games, league structure, etc), and it spits out a file you can then import into the DB?
From what I've seen about schedule generation in real life, and what I've read about it on the OOTP/FHM sites, it seems schedule generation is extremely difficult
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: Editing league rules and structures in EHM 1

Post by Alessandro »

It really is. It's not soccer, it's not like you have "draw teams from this pot to play a sunday round of games."
cleowin
Junior League
Posts: 14
Joined: Sat Oct 11, 2008 7:45 am

Re: Editing league rules and structures in EHM 1

Post by cleowin »

I'm trying to export the player list from one of my other db's to a working DB, but everytime I click 'import spreadsheet', it says 'invalid identifier at Cell A1'. Not sure why it wont work.

This is part of my effort to get the 32 Team DB going.. another guy had a working 32 team db, but i wanted my own roster, but cant get it to import. Help?
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: Editing league rules and structures in EHM 1

Post by archibalduk »

cleowin wrote:I'm trying to export the player list from one of my other db's to a working DB, but everytime I click 'import spreadsheet', it says 'invalid identifier at Cell A1'. Not sure why it wont work.

This is part of my effort to get the 32 Team DB going.. another guy had a working 32 team db, but i wanted my own roster, but cant get it to import. Help?
I'm not sure this really relates to editing rules and structures, but it is because of this: http://www.ehmtheblueline.com/forums/vi ... 21#p228796
User avatar
Asher413
Challenge Moderator
Posts: 355
Joined: Wed May 20, 2009 2:28 am
Favourite Team: Pittsburgh Penguins

Re: Editing league rules and structures in EHM 1

Post by Asher413 »

Hi all,

In one of the leagues I've edited, I'm ending up with two history lines for the year, instead of one (so it will say 1972-3 champion as team A, then the line below it team B). Any ideas what could cause that?
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: Editing league rules and structures in EHM 1

Post by nino33 »

Riz commented on HFBoards today http://hfboards.hockeysfuture.com/showt ... 89&page=21 on editing in a saved game and I thought it worth sharing here...


The discussion started from the question "Any chance we see relocation/expansion option in this game in near future?"

Foppa (BKarchitect here at TBL) said "I use the Editor extensively for pre-game database editing but not in-game editing...I wonder if it would be possible in-game editing to edit a team's info including name and colors? You could essentially re-locate clubs in this manner during a career...just have the right logos in your logos folder.

Just opened a saved game and looks like all that info is editable. I don't know whether it will corrupt the save or cause issues though back in the actual game. Because the editor lets you move players in a saved game but it doesn't work when you actually return to the game, it just causes errors."


Archi said "I think that should work. I don't think moving teams between leagues would work though.

The only caveat is that I need to add some further settings to allow certain database validation functions to be disabled when editing saved games. Whilst these validation functions work fine for the database (and should be used) they may cause issues with saved games."

Riz then said "Yes, you should be able to edit the static data, such as team names or even their home city/arena in the DB within saved games. Obviously any games already scheduled in the saved game would be unaffected, so if you wanted to "relocate" a team within as saved game DB, you'd need to do it at the very end of a season, before July 1st when the leagues are reset and the new season is scheduled.

Editing the more dynamic data within a saved game DB, such as team divisions and player teams contracted/playing, is likely to cause errors since a lot of that data is not limited to the DB in a saved game but also replicated in various parts of the game data such as league configurations and contract details.

Expansion/relocation as a built-in part of the game is something I am considering for the long term future of the game, but not for the upcoming updates to this current edition of the game.
"
User avatar
wildcat62
Junior League
Posts: 16
Joined: Tue Feb 02, 2010 10:48 pm

Re: Editing league rules and structures in EHM 1

Post by wildcat62 »

Having a frustrating issue, totally possible I overlooked a step somewhere along the line.

I'm trying to create a North American pro system consisting of three, 32-team leagues. To do so I changed the necessary parts of the 'Rules & Structures' tabs for the NHL while adding the 32-team schedule template from the Vegas&Seattle db that's in the Vegas DB thread and then changed the respective AHL & ECHL tabs to match it. On my first attempt I successfully got a working DB with just the NHL & AHL, but when I went through the process with the ECHL (again, copying the schedule and Rules&Structures straight from the NHL) I got a couple of errors. The first was "CUSTOM_LEAGUE::draw_competition() - unable to find all the initial teams (United Hockey Association)," which successfully loaded a working NHL & AHL while showing an unplayable ECHL that said it only had 30 teams on the league information screen. The second is a greyed-out, impassable screen after Initializing Game Data is done loading.

Anyone have any ideas? Might this be because I added all of the teams into the DB rather than editing the existing teams in the respective leagues?
BKarchitect
Second Line
Posts: 656
Joined: Sat Jan 07, 2012 11:21 pm

Re: Editing league rules and structures in EHM 1

Post by BKarchitect »

With what archi and Riz said - it would be pretty cool in online leagues at least to allow members to maybe have owner votes on relocation of franchises in the summer. I don't do online leagues personally but that would be a fun wrinkle to add and sounds very do-able as long as you maintain existing division structure.
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: Editing league rules and structures in EHM 1

Post by nino33 »

BKarchitect wrote:With what archi and Riz said - it would be pretty cool in online leagues at least to allow members to maybe have owner votes on relocation of franchises in the summer. I don't do online leagues personally but that would be a fun wrinkle to add and sounds very do-able as long as you maintain existing division structure.
I'm thinking such functionality might be helpful with the 1974 DB...while an 18 team NHL would have to be maintained, it's still cool that some of the team changes over the years might be possible (including moving some of the WHA teams into the NHL in 1979)

I wonder if Team History/Records could be "cleared" in a saved game?
User avatar
Asher413
Challenge Moderator
Posts: 355
Joined: Wed May 20, 2009 2:28 am
Favourite Team: Pittsburgh Penguins

Re: Editing league rules and structures in EHM 1

Post by Asher413 »

Pardon if the frustration bleeds through:

Has anyone successfully reduced the number of NHL teams? I have no idea what I'm doing incorrect on my 1972 DB. I started 'fresh' tonight (converted from a working EHM2007 DB, the converted file works fine before editing). All I edited was the leagues of the NHL teams (to get 8 in each division, removed the leagues from the other teams), edited the structure and stages of the NHL (8 in each conference, 4 for playoffs, 3 rounds-> 2 on the conferences, added the redline in playoff games, removed OT/Shootouts), loaded the schedule (all teams had 78 games, cleared and reloaded the two divisions under basic data) and off it went. Every version (today's and the one I worked on two weeks ago) crashes on the end of season update. No error messages, just a crash.

It wouldn't irk me so bad if it wasn't for the fact that the db works without these edits- so I don't think I've screwed something else up in my editing. Any and all help, suggestions or ideas on how to diagnose are greatly appreciated.
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: Editing league rules and structures in EHM 1

Post by nino33 »

Asher413 wrote:Pardon if the frustration bleeds through:

Has anyone successfully reduced the number of NHL teams? I have no idea what I'm doing incorrect on my 1972 DB. I started 'fresh' tonight (converted from a working EHM2007 DB, the converted file works fine before editing). All I edited was the leagues of the NHL teams (to get 8 in each division, removed the leagues from the other teams), edited the structure and stages of the NHL (8 in each conference, 4 for playoffs, 3 rounds-> 2 on the conferences, added the redline in playoff games, removed OT/Shootouts), loaded the schedule (all teams had 78 games, cleared and reloaded the two divisions under basic data) and off it went. Every version (today's and the one I worked on two weeks ago) crashes on the end of season update. No error messages, just a crash.

It wouldn't irk me so bad if it wasn't for the fact that the db works without these edits- so I don't think I've screwed something else up in my editing. Any and all help, suggestions or ideas on how to diagnose are greatly appreciated.
I got an 18 team NHL working with the help of Named, but alas I don't know what to say about your troubles as I never had difficulties getting past the first season, sorry :dunno:
celislanders1
Prospect
Posts: 85
Joined: Sun Apr 05, 2015 11:32 pm

Re: Editing league rules and structures in EHM 1

Post by celislanders1 »

Anyone tried the new Elite League yet ??
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: Editing league rules and structures in EHM 1

Post by archibalduk »

Has anyone been able to get a league running with the regular season champions being promoted to the league above? I've added a single end place for Promotion and 7 end places for Playoffs (top) in the hope that this will (1) result in the regular season champion being promoted and (2) the top 8 teams progressing to the playoffs. However, I'm getting an error saying there are too few teams to draw from when I get to the playoffs stage. It appears as though the error is resolved if I set the Playoffs (top) end places to 8 but this results in the teams placed 2nd-9th competing in the playoffs instead of the teams placed 1st-8th (no doubt because of the Promotion end place taking up 1st place).

I've been trying various "Fate to Draw From" settings but without success. I can't see any other league in the DB which uses a similar structure. Does anybody know of such a league?
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: Editing league rules and structures in EHM 1

Post by Named »

Check Norwegian First Division.
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: Editing league rules and structures in EHM 1

Post by archibalduk »

Thanks. I have checked the Norwegian First Division but it is not similar to what I am looking to achieve. The Norwegian First Division does not have any playoffs. Rather, the top two teams qualify for the playouts with the bottom two GET Ligaen teams.

The problem I need to resolve is that the second stage in the NIHL South 2 needs to draw teams from two sets of end places: The 1st placed team from the Promotion end place and the 2nd-8th placed teams from the Playoffs (Top) end place. To get around this, I am currently trying a "dummy" stage in between the regular season and playoffs so that the Promotion team goes to the dummy stage after the regular season. The playoffs then draws the Playoffs (Top) teams from the regular season stage and also the dummy stage - perhaps this will get around the issue. I'm running a test sim now...

EDIT: I should add that IRL the NIHL South 2 does not use this format, but the NIHL North 2 does. I'm simply trying to get the principle working in the NIHL South for the purposes of getting the NIHL North correct.

EDIT 2: Having a zero game dummy stage didn't seem to work. I think I'll give up for now and stick with promotion for the playoff champion.
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: Editing league rules and structures in EHM 1

Post by Named »

I think it might be possible to do that but I'm not sure get all what u want to do. I will talk with Alessandro but if You could upload Your current db work will be fine.
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: Editing league rules and structures in EHM 1

Post by archibalduk »

Thanks - I'll upload it during the course of the week. :thup:

I am losing the plot with the EIHL. I just can't get the inter conference scheduling to work. I think it is a bug with the game - I'll mention to Riz in the hope it might be fixed for version 1.5. I'm not quite sure how best to compromise with the EIHL for the upcoming TBL Rosters. Currently all the teams do are play against teams in their own conference (8 games against 3 teams = 24 GP each). I'm thinking it might be best to remove the conference setup and just have a single league. ](*,)
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: Editing league rules and structures in EHM 1

Post by Named »

Search our last talk. EIHL could be copied from DHL from what I remember. You accept that :p
marksbros6
TBL Rosters Researcher
Posts: 601
Joined: Sun Nov 24, 2013 7:34 pm

Re: Editing league rules and structures in EHM 1

Post by marksbros6 »

Named wrote:Search our last talk. EIHL could be copied from DHL from what I remember. You accept that :p
The Danish Hockey League Named?

Think the problem is with the number of conferences; 3 x 4 teams, and the intra-conference games that are the problem. Can't think of any leagues with that format myself.
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: Editing league rules and structures in EHM 1

Post by Alessandro »

No, the czech DHL junior league.

Archi, so, after the first stage, we have one team going directly up, then 2-8 having a playoff?
marksbros6
TBL Rosters Researcher
Posts: 601
Joined: Sun Nov 24, 2013 7:34 pm

Re: Editing league rules and structures in EHM 1

Post by marksbros6 »

Alessandro wrote:No, the czech DHL junior league.

Archi, so, after the first stage, we have one team going directly up, then 2-8 having a playoff?
If we're talking EIHL, structure can be found herehttp://mk-lightning.co.uk/new-format-20 ... ue-season/

Conference names http://mk-lightning.co.uk/eihl-confirm- ... nce-names/

If we're talking NIHL (National League, second and third divisions) then we have a Northern League and a Southern league, 2 divisions of each and the champions of League 2 promoted to League 1, replacing the bottom team in League 1. (This would be the champion of the league-stage, not the playoff winner, and there is no 'play out' stage, just the bottom team being relegated).
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: Editing league rules and structures in EHM 1

Post by archibalduk »

Named wrote:Search our last talk. EIHL could be copied from DHL from what I remember. You accept that :p
No that's not right. I fear we are misunderstanding each other. Unless I am missing something there is no other league in the database with the same structure as the EIHL because none of them use the "Additional Inter Conference Rounds In Overall Stage" basic rules flag. This is the source of the issue. It works fine with a two conference structure but the inter-conference scheduling doesn't work when adding a third conference. I don't think we understood each other last time we discussed this before (see below) - I've emailed Riz to see if it is a game bug.
archibalduk wrote:
Named wrote:For me the best way is doing divisional view + schedule template and also remove overall standing stage. QMJHL template is really helpfull how it might look. What u think? :)
The difficulty is that the EIHL needs an overall standings stage. In the EIHL, the conference standings only take into account the 24 games played against teams in the same conference. The overall standings takes into account all 56 games (i.e. the 24 games against teams in the same conference and the 32 games against teams in the other conferences).

For this same reason, I don't think the QMJHL is all that useful. It does not have the difference between the conference standings and overall standings.

I will email Riz about this. Maybe it is something he can explain - or maybe it will need something in the next patch.
archibalduk wrote:
Named wrote:I don't want to convince You but some things are better to do simply then thinking hours cause I think we can't divide 32 games per 4 teams in 3 divisions to receive correct number of games in overall and conference standings. :?
The 32 games relate to those games teams played against those in the other conferences. There are two other conferences of four teams = 8 teams in total. 32 is divisible by 8. The game creates a schedule divisible by 8 but it varies by team - some have 24 games, some have 32 and some have 40.
archibalduk wrote:
Named wrote:Exactly. They play how many times they should with teams you setup on schedule template. Regular season GP = Conference GP. Regular Season standing is decide to who will play in playoff.
Ignoring the playoffs bit for now:

Conference GP = Conference GP
Regular season GP = Conference GP + GP against teams in the other conferences

The standings from last season might help as an example - see this on Wikipedia: https://en.wikipedia.org/wiki/2016%E2%8 ... on#Overall

As you will see, the Regular Season/Overall standings show all 52 games (because last year there were 10 teams). The Conference standings show just the 32 games teams played against the other teams in the same conference.
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: Editing league rules and structures in EHM 1

Post by archibalduk »

Alessandro wrote:No, the czech DHL junior league.

Archi, so, after the first stage, we have one team going directly up, then 2-8 having a playoff?
That's the NIHL North 2. But that's not quite it. It's the 1st place (i.e. regular season champion) gets promoted but they also play in the playoffs (so 1-4 having a playoff). I've emailed Riz to see if this is possible given that it seems to mean two sets of end place zones being drawn from in the playoff stage.
Post Reply