CUSTOM_LEAGUE::draw_competition() error

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
stone169
Checking Line
Posts: 549
Joined: Thu Aug 14, 2008 5:48 pm
Favourite Team: Ottawa Senators
Location: Southern Ontario

CUSTOM_LEAGUE::draw_competition() error

Post by stone169 »

Does anyone know what this error message means?

"CUSTOM_LEAGUE::draw_competition() - unable to find all the initial teams (American Hockey League)"

I managed to make a 36 team roster with the default rosters and borrowing some stuff from BKArchitect. The NHL league is fine, but both the AHL and ECHL give me this error, and I've looked over everything and just can't figure it out. I know I created some teams and brought a couple others out of retirement, but I just can't figure this out.

Any help or suggestions would be most appreciated.
User avatar
xECK29x
TBL Rosters Researcher
Posts: 1010
Joined: Sun May 03, 2015 2:52 pm
Custom Rank: Premier Pivot Rosters Man
Favourite Team: New York Islanders

Re: EHM 1 Database & Saved Game Editor

Post by xECK29x »

stone169 wrote:Does anyone know what this error message means?

"CUSTOM_LEAGUE::draw_competition() - unable to find all the initial teams (American Hockey League)"

I managed to make a 36 team roster with the default rosters and borrowing some stuff from BKArchitect. The NHL league is fine, but both the AHL and ECHL give me this error, and I've looked over everything and just can't figure it out. I know I created some teams and brought a couple others out of retirement, but I just can't figure this out.

Any help or suggestions would be most appreciated.
Are they all listed in the league structure and set properly on the club screen?
User avatar
stone169
Checking Line
Posts: 549
Joined: Thu Aug 14, 2008 5:48 pm
Favourite Team: Ottawa Senators
Location: Southern Ontario

Re: CUSTOM_LEAGUE::draw_competition() error

Post by stone169 »

I figured it out finally. I fix the rules under Rules&Structures -- Stages -- Rules. After adjusting those, I now have no problems.

The only issue I currently have is when loading the rosters I get a schedule error, but if I select "Add Key Staff", "Add Players to Playable Teams", "Add Extra Junior Players", "Add Players to National Team Pools", and "Retain All Teams" it loads fine. I can live with that, since I select all those whenever I start a new game.

Now I just have to test it out.
Avery03C
Learning to skate
Posts: 4
Joined: Sat Mar 16, 2019 1:23 am
Favourite Team: Oilers

CUSTOM_LEAGUE::draw_competition() error

Post by Avery03C »

Was the solution ever found for this?
Avery03C
Learning to skate
Posts: 4
Joined: Sat Mar 16, 2019 1:23 am
Favourite Team: Oilers

Unable to Draw all Initial Teams (National Hockey League)

Post by Avery03C »

So I've made a 60 team NHL.
I put them all into one conference and added 30 KHL teams and switched their status to the NHL. I feel like I've set everything up right, however I get this error 3 times when launching a new game, and there's no NHL teams available for me to take control of.
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:

CUSTOM_LEAGUE::draw_competition() error

Post by archibalduk »

Avery03C wrote: Sat Mar 16, 2019 1:24 am Was the solution ever found for this?
Which issue?
Avery03C
Learning to skate
Posts: 4
Joined: Sat Mar 16, 2019 1:23 am
Favourite Team: Oilers

CUSTOM_LEAGUE::draw_competition() error

Post by Avery03C »

archibalduk wrote: Sat Mar 16, 2019 6:40 am Which issue?
The error OP mentioned
Post Reply