Adding extra teams to a playable league

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
bogii23
Junior League
Posts: 11
Joined: Tue Mar 23, 2021 7:57 pm
Favourite Team: Jesenice

Adding extra teams to a playable league

Post by bogii23 »

Hey, dont know if I am writting this in right forum but still...

I am trying to populate existing playable league with more teams. I dont know what am I missing - is this even possible? Anyway this happens:

https://imgur.com/MvVES6L

Original league has 16 teams and now only 16 teams are playing the league. Any ideas?

Thanks
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:

Adding extra teams to a playable league

Post by archibalduk »

You need to expand the schedule to incorporate the additional teams as well as change the setting on the relevant Stage relating to the number of games played per team.
bogii23
Junior League
Posts: 11
Joined: Tue Mar 23, 2021 7:57 pm
Favourite Team: Jesenice

Adding extra teams to a playable league

Post by bogii23 »

archibalduk wrote: Wed Apr 07, 2021 7:37 pm You need to expand the schedule to incorporate the additional teams as well as change the setting on the relevant Stage relating to the number of games played per team.
How to expand the schedule? I was trying to change number of games in schedule templates but its greyed out. In the league structure i have done everything - stage games, generated new schedule,... Only thing I cant change is the schedule templates where it says 240 games, but I need 380 games. Or am I missing something else?
User avatar
ideawithoutamind
TBL Rosters Researcher
Posts: 123
Joined: Sat Apr 11, 2015 5:54 am
Custom Rank: Global United Hockey
Favourite Team: Boston Bruins

Adding extra teams to a playable league

Post by ideawithoutamind »

bogii23 wrote: Thu Apr 08, 2021 9:25 am How to expand the schedule? I was trying to change number of games in schedule templates but its greyed out. In the league structure i have done everything - stage games, generated new schedule,... Only thing I cant change is the schedule templates where it says 240 games, but I need 380 games. Or am I missing something else?
You need to modify/edit/create your own schedule for the new amount of teams. You can export the schedule and make manual changes, but you need to make sure the number of games per ID is equal.

Different league setups, different team ID configs.

example. 2 Conferences, 2 Divs each (4 divs total), 5 teams each.
Starting with 0, teams are listed 0-4, divisions are 0-3 (each x 100, see examples below)
Team ID's
Div 0: 0, 1, 2, 3, 4
Div 1: 100, 101, 102, 103,104
Div 2: 200, 201, 202, 203, 204
Div 3: 300, 301, 302, 303, 304

From there, you need to decide your match ups. How often each team plays one another.

If you need help setting that up, I wrote a simple internal schedule creator, but I can share the results if you know your leagues setup. Right now it works best with even number of teams per division, or teams only playing each other once home, once away.

Alternatively, don't use the schedule template, and just use the schedule on the stages tab. number of games should = number of teams -1. Rounds, how many times you want that to happen.
Example 14 teams, play 13 games. 2 rounds, would be 26 games, make sure there's at least 26 dates in the schedule area,
bogii23
Junior League
Posts: 11
Joined: Tue Mar 23, 2021 7:57 pm
Favourite Team: Jesenice

Adding extra teams to a playable league

Post by bogii23 »

ideawithoutamind wrote: Thu Apr 08, 2021 10:30 pm
bogii23 wrote: Thu Apr 08, 2021 9:25 am How to expand the schedule? I was trying to change number of games in schedule templates but its greyed out. In the league structure i have done everything - stage games, generated new schedule,... Only thing I cant change is the schedule templates where it says 240 games, but I need 380 games. Or am I missing something else?
You need to modify/edit/create your own schedule for the new amount of teams. You can export the schedule and make manual changes, but you need to make sure the number of games per ID is equal.

Different league setups, different team ID configs.

example. 2 Conferences, 2 Divs each (4 divs total), 5 teams each.
Starting with 0, teams are listed 0-4, divisions are 0-3 (each x 100, see examples below)
Team ID's
Div 0: 0, 1, 2, 3, 4
Div 1: 100, 101, 102, 103,104
Div 2: 200, 201, 202, 203, 204
Div 3: 300, 301, 302, 303, 304

From there, you need to decide your match ups. How often each team plays one another.

If you need help setting that up, I wrote a simple internal schedule creator, but I can share the results if you know your leagues setup. Right now it works best with even number of teams per division, or teams only playing each other once home, once away.

Alternatively, don't use the schedule template, and just use the schedule on the stages tab. number of games should = number of teams -1. Rounds, how many times you want that to happen.
Example 14 teams, play 13 games. 2 rounds, would be 26 games, make sure there's at least 26 dates in the schedule area,
I have only 1 division - 18 teams, I tried to do exactly what u wrote on club competition structure tab - stages...dont work. So i believe there is a problem with Schedule template, because there are too few games there.

Anyway, I would definitely need help with creating my schedule, because I am slowly giving up :( Also, do I have to find teams ID for the schedule or I decide what ID has certain team?

Thanks for all the help!
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:

Adding extra teams to a playable league

Post by archibalduk »

It sounds like you haven't added additional games to the schedule template. If you upload a copy of your DB, I'll take a quick look and will let you know what you need to do to fix it.
bogii23
Junior League
Posts: 11
Joined: Tue Mar 23, 2021 7:57 pm
Favourite Team: Jesenice

Adding extra teams to a playable league

Post by bogii23 »

archibalduk wrote: Fri Apr 09, 2021 7:06 pm It sounds like you haven't added additional games to the schedule template. If you upload a copy of your DB, I'll take a quick look and will let you know what you need to do to fix it.
Ok, somehow I added additional games to schedule template :) Only dates are still bothering me, why the game dont use the dates from league structure instead of schedule in schedule template. Anyway, I am getting this errors now:

https://imgur.com/O1h8BDV

https://imgur.com/MA4Yw23

Database: https://filebin.net/awws2tk0z416ae83
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:

Adding extra teams to a playable league

Post by archibalduk »

Thanks. I've downloaded the file and will take a look today/tomorrow. Hopefully we can then create some in-Editor warnings about these errors to help identify them in the future.
bogii23
Junior League
Posts: 11
Joined: Tue Mar 23, 2021 7:57 pm
Favourite Team: Jesenice

Adding extra teams to a playable league

Post by bogii23 »

Hey Archi, I managed to fix my problems with schedule now, so for now all is working (schedule).

Have one question though. How to make leagues official for a nation, so that a winner is a nation champion? And how to delete - setup official leagues so they dont exist anymore?

Dont want teams in European Champions Hockey League to have teams from a league which I wanted to delete, instead to have teams qualify from newly created league? I know its not question for this section, but its the only thing that bothers me (I hope lol).

Edit: will simulate now for about 2-3 seasons to see if everything is ok with schedule..

Edit 2: still not ok, now having troubles with second stage - most of the games played in one day, so each team plays about 10-15 games in one day lol ](*,)

Latest database: https://filebin.net/iwbp6b8mpky6c3dq

I am working on:

- bet-at-home ICE Hockey League (1st level comp)
- Alps Hockey League (2nd level comp)
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:

Adding extra teams to a playable league

Post by archibalduk »

I took a look at the bet-at-home league. My comments are:

STAGE 1:
As you are using a schedule template, you only need two dates on the Schedule Dates screen for stage 1. The first date should be the first date of the schedule template (26 September) and the second date should be the final date of the schedule template (17 January). The Number of Dates setting should be set to 2. Take a look at the first stage of the NHL if you want an example of how these settings work when you use a schedule template.

STAGE 2:
- I think the Stage Max League Games setting should be 22 because you currently have two rounds of 12 teams (so each team plays 22 games).
- I'm pretty sure the Relegated end places should be set to 2 (positive two) and not -2 (minus two).

STAGE 3:
I think the Stage Max League Games setting should be 12 because you currently have four rounds of four teams (so each team plays 12 games).

bogii23 wrote: Sat Apr 10, 2021 11:20 amHave one question though. How to make leagues official for a nation, so that a winner is a nation champion?
There's no such thing in the game. All you can do is have a team as the champion of the league, not the nation.
bogii23 wrote: Sat Apr 10, 2021 11:20 amAnd how to delete - setup official leagues so they dont exist anymore?

Dont want teams in European Champions Hockey League to have teams from a league which I wanted to delete, instead to have teams qualify from newly created league? I know its not question for this section, but its the only thing that bothers me (I hope lol).
I'm not sure if you can delete the CHL but you could try clicking on the Delete Item button in the bottom right hand corner of the screen when viewing the CHL on the Rules & Structure screen. Do backup your database first because my feeling is that EHM might not work without the CHL.
bogii23
Junior League
Posts: 11
Joined: Tue Mar 23, 2021 7:57 pm
Favourite Team: Jesenice

Adding extra teams to a playable league

Post by bogii23 »

Ok, gonna try to make this changes and let you know the results :)
bogii23
Junior League
Posts: 11
Joined: Tue Mar 23, 2021 7:57 pm
Favourite Team: Jesenice

Adding extra teams to a playable league

Post by bogii23 »

By the way, what do I have to do if I dont want to use Schedule template?

EDIT....GOT IT :)
bogii23
Junior League
Posts: 11
Joined: Tue Mar 23, 2021 7:57 pm
Favourite Team: Jesenice

Adding extra teams to a playable league

Post by bogii23 »

Man, didnt know this is going to be so frustrating :)

Anyway, I dont use Schedule template now, everything working fine, but when the season was over I saw two teams relegated from bet at home league (lvl 1 comp) which is fine. But Alps league (lvl 2) had only one team promoted, though I set two teams to get promoted in editor. And when data is getting updated for the next season the game just quits to desktop (without any warnings). I guess the problem is that schedule cant be created for the new season because of this relegation/promotion problem. Dont really know where did I go wrong here.

Editor setting: https://imgur.com/ysq7ZAq

The moment when the game crashes: https://imgur.com/a/LcPwp9t

Latest database: https://www.mediafire.com/file/fzrtx1fy ... se.db/file
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:

Adding extra teams to a playable league

Post by archibalduk »

I think the issue is that the Alps League playoffs consists of a cup competition where there will only be one winner; hence only one team is promoted. I'm not aware of any way of getting the losers of the final promoted, but you if you're aware of another league in game which does that then let me know. Otherwise, you'd need to make the final playoffs stage a league stage with two promotion End Places.

There's a couple of minor errors I spotted (see below). These might be inconsequential, but I'd suggest fixing anyway.

Bet-at-home League
STAGE 1: Number of dates should be 36. This setting sets how many dates there are in the Schedule Dates table, not the numbers of games played.
STAGE 3: Number of dates should be 22.

Alps Hockey League
STAGE 1: Number of dates should be 40.
bogii23
Junior League
Posts: 11
Joined: Tue Mar 23, 2021 7:57 pm
Favourite Team: Jesenice

Adding extra teams to a playable league

Post by bogii23 »

Cheers, I ll fix that and then I am ready to go :)

Ty!
Post Reply