So the quest of having HockeyEttan (SWE-3) as a playable league continues.
After a minor issue most likely related to there being too many teams in the league (48), I backed up and split the league in two halves.
So what I have modeled is, with "playable" indicating that it is an item in the Rules & Structures:
Code: Select all
Swedish HockeyAllsvenskan [HA] (Swe-2) that has lower league set to be HE
Swedish HockeyEttan [HE] (Swe-3) ("non-playable league", domestic league) that consist of
Swedish HockeyEttan NorthEast [HENE] ("playable league", but is subconf) that consist of
Swedish HockeyEttan North [HEN] (conf & division, stage 1 in HENE) with 12 teams
Swedish HockeyEttan East [HEE] (conf & division, stage 2 in HENE) with 12 teams
Swedish HockeyEttan SouthWest [HESW] ("playable league", but is subconf) that consist of
Swedish HockeyEttan South [HES] (conf & division, stage 2 in HESW - yeah other order...) with 12 teams
Swedish HockeyEttan West [HEW] (conf & division, stage 1 in HESW) with 12 teams
Swedish AllEttan North [AEN] (competion, play-off league stage 3 in HENE with 8 teams: top 4 teams from HEN and HEE)
Swedish AllEttan South [AEN] (competion, play-off league stage 3 in HESW with 8 teams: top 4 teams from HES and HEW)
The following seems to work OK in simulation:
* The four conferences/divisions HEN, HEE, HES & HEW all get scheduled correctly and looks ok.
* The four above also have correct standings etc.
* AEN & AES are correctly populated by the top 4 teams from each of its respective divisions/conferences
* AEN & AES looks correct from standings etc.
What I have still to get working:
* HA Relegation league, should be 6 teams in total with bottom 2 teams from HA regular season plus top two teams from AEN and AES. I've tried a myriad of various setting combinations in both AEN, AES and HA. But they all end up in various issues related to drawing of HA stages. During late February, i.e. when teams are either "stuck" in bottom two or top two in their respective leagues.
Usually the message is something like
Code: Select all
CUSTOM_LEAGUE::setup_next_competition_stage() - Could not find extra teams from lower league top playoff spots, stage 0
.
Note that I don't think I have seen any value other than zero (0) for the stage despite various combinations of fate, next upper stage to trigger and so on.
What I have not tried yet:
* Regular season continued in HEN, HEE, HES & HEW - bottom bye teams - I assume this will be trivial/easier compared to AEN & AES
* Relagation towards SWE-4
* Lots of advanced play-off features that goes between AEN,AES before HA relegation.
Note that HENE, HEN, HEE, HESW, HES, HEW, AEN & AES are either modified or added as club competitions.
Here are the dumps of the settings of HA, HENE and HESW if anyone is interested:
HA:
Code: Select all
Competition Basic Rules & Structure
Item: Swedish HockeyAllsvenskan
ID: 37
========================================
Ruling body: Sweden
Transfer rules: Sweden
Upper comp: Swedish Hockey League
Lower comp: Swedish HockeyEttan
Comp type: League
Comp scope: National
----------------------------------------
Host arena: [None]
Host club: [None]
----------------------------------------
Initial start year offset: 0
Number of teams: 14
Number of initial stages: 1
Number of stages (total): 5
Stage for history record: 3
Stage stats scope: League
Stage reputation: 12
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: 52
Draw date: 01 jul 2016
Middle day: -1
Minimum seating capacity: 500
Maximum seating capacity: 500
Prize money type: 1
Prize money (total): 1050000
TV money: 450000
----------------------------------------
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: 5
----------------------------------------
Structure: 1 of 5
Competition: [None]
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: 14
Number of rounds: 4
Number of dates: 52
Schedule dates size: 52
Alt. schedule dates size: 0
Has alternative dates: false
Team picking rules: 16
Fate rules: 40
Stage to draw teams from: 0
Fate to draw teams from: 1
Additional stage to draw teams from: 0
Next upper stage to trigger: 4
Next lower stage to trigger: 2
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: 6
Playoff(bottom) EP: 2
Relegated EP: 0
----------------------------------------
Structure: 2 of 5
Competition: [None]
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: 1573376
Fate rules: 66
Stage to draw teams from: 1
Fate to draw teams from: 2
Additional stage to draw teams from: 0
Next upper stage to trigger: 0
Next lower stage to trigger: 0
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: 3 of 5
Competition: [None]
Stage name: [None]
Generic stage name: Championship
Generic group name: No Group Name
Generic stage stats: Playoffs
Stage type: Cup
Maximum league games: 0
Number of teams: 2
Number of rounds: 1
Number of dates: 1
Schedule dates size: 1
Alt. schedule dates size: 0
Has alternative dates: false
Team picking rules: 768
Fate rules: 1
Stage to draw teams from: 1
Fate to draw teams from: 2
Additional stage to draw teams from: 0
Next upper stage to trigger: 0
Next lower stage to trigger: 0
Overall standings stage: false
Process fate action: true
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
----------------------------------------
Structure: 4 of 5
Competition: [None]
Stage name: [None]
Generic stage name: Playoff League
Generic group name: No Group Name
Generic stage stats: Playoffs
Stage type: League
Maximum league games: 0
Number of teams: 6
Number of rounds: 1
Number of dates: 5
Schedule dates size: 6
Alt. schedule dates size: 0
Has alternative dates: false
Team picking rules: 768
Fate rules: 40
Stage to draw teams from: 1
Fate to draw teams from: 3
Additional stage to draw teams from: 0
Next upper stage to trigger: 5
Next lower stage to trigger: 0
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: 0
Relegated EP: 0
----------------------------------------
Structure: 5 of 5
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: 2
Number of rounds: 1
Number of dates: 1
Schedule dates size: 1
Alt. schedule dates size: 0
Has alternative dates: false
Team picking rules: 2163200
Fate rules: 4
Stage to draw teams from: 4
Fate to draw teams from: 2
Additional stage to draw teams from: 3
Next upper stage to trigger: 0
Next lower stage to trigger: 0
Overall standings stage: false
Process fate action: true
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
----------------------------------------
========================================
HESW:
Code: Select all
Competition Basic Rules & Structure
Item: Swedish HockeyEttan SouthWest
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: 24
Number of initial stages: 2
Number of stages (total): 3
Stage for history record: 3
Stage stats scope: League
Stage reputation: 11
Maximum dressed: 22
Squad numbers: false
Prize money (total): 0
----------------------------------------
Custom flags: 24584
Match rules: 4198
Extra match rules: 0
========================================
Linked competitions
Item count: 2
----------------------------------------
========================================
League Structure
----------------------------------------
League Rules
Has league rules: true
League rule settings
Priority: 2
Maximum league games: 22
Draw date: 01 jul 2016
Middle day: -1
Minimum seating capacity: 100
Maximum seating capacity: 0
Prize money type: 1
Prize money (total): 105000
TV money: 0
----------------------------------------
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: 2
----------------------------------------
Conference: 1 of 2
Detailed competition: Swedish HockeyEttan West
Conference name: [None]
Division count: 1
Division: 1 of 1
Detailed competition: Swedish HockeyEttan West
Division name: [None]
Club count: 12
1: Borlänge HF : HESW : HockeyEttan West
2: Mariestad BoIS HC : HESW : HockeyEttan West
3: Lindlövens IF : HESW : HockeyEttan West
4: Skövde IK : HESW : HockeyEttan West
5: Kumla HC : HESW : HockeyEttan West
6: Grästorps IK : HESW : HockeyEttan West
7: Enköpings SK HK : HESW : HockeyEttan West
8: IFK Arboga : HESW : HockeyEttan West
9: Köping HC : HESW : HockeyEttan West
10: Forshaga IF : HESW : HockeyEttan West
11: Åker/Strängnäs HC : HESW : HockeyEttan West
12: Surahammars IF : HESW : HockeyEttan West
----------------------------------------
Conference: 2 of 2
Detailed competition: Swedish HockeyEttan South
Conference name: [None]
Division count: 1
Division: 1 of 1
Detailed competition: Swedish HockeyEttan South
Division name: [None]
Club count: 12
1: IF Troja-Ljungby : HESW : HockeyEttan South
2: Kristianstads IK : HESW : HockeyEttan South
3: Vimmerby HC : HESW : HockeyEttan South
4: Kallinge/Ronneby IF : HESW : HockeyEttan South
5: Tranås AIF Hockey : HESW : HockeyEttan South
6: Nybro Vikings IF : HESW : HockeyEttan South
7: Helsingborgs HC : HESW : HockeyEttan South
8: Tyringe SoSS : HESW : HockeyEttan South
9: HC Dalen : HESW : HockeyEttan South
10: Hanhals IF : HESW : HockeyEttan South
11: Halmstad HF : HESW : HockeyEttan South
12: Varberg Vipers : HESW : HockeyEttan South
----------------------------------------
========================================
Stage Structures
Item count: 3
----------------------------------------
Structure: 1 of 3
Competition: Swedish HockeyEttan West
Stage name: [None]
Generic stage name: Regular Season
Generic group name: No Group Name
Generic stage stats: Regular Season
Stage type: League
Maximum league games: 22
Number of teams: 12
Number of rounds: 2
Number of dates: 27
Schedule dates size: 27
Alt. schedule dates size: 0
Has alternative dates: false
Team picking rules: 12
Fate rules: 8
Stage to draw teams from: 0
Fate to draw teams from: 0
Additional stage to draw teams from: 0
Next upper stage to trigger: 0
Next lower stage to trigger: 0
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: 0
----------------------------------------
Structure: 2 of 3
Competition: Swedish HockeyEttan South
Stage name: [None]
Generic stage name: Regular Season
Generic group name: No Group Name
Generic stage stats: Regular Season
Stage type: League
Maximum league games: 22
Number of teams: 12
Number of rounds: 2
Number of dates: 27
Schedule dates size: 27
Alt. schedule dates size: 0
Has alternative dates: false
Team picking rules: 12
Fate rules: 8
Stage to draw teams from: 0
Fate to draw teams from: 0
Additional stage to draw teams from: 0
Next upper stage to trigger: 0
Next lower stage to trigger: 0
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: 0
----------------------------------------
Structure: 3 of 3
Competition: Swedish AllEttan South
Stage name: [None]
Generic stage name: Playoff League
Generic group name: No Group Name
Generic stage stats: Regular Season
Stage type: League
Maximum league games: 14
Number of teams: 8
Number of rounds: 2
Number of dates: 14
Schedule dates size: 14
Alt. schedule dates size: 0
Has alternative dates: false
Team picking rules: 1024
Fate rules: 20
Stage to draw teams from: 1
Fate to draw teams from: 2
Additional stage to draw teams from: 0
Next upper stage to trigger: 2
Next lower stage to trigger: 0
Overall standings stage: false
Process fate action: true
Send group draw news: false
Bring over results from previous stage: false
Promoted EP: 0
Playoff(top) EP: 2
Playoff(bottom) EP: 0
Relegated EP: 0
----------------------------------------
========================================
HENE:
Code: Select all
Competition Basic Rules & Structure
Item: Swedish HockeyEttan NorthEast
ID: 60
========================================
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: 24
Number of initial stages: 2
Number of stages (total): 3
Stage for history record: 3
Stage stats scope: League
Stage reputation: 11
Maximum dressed: 22
Squad numbers: false
Prize money (total): 0
----------------------------------------
Custom flags: 24584
Match rules: 4198
Extra match rules: 0
========================================
Linked competitions
Item count: 2
----------------------------------------
========================================
League Structure
----------------------------------------
League Rules
Has league rules: true
League rule settings
Priority: 2
Maximum league games: 22
Draw date: 01 jul 2016
Middle day: -1
Minimum seating capacity: 100
Maximum seating capacity: 0
Prize money type: 1
Prize money (total): 105000
TV money: 0
----------------------------------------
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: 2
----------------------------------------
Conference: 1 of 2
Detailed competition: Swedish HockeyEttan North
Conference name: [None]
Division count: 1
Division: 1 of 1
Detailed competition: Swedish HockeyEttan North
Division name: [None]
Club count: 12
1: Piteå HC : HENE : HockeyEttan North
2: IF Sundsvall Hockey : HENE : HockeyEttan North
3: Tegs SK : HENE : HockeyEttan North
4: Asplöven HC : HENE : HockeyEttan North
5: Kiruna IF : HENE : HockeyEttan North
6: Vännäs HC : HENE : HockeyEttan North
7: Brunflo IK : HENE : HockeyEttan North
8: Sollefteå HK : HENE : HockeyEttan North
9: SK Lejon : HENE : HockeyEttan North
10: Kalix HC : HENE : HockeyEttan North
11: Örnsköldsviks HF : HENE : HockeyEttan North
12: Östersunds IK : HENE : HockeyEttan North
----------------------------------------
Conference: 2 of 2
Detailed competition: Swedish HockeyEttan East
Conference name: [None]
Division count: 1
Division: 1 of 1
Detailed competition: Swedish HockeyEttan East
Division name: [None]
Club count: 12
1: Huddinge IK : HENE : HockeyEttan East
2: IF Vallentuna BK : HENE : HockeyEttan East
3: Hudiksvalls HC : HENE : HockeyEttan East
4: Valbo HC : HENE : HockeyEttan East
5: Wings HC Arlanda : HENE : HockeyEttan East
6: IFK Tumba : HENE : HockeyEttan East
7: Haninge Anchors HC : HENE : HockeyEttan East
8: Sollentuna HC : HENE : HockeyEttan East
9: Väsby IK : HENE : HockeyEttan East
10: Nacka HK : HENE : HockeyEttan East
11: Visby Roma HK : HENE : HockeyEttan East
12: Hammarby IF : HENE : HockeyEttan East
----------------------------------------
========================================
Stage Structures
Item count: 3
----------------------------------------
Structure: 1 of 3
Competition: Swedish HockeyEttan North
Stage name: [None]
Generic stage name: Regular Season
Generic group name: No Group Name
Generic stage stats: Regular Season
Stage type: League
Maximum league games: 22
Number of teams: 12
Number of rounds: 2
Number of dates: 27
Schedule dates size: 27
Alt. schedule dates size: 0
Has alternative dates: false
Team picking rules: 12
Fate rules: 8
Stage to draw teams from: 0
Fate to draw teams from: 0
Additional stage to draw teams from: 0
Next upper stage to trigger: 0
Next lower stage to trigger: 0
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: 0
----------------------------------------
Structure: 2 of 3
Competition: Swedish HockeyEttan East
Stage name: [None]
Generic stage name: Regular Season
Generic group name: No Group Name
Generic stage stats: Regular Season
Stage type: League
Maximum league games: 22
Number of teams: 12
Number of rounds: 2
Number of dates: 27
Schedule dates size: 27
Alt. schedule dates size: 0
Has alternative dates: false
Team picking rules: 12
Fate rules: 8
Stage to draw teams from: 0
Fate to draw teams from: 0
Additional stage to draw teams from: 0
Next upper stage to trigger: 0
Next lower stage to trigger: 0
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: 0
----------------------------------------
Structure: 3 of 3
Competition: Swedish AllEttan North
Stage name: [None]
Generic stage name: Playoff League
Generic group name: No Group Name
Generic stage stats: Regular Season
Stage type: League
Maximum league games: 14
Number of teams: 8
Number of rounds: 2
Number of dates: 14
Schedule dates size: 14
Alt. schedule dates size: 0
Has alternative dates: false
Team picking rules: 1024
Fate rules: 20
Stage to draw teams from: 1
Fate to draw teams from: 2
Additional stage to draw teams from: 0
Next upper stage to trigger: 2
Next lower stage to trigger: 0
Overall standings stage: false
Process fate action: true
Send group draw news: false
Bring over results from previous stage: false
Promoted EP: 0
Playoff(top) EP: 2
Playoff(bottom) EP: 0
Relegated EP: 0
----------------------------------------
========================================
All and any ideas of what I should try is very appreciated.
I'd be happy to upload the database if anyone wants me to, I just need somewhere to store it.