Re: Import_config.cfg file
Posted: Sun Sep 27, 2015 10:01 pm
Is there a step by step instruction on how to edit like this ?
Your #1 NHL EHM resource site!
https://www.ehmtheblueline.com/forums/
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"
"FORCE_DATABASE_SET_TEAMS" "Norwegian UPC-Ligaen"
Code: Select all
- 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)
Code: Select all
#############################################################
#
# This file allows setting some basic options for
# importing an EHM 2007 format database.
#
# The file needs to be placed within the same folder as the
# database you want to import.
#
# All commands and need to be within
# quotation marks, numerical values without them
#
# Lines starting with # are ignored !
#
#############################################################
#############################################################
#
# "START_YEAR"
#
# This alters the start year for the game started with this
# database.
#
# The format is:
# "START_YEAR" Value
#
# Value needs to be between 1970 and 2014
#
#############################################################
"START_YEAR" 2013
#############################################################
#
# "DEFAULT_RULE_SET"
#
# This controls which set of basic league rules are used to
# initialise the new league structures, transfer rules etc.
#
# The format is:
# "DEFAULT_RULE_SET" Value
#
# Value needs to be either 2006 or 2014 as these are the two
# default rule sets supported by the automatic importer.
#
#############################################################
"DEFAULT_RULE_SET" 2014
#############################################################
#
# "CHANGE_COMP_NAME"
#
# This allows you to change the names of a league/tournament.
#
# The format is:
# "CHANGE_COMP_NAME" "Old long name" "New long name" "New short name" "New abbreviation" "New regular season trophy name" "New playoff trophy name"
#
# If any of the new name strings are left empty ("") the old
# entries are kept
#
#############################################################
# "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"
"FORCE_DATABASE_SET_TEAMS" "Russian Superleague"
"FORCE_DATABASE_SET_TEAMS" "Swiss National League B"
"FORCE_DATABASE_SET_TEAMS" "Western Hockey League"
"FORCE_DATABASE_SET_TEAMS" "ECHL"
### CLUB COMPETITIONS ###
"CHANGE_COMP_NAME" "Czech Elite League" "Czech Tipsport Extraliga" "Czech Extraliga" "" "" ""
"CHANGE_COMP_NAME" "Danish Oddset Ligaen" "Danish Metal Ligaen" "Metal Ligaen" "" "" ""
"CHANGE_COMP_NAME" "Deutsche 2. Bundesliga" "Deutsche Eishockey Liga 2"
"CHANGE_COMP_NAME" "Deutsche DNL 2" "Deutsche Nachwuchs Liga 2"
"CHANGE_COMP_NAME" "Deutsche Schüler Liga" "Deutsche Schüler-Bundesliga"
"CHANGE_COMP_NAME" "English National Hockey League" "National Ice Hockey League" "National Ice Hockey League" "NIHL" "" ""
"CHANGE_COMP_NAME" "English National Hockey League Northern Conference" "National Ice Hockey League North 1" "NIHL North 1" "N1" "" ""
"CHANGE_COMP_NAME" "English National Hockey League North 2" "National Ice Hockey League North 2" "NIHL North 2" "N2" "" ""
"CHANGE_COMP_NAME" "English National Hockey League Southern Conference" "National Ice Hockey League South 1" "NIHL South 1" "S1" "" ""
"CHANGE_COMP_NAME" "English National Hockey League South 2" "National Ice Hockey League South 2" "NIHL South 2" "S2" "" ""
"CHANGE_COMP_NAME" "Finnish SM-League" "Finnish Liiga" "Liiga" "" "Harry Lindblad Memorial Award" ""
"CHANGE_COMP_NAME" "Finnish Suomi Division" "Finnish Suomi-Sarja" "Suomi-Sarja" "" "" ""
"CHANGE_COMP_NAME" "Norwegian UPC-Ligaen" "Norwegian GET Ligaen" "GET Ligaen" "" "" ""
"CHANGE_COMP_NAME" "Slovenska T-Com Extraliga" "Slovakian Tipsport Extraliga" "Slovakian Extraliga" "" "" ""
"CHANGE_COMP_NAME" "Swedish Allsvenskan" "Swedish HockeyAllsvenskan" "HockeyAllsvenskan" "" "" ""
"CHANGE_COMP_NAME" "Swedish Elitserien" "Swedish Hockey League" "SHL" "SHL" "" "Le Mat Trophy"
archibalduk wrote: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:
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).- 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)
Ahh, I didn't know that EHM had gotten to the point where you could rename playable leagues outright in the editor without it freaking out over hard-coded names it expected to see.archibalduk wrote:Good question! I don't know the answer, but the easiest thing to do is to rename the league using the Pre-Game Editor and then you don't have to worry about using CHANGE_COMP_NAME at all.
The CHANGE_COMP_NAME command is really intended to allow an EHM 2007 DB to remain compatible with EHM 2007 whilst allowing the flexibility of changing league names for EHM 1. But if you have no intention of using the DB with EHM 2007 then you can rename leagues and teams via the Pre-Game Editor without any issue.
I'm just now having the same problem.Modano wrote:Not sufe if topic is right, but there were discussion about changing leagues, so... Anyone has any ideas why changing teams doesn't work anymore in KHL? I don't have problem with other leagues except KHL. I'm using new editor and changing Asia Ice Hockey Leagut with Austrian 2nd league worked perfect, but I can't add different team to KHL - it plays matches but they don't figure in league tables. Putting additional lines in .cfg file didn't work
Alessandro wrote:If any of you would post their import file I think it would be helpful
I ended up just renaming a couple teams and shifting a few teams to different divisions.# "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"
"FORCE_DATABASE_SET_TEAMS" "Kontinental Hockey League"
#############################################################
#
# This file allows setting some basic options for
# importing an EHM 2007 format database.
#
# The file needs to be placed within the same folder as the
# database you want to import.
#
# All commands and need to be within
# quotation marks, numerical values without them
#
# Lines starting with # are ignored !
#
#############################################################
#############################################################
#
# "START_YEAR"
#
# This alters the start year for the game started with this
# database.
#
# The format is:
# "START_YEAR" Value
#
# Value needs to be between 1970 and 2015
#
#############################################################
"START_YEAR" 2015
#############################################################
#
# "DEFAULT_RULE_SET"
#
# This controls which set of basic league rules are used to
# initialise the new league structures, transfer rules etc.
#
# The format is:
# "DEFAULT_RULE_SET" Value
#
# Value needs to be either 2006, 2014 or 2015 as these are the three
# default rule sets supported by the automatic importer.
#
#############################################################
"DEFAULT_RULE_SET" 2015
#############################################################
#
# "CHANGE_COMP_NAME"
#
# This allows you to change the names of a league/tournament.
#
# The format is:
# "CHANGE_COMP_NAME" "Old long name" "New long name" "New short name" "New abbreviation" "New regular season trophy name" "New playoff trophy name"
#
# If any of the new name strings are left empty ("") the old
# entries are kept
#
#############################################################
### CLUB COMPETITIONS ###
"CHANGE_COMP_NAME" "American Hockey League Midwest Division" "American Hockey League Central Division" "AHL Central Division" "AHL CE" "" ""
"CHANGE_COMP_NAME" "American Hockey League West Division" "American Hockey League Pacific Division" "AHL Pacific Division" "AHL PA" "" ""
"CHANGE_COMP_NAME" "Czech Elite League" "Czech Tipsport Extraliga" "Czech Extraliga" "" "" ""
"CHANGE_COMP_NAME" "Czech First Division" "Czech WSM Liga" "WSM Liga" "" "" ""
"CHANGE_COMP_NAME" "Czech NOEN Elite Junior League" "Czech DHL Elite Junior Liga" "Czech Junior Liga" "" "" ""
"CHANGE_COMP_NAME" "Danish Oddset Ligaen" "Danish Metal Ligaen" "Metal Ligaen" "" "" ""
"CHANGE_COMP_NAME" "Deutsche 2. Bundesliga" "Deutsche Eishockey Liga 2" "DEL2" "DEL2" "" ""
"CHANGE_COMP_NAME" "Deutsche DNL 2" "Deutsche Nachwuchs Liga 2" "DNL-2" "DNL2" ""
"CHANGE_COMP_NAME" "Deutsche Sch・er Liga" "Deutsche Sch・er-Bundesliga" "Sch・er-BL" "SBL" "" ""
"CHANGE_COMP_NAME" "ECHL West Division" "ECHL Mid-West Division" "ECHL Mid-West Division" "ECHL MW" "" ""
"CHANGE_COMP_NAME" "ECHL Pacific Division" "ECHL West Division" "ECHL West Division" "ECHL W" "" ""
"CHANGE_COMP_NAME" "English National Hockey League" "National Ice Hockey League" "National Ice Hockey League" "NIHL" "" ""
"CHANGE_COMP_NAME" "English National Hockey League Northern Conference" "National Ice Hockey League North 1" "NIHL North 1" "N1" "" ""
"CHANGE_COMP_NAME" "English National Hockey League North 2" "National Ice Hockey League North 2" "NIHL North 2" "N2" "" ""
"CHANGE_COMP_NAME" "English National Hockey League Southern Conference" "National Ice Hockey League South 1" "NIHL South 1" "S1" "" ""
"CHANGE_COMP_NAME" "English National Hockey League South 2" "National Ice Hockey League South 2" "NIHL South 2" "S2" "" ""
"CHANGE_COMP_NAME" "Finnish SM-League" "Finnish Liiga" "Liiga" "" "Harry Lindblad Memorial Award" ""
"CHANGE_COMP_NAME" "Finnish Suomi Division" "Finnish Suomi-Sarja" "Suomi-Sarja" "" "" ""
"CHANGE_COMP_NAME" "Norwegian UPC-Ligaen" "Norwegian GET Ligaen" "GET Ligaen" "" "" ""
"CHANGE_COMP_NAME" "Russian Superleague" "Kontinental Hockey League" "Kontinental Hockey League" "KHL" "Kontinental Cup" "Gagarin Cup"
"CHANGE_COMP_NAME" "Russian Superleague Match Vsekh Zvezd" "Russian KHL Match Vsekh Zvezd" "" "KHLAS" "" ""
"CHANGE_COMP_NAME" "Slovenska T-Com Extraliga" "Slovakian Tipsport Liga" "Slovakian Liga" "" "" ""
"CHANGE_COMP_NAME" "Swedish Allsvenskan" "Swedish HockeyAllsvenskan" "HockeyAllsvenskan" "" "" ""
"CHANGE_COMP_NAME" "Swedish Elitserien" "Swedish Hockey League" "SHL" "SHL" "" "Le Mat Trophy"
### NATIONAL COMPETITIONS ###
"CHANGE_COMP_NAME" "Czech Cup" "Czech Hockey Games" "Czech Hockey Games" "EHT-Cz" "" ""
"CHANGE_COMP_NAME" "Finland Games" "Finnish Karjala Cup" "Karjala Tournament" "EHT-Fi" "" ""
"CHANGE_COMP_NAME" "ROSNO Cup" "Russian Channel One Cup" "Channel One Cup" "EHT-Ru" "" ""
"CHANGE_COMP_NAME" "Sweden Games" "Swedish Oddset Hockey Games" "Oddset Hockey Games" "EHT-Sw" "" ""
#############################################################
#
# "CAREER_HISTORY_TEAM_NAME_CHANGE"
#
# This allows you to change the team name that is displayed in the player historical career stats for a given franchise. This can be used for
# franchises that have relocated or changed names in the past but the player career stats are stored using the current club and you want the
# player history screen to display the correct historical name for the franchise in selected years (instead of using a separate extinct club entry).
#
# The format is:
# "CAREER_HISTORY_TEAM_NAME_CHANGE" "Team to apply for" "League six letter name" "New team display name" YearFrom YearTo
#
# Team to apply for - this should be the full team name of the franchise/team this change applies to
# League six letter name - this should be the six letter league abbreviation in player career history next to the team name you want to change (or "" to apply for any league within these years)
# New team display name - the new name to display on these career history years (note that career history screen shows the club short names)
# YearFrom - Year the change starts from (for changes starting from 2014-15 season, enter 2014)
# YearTo - Year the change ends in (for changes ending in 2014-15 season, enter 2015)
#
# For example, if a club formerly known as "Vantaa Mighty Pirates" from Finnish League 1 (Fin-1) has lately moved and/or changed names and
# is now known as "Helsinki Pirates" from season 2014 onwards, you can still keep all the existing player career stats stored using the current
# club (now known as "Helsinki Pirates") but use this additional command to tell the game to show the previous year player stats with the old club name:
#
# "CAREER_HISTORY_TEAM_NAME_CHANGE" "Helsinki Pirates" "Fin-1" "Vantaa MP" 2010 2013
#
#############################################################
"CAREER_HISTORY_TEAM_NAME_CHANGE" "Hamilton Bulldogs" "OHL" "Belleville" 1981 2015
"CAREER_HISTORY_TEAM_NAME_CHANGE" "Hartford WolfPack" "AHL" "Connecticut" 2010 2013
"CAREER_HISTORY_TEAM_NAME_CHANGE" "Flint Firebirds" "OHL" "Plymouth" 1997 2015
"CAREER_HISTORY_TEAM_NAME_CHANGE" "Flint Firebirds" "OHL" "Detroit" 1990 1997
"CAREER_HISTORY_TEAM_NAME_CHANGE" "Adirondack Thunder" "ECHL" "Stockton" 2005 2015
"CAREER_HISTORY_TEAM_NAME_CHANGE" "Adirondack Thunder" "ECHL" "Atlantic City" 2001 2005
"CAREER_HISTORY_TEAM_NAME_CHANGE" "Adirondack Thunder" "ECHL" "Birmingham" 1992 2001
"CAREER_HISTORY_TEAM_NAME_CHANGE" "Adirondack Thunder" "ECHL" "Cincinnati" 1990 1992
"CAREER_HISTORY_TEAM_NAME_CHANGE" "Norfolk Admirals" "ECHL" "Bakersfield" 1995 2015
"CAREER_HISTORY_TEAM_NAME_CHANGE" "Manchester Monarchs" "ECHL" "Ontario" 2008 2015
"CAREER_HISTORY_TEAM_NAME_CHANGE" "Manchester Monarchs" "ECHL" "Texas" 2003 2009
"CAREER_HISTORY_TEAM_NAME_CHANGE" "St. John's IceCaps" "AHL" "Hamilton" 2002 2015
"CAREER_HISTORY_TEAM_NAME_CHANGE" "St. John's IceCaps" "AHL" "Quebec" 1999 2002
"CAREER_HISTORY_TEAM_NAME_CHANGE" "St. John's IceCaps" "AHL" "Fredericton" 1990 1999
"CAREER_HISTORY_TEAM_NAME_CHANGE" "St. John's IceCaps" "AHL" "Sherbrooke" 1984 1990
"CAREER_HISTORY_TEAM_NAME_CHANGE" "St. John's IceCaps" "AHL" "Nova Scotia" 1971 1984
"CAREER_HISTORY_TEAM_NAME_CHANGE" "St. John's IceCaps" "AHL" "Montreal" 1969 1972
"CAREER_HISTORY_TEAM_NAME_CHANGE" "Manitoba Moose" "AHL" "St. John's" 2011 2015
"CAREER_HISTORY_TEAM_NAME_CHANGE" "San Jose Barracuda" "AHL" "Worcester" 2006 2015
"CAREER_HISTORY_TEAM_NAME_CHANGE" "San Jose Barracuda" "AHL" "Cleveland" 2001 2006
"CAREER_HISTORY_TEAM_NAME_CHANGE" "San Jose Barracuda" "AHL" "Kentucky" 1996 2001
"CAREER_HISTORY_TEAM_NAME_CHANGE" "Bakersfield Condors" "AHL" "Oklahoma City" 2010 2015
"CAREER_HISTORY_TEAM_NAME_CHANGE" "San Diego Gulls" "AHL" "Norfolk" 2000 2015
"CAREER_HISTORY_TEAM_NAME_CHANGE" "Ontario Reign" "AHL" "Manchester" 2001 2015
"CAREER_HISTORY_TEAM_NAME_CHANGE" "Stockton Heat" "AHL" "Adirondack" 2014 2014
"CAREER_HISTORY_TEAM_NAME_CHANGE" "Stockton Heat" "AHL" "Abbotsford" 2009 2014
"CAREER_HISTORY_TEAM_NAME_CHANGE" "Stockton Heat" "AHL" "Quad City" 2007 2009
"CAREER_HISTORY_TEAM_NAME_CHANGE" "Stockton Heat" "AHL" "Omaha" 2006 2007
"CAREER_HISTORY_TEAM_NAME_CHANGE" "Stockton Heat" "AHL" "Saint John" 1993 2003
"CAREER_HISTORY_TEAM_NAME_CHANGE" "Stockton Heat" "AHL" "Utica" 1987 1993
"CAREER_HISTORY_TEAM_NAME_CHANGE" "Stockton Heat" "AHL" "Maine" 1977 1987
"CAREER_HISTORY_TEAM_NAME_CHANGE" "HC Red Star Kunlun" "KHL" "Yurga" 2006 2015
"CAREER_HISTORY_TEAM_NAME_CHANGE" "London Emperors" "KHL" "Vityaz" 1996 2015
################################################################
# "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"
"FORCE_DATABASE_SET_TEAMS" "Kontinental Hockey League"
Well then, I feel kinda dumb.Alessandro wrote:You can't just add the command that way and hope that it works. You have to specify each team in each division and conference.
What are you trying to achieve?