Import_config.cfg file

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

Import_config.cfg file

Post by archibalduk »

I thought I'd flag up the following two commands in the import_config.cfg file which were introduced by today's patch for EHM:EA:
- Added support in import_config.cfg for forcing the use of database team divisions for playable leagues
- Added support in import_config.cfg for changing team division data (for example for custom databases where needed detailed divisions are not present in old 2007 data but are added by the importer)
These two commands are really useful for custom databases, particularly when you want to use the 2014 ruleset (or the 2015 ruleset if/when introduced). They allow you to override the settings used when importing an EHM 2007 database into EHM:EA using the Import button. I.e. so you're no longer stuck with teams confined to certain leagues and can move things around (and using the new conferences/divisions).

The "FORCE_DATABASE_SET_TEAMS" command will make the Importer use whatever teams are set in the DB for that league, instead of using the teams pre-defined in the Importer.

The "CHANGE_TEAM_DIVISION_DATA" allows you to change the Division data for a particular team. E.g. this is useful when wanting to move a team to one of the "new" NHL divisions as these do not exist in the EHM 2007 database (and so they cannot be set in the 2007 Pre-Game Editor).

Code: Select all

# "FORCE_DATABASE_SET_TEAMS"
#
# This allows you to force the importer to use the teams set in the wanted league/division in the database, instead of using the list of teams coded into the importer ruleset. Note that this may result in errors if you have not set the correct number of teams to be in the wanted league in your database. Note that you also need to have the correct detailed divisions set for the teams if the league is setup with initial divisions or conferences
#
# The format is: "FORCE_DATABASE_SET_TEAMS" "league long name"

Code: Select all

# "CHANGE_TEAM_DIVISION_DATA"
#
# This allows you to change the division details of a team. 
#
# The format is: "CHANGE_TEAM_DIVISION_DATA" "Club long name" "New league long name" "New detailed division long name"
#
# If any of the new name strings are left empty ("") the related data fields are cleared in the club data. Leaving the new league name empty will also mark the team as extinct in the database. Note that this only affects the basic database club fields and will not make any changes to possible fixed club assignments in league rules with some playable leagues. However, you can use this command in combination of the "FORCE_DATABASE_SET_TEAMS" import command to change the teams featured in a playable league as long as you move/remove as many  teams from the league as you add to the league.
Icos
Top Prospect
Posts: 101
Joined: Fri Jul 23, 2004 9:52 am
Location: Jesenice, Slovenia

Re: Import_config.cfg file

Post by Icos »

This only work for playable leagues, so there is still no way we can change the teams in non-playable leagues?
User avatar
Manimal
TBL Admin Team
Posts: 6344
Joined: Thu Apr 24, 2008 4:01 am
Custom Rank: EHM Rosters Man
Favourite Team: Djurgårdens IF
Location: Karlstad, Sweden

Re: Import_config.cfg file

Post by Manimal »

Icos wrote:This only work for playable leagues, so there is still no way we can change the teams in non-playable leagues?
That can be changed in the database
Modano
Prospect
Posts: 98
Joined: Wed Jun 24, 2015 3:38 pm
Favourite Team: Dallas Stars

Re: Import_config.cfg file

Post by Modano »

This update gives huuuuge possibilities :notworthy:

http://postimg.org/image/yf2bvf3pf/
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: Import_config.cfg file

Post by Alessandro »

How did you achieve that? What league did you overwrite?
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: Import_config.cfg file

Post by Alessandro »

Btw anyone having luck with the KHL? It looks like I am forced to have Atlant Moscow Oblast in... if I kill it, the game asks me for it to get the team to the KHL, if I put them in, but in another league, the game says I have 29 teams.
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: Import_config.cfg file

Post by Named »

So I understand well you've changed teams in one playable league and create Belarus Extraleague? :)
Modano
Prospect
Posts: 98
Joined: Wed Jun 24, 2015 3:38 pm
Favourite Team: Dallas Stars

Re: Import_config.cfg file

Post by Modano »

Yes. I've changed all teams from Norwegian Elite League (and lower leagues to avoid problems in further seasons) and added Belarusian teams. I forgot to change awards names so there appears news like "Norwegian player of the week", but bigger problem might be foreigners limit. I'll see how does it look during few seasons and I'll inform you about results. Dinamo Minsk gives me hole bunch of players so the game is very interesting so far :joy:

I can make another screens if you are interested, just let me know :)
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: Import_config.cfg file

Post by Named »

You can post screens, thanks :)
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: Import_config.cfg file

Post by Alessandro »

Yeah, post screens. There is a string to change the foreign limit btw.
I am interested in creating the Asian League, can anyone tell me if any playable league has 9 teams?
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: Import_config.cfg file

Post by Named »

Check NLB.
Modano
Prospect
Posts: 98
Joined: Wed Jun 24, 2015 3:38 pm
Favourite Team: Dallas Stars

Re: Import_config.cfg file

Post by Modano »

http://postimg.org/image/vdwpuaoh9/ - main screen. I'll try change country from Norway to Belarus later.
http://postimg.org/image/wk0pt3crx/ - awards, need to change name too.
http://postimg.org/image/mwx7jdjsd/ - league infos
http://postimg.org/image/wiqrzoay5/ - team stats. IMO scoring is to high a little bit.

If you have any other questions let me know :) I'll try to answer you.
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: Import_config.cfg file

Post by Named »

Looks very promising. Are You using 7.4D roster update? Could You show results which seems to high? I did Belarusian league a months ago and curious. :) thanks.
Modano
Prospect
Posts: 98
Joined: Wed Jun 24, 2015 3:38 pm
Favourite Team: Dallas Stars

Re: Import_config.cfg file

Post by Modano »

I'm using 7.4C rosters, it's the newest thing I've found on forum. There happens games with results like 9:6, 8:4, or couple of 6:4 during one day. I'll upload more screenshots when I'll have more time to do that. I suppose that maybe netminders have a little bit too low attributes. Mine has key attributes on 8-level and they are top goalies in the league.

I discovered that changing country from Norway to Belarus is impossible so far, or it's just not that easy like I was hoping to. Swaping countries causes disappearence from league list :dunno: and after my first experiences I think that Slovakian league would be better option to swap due to foreigners limits.

Anyway playing Belarusian league gives many thrills :D
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: Import_config.cfg file

Post by Alessandro »

For foreigners, did you try this

# "MAX_FOREIGN_ON_ROSTER"
#
# This alters the maximum number of foreign players allowed
# on roster for a league or nation.
#
# The format is
# "MAX_FOREIGN_ON_ROSTER" "League Name" Value
#
# Value needs to be between -1 and 50 (-1 indicates no limit)
#
# Example:
#
# "MAX_FOREIGN_ON_ROSTER" "National League" -1
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: Import_config.cfg file

Post by Named »

Yes it's too high scoring. But thanks. I'll take look on Belarusian goaltenders and maybe they need re-rating.
Modano
Prospect
Posts: 98
Joined: Wed Jun 24, 2015 3:38 pm
Favourite Team: Dallas Stars

Re: Import_config.cfg file

Post by Modano »

Alessandro wrote:For foreigners, did you try this

# "MAX_FOREIGN_ON_ROSTER"
#
# This alters the maximum number of foreign players allowed
# on roster for a league or nation.
#
# The format is
# "MAX_FOREIGN_ON_ROSTER" "League Name" Value
#
# Value needs to be between -1 and 50 (-1 indicates no limit)
#
# Example:
#
# "MAX_FOREIGN_ON_ROSTER" "National League" -1
Should I create new .cfg file? It didn't work, but I've got some idea I want to try before giving up :D Fortunately Belarusian Extraleague has so low reputation that foreigners aren't big problem :grin:

@Named: After half of first season I'm almost sure it's netminders think. I was a little bit worried that it was new update fault because in NHL there was also problem with high scoring, but after more amount of games it comes back to "reality". I will try quick sim for few games in Belarusian Extraligue to see if that might be helpful (I remember that few updates ago it helped to solve high scoring problem).

I'll be informing you about progress :)
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: Import_config.cfg file

Post by Named »

In "database" folder you've file transfer_rules_config. Input here this command which Alessandro meant. I think about You wrote but a problem is maybe with poor defensive players too. Not just goaltenders.
User avatar
Manimal
TBL Admin Team
Posts: 6344
Joined: Thu Apr 24, 2008 4:01 am
Custom Rank: EHM Rosters Man
Favourite Team: Djurgårdens IF
Location: Karlstad, Sweden

Re: Import_config.cfg file

Post by Manimal »

Named wrote:Yes it's too high scoring. But thanks. I'll take look on Belarusian goaltenders and maybe they need re-rating.
Talk to Alessandro first. He might have done some work on that already as Modano is using an older db
Modano
Prospect
Posts: 98
Joined: Wed Jun 24, 2015 3:38 pm
Favourite Team: Dallas Stars

Re: Import_config.cfg file

Post by Modano »

Is there newer rosters update than 7.4C? I can't find it anywhere :dunno:

First succes! Foreigners limit corrected :joy: Thanks for help guys :)

Edit:

Btw. I think that the problem might be related rather to attributes than rosters because I was "revisiting" rosters from previous seasons (I'm changing attributes and CA/PA to some players and prospects ect.) and I didn't notice problem with high scoring eccept few matchups which I still find to be realistic.
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: Import_config.cfg file

Post by Alessandro »

Manimal wrote:
Named wrote:Yes it's too high scoring. But thanks. I'll take look on Belarusian goaltenders and maybe they need re-rating.
Talk to Alessandro first. He might have done some work on that already as Modano is using an older db
Haven't done any work there, Named you're free to go. But don't exaggerate.
Modano
Prospect
Posts: 98
Joined: Wed Jun 24, 2015 3:38 pm
Favourite Team: Dallas Stars

Re: Import_config.cfg file

Post by Modano »

I've found quite big issue. After first season almost all Belarusian player has dual citizenship and might play for Norwegian national team :-?

http://postimg.org/image/izicmt1er/
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: Import_config.cfg file

Post by Named »

Post it on SI forum and explain Your changes :)
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: Import_config.cfg file

Post by Alessandro »

Well it's normal, they get the nationality of the league they play in, and they are Norway. Norway has a 7-yr period for second nationality, so we may have to correct many contract start dates
Modano
Prospect
Posts: 98
Joined: Wed Jun 24, 2015 3:38 pm
Favourite Team: Dallas Stars

Re: Import_config.cfg file

Post by Modano »

Alessandro's advice solved problem. Now I'm going to simulate game through few seasons to see how game reacts to these changes :) I'll be informing you about results.
Post Reply