Page 1 of 2

Import_config.cfg file

Posted: Thu Sep 24, 2015 8:25 pm
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.

Re: Import_config.cfg file

Posted: Thu Sep 24, 2015 9:16 pm
by Icos
This only work for playable leagues, so there is still no way we can change the teams in non-playable leagues?

Re: Import_config.cfg file

Posted: Thu Sep 24, 2015 10:10 pm
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

Re: Import_config.cfg file

Posted: Fri Sep 25, 2015 10:44 am
by Modano
This update gives huuuuge possibilities :notworthy:

http://postimg.org/image/yf2bvf3pf/

Re: Import_config.cfg file

Posted: Fri Sep 25, 2015 11:26 am
by Alessandro
How did you achieve that? What league did you overwrite?

Re: Import_config.cfg file

Posted: Fri Sep 25, 2015 11:26 am
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.

Re: Import_config.cfg file

Posted: Fri Sep 25, 2015 11:28 am
by Named
So I understand well you've changed teams in one playable league and create Belarus Extraleague? :)

Re: Import_config.cfg file

Posted: Fri Sep 25, 2015 11:49 am
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 :)

Re: Import_config.cfg file

Posted: Fri Sep 25, 2015 12:55 pm
by Named
You can post screens, thanks :)

Re: Import_config.cfg file

Posted: Fri Sep 25, 2015 1:04 pm
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?

Re: Import_config.cfg file

Posted: Fri Sep 25, 2015 1:09 pm
by Named
Check NLB.

Re: Import_config.cfg file

Posted: Fri Sep 25, 2015 1:16 pm
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.

Re: Import_config.cfg file

Posted: Fri Sep 25, 2015 2:18 pm
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.

Re: Import_config.cfg file

Posted: Fri Sep 25, 2015 2:35 pm
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

Re: Import_config.cfg file

Posted: Fri Sep 25, 2015 2:48 pm
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

Re: Import_config.cfg file

Posted: Fri Sep 25, 2015 3:02 pm
by Named
Yes it's too high scoring. But thanks. I'll take look on Belarusian goaltenders and maybe they need re-rating.

Re: Import_config.cfg file

Posted: Fri Sep 25, 2015 10:36 pm
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 :)

Re: Import_config.cfg file

Posted: Fri Sep 25, 2015 10:41 pm
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.

Re: Import_config.cfg file

Posted: Fri Sep 25, 2015 10:54 pm
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

Re: Import_config.cfg file

Posted: Fri Sep 25, 2015 11:38 pm
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.

Re: Import_config.cfg file

Posted: Sat Sep 26, 2015 7:53 am
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.

Re: Import_config.cfg file

Posted: Sat Sep 26, 2015 2:42 pm
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/

Re: Import_config.cfg file

Posted: Sat Sep 26, 2015 3:07 pm
by Named
Post it on SI forum and explain Your changes :)

Re: Import_config.cfg file

Posted: Sat Sep 26, 2015 3:21 pm
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

Re: Import_config.cfg file

Posted: Sun Sep 27, 2015 8:34 pm
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.