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
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 »

szczepek25 wrote:OK, please! My database with playable Belarusian, French, Scottish, Israeli, Kazakhstan, BeNe Liga, Polish and Qatar leagues ;) http://www33.zippyshare.com/v/Nqr2OdZx/file.html
Some of Your leagues are not set how they look IRL. Also You have missing transfer rules.
sensaa
Junior League
Posts: 33
Joined: Thu Mar 26, 2015 9:35 pm

Re: Editing league rules and structures in EHM 1

Post by sensaa »

http://www85.zippyshare.com/v/RK1r4CUz/file.html

- French Magnus ligue is working, team names have been changed and structure is a 'bit' different than in real life. ( 14 teams, 8 play-off teams and 3 teams directly relegated to D2)
- French D2 is working, not been changed too much and structure's a bit different too (14 Teams, no relegation to D3, 3 first team directly promoted to Ligue Magnus).
- SPHL is working but changed to UCHL (hockey league for the state of utah, mainly college, 9 teams with 8 play-off teams).
- BIG 10 conference changed to NCAA Hockey, working but limited to 9 teams for test purpose, nothing done yet on the league so it's just there for future research.

*changed 1 team name in the ahl and 1 in the echl too but nothing major.

Things to do: Add the French D3, add the French junior 'espoir' league, re doing the affilations etc.., NCAA
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 »

szczepek25 wrote:OK, please! My database with playable Belarusian, French, Scottish, Israeli, Kazakhstan, BeNe Liga, Polish and Qatar leagues ;) http://www33.zippyshare.com/v/Nqr2OdZx/file.html
You had a crash on french div 1 league. I have fixed it and added a couple of improvements (mostly more realistic foreign rules for blr/kaz leagues, added a deadline for kaz league, added "send draw news", and other cosmetic stuff).
Anyone wants it?
szczepek25
Junior League
Posts: 48
Joined: Thu May 07, 2015 3:22 pm
Favourite Team: Poland
Location: Kraków

Re: Editing league rules and structures in EHM 1

Post by szczepek25 »

Named wrote:
szczepek25 wrote:OK, please! My database with playable Belarusian, French, Scottish, Israeli, Kazakhstan, BeNe Liga, Polish and Qatar leagues ;) http://www33.zippyshare.com/v/Nqr2OdZx/file.html
Some of Your leagues are not set how they look IRL. Also You have missing transfer rules.
I just added a new league to play and was not looking for the current rules :)
Alessandro wrote:
szczepek25 wrote:OK, please! My database with playable Belarusian, French, Scottish, Israeli, Kazakhstan, BeNe Liga, Polish and Qatar leagues ;) http://www33.zippyshare.com/v/Nqr2OdZx/file.html
You had a crash on french div 1 league. I have fixed it and added a couple of improvements (mostly more realistic foreign rules for blr/kaz leagues, added a deadline for kaz league, added "send draw news", and other cosmetic stuff).
Anyone wants it?
Thank you for the correction! I added yet other North American leagues but they were not at all corrected by me :) This leagues may be available for fans EHM unless of course most things done correctly :D
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 »

Also, the DEL2 lists two winners... is that correct?
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 »

Does anybody have a working 29-team KHL database they can share? Even better if there is a working VHL and MHL...I know I've seen screen grabs of updates from those leagues. I've tried to do some of it but keep getting a crash. Thanks!
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 »

We have VHL and MHL but VHL must wait for 1.4 update to fix schedule bugs. Also KHL will have additional team after this update.
sensaa
Junior League
Posts: 33
Joined: Thu Mar 26, 2015 9:35 pm

Re: Editing league rules and structures in EHM 1

Post by sensaa »

Is there a rule in the game like in Football Manager where a B team can't be promoted if the A team is in the league?

Like Paris A team is in the Magnus and B team in 3rd Division. B team getting promoted to the 2nd division and by any chance win it, is there a way to avoid that team to be promoted and take the next one instead who is not a farm team?
andda715
Junior League
Posts: 44
Joined: Fri Apr 10, 2015 10:07 pm
Favourite Team: Tingsryd AIF

Re: Editing league rules and structures in EHM 1

Post by andda715 »

marksbros6 wrote:
andda715 wrote:Yes, I think so too. Especially as promotion works when I set it to only chose teams from (e.g.) HE SW.
Sadly the amount of teams make 1.3 crash if run as a single league.
If lucky, Riz might have had time/possibility to fix it for next release. :-)

EDIT: Will have a look at NIHL when I have another opportunity to look at this (next week most likely)
Only NIHL (North) has promotion/relegation between NIHL (N)1 and NIHL N(2) if I recall
Yes, looked at NIHL but it seems it is not using the pattern I need. :-)
HA should, in the scenario I have modeled, draw teams from both AES and AEN which are stages in different leagues/competitions.
NIHL N1 just draws from a single other competition NIHL N2?
Maybe I missed some league/settings somewhere though.
andda715
Junior League
Posts: 44
Joined: Fri Apr 10, 2015 10:07 pm
Favourite Team: Tingsryd AIF

Re: Editing league rules and structures in EHM 1

Post by andda715 »

:roll:
Probably need to do some rethinking or at least change strategy as it seems the game is hardcoded (?) to assume that leagues with conferences/divisions don't have relegation/promotion.

Why I believe this is the case? As the only setting I can find how to assign teams to the various conferences/divisions is via the basic rule sets, i.e. not dynamic but static at database creation time.

Thus it seems that HockeyEttan as it stands is quite difficult to model accurately?
At least I so far haven't found any combination that allows both conferences/divisions and relegation/promotion at the same time. :-(
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 »

andda715 wrote::roll:
Probably need to do some rethinking or at least change strategy as it seems the game is hardcoded (?) to assume that leagues with conferences/divisions don't have relegation/promotion.

Why I believe this is the case? As the only setting I can find how to assign teams to the various conferences/divisions is via the basic rule sets, i.e. not dynamic but static at database creation time.

Thus it seems that HockeyEttan as it stands is quite difficult to model accurately?
At least I so far haven't found any combination that allows both conferences/divisions and relegation/promotion at the same time. :-(
I think it allows but probably You must change Your model to one entry in Rules & Structures. Have You tried setting this league as Conference and Divisional model? I mean 1 league (Swedish First Division), 2 conferences (HENO and HESV), 4 divisions (HEN, HES, HEV, HEO) 2 for each conference. Doesn't it work? I have almost done an model of Czech Second Division where are 3 divisions, one conference and I can mix teams between divisions and next stages. I based on Riz info. So it might also help You if You wish. I remember You mentioned somewhere about some kind of error. Maybe we need Riz to have a look if we still have chance before 1.4 update!
User avatar
ZaZooM
Prospect
Posts: 79
Joined: Fri Sep 03, 2010 5:26 pm
Favourite Team: Lokomotiv Yaroslavl / NY Rangers
Location: Moscow, Russia

Re: Editing league rules and structures in EHM 1

Post by ZaZooM »

BKarchitect wrote:Does anybody have a working 29-team KHL database they can share? Even better if there is a working VHL and MHL...I know I've seen screen grabs of updates from those leagues. I've tried to do some of it but keep getting a crash. Thanks!
KHL (real shedule), VHL (non real shedule)
https://yadi.sk/d/o27pAYLt34SCTx
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 »

ZaZooM wrote:
BKarchitect wrote:Does anybody have a working 29-team KHL database they can share? Even better if there is a working VHL and MHL...I know I've seen screen grabs of updates from those leagues. I've tried to do some of it but keep getting a crash. Thanks!
KHL (real shedule), VHL (non real shedule)
https://yadi.sk/d/o27pAYLt34SCTx
Thanks man. I actually got my KHL to work I had accidentally put 15 teams in the west instead of East in the league structure menu (even though divisions were correct). I do want to try a VHL game later though so much appreciated. Looking forward to MHL - it'll finally start to flesh out the Russian/KHL structure which it is most deserving of that kind of detail.
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 »

ZaZooM wrote:
BKarchitect wrote:Does anybody have a working 29-team KHL database they can share? Even better if there is a working VHL and MHL...I know I've seen screen grabs of updates from those leagues. I've tried to do some of it but keep getting a crash. Thanks!
KHL (real shedule), VHL (non real shedule)
https://yadi.sk/d/o27pAYLt34SCTx
To share, the file "database.db" is enough.
No need for all the rest.
andda715
Junior League
Posts: 44
Joined: Fri Apr 10, 2015 10:07 pm
Favourite Team: Tingsryd AIF

Re: Editing league rules and structures in EHM 1

Post by andda715 »

Named wrote: I think it allows but probably You must change Your model to one entry in Rules & Structures. Have You tried setting this league as Conference and Divisional model? I mean 1 league (Swedish First Division), 2 conferences (HENO and HESV), 4 divisions (HEN, HES, HEV, HEO) 2 for each conference.
Yes, that was my first approach.
This fails as 1.3 doesn't support more than ~40ish teams per league (?).

I have almost done an model of Czech Second Division where are 3 divisions, one conference and I can mix teams between divisions and next stages. I based on Riz info. So it might also help You if You wish.
Yes, that could be helpful. Maybe some settings differ. :-)
Note though that I have no issue or problems with stages *within* a league.
What doesn't work (for me) is:

a) Having two, or more, *leagues* as children to a single parent *league*.
I.e. not stages, divisions or conferences within a league or something like that).

b) Promotion or relegation of teams from or to a league that has conferences and/or divisions set in the basic rules.

For a) the closest I have seen is to use the "Champions" and "linked stages" similar to in Memorial Cup. But this only allows a single team from each league (?).

For b) I have no clue how to solve it as the games complains on first of july when it tries to draw the new teams for each league that it can't fill the divisions correctly when a team has been promoted or relegated that was set as part of that league in the basic rules. :dunno:
I remember You mentioned somewhere about some kind of error. Maybe we need Riz to have a look if we still have chance before 1.4 update!
Yes, that would be really nice if the too many teams thing was fixed but I'm not sure it will solve the root issue with promotion/relegation. :-k
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 »

andda715 wrote: For a) the closest I have seen is to use the "Champions" and "linked stages" similar to in Memorial Cup. But this only allows a single team from each league (?).
yes only one + host
I have asked Riz to change this (need it to code the junior clubs world cup), but he said that it's too complicated to have it in short term stuff so he may consider to add this support for the longer term projects.
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 »

andda715 wrote:
Named wrote: I think it allows but probably You must change Your model to one entry in Rules & Structures. Have You tried setting this league as Conference and Divisional model? I mean 1 league (Swedish First Division), 2 conferences (HENO and HESV), 4 divisions (HEN, HES, HEV, HEO) 2 for each conference.
Yes, that was my first approach.
This fails as 1.3 doesn't support more than ~40ish teams per league (?).
What kind of error it is?
andda715
Junior League
Posts: 44
Joined: Fri Apr 10, 2015 10:07 pm
Favourite Team: Tingsryd AIF

Re: Editing league rules and structures in EHM 1

Post by andda715 »

See http://www.ehmtheblueline.com/forums/vi ... 75#p220802

There is also a later post with a save game that shows the issue. Uploaded to si.
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 »

ZaZooM wrote:
BKarchitect wrote:Does anybody have a working 29-team KHL database they can share? Even better if there is a working VHL and MHL...I know I've seen screen grabs of updates from those leagues. I've tried to do some of it but keep getting a crash. Thanks!
KHL (real shedule), VHL (non real shedule)
https://yadi.sk/d/o27pAYLt34SCTx
Generally a good job, although trade deadline for VHL is (I think) 31 january, not 25 dec like KHL
User avatar
riz_si
SI Games
Posts: 412
Joined: Mon Mar 14, 2005 10:58 am
Location: Helsinki, Finland (the Eastside, duh)

Re: Editing league rules and structures in EHM 1

Post by riz_si »

andda715 wrote: b) Promotion or relegation of teams from or to a league that has conferences and/or divisions set in the basic rules.

For b) I have no clue how to solve it as the games complains on first of july when it tries to draw the new teams for each league that it can't fill the divisions correctly when a team has been promoted or relegated that was set as part of that league in the basic rules. :dunno:
This is why the HockeyEttan was not included in the official rulesets as it is a bit tricky to get the divisional alignments re-done between seasons after teams get promoted/relegated in such setups. There is a custom flag in the rules somewhere to sort the teams in east/west alignment but that won't apply to a 4 division setup nicely as it was added for some older Swedish structure with east/west alignment. So technically it is doable but will most likely require some coding changes to either add needed custom flags or make the game smart enough to re-sort the promoted/relegated teams so all divisions have the correct number of teams.

This is not something that can make it into the 1.4 update as changes for that are locked now, but the main area I'm working on for 1.5 will be the built-in editor and in support of that I will look at better support for custom leagues and scenarios like this.
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 »

riz_si wrote:
andda715 wrote: b) Promotion or relegation of teams from or to a league that has conferences and/or divisions set in the basic rules.

For b) I have no clue how to solve it as the games complains on first of july when it tries to draw the new teams for each league that it can't fill the divisions correctly when a team has been promoted or relegated that was set as part of that league in the basic rules. :dunno:
This is why the HockeyEttan was not included in the official rulesets as it is a bit tricky to get the divisional alignments re-done between seasons after teams get promoted/relegated in such setups. There is a custom flag in the rules somewhere to sort the teams in east/west alignment but that won't apply to a 4 division setup nicely as it was added for some older Swedish structure with east/west alignment. So technically it is doable but will most likely require some coding changes to either add needed custom flags or make the game smart enough to re-sort the promoted/relegated teams so all divisions have the correct number of teams.

This is not something that can make it into the 1.4 update as changes for that are locked now
#getitout :notworthy:
andda715
Junior League
Posts: 44
Joined: Fri Apr 10, 2015 10:07 pm
Favourite Team: Tingsryd AIF

Re: Editing league rules and structures in EHM 1

Post by andda715 »

Thanks for the clarification Riz. :-)

This East West thing, will that work for a two conference or division league?
If so I might try to get that to work and leave two of the divisions for later.

Eagerly looking forward to 1.4 :notworthy: :-D
User avatar
SetzingersCat
Junior League
Posts: 31
Joined: Thu Jan 12, 2017 11:48 pm
Favourite Team: Nottm Panthers/Dresdner Eislöwen
Location: Stafford, UK

Re: Editing league rules and structures in EHM 1

Post by SetzingersCat »

Alessandro wrote:
szczepek25 wrote:OK, please! My database with playable Belarusian, French, Scottish, Israeli, Kazakhstan, BeNe Liga, Polish and Qatar leagues ;) http://www33.zippyshare.com/v/Nqr2OdZx/file.html
You had a crash on french div 1 league. I have fixed it and added a couple of improvements (mostly more realistic foreign rules for blr/kaz leagues, added a deadline for kaz league, added "send draw news", and other cosmetic stuff).
Anyone wants it?
I'd be very interested in this. Are you able to post a link please?
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 »

SetzingersCat wrote:
Alessandro wrote:
szczepek25 wrote:OK, please! My database with playable Belarusian, French, Scottish, Israeli, Kazakhstan, BeNe Liga, Polish and Qatar leagues ;) http://www33.zippyshare.com/v/Nqr2OdZx/file.html
You had a crash on french div 1 league. I have fixed it and added a couple of improvements (mostly more realistic foreign rules for blr/kaz leagues, added a deadline for kaz league, added "send draw news", and other cosmetic stuff).
Anyone wants it?
I'd be very interested in this. Are you able to post a link please?
http://www44.zippyshare.com/v/helVjy1T/file.html
User avatar
SetzingersCat
Junior League
Posts: 31
Joined: Thu Jan 12, 2017 11:48 pm
Favourite Team: Nottm Panthers/Dresdner Eislöwen
Location: Stafford, UK

Re: Editing league rules and structures in EHM 1

Post by SetzingersCat »

Awesome, thank you :-D
Post Reply