Page 1 of 1

How to switch Conferences and/or Divisions (UPDATE)

Posted: Sun Jul 10, 2016 5:20 am
by Iceman87GT
I'm planning on doing a game where the Thrashers never left Atlanta but instead re-branded themselves as the Phoenix (the mythical bird) and the Coyotes moved back to Winnipeg instead. My plan is to move the Phoenix into the Atlantic Division where there is another Sunbelt team AND the semi-rivalry that formed between the Thrashers and the Sabres will be played up as an actual full-on division rivalry. Plus its an easy move as the Coyotes are in the Pacific (where OG Jets rivals Oilers and Flames play, so there is no need to do any rotating to get good geographic rivalries going), and I can move the Red Wings back the West and put them in the Central

So basically:

Conference switches:
WPG <-> DET

Identity Switches:
WPG-> ATL
AZ -> WPG

The problem I am encountering is that I can modify the Conference/Division these teams are in and it will show up in the team info BUT the teams will remain in the old conferences and wind up getting removed from division tables (haven't bothered doing anything in my test games once I discover their Conferences are still wrong so I have no idea if they get removed from their divisions or if they stay in them but just don't show up in the standings).

Any suggestions on how to get this to work? I have tried the Pre-Game Editor and the EHM 1 Editor and neither have worked (maybe I'm doing something wrong?). I think I might just need to edit the Red Wings into the Phoenix and the Jets into the Red Wings, but how would I move the appropriate rosters and would this mess up the Red Wings history (or would that be attached to the name?)


UPDATE!:

I figured it out and decided to go ahead and post the code that I used in this first post for future forum users with the same question. It's the code for making sure all the teams are in the appropriate divisions and conferences. If you wish to move teams around simply swap the desired teams. YOU MUST INCLUDE ALL TEAMS! In order for this to work you must include all teams and their corresponding division changes for whatever leagues you wish to change, unfortunately limiting the code to just the teams you wish to move around does not work. This is why I am including the following code for the NHL, that way you only have to copy and paste this rather than type it out yourself.

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" "National Hockey League"

#############################################################

"CHANGE_TEAM_DIVISION_DATA" "Atlanta Phoenix" "National Hockey League" "National Hockey League Atlantic Division"
"CHANGE_TEAM_DIVISION_DATA" "Buffalo Sabres" "National Hockey League" "National Hockey League Atlantic Division"
"CHANGE_TEAM_DIVISION_DATA" "Florida Panthers" "National Hockey League" "National Hockey League Atlantic Division"
"CHANGE_TEAM_DIVISION_DATA" "Boston Bruins" "National Hockey League" "National Hockey League Atlantic Division"
"CHANGE_TEAM_DIVISION_DATA" "Montreal Canadiens" "National Hockey League" "National Hockey League Atlantic Division"
"CHANGE_TEAM_DIVISION_DATA" "Ottawa Senators" "National Hockey League" "National Hockey League Atlantic Division"
"CHANGE_TEAM_DIVISION_DATA" "Tampa Bay Lightning" "National Hockey League" "National Hockey League Atlantic Division"
"CHANGE_TEAM_DIVISION_DATA" "Toronto Maple Leafs" "National Hockey League" "National Hockey League Atlantic Division"
"CHANGE_TEAM_DIVISION_DATA" "New York Rangers" "National Hockey League" "National Hockey League Metropolitan Division"
"CHANGE_TEAM_DIVISION_DATA" "New York Islanders" "National Hockey League" "National Hockey League Metropolitan Division"
"CHANGE_TEAM_DIVISION_DATA" "New Jersey Devils" "National Hockey League" "National Hockey League Metropolitan Division"
"CHANGE_TEAM_DIVISION_DATA" "Washington Capitals" "National Hockey League" "National Hockey League Metropolitan Division"
"CHANGE_TEAM_DIVISION_DATA" "Pittsburgh Penguins" "National Hockey League" "National Hockey League Metropolitan Division"
"CHANGE_TEAM_DIVISION_DATA" "Philadelphia Flyers" "National Hockey League" "National Hockey League Metropolitan Division"
"CHANGE_TEAM_DIVISION_DATA" "Carolina Hurricanes" "National Hockey League" "National Hockey League Metropolitan Division"
"CHANGE_TEAM_DIVISION_DATA" "Columbus Blue Jackets" "National Hockey League" "National Hockey League Metropolitan Division"
"CHANGE_TEAM_DIVISION_DATA" "Chicago Blackhawks" "National Hockey League" "National Hockey League Central Division"
"CHANGE_TEAM_DIVISION_DATA" "St. Louis Blues" "National Hockey League" "National Hockey League Central Division"
"CHANGE_TEAM_DIVISION_DATA" "Nashville Predators" "National Hockey League" "National Hockey League Central Division"
"CHANGE_TEAM_DIVISION_DATA" "Minnesota Wild" "National Hockey League" "National Hockey League Central Division"
"CHANGE_TEAM_DIVISION_DATA" "Colorado Avalanche" "National Hockey League" "National Hockey League Central Division"
"CHANGE_TEAM_DIVISION_DATA" "Dallas Stars" "National Hockey League" "National Hockey League Central Division"
"CHANGE_TEAM_DIVISION_DATA" "Detroit Red Wings" "National Hockey League" "National Hockey League Central Division"
"CHANGE_TEAM_DIVISION_DATA" "Los Angeles Kings" "National Hockey League" "National Hockey League Pacific Division"
"CHANGE_TEAM_DIVISION_DATA" "Anaheim Ducks" "National Hockey League" "National Hockey League Pacific Division"
"CHANGE_TEAM_DIVISION_DATA" "Winnipeg Jets" "National Hockey League" "National Hockey League Pacific Division"
"CHANGE_TEAM_DIVISION_DATA" "San Jose Sharks" "National Hockey League" "National Hockey League Pacific Division"
"CHANGE_TEAM_DIVISION_DATA" "Vancouver Canucks" "National Hockey League" "National Hockey League Pacific Division"
"CHANGE_TEAM_DIVISION_DATA" "Calgary Flames" "National Hockey League" "National Hockey League Pacific Division"
"CHANGE_TEAM_DIVISION_DATA" "Edmonton Oilers" "National Hockey League" "National Hockey League Pacific Division"


#############################################################

Note: you can use modified names and still get things to work (i.e. I renamed the Winnipeg Jets the Atlanta Phoenix and the Coyotes the Winnipeg Jets and it didn't cause any issues, when I reflected this in the code)

Re: How to switch Conferences and/or Divisions

Posted: Sun Jul 10, 2016 10:51 am
by archibalduk
The Pre-Game Editor won't do it because when you import the data using the in-game Importer it'll switch things back and set up the schedules accordingly. The EHM 1 Editor cannot quite do it yet as schedules and structures are not yet editable (one day, hopefully!).

Your best bet is probably to use the import_config file (once you have set the config file, re-import the database into EHM): http://www.ehmtheblueline.com/forums/vi ... 70#p199124

I'm guessing "CHANGE_TEAM_DIVISION_DATA" is what you'll need. So, for example, you'll need one line for Winnipeg and one line for Detroit in order to switch divisions (I would try this one switch to start with). I haven't tried this myself and so it might not result in what you're after, but it's probably your best shot.

Re: How to switch Conferences and/or Divisions

Posted: Sun Jul 10, 2016 11:00 pm
by Iceman87GT
I've tried this with the changes I've made to the team names, and I'm in the process of doing it with the original names (using Winnipeg Jets instead of Atlanta Phoenix) to see if that fixes it. When I did it using the modified name I kept getting an error maybe I'm entering it in wrong?

here's what I've got

Note: I had previously used "Atlanta Phoenix" instead of "Winnipeg Jets", the following code is in the process of being imported maybe it'll work and this post will serve as an example of what to do instead of asking if this is right (I doubt it but hopefully!)

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" "National Hockey League"

#############################################################

"CHANGE_TEAM_DIVISION_DATA" "Winnipeg Jets" "National Hockey League" "National Hockey League Atlantic Division"
"CHANGE_TEAM_DIVISION_DATA" "Detroit Red Wings" "National Hockey League" "National Hockey League Central Division"

Re: How to switch Conferences and/or Divisions

Posted: Sun Jul 10, 2016 11:16 pm
by Iceman87GT
Okay so that code didn't work, and like the previous attempts I got the following error message:

Image
.....

Also when I look back at the modified database (after importing it) using the EHM 1 Editor I'm noticing teams have reverted back to the Old Division system in the database (WPG/ATL is in the Southeast). I can't tell if this is reflected in the game because I can't see the NHL teams whenever I get the above error message.

EDIT: Do I need to specify the division changes for all the teams? because I just went back and used a TBL 7.3 database with no changes made to it whatsoever with the only modification being the Code from the previous post (Moving the WPG Jets to the Atlantic leaving the Coyotes as is, and moving the Red Wings back to the West). I figured the problem was the fact that I renamed teams but even without that the problem persists.

Re: How to switch Conferences and/or Divisions

Posted: Mon Jul 11, 2016 12:46 am
by Iceman87GT
Finally got it to work! I don't know if its because I entered in every single division change or if it would have been easier for me to simply type "National Hockey League™" into the league slot instead of the ™-less "National Hockey League". I'm about to test doing this out and will edit this post if it turns out that that works. Right now I just want to get this info out there in case someone else has this same question.


Here's the Code I used (not that anyone else will want their own Atlanta Phoenix Game:

Code: Select all

"CHANGE_TEAM_DIVISION_DATA" "Atlanta Phoenix" "National Hockey League" "National Hockey League Atlantic Division"
"CHANGE_TEAM_DIVISION_DATA" "Buffalo Sabres" "National Hockey League" "National Hockey League Atlantic Division"
"CHANGE_TEAM_DIVISION_DATA" "Florida Panthers" "National Hockey League" "National Hockey League Atlantic Division"
"CHANGE_TEAM_DIVISION_DATA" "Boston Bruins" "National Hockey League" "National Hockey League Atlantic Division"
"CHANGE_TEAM_DIVISION_DATA" "Montreal Canadiens" "National Hockey League" "National Hockey League Atlantic Division"
"CHANGE_TEAM_DIVISION_DATA" "Ottawa Senators" "National Hockey League" "National Hockey League Atlantic Division"
"CHANGE_TEAM_DIVISION_DATA" "Tampa Bay Lightning" "National Hockey League" "National Hockey League Atlantic Division"
"CHANGE_TEAM_DIVISION_DATA" "Toronto Maple Leafs" "National Hockey League" "National Hockey League Atlantic Division"
"CHANGE_TEAM_DIVISION_DATA" "New York Rangers" "National Hockey League" "National Hockey League Metropolitan Division"
"CHANGE_TEAM_DIVISION_DATA" "New York Islanders" "National Hockey League" "National Hockey League Metropolitan Division"
"CHANGE_TEAM_DIVISION_DATA" "New Jersey Devils" "National Hockey League" "National Hockey League Metropolitan Division"
"CHANGE_TEAM_DIVISION_DATA" "Washington Capitals" "National Hockey League" "National Hockey League Metropolitan Division"
"CHANGE_TEAM_DIVISION_DATA" "Pittsburgh Penguins" "National Hockey League" "National Hockey League Metropolitan Division"
"CHANGE_TEAM_DIVISION_DATA" "Philadelphia Flyers" "National Hockey League" "National Hockey League Metropolitan Division"
"CHANGE_TEAM_DIVISION_DATA" "Carolina Hurricanes" "National Hockey League" "National Hockey League Metropolitan Division"
"CHANGE_TEAM_DIVISION_DATA" "Columbus Blue Jackets" "National Hockey League" "National Hockey League Metropolitan Division"
"CHANGE_TEAM_DIVISION_DATA" "Chicago Blackhawks" "National Hockey League" "National Hockey League Central Division"
"CHANGE_TEAM_DIVISION_DATA" "St. Louis Blues" "National Hockey League" "National Hockey League Central Division"
"CHANGE_TEAM_DIVISION_DATA" "Nashville Predators" "National Hockey League" "National Hockey League Central Division"
"CHANGE_TEAM_DIVISION_DATA" "Minnesota Wild" "National Hockey League" "National Hockey League Central Division"
"CHANGE_TEAM_DIVISION_DATA" "Colorado Avalanche" "National Hockey League" "National Hockey League Central Division"
"CHANGE_TEAM_DIVISION_DATA" "Dallas Stars" "National Hockey League" "National Hockey League Central Division"
"CHANGE_TEAM_DIVISION_DATA" "Detroit Red Wings" "National Hockey League" "National Hockey League Central Division"
"CHANGE_TEAM_DIVISION_DATA" "Los Angeles Kings" "National Hockey League" "National Hockey League Pacific Division"
"CHANGE_TEAM_DIVISION_DATA" "Anaheim Ducks" "National Hockey League" "National Hockey League Pacific Division"
"CHANGE_TEAM_DIVISION_DATA" "Winnipeg Jets" "National Hockey League" "National Hockey League Pacific Division"
"CHANGE_TEAM_DIVISION_DATA" "San Jose Sharks" "National Hockey League" "National Hockey League Pacific Division"
"CHANGE_TEAM_DIVISION_DATA" "Vancouver Canucks" "National Hockey League" "National Hockey League Pacific Division"
"CHANGE_TEAM_DIVISION_DATA" "Calgary Flames" "National Hockey League" "National Hockey League Pacific Division"
"CHANGE_TEAM_DIVISION_DATA" "Edmonton Oilers" "National Hockey League" "National Hockey League Pacific Division"

And here's a version of that that mimics the actual league set up (so others can copy it and manipulate it to their liking

Code: Select all

"CHANGE_TEAM_DIVISION_DATA" "Detroit Red Wings" "National Hockey League" "National Hockey League Atlantic Division"
"CHANGE_TEAM_DIVISION_DATA" "Buffalo Sabres" "National Hockey League" "National Hockey League Atlantic Division"
"CHANGE_TEAM_DIVISION_DATA" "Florida Panthers" "National Hockey League" "National Hockey League Atlantic Division"
"CHANGE_TEAM_DIVISION_DATA" "Boston Bruins" "National Hockey League" "National Hockey League Atlantic Division"
"CHANGE_TEAM_DIVISION_DATA" "Montreal Canadiens" "National Hockey League" "National Hockey League Atlantic Division"
"CHANGE_TEAM_DIVISION_DATA" "Ottawa Senators" "National Hockey League" "National Hockey League Atlantic Division"
"CHANGE_TEAM_DIVISION_DATA" "Tampa Bay Lightning" "National Hockey League" "National Hockey League Atlantic Division"
"CHANGE_TEAM_DIVISION_DATA" "Toronto Maple Leafs" "National Hockey League" "National Hockey League Atlantic Division"
"CHANGE_TEAM_DIVISION_DATA" "New York Rangers" "National Hockey League" "National Hockey League Metropolitan Division"
"CHANGE_TEAM_DIVISION_DATA" "New York Islanders" "National Hockey League" "National Hockey League Metropolitan Division"
"CHANGE_TEAM_DIVISION_DATA" "New Jersey Devils" "National Hockey League" "National Hockey League Metropolitan Division"
"CHANGE_TEAM_DIVISION_DATA" "Washington Capitals" "National Hockey League" "National Hockey League Metropolitan Division"
"CHANGE_TEAM_DIVISION_DATA" "Pittsburgh Penguins" "National Hockey League" "National Hockey League Metropolitan Division"
"CHANGE_TEAM_DIVISION_DATA" "Philadelphia Flyers" "National Hockey League" "National Hockey League Metropolitan Division"
"CHANGE_TEAM_DIVISION_DATA" "Carolina Hurricanes" "National Hockey League" "National Hockey League Metropolitan Division"
"CHANGE_TEAM_DIVISION_DATA" "Columbus Blue Jackets" "National Hockey League" "National Hockey League Metropolitan Division"
"CHANGE_TEAM_DIVISION_DATA" "Chicago Blackhawks" "National Hockey League" "National Hockey League Central Division"
"CHANGE_TEAM_DIVISION_DATA" "St. Louis Blues" "National Hockey League" "National Hockey League Central Division"
"CHANGE_TEAM_DIVISION_DATA" "Nashville Predators" "National Hockey League" "National Hockey League Central Division"
"CHANGE_TEAM_DIVISION_DATA" "Minnesota Wild" "National Hockey League" "National Hockey League Central Division"
"CHANGE_TEAM_DIVISION_DATA" "Colorado Avalanche" "National Hockey League" "National Hockey League Central Division"
"CHANGE_TEAM_DIVISION_DATA" "Dallas Stars" "National Hockey League" "National Hockey League Central Division"
"CHANGE_TEAM_DIVISION_DATA" "Winnipeg Jets" "National Hockey League" "National Hockey League Central Division"
"CHANGE_TEAM_DIVISION_DATA" "Los Angeles Kings" "National Hockey League" "National Hockey League Pacific Division"
"CHANGE_TEAM_DIVISION_DATA" "Anaheim Ducks" "National Hockey League" "National Hockey League Pacific Division"
"CHANGE_TEAM_DIVISION_DATA" "Arizona Coyotes" "National Hockey League" "National Hockey League Pacific Division"
"CHANGE_TEAM_DIVISION_DATA" "San Jose Sharks" "National Hockey League" "National Hockey League Pacific Division"
"CHANGE_TEAM_DIVISION_DATA" "Vancouver Canucks" "National Hockey League" "National Hockey League Pacific Division"
"CHANGE_TEAM_DIVISION_DATA" "Calgary Flames" "National Hockey League" "National Hockey League Pacific Division"
"CHANGE_TEAM_DIVISION_DATA" "Edmonton Oilers" "National Hockey League" "National Hockey League Pacific Division"