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 »

andda715 wrote: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
Moving teams correctly between East, West, North, South is not much important if You can activate Swedish First Division. :) Would You try to run other model of this league? I thought You have previously problem with number of teams? But it was just news bug?
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 »

Hi,

Using the east west thing I now can use from database team draw. That is, promotion relegation should probably work.
Need to verify that.

Using the above I can probably get a working hesw. Doing all of he will still most likely trigger bug.
The news item thing is followed by a crash. Just fyi named.
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 »

After many many tests and sims I have modeled IRL Czech Second Division level as playable but after creating new season seems we have problem. There are divisional model and seems when we use schedule templates after season we have promoted/relegated teams they didnt replaced in schedule template and leagues :/. andda715: I see You also used schedule template for Swedish First Division. Have You done and progress? I'm curious any of team were replaced in schedule template on new season starts.
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 »

Hi Named,

Yes, when using team picking rules from division and or from division I have not been able to get promotion or relegation to work. (still can't reply to pm)

See Riz' explanation above.
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 »

Using QMJHL template as it is very similar I created another playable junior league in game. This time Czech top junior level DHL League. If someone is interested i put some screens.

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

Cool! I would like to do similar with Swedish SuperElit (J20), care to share the db for comparison or inspiration? =D>
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 »

Sure. On the morning I will upload :)

Edit:
http://www59.zippyshare.com/v/J0W6QCLP/file.html
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, tried similar settings but seems as teams don't sign any players. Maybe this is what Riz meant by it not being implemented? Do teams in your league sign free agents on their own?
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:Thanks, tried similar settings but seems as teams don't sign any players. Maybe this is what Riz meant by it not being implemented? Do teams in your league sign free agents on their own?
(European) Junior teams don't sign any player at all.
Need to wait for 1.4
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 »

Anyone managed to get a bronze medal game going with two conferences?
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 »

Good to know, thanks. :-)
EArk
Junior League
Posts: 46
Joined: Mon Nov 10, 2014 11:29 am

Re: Editing league rules and structures in EHM 1

Post by EArk »

riz_si wrote:The additional WJC divisions won't work in 1.3 because the code is not setup to expect additional custom international comps in the World Championships system. And by that I mean the promotion/relegation won't work as it doesn't know which nation Jnr finish positions from last year it needs to look at for these additional levels. I'll try and add some code for 1.4 to support these.

Also, the additional WJC division levels won't be able to do promotion/relegation if you try and set the U20 national teams to the right level using by setting their divisions manually. You'll need to use the last Jnr position in the nation record to define what level they should play in the World Champs system. With that field you can already change who plays in the default playable WJC levels but for any additional ones you'll need the 1.4 update as it needs some code changes to be able to pick those levels up from the nation data.
I saw that 1.4 update is now realsed. So have you been able to fix the problem? :)
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 »

EArk wrote:
riz_si wrote:The additional WJC divisions won't work in 1.3 because the code is not setup to expect additional custom international comps in the World Championships system. And by that I mean the promotion/relegation won't work as it doesn't know which nation Jnr finish positions from last year it needs to look at for these additional levels. I'll try and add some code for 1.4 to support these.

Also, the additional WJC division levels won't be able to do promotion/relegation if you try and set the U20 national teams to the right level using by setting their divisions manually. You'll need to use the last Jnr position in the nation record to define what level they should play in the World Champs system. With that field you can already change who plays in the default playable WJC levels but for any additional ones you'll need the 1.4 update as it needs some code changes to be able to pick those levels up from the nation data.
I saw that 1.4 update is now realsed. So have you been able to fix the problem? :)
I think its fixed. Try it:
Other changes:
- Added support for custom databases that add extra playable World Junior Championship levels to make promotion/relegation work correctly
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 »

Archi, when a new version with new flags?
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 »

What's the best since 1.4 is out with our modified database? Continue on it or start freshly a new one with all the new rules added by the 1.4 and import one by one all the leagues we have made playable to it?
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:Archi, when a new version with new flags?
I'll be releasing a new version once I have finished adding everything I want and I am happy that I have tested it sufficiently.

If you need the new flags in the meantime, you can open the relevant text file in the "common" sub-folder in the EHM Editor folder and add the flags yourself. The flag values are listed in the patch changelist. There's also a "_readme.txt" file in the "common" sub-folder which explains how the files work (but it should be fairly self-explanatory if you open up the relevant text file).
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 »

sensaa wrote:What's the best since 1.4 is out with our modified database? Continue on it or start freshly a new one with all the new rules added by the 1.4 and import one by one all the leagues we have made playable to it?
I think the best will be import next release db (will be soon) and after archi release import/export option in editor import created leagues from Your current db.
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 »

I have released a new version of the Editor here (version 0.1.5): http://www.ehmtheblueline.com/editor/

The full changelist can be found in the above link. However, I thought I'd briefly mention the Rules & Structures import/export function. You'll find the Import and Export buttons at the bottom of the Rules & Structures editing screen. To export, click on Export Data -> Export as *.ehm file. The will create an *.ehm file which you can then import into another database via the Import Data button.

Please keep in mind that the function is very basic right now and needs testing (I have successfully tested using my own structures and also BKarchitect's USHL structure). All it does is import the relevant Rules & Structure data (including Finance Rules, Ruling Body, Schedule Templates and Transfer Rules). It does not update any teams' competition data or add any missing teams or competitions. For example, if the Rules & Structure relates to a newly created competition or teams, you'll need to manually create those items and set them up manually. I will make the function more intelligent with time but I want to start basic and build from that. I have tried to make the file format as comprehensive as possible so that *.ehm files created now will hopefully be compatible with future versions of the function (e.g. the *.ehm file already exports all linked club, competition and arena data).
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 »

archibalduk wrote:I have released a new version of the Editor here (version 0.1.5): http://www.ehmtheblueline.com/editor/
:notworthy:
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 »

Alessandro wrote:
archibalduk wrote:I have released a new version of the Editor here (version 0.1.5): http://www.ehmtheblueline.com/editor/
:notworthy:
I agree Alessandro...thanks for all your efforts Arch :thup:
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 »

Haven't made any progress on hockeyettan or superelit as I see a crash after simming a few days with the database.
Bug reported and save uploaded at sigames.
EArk
Junior League
Posts: 46
Joined: Mon Nov 10, 2014 11:29 am

Re: Editing league rules and structures in EHM 1

Post by EArk »

EArk wrote:
riz_si wrote:The additional WJC divisions won't work in 1.3 because the code is not setup to expect additional custom international comps in the World Championships system. And by that I mean the promotion/relegation won't work as it doesn't know which nation Jnr finish positions from last year it needs to look at for these additional levels. I'll try and add some code for 1.4 to support these.

Also, the additional WJC division levels won't be able to do promotion/relegation if you try and set the U20 national teams to the right level using by setting their divisions manually. You'll need to use the last Jnr position in the nation record to define what level they should play in the World Champs system. With that field you can already change who plays in the default playable WJC levels but for any additional ones you'll need the 1.4 update as it needs some code changes to be able to pick those levels up from the nation data.
I saw that 1.4 update is now realsed. So have you been able to fix the problem? :)
I have tried to find were I can set this last jnr postion, but have,nt find a way to do it correctly. Cause when you look att every national jnr team, all of them has 0 as their last position.
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 »

Hi,

Had a strange crash on my old db, so scrapped that one and re-imported a fresh 9.0b version using ehm 1.4.
Seems to work fine.

I have now verified that the original bug with too many teams is indeed fixed by Riz. :notworthy:

In the db below I have preliminary versions of HockeyEttan (four divisions) and J20 SuperElit (two divisions) but it looks like stage1 never receives any playoff teams. Really weird. Something you guys have seen as well?

DB:
https://www.sendspace.com/file/4ew193

Save-game illustrating the issue (see e.g. SuperElit standings or HockeyEttan):
https://www.sendspace.com/file/e0vkfp
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 »

Nevermind, forgot to set max league games in competition rules... :doh:
GucekA
Junior League
Posts: 9
Joined: Thu Dec 03, 2015 3:48 pm
Favourite Team: LHT

add new playable league in EHM Roster

Post by GucekA »

Hi guys in next update EHM roster please add playable Polish elite league this is important for me
Post Reply