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 »

Tried using Liiga's file with 60 dates (of course updating the number of dates in the editor), I keep on getting the 6-game September 23rd.
I don't get why the league starts on September 23rd if the first date on the file is on early September, it makes no sense. Exhibitions are scheduled in late august, then three weeks of pause and the league starts with six games on the same day on September 23rd.
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 »

Importing schedules from other formats seems not working. xml file is 0 bytes after export :? I can only import to csv but due polish letter on some dates i get like on screen:

Image

Excel after I export schedule read letter ź as ? and editor makes wrong date as 1 January but should be for example 1 October. Seems that I cant export as UTF8 :?
Last edited by Named on Tue Dec 13, 2016 11:47 pm, edited 1 time in total.
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 »

Awesome editor, thanks soo much! :-) =P~ :notworthy:

Since it is always more fun to do stupid things than follow instructions ;-),
I immediately started out to try to create the Swedish First Division structure.
I can't get it past "initializing game data" though.

Here is my attempt so far, note that I'm not sure at all how the conference/division stuff is supposed to be.
And most of the other settings are educated (right...) guesses at best, especially the relegation stuff is most likely incorrect.
Note that I have tried to go directly from regular season to relegation or promotion (i.e. relegation series of HockeyAllsvenskan).

Code: Select all

Competition Basic Rules & Structure
Item: Swedish First Division
ID: 59

========================================

Ruling body: Sweden
Transfer rules: Sweden
Upper comp: Swedish HockeyAllsvenskan
Lower comp: Swedish Second Division
Comp type: League
Comp scope: National

----------------------------------------

Host arena: [None]
Host club: [None]

----------------------------------------

Initial start year offset: 0
Number of teams: 48
Number of initial stages: 4
Number of stages (total): 8
Stage for history record: -1
Stage stats scope: Regular season
Stage reputation: 8
Maximum dressed: 22
Squad numbers: false
Prize money (total): 0

----------------------------------------

Custom flags: 8
Match rules: 4198
Extra match rules: 0

========================================

Linked competitions
Item count: 0

----------------------------------------


========================================

League Structure

----------------------------------------

League Rules
Has league rules: true
League rule settings
Priority: 2
Maximum league games: 22
Draw date: 01 jul 2015
Middle day: -1
Minimum seating capacity: 0
Maximum seating capacity: 0
Prize money type: 1
Prize money (total): 1050000
TV money: 55000

----------------------------------------

Points
Win: 3
Draw: 1
OT win: 2
OT loss: 1
SH win: 2
SH loss: 1
Win pct type: 1

----------------------------------------

Sort rules
1: Goal Difference
2: Goals For
3: Games Won
4: No Rule

========================================

Conferences
Item count: 4

----------------------------------------

Conference: 1 of 4
Detailed competition: Swedish First Division South
Conference name: [None]
Division count: 1

Division: 1 of 1
Detailed competition: Swedish First Division South
Division name: [None]
Club count: 0

----------------------------------------

Conference: 2 of 4
Detailed competition: Swedish First Division West
Conference name: [None]
Division count: 1

Division: 1 of 1
Detailed competition: Swedish First Division West
Division name: [None]
Club count: 0

----------------------------------------

Conference: 3 of 4
Detailed competition: Swedish First Division East
Conference name: [None]
Division count: 1

Division: 1 of 1
Detailed competition: Swedish First Division East
Division name: [None]
Club count: 0

----------------------------------------

Conference: 4 of 4
Detailed competition: Swedish First Division North
Conference name: [None]
Division count: 1

Division: 1 of 1
Detailed competition: Swedish First Division North
Division name: [None]
Club count: 0

----------------------------------------


========================================

Stage Structures
Item count: 8

----------------------------------------

Structure: 1 of 8
Competition: Swedish First Division South
Stage name: [None]
Generic stage name: No Stage Name
Generic group name: No Group Name
Generic stage stats: No Stage Name
Stage type: League

Maximum league games: 0
Number of teams: 12
Number of rounds: 2
Number of dates: 22
Schedule dates size: 22
Alt. schedule dates size: 0
Has alternative dates: false

Team picking rules: 16
Fate rules: 40

Stage to draw teams from: -7
Fate to draw teams from: -1
Additional stage to draw teams from: -7
Next upper stage to trigger: 0
Next lower stage to trigger: 3
Overall standings stage: false
Process fate action: true
Send group draw news: false
Bring over results from previous stage: false

Promoted EP: 1
Playoff(top) EP: 0
Playoff(bottom) EP: 2
Relegated EP: 0

----------------------------------------

Structure: 2 of 8
Competition: Swedish First Division West
Stage name: [None]
Generic stage name: No Stage Name
Generic group name: No Group Name
Generic stage stats: No Stage Name
Stage type: League

Maximum league games: 22
Number of teams: 12
Number of rounds: 2
Number of dates: 22
Schedule dates size: 22
Alt. schedule dates size: 0
Has alternative dates: false

Team picking rules: 16
Fate rules: 40

Stage to draw teams from: -7
Fate to draw teams from: -1
Additional stage to draw teams from: -7
Next upper stage to trigger: 0
Next lower stage to trigger: 4
Overall standings stage: false
Process fate action: true
Send group draw news: false
Bring over results from previous stage: false

Promoted EP: 1
Playoff(top) EP: 0
Playoff(bottom) EP: 2
Relegated EP: 0

----------------------------------------

Structure: 3 of 8
Competition: Swedish First Division East
Stage name: [None]
Generic stage name: No Stage Name
Generic group name: No Group Name
Generic stage stats: No Stage Name
Stage type: League

Maximum league games: 22
Number of teams: 12
Number of rounds: 2
Number of dates: 22
Schedule dates size: 22
Alt. schedule dates size: 0
Has alternative dates: false

Team picking rules: 16
Fate rules: 40

Stage to draw teams from: -7
Fate to draw teams from: -1
Additional stage to draw teams from: -7
Next upper stage to trigger: 0
Next lower stage to trigger: 5
Overall standings stage: false
Process fate action: true
Send group draw news: false
Bring over results from previous stage: false

Promoted EP: 1
Playoff(top) EP: 0
Playoff(bottom) EP: 2
Relegated EP: 0

----------------------------------------

Structure: 4 of 8
Competition: Swedish First Division North
Stage name: [None]
Generic stage name: No Stage Name
Generic group name: No Group Name
Generic stage stats: No Stage Name
Stage type: League

Maximum league games: 22
Number of teams: 12
Number of rounds: 2
Number of dates: 22
Schedule dates size: 22
Alt. schedule dates size: 0
Has alternative dates: false

Team picking rules: 16
Fate rules: 40

Stage to draw teams from: -7
Fate to draw teams from: -1
Additional stage to draw teams from: -7
Next upper stage to trigger: 0
Next lower stage to trigger: 6
Overall standings stage: false
Process fate action: true
Send group draw news: false
Bring over results from previous stage: false

Promoted EP: 1
Playoff(top) EP: 0
Playoff(bottom) EP: 2
Relegated EP: 0

----------------------------------------

Structure: 5 of 8
Competition: Swedish First Division South
Stage name: [None]
Generic stage name: Relegation League
Generic group name: No Group Name
Generic stage stats: Playouts
Stage type: League

Maximum league games: 0
Number of teams: 6
Number of rounds: 2
Number of dates: 10
Schedule dates size: 10
Alt. schedule dates size: 0
Has alternative dates: false

Team picking rules: 0
Fate rules: 0

Stage to draw teams from: -1
Fate to draw teams from: -1
Additional stage to draw teams from: -7
Next upper stage to trigger: -7
Next lower stage to trigger: -7
Overall standings stage: false
Process fate action: true
Send group draw news: false
Bring over results from previous stage: false

Promoted EP: 2
Playoff(top) EP: 0
Playoff(bottom) EP: 0
Relegated EP: 4

----------------------------------------

Structure: 6 of 8
Competition: Swedish First Division West
Stage name: [None]
Generic stage name: Relegation League
Generic group name: No Group Name
Generic stage stats: Playouts
Stage type: League

Maximum league games: 0
Number of teams: 6
Number of rounds: 2
Number of dates: 10
Schedule dates size: 10
Alt. schedule dates size: 0
Has alternative dates: false

Team picking rules: 0
Fate rules: 0

Stage to draw teams from: -1
Fate to draw teams from: -1
Additional stage to draw teams from: -7
Next upper stage to trigger: -7
Next lower stage to trigger: -7
Overall standings stage: false
Process fate action: true
Send group draw news: false
Bring over results from previous stage: false

Promoted EP: 2
Playoff(top) EP: 0
Playoff(bottom) EP: 0
Relegated EP: 4

----------------------------------------

Structure: 7 of 8
Competition: Swedish First Division East
Stage name: [None]
Generic stage name: Relegation League
Generic group name: No Group Name
Generic stage stats: Playouts
Stage type: League

Maximum league games: 0
Number of teams: 6
Number of rounds: 2
Number of dates: 10
Schedule dates size: 10
Alt. schedule dates size: 0
Has alternative dates: false

Team picking rules: 0
Fate rules: 0

Stage to draw teams from: -1
Fate to draw teams from: -1
Additional stage to draw teams from: -7
Next upper stage to trigger: -7
Next lower stage to trigger: -7
Overall standings stage: false
Process fate action: true
Send group draw news: false
Bring over results from previous stage: false

Promoted EP: 2
Playoff(top) EP: 0
Playoff(bottom) EP: 0
Relegated EP: 4

----------------------------------------

Structure: 8 of 8
Competition: Swedish First Division North
Stage name: [None]
Generic stage name: Relegation League
Generic group name: No Group Name
Generic stage stats: Playouts
Stage type: League

Maximum league games: 0
Number of teams: 6
Number of rounds: 2
Number of dates: 10
Schedule dates size: 10
Alt. schedule dates size: 0
Has alternative dates: false

Team picking rules: 0
Fate rules: 0

Stage to draw teams from: -1
Fate to draw teams from: -1
Additional stage to draw teams from: -7
Next upper stage to trigger: -7
Next lower stage to trigger: -7
Overall standings stage: false
Process fate action: true
Send group draw news: false
Bring over results from previous stage: false

Promoted EP: 2
Playoff(top) EP: 0
Playoff(bottom) EP: 0
Relegated EP: 4

----------------------------------------


========================================
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 my first touch i get something like that:

Image

Still crashes in France on league dates screen and schedule in team profile. It will be long and hard work to set things work. :)
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 I succesfully activated Polish Hockey League for test. I discovered a bug which may cause league not initializing. I used the Copy and Paste setting to copy from EBEL settings for polish league as they were the same (for 2015/2016) and try run it. Game loaded and run league if I choose Early Start Date. When I try to choose Polish League with date it crash before initializing game. I also don't have error on team schedule, league dates as it was on French League. I'll try simming to check that schedule works good on season 2. Some screens below.

EDIT: Now I've seen game crashes on 15 July 2015 due simming but we have some data to collect. :) What is interesting EBEL also crashes on initializing game and I didn't changed anything here just copied. :)

Image
Image
Image
Image
User avatar
Edgars
Top Prospect
Posts: 134
Joined: Fri Mar 08, 2013 6:37 am
Location: Rīga, Latvija

Re: Editing league rules and structures in EHM 1

Post by Edgars »

Alessandro wrote:
Edgars wrote:
Named wrote:Have You get multitude games as Alessandro?
I have now noticed that at the end of September teams have 4 or 5 games (depending on team) in 7 days on 2nd season, but other than that everything looks fine and maybe even this anomaly can be fixed by increasing number of fixture dates, because after last editing I was like 3 dates short of optimal number if I remember correctly - I will test it tomorrow.
It seems the same bug, although in my case it forces the start on September 23rd.
How do you increase the number of fixture dates? Don't you increase the games too?
No - games count are regulated by "maximum league games" in comp rules while fixture dates (dates where those games will be played) are regulated by "Number of dates" in stages and schedule dates.
User avatar
Edgars
Top Prospect
Posts: 134
Joined: Fri Mar 08, 2013 6:37 am
Location: Rīga, Latvija

Re: Editing league rules and structures in EHM 1

Post by Edgars »

[quote="archibalduk"]Would you mind sharing the Text Report detailing all of your settings? If you go to the Latvian League in the Editor and click on Export you'll see an "Export to Text Report" option (see screenshot below). Then if you either post the content of the text file in this thread (you can use

Code: Select all

[ /code] tags) or upload the text file somewhere then that'd be really useful.[/quote]
Here it is:
[code]Competition Basic Rules & Structure
Item: Latvian Championship
ID: 59

========================================

Ruling body: Denmark
Transfer rules: Latvia
Upper comp: [None]
Lower comp: [None]
Comp type: League
Comp scope: National

----------------------------------------

Host arena: [None]
Host club: [None]

----------------------------------------

Initial start year offset: 0
Number of teams: 7
Number of initial stages: 1
Number of stages (total): 2
Stage for history record: -1
Stage stats scope: [Unrecognised Value]
Stage reputation: 7
Maximum dressed: 22
Squad numbers: false
Prize money (total): 0

----------------------------------------

Custom flags: 0
Match rules: 20578
Extra match rules: 0

========================================

Linked competitions
Item count: 0

----------------------------------------


========================================

League Structure

----------------------------------------

League Rules
Has league rules: true
League rule settings
Priority: 2
Maximum league games: 30
Draw date: 01 J?l. 2015
Middle day: -1
Minimum seating capacity: 0
Maximum seating capacity: 0
Prize money type: -1
Prize money (total): 0
TV money: 0

----------------------------------------

Points
Win: 3
Draw: 0
OT win: 2
OT loss: 1
SH win: 2
SH loss: 1
Win pct type: 1

----------------------------------------

Sort rules
1: Own Match
2: Goal Difference
3: Goals For
4: No Rule

========================================

Conferences
Item count: 1

----------------------------------------

Conference: 1 of 1
Detailed competition: [None]
Conference name: [None]
Division count: 1

Division: 1 of 1
Detailed competition: [None]
Division name: [None]
Club count: 0

----------------------------------------


========================================

Stage Structures
Item count: 2

----------------------------------------

Structure: 1 of 2
Competition: [None]
Stage name: [None]
Generic stage name: Regular Season
Generic group name: No Group Name
Generic stage stats: No Stage Name
Stage type: League

Maximum league games: 0
Number of teams: 7
Number of rounds: 5
Number of dates: 32
Schedule dates size: 32
Alt. schedule dates size: 0
Has alternative dates: false

Team picking rules: 16
Fate rules: 1

Stage to draw teams from: -7
Fate to draw teams from: -7
Additional stage to draw teams from: -7
Next upper stage to trigger: -7
Next lower stage to trigger: -7
Overall standings stage: false
Process fate action: false
Send group draw news: false
Bring over results from previous stage: false

Promoted EP: 2
Playoff(top) EP: 4
Playoff(bottom) EP: 0
Relegated EP: 0

----------------------------------------

Structure: 2 of 2
Competition: [None]
Stage name: [None]
Generic stage name: Playoffs
Generic group name: No Group Name
Generic stage stats: Playoffs
Stage type: Cup

Maximum league games: 0
Number of teams: 6
Number of rounds: 3
Number of dates: 3
Schedule dates size: 3
Alt. schedule dates size: 0
Has alternative dates: false

Team picking rules: 1792
Fate rules: 1

Stage to draw teams from: -1
Fate to draw teams from: 1
Additional stage to draw teams from: -7
Next upper stage to trigger: -7
Next lower stage to trigger: -7
Overall standings stage: false
Process fate action: false
Send group draw news: false
Bring over results from previous stage: false

Promoted EP: 0
Playoff(top) EP: 0
Playoff(bottom) EP: 0
Relegated EP: 0

----------------------------------------


========================================

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 »

Edgars wrote: No - games count are regulated by "maximum league games" in comp rules while fixture dates (dates where those games will be played) are regulated by "Number of dates" in stages and schedule dates.
Yeah, I got it. Unfortunately, I can't move backwards the starting date... it stays on September 23rd. I tried increasing the count to 60 as I wrote, using the Liiga template. It starts in early September, theoretically, but can't get it working.
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 »

andda715 wrote:Since it is always more fun to do stupid things than follow instructions ;-),
I immediately started out to try to create the Swedish First Division structure.
I can't get it past "initializing game data" though.
Thanks to the trick of using an early start date EHM provided a few helpful error messages.

Apparently when using conferences or divisions with concurrent initial stages, teams need to be explicitly assigned to each division. I.e. can't use fate based assignment as in single division leagues.

It would be very nice with an assign matching teams button or similar in the structure screen.
I'll continue with manual assignments this evening though.
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: It would be very nice with an assign matching teams button or similar in the structure screen.
Yes, it would be good to have a button like "create random divisions" just to be able to edit things fast.
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 »

We need Riz to write a "schedule for dummies" guide. Whatever I change in those darn schedules, there's no way to get games played the way they should. I set now 66 dates, the regular season ends in January, no matter the last schedule day I set is for March.
User avatar
Edgars
Top Prospect
Posts: 134
Joined: Fri Mar 08, 2013 6:37 am
Location: Rīga, Latvija

Re: Editing league rules and structures in EHM 1

Post by Edgars »

Alessandro wrote:
Edgars wrote: No - games count are regulated by "maximum league games" in comp rules while fixture dates (dates where those games will be played) are regulated by "Number of dates" in stages and schedule dates.
Yeah, I got it. Unfortunately, I can't move backwards the starting date... it stays on September 23rd. I tried increasing the count to 60 as I wrote, using the Liiga template. It starts in early September, theoretically, but can't get it working.
Like I wrote I have 5 games in 9 days in 2nd season too in late September while from 4th till 22nd September there is no games at all, tho my season starts in early September in 2nd season too, but there is one round played at the first day of the season (3rd September) while 2nd round is played only on 23rd September... In other months it's fine (one or two games per week).

What date you have in "League dates" next to "Start of Regular Season" (it's in leagues "Info" tab in the game)?
Alessandro wrote:We need Riz to write a "schedule for dummies" guide. Whatever I change in those darn schedules, there's no way to get games played the way they should. I set now 66 dates, the regular season ends in January, no matter the last schedule day I set is for March.
I had the same problem - it means there are to many dates - all games are played before March (in your case till January)...

From my experiments - the amount of dates = max games played * teams in the league / 2 / maximum possible games played in one round

In Latvian league case - 30*7/2/3=35 so 35 dates
In archibalduks French league example - 26*14/2/7=26

To simplify - if the number of teams in the league is a pair number (8, 10, etc), then maximum number of games = number of dates (like with French league), but if its not a pair number (like in Latvian league), then that formula needs to be used!
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 »

Edgars wrote:
Alessandro wrote:
Edgars wrote: No - games count are regulated by "maximum league games" in comp rules while fixture dates (dates where those games will be played) are regulated by "Number of dates" in stages and schedule dates.
Yeah, I got it. Unfortunately, I can't move backwards the starting date... it stays on September 23rd. I tried increasing the count to 60 as I wrote, using the Liiga template. It starts in early September, theoretically, but can't get it working.
Like I wrote I have 5 games in 9 days in 2nd season too in late September while from 4th till 22nd September there is no games at all, tho my season starts in early September in 2nd season too, but there is one round played at the first day of the season (3rd September) while 2nd round is played only on 23rd September... In other months it's fine (one or two games per week).

What date you have in "League dates" next to "Start of Regular Season" (it's in leagues "Info" tab in the game)?
Alessandro wrote:We need Riz to write a "schedule for dummies" guide. Whatever I change in those darn schedules, there's no way to get games played the way they should. I set now 66 dates, the regular season ends in January, no matter the last schedule day I set is for March.
I had the same problem - it means there are to many dates - all games are played before March (in your case till January)...

From my experiments - the amount of dates = max games played * teams in the league / 2 / maximum possible games played in one round

In Latvian league case - 30*7/2/3=35 so 35 dates
In archibalduks French league example - 26*14/2/7=26

To simplify - if the number of teams in the league is a pair number (8, 10, etc), then maximum number of games = number of dates (like with French league), but if its not a pair number (like in Latvian league), then that formula needs to be used!
The problem is that if I use the same number of dates as games, I get the September 23rd games fest.
Though it's great to see that on September 24th players are at 100% condition in spite of 6 games played.
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 »

Amazing work Archi and everybody who is testing...so much promise here.

Any thoughts on NCAA/college leagues? I briefly looked at transfer rules, assuming we would have to set up a new set and there is a lot to digest. Can I assume because the NCAA leagues - although not playable - are already in the game and "act" properly even though you can't play them that there should be some combination of transfer rules in the transfer rules presets that will help produce the desired results? IE, no player movement between teams (or limited...I know transfers exist IRL but I don't think they ever happen in non-playable EHM college leagues), 4 years max contract, recruiting of players from USHL/HS/BCHL/Junior leagues, etc?
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 »

Another data after tests and screens:

- when we add new competition for example Belarus Cup and want to link it in rules screen it is not refreshing. (i need to save database, restart editor)
- copying function seems working on Cups. I copied British Challenge Cup and made Belarus Cup and it succesfully simmed but still getting crashes when click on League Dates screen.
- stats from Cups counter to Regular Season history but shown as new item in player history

Image
Image
Image
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 - will you give us the possibility to add new schedule templates for leagues?
Curt-97
Junior League
Posts: 20
Joined: Sun Jun 07, 2015 3:31 pm
Favourite Team: Dallas Stars / Coventry Blaze

Re: Editing league rules and structures in EHM 1

Post by Curt-97 »

Has anybody tried creating the Australian League?

I've been trying for ages to make a schedule that runs from April to August and it just does not work. I change all of the dates and when you load the database you are unable to pick any team from any league it's all blank. Does anybody have any ideas?
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 »

Curt-97 wrote:Has anybody tried creating the Australian League?

I've been trying for ages to make a schedule that runs from April to August and it just does not work. I change all of the dates and when you load the database you are unable to pick any team from any league it's all blank. Does anybody have any ideas?
I'd suggest creating it over a more 'normal' time-period to at least get it selectable in-game and get the structure right, then play with the schedule dates and see if you can get it to start at the 'right' time of year.

It might be a problem with not having a 'summer' start-date maybe?
Curt-97
Junior League
Posts: 20
Joined: Sun Jun 07, 2015 3:31 pm
Favourite Team: Dallas Stars / Coventry Blaze

Re: Editing league rules and structures in EHM 1

Post by Curt-97 »

I'd suggest creating it over a more 'normal' time-period to at least get it selectable in-game and get the structure right, then play with the schedule dates and see if you can get it to start at the 'right' time of year.

It might be a problem with not having a 'summer' start-date maybe?
Yeah I've got it working without changing that dates. I took the NIHL North 2 league as that has the same amount of games. It works if I play it through the conventional dates . However trying to play it during the summer like it does realistically doesn't seem to work. I'll keep tinkering and see if I can find out where the fault lies.
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: Editing league rules and structures in EHM 1

Post by archibalduk »

I have good news! Here are the solutions to the two common issues we were encountering:

1. Schedule Screen / League Dates Crash
This is because the game expects there to be a Transfer Rules entry either for the league or for the nation. So the French Magnus League, being French, cannot be linked to the British Transfer Rules. Instead, there must either be a Magnus League Transfer Rules entry or a French entry. The game will first look for a matching league entry in the Transfer Rules and, if it cannot find one, will expect an entry for that nation.

It is also preferable for a Ruling Body entry of the same nation as the league to be added too.

So the general rule is to add a Ruling Body and Transfer Rules for the relevant nation. The Editor allows you to copy and paste an existing item from each of those screens and so it is an easy one to set up.

2. cup::process_fixture error (this relates to the WCJ-U20 tournament)
This is my fault. The Editor sorts the Schedule Dates by date order in order to keep it easy to edit and understand. However, the game expects the Schedule Dates to be ordered first by round number. I will fix this for the version of the Editor I release this weekend.

On a related note: As a general rule, the bronze medal game should be the final round in the schedule (i.e. it should come after the final). Otherwise the game may not work correctly and/or crash.
Alessandro wrote:Archi - will you give us the possibility to add new schedule templates for leagues?
Sorry, I thought I had already. I will add this for this weekend's release. :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: Editing league rules and structures in EHM 1

Post by archibalduk »

Named wrote:Importing schedules from other formats seems not working. xml file is 0 bytes after export :? I can only import to csv but due polish letter on some dates i get like on screen:

Excel after I export schedule read letter ź as ? and editor makes wrong date as 1 January but should be for example 1 October. Seems that I cant export as UTF8 :?
That's right; only csv file format is supported right now. Strictly, this file format only supports ASCII and not UTF-8. However, I should be able to add XML support this weekend which will support UTF-8. Thanks for raising this. :thup:

I'll also look at whether we can have an option to override the language of the dates - i.e so that you can choose whether to use your native language or English (or another language).
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: Editing league rules and structures in EHM 1

Post by archibalduk »

BKarchitect wrote:Amazing work Archi and everybody who is testing...so much promise here.

Any thoughts on NCAA/college leagues? I briefly looked at transfer rules, assuming we would have to set up a new set and there is a lot to digest. Can I assume because the NCAA leagues - although not playable - are already in the game and "act" properly even though you can't play them that there should be some combination of transfer rules in the transfer rules presets that will help produce the desired results? IE, no player movement between teams (or limited...I know transfers exist IRL but I don't think they ever happen in non-playable EHM college leagues), 4 years max contract, recruiting of players from USHL/HS/BCHL/Junior leagues, etc?
I have always understood the NCAA as being semi-realistic in-game. There are plenty of transfer rules settings and so I would hope it possible to get something partially realistic up and running. I don't know how close you could get it to reality, though (but I suppose the question is whether it would be any less realistic than the current non-playable version).
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 »

I temporarily gave up on having conferences in Swedish First Division and instead went with a large single division.
This is now up and running, looks very promising. =D> Need more testing though.

This is what I've got so far.

Code: Select all

Competition Basic Rules & Structure
Item: Swedish HockeyEttan
ID: 59

========================================

Ruling body: Sweden
Transfer rules: Sweden
Upper comp: Swedish HockeyAllsvenskan
Lower comp: Swedish Second Division
Comp type: League
Comp scope: National

----------------------------------------

Host arena: [None]
Host club: [None]

----------------------------------------

Initial start year offset: 0
Number of teams: 48
Number of initial stages: 1
Number of stages (total): 1
Stage for history record: -1
Stage stats scope: Regular season
Stage reputation: 8
Maximum dressed: 22
Squad numbers: false
Prize money (total): 0

----------------------------------------

Custom flags: 8
Match rules: 4198
Extra match rules: 0

========================================

Linked competitions
Item count: 0

----------------------------------------


========================================

League Structure

----------------------------------------

League Rules
Has league rules: true
League rule settings
Priority: 2
Maximum league games: 22
Draw date: 01 jul 2015
Middle day: -1
Minimum seating capacity: 0
Maximum seating capacity: 0
Prize money type: 1
Prize money (total): 1050000
TV money: 55000

----------------------------------------

Points
Win: 3
Draw: 1
OT win: 2
OT loss: 1
SH win: 2
SH loss: 1
Win pct type: 1

----------------------------------------

Sort rules
1: Goal Difference
2: Goals For
3: Games Won
4: No Rule

========================================

Conferences
Item count: 1

----------------------------------------

Conference: 1 of 1
Detailed competition: [None]
Conference name: [None]
Division count: 1

Division: 1 of 1
Detailed competition: [None]
Division name: [None]
Club count: 0

----------------------------------------


========================================

Stage Structures
Item count: 1

----------------------------------------

Structure: 1 of 1
Competition: [None]
Stage name: [None]
Generic stage name: Regular Season
Generic group name: No Group Name
Generic stage stats: No Stage Name
Stage type: League

Maximum league games: 0
Number of teams: 48
Number of rounds: 2
Number of dates: 22
Schedule dates size: 22
Alt. schedule dates size: 0
Has alternative dates: false

Team picking rules: 16
Fate rules: 1

Stage to draw teams from: -7
Fate to draw teams from: -7
Additional stage to draw teams from: -7
Next upper stage to trigger: 0
Next lower stage to trigger: -7
Overall standings stage: false
Process fate action: true
Send group draw news: false
Bring over results from previous stage: false

Promoted EP: 4
Playoff(top) EP: 0
Playoff(bottom) EP: 0
Relegated EP: 8

----------------------------------------


========================================

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:
BKarchitect wrote:Amazing work Archi and everybody who is testing...so much promise here.

Any thoughts on NCAA/college leagues? I briefly looked at transfer rules, assuming we would have to set up a new set and there is a lot to digest. Can I assume because the NCAA leagues - although not playable - are already in the game and "act" properly even though you can't play them that there should be some combination of transfer rules in the transfer rules presets that will help produce the desired results? IE, no player movement between teams (or limited...I know transfers exist IRL but I don't think they ever happen in non-playable EHM college leagues), 4 years max contract, recruiting of players from USHL/HS/BCHL/Junior leagues, etc?
I have always understood the NCAA as being semi-realistic in-game. There are plenty of transfer rules settings and so I would hope it possible to get something partially realistic up and running. I don't know how close you could get it to reality, though (but I suppose the question is whether it would be any less realistic than the current non-playable version).
Well, if people wants to recruit, to me it doesn't seem any different from "offering a contract" if we give the league a max of $1.000/year and set 4 years of contract (i think you can do it masking such contracts as "entry-level contracts") and put the relevant age limits.
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 »

The only thing is that such a league (as far as I understand) would require significant work on schedule templates.
Post Reply