Renaming Leagues

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
User avatar
Animal31
Fourth Line
Posts: 441
Joined: Tue Sep 27, 2011 2:54 am
Favourite Team: Abbotsford Heat

Renaming Leagues

Post by Animal31 »

I searched for this, couldnt find anything

But im working on some of the Junior A Canadian Leagues for fun, but I cant rename name them

Well, I can, but if I do, I get a warning on start up, and it doesnt let me loan players to teams of those leagues. They still function correctly, but not really

any advice?
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: Renaming Leagues

Post by Manimal »

Create a new league and move all the teams and leave the old league without teams
User avatar
Animal31
Fourth Line
Posts: 441
Joined: Tue Sep 27, 2011 2:54 am
Favourite Team: Abbotsford Heat

Re: Renaming Leagues

Post by Animal31 »

What about the BCHL or NCAA, where one has rostor rules, and the other has a special relationship with the CHL?
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: Renaming Leagues

Post by Manimal »

Animal31 wrote:What about the BCHL or NCAA, where one has rostor rules, and the other has a special relationship with the CHL?
That cannot be edited to a new league
User avatar
Animal31
Fourth Line
Posts: 441
Joined: Tue Sep 27, 2011 2:54 am
Favourite Team: Abbotsford Heat

Re: Renaming Leagues

Post by Animal31 »

Do you know which leagues are like that?

I have most of the Canadian leagues written down, grouped into Bantam, Midget, Junior B/C, and Junior A/AAA, as well as college, with the "special" leagues marked, but thats just canada, I still have to work on the rest
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: Renaming Leagues

Post by Alessandro »

Most leagues can't be renamed.
User avatar
archibalduk
TBL Admin Team
Posts: 20373
Joined: Tue Jul 06, 2004 8:44 pm
Custom Rank: Seaside + Fruit Juice Mode
Favourite Team: Guildford (EPL) / Invicta (NIHL)
Location: United Kingdom
Contact:

Re: Renaming Leagues

Post by archibalduk »

It depends on how determined you are to rename the hardcoded leagues. It is possible to do - I did it with the United Hockey League and Russian Superleague by renaming them to the Southern Professional Hockey League and the Kontinental Hockey League .

As mentioned by Manimal and Alessandro, many of the leagues cannot be renamed in the DB without causing the game to crash. Even if you create a new league with the name of the replaced league, the game still crashes because it expects to see certain leagues to have certain names. So the only way to change things is to change what EHM expects to see in the DB. This means that you have to open ehm2007.exe in a hex editor, search for the league you want to rename and then rename it to the new name (make a backup of your ehm2007.exe file first). Then make the same name change in your DB via the Pre-Game Editor.

By making the changes in both the exe and the DB, the name changes will work fine. However, EHM will only work with saved games that have the same league names as the exe. For example, if you have one saved game where the league is called the Russian Superleague and another saved game where the league is called the KHL, you will need to have two copies of the exe - one for each variation. The game will crash if you try to load a saved game with a differently named league. There's a more detailed thread about this here but it gets fairly technical.

Image

Image
User avatar
Animal31
Fourth Line
Posts: 441
Joined: Tue Sep 27, 2011 2:54 am
Favourite Team: Abbotsford Heat

Re: Renaming Leagues

Post by Animal31 »

I think if I get to the point of hex editing, ill just go ahead and make my own game :B
Post Reply