Editing league structures & rules using a hex editor / ArtMoney

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

Re: Editing league structures & rules using a hex editor / A

Post by archibalduk »

Hobbit13 wrote:You're gonna have to run the superpatch file every time you load up EHM if you want to play with the updated rules. Also your DB has to have 12 teams in the EBEL.
You'll also need to run the CSD Patch if you want to change the start date. Eventually I'll try and merge the SuperPatch into a version of the CSD Patch.

I'll try and write the patch for converting the database (ie changing the EBEL to 12 teams) this week.
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: Editing league structures & rules using a hex editor / A

Post by Alessandro »

Superpatch 2 seems to work! I just started a sim though, so let's see what happens after a couple of seasons. We'll need other teams to be moved around, though, I will write it later today
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:

Re: Editing league structures & rules using a hex editor / A

Post by archibalduk »

Thanks, that would be great. I want to try and finish the first version of the DB patcher this evening.
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: Editing league structures & rules using a hex editor / A

Post by Alessandro »

Reached season 3 without errors!
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:

Re: Editing league structures & rules using a hex editor / A

Post by archibalduk »

archibalduk wrote:Thanks, that would be great. I want to try and finish the first version of the DB patcher this evening.
Gah I was so close to finishing the patcher this evening. I got home late, managed to get most of it done, but now I have to go out for a while. I think it might not be until this weekend until I get a chance to finish this as I'm busy each evening from tomorrow until Friday. ](*,)
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: Editing league structures & rules using a hex editor / A

Post by Alessandro »

Well, no probz, I'm gonna write you the list anyway. Just 4 teams, I just optimized the db to support this
EC Dornbirn Bulldogs > Austrian Erste Bank Eishockey Liga
HDD Olimpija Ljubljana > Austrian Erste Bank Eishockey Liga
Orli Znojmo > Austrian Erste Bank Eishockey Liga
HC Tiroler Wasserkraft Innsbruck > Austrian Erste Bank Eishockey Liga
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:

Re: Editing league structures & rules using a hex editor / A

Post by archibalduk »

Here you go: http://sdrv.ms/NSrqW1

Run the DB Patcher in the same folder as your database and you can convert the DB to/from the SuperPatch.

I noticed in a previous post you mentioned that we needed HK Partizan Beograd to move to the Slovenian Elite League and so I have incorporated this change as well as the four Austrian teams.

I haven't had much time to test, but I simmed 14 games into the season and all seemed okay. However, I did notice this on the League Info Screen:

Image

I have updated purely the "Current Division" setting for each team. Is there anything additional I was supposed to update?
Hobbit13
Junior League
Posts: 37
Joined: Fri Jul 13, 2007 12:05 pm
Custom Rank: UUDB & Hex Man!

Re: Editing league structures & rules using a hex editor / A

Post by Hobbit13 »

You should change other division as well, otherwise the teams will be split up like in the screenshot you posted
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: Editing league structures & rules using a hex editor / A

Post by Alessandro »

Partizan is already in the Slovenian Elite League, so you can skip that point. And as our Hobbit pointed out, you need to change every division, not just the Current Division field
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:

Re: Editing league structures & rules using a hex editor / A

Post by archibalduk »

Hobbit13 wrote:You should change other division as well, otherwise the teams will be split up like in the screenshot you posted
Alessandro wrote:Partizan is already in the Slovenian Elite League, so you can skip that point. And as our Hobbit pointed out, you need to change every division, not just the Current Division field
Okay thanks. I will update the code.
User avatar
CM0304
Prospect
Posts: 82
Joined: Mon Nov 21, 2011 2:55 am

Re: Editing league structures & rules using a hex editor / A

Post by CM0304 »

Archi is the best site-holder I have ever seen :thup:
Alex
Learning to skate
Posts: 1
Joined: Mon Oct 01, 2012 1:50 pm

Re: Editing league structures & rules using a hex editor / A

Post by Alex »

Please! Any one can place here tutorial how the hell change Russian Super League from 19 teams to 26??? Place screenshots how to do that! Thank you.
User avatar
nino33
Mr. Goalie
Posts: 6088
Joined: Sat Aug 07, 2010 3:37 am
Custom Rank: Retro Rosters Specialist
Favourite Team: 1970s hockey

Re: Editing league structures & rules using a hex editor / A

Post by nino33 »

Alex wrote:Please! Any one can place here tutorial how the hell change Russian Super League from 19 teams to 26??? Place screenshots how to do that! Thank you.
Have you made any effort to search/read what's available about hexediting?
http://www.ehmtheblueline.com/forums/vi ... 110&t=8142
http://www.ehmtheblueline.com/forums/vi ... 110&t=8142

IIRC no one has yet done what you're asking for (things like schedules and playoff formatting are still issues...and the RSL being programmed to add a team after season 1 is also a challenge)

Hobbit13/Alessandro with a bit of help from Archi have developed a patch that helps update the hockey world, you might want to check it out
http://www.ehmtheblueline.com/forums/vi ... =13&t=8739


Regards
langmartin
Learning to skate
Posts: 4
Joined: Wed Feb 13, 2013 2:18 pm

Re: Editing league structures & rules using a hex editor / A

Post by langmartin »

Please advise me how to activate the Austrian league to 12 teams. Teams are loaded but still plays ligi only 8 teams. Thanks for your help
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:

Re: Editing league structures & rules using a hex editor / A

Post by archibalduk »

You need to use the Pre-Game Editor to add four teams to the Austrian League. Then each time you load EHM, you need to load this (at the point when you're at the main menu in game but just before you click on the Load Save Game button): http://www.ehmtheblueline.com/forums/vi ... 33#p144833
langmartin
Learning to skate
Posts: 4
Joined: Wed Feb 13, 2013 2:18 pm

Re: Editing league structures & rules using a hex editor / A

Post by langmartin »

I added the editor through 4 teams despite EHM DB patcher superpatch me not to open. The menu in the game we will show all 12 league teams play again but only 8 team :-( I do not know what to do next :notworthy:
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: Editing league structures & rules using a hex editor / A

Post by Alessandro »

Read very well the instructions and follow them strictly every time you want to play EHM. They will work.
langmartin
Learning to skate
Posts: 4
Joined: Wed Feb 13, 2013 2:18 pm

Re: Editing league structures & rules using a hex editor / A

Post by langmartin »

My approach is that I open the editor edit the number of teams. I'll load the game . Then I save editor and I load a new game
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:

Re: Editing league structures & rules using a hex editor / A

Post by archibalduk »

langmartin wrote:My approach is that I open the editor edit the number of teams. I'll load the game . Then I save editor and I load a new game
Did you download the patch I linked to in previous post?
langmartin
Learning to skate
Posts: 4
Joined: Wed Feb 13, 2013 2:18 pm

Re: Editing league structures & rules using a hex editor / A

Post by langmartin »

These teams will install DB patcher , but does not superpatch
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:

Re: Editing league structures & rules using a hex editor / A

Post by archibalduk »

Sorry, my mistake. The patch you need is the one mentioned previously by Nino:
nino33 wrote:Hobbit13/Alessandro with a bit of help from Archi have developed a patch that helps update the hockey world, you might want to check it out
http://www.ehmtheblueline.com/forums/vi ... =13&t=8739


Regards
User avatar
Primis
Freeware Moderator
Posts: 1698
Joined: Tue Aug 03, 2010 7:46 pm
Location: Michigan, USA

Re: Editing league structures & rules using a hex editor / A

Post by Primis »

Can we get a crib sheet somewhere compiling all the editable values that have been found so far, maybe as a Sticky atop the Data Editing forum? Reading back through this thread I didn't know anyone had ever found the Vet Games Limit values and such. There's a lot more progress on things than I remember.
User avatar
Primis
Freeware Moderator
Posts: 1698
Joined: Tue Aug 03, 2010 7:46 pm
Location: Michigan, USA

Re: Editing league structures & rules using a hex editor / A

Post by Primis »

Hmmm, so I went in on my hex editor (XVI32 is my weapon of choice) and changed ALL instances of "C6 06 00" to "C6 06 04" just to see if it'd even take in any leagues (add a 4 foreigner rule) and it showed it changed 55 instances of that string, which was..... way more than I expected and worried me.

So I load EHM and try to start a new game and it errors out: "Fatal. v3.0.4 select_leagues_screen.cpp 85".

Do we have a list to correlate where these values are for each league? Individually changing them in the .EXE I tried 7 or 8 different instances and tested by loading a new game, and never saw them have an effect anywhere I looked, and I am not up for trying and testing 55 individual times.

I'm obviously either just stupid, or confused. Possibly both? Can someone shed light on where I'm going wrong?


EDIT: Nevermind, I am dumb. Was going about it all wrong.

*sigh* I found Hobbit's other hex-editing thread and values and simply swapped the values listed here:
http://www.ehmtheblueline.com/forums/vi ... 59#p127559

Was making it way too hard/complicated. Swapping the NHL's with Finland's 4 foreigner limit and boom... worked like a charm the first time.
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: Editing league structures & rules using a hex editor / A

Post by Alessandro »

Primis wrote:Hmmm, so I went in on my hex editor (XVI32 is my weapon of choice) and changed ALL instances of "C6 06 00" to "C6 06 04" just to see if it'd even take in any leagues (add a 4 foreigner rule) and it showed it changed 55 instances of that string, which was..... way more than I expected and worried me.

So I load EHM and try to start a new game and it errors out: "Fatal. v3.0.4 select_leagues_screen.cpp 85".

Do we have a list to correlate where these values are for each league? Individually changing them in the .EXE I tried 7 or 8 different instances and tested by loading a new game, and never saw them have an effect anywhere I looked, and I am not up for trying and testing 55 individual times.

I'm obviously either just stupid, or confused. Possibly both? Can someone shed light on where I'm going wrong?


EDIT: Nevermind, I am dumb. Was going about it all wrong.

*sigh* I found Hobbit's other hex-editing thread and values and simply swapped the values listed here:
http://www.ehmtheblueline.com/forums/vi ... 59#p127559

Was making it way too hard/complicated. Swapping the NHL's with Finland's 4 foreigner limit and boom... worked like a charm the first time.
So are you enjoying your league? Please notice that Canadian teams won't have US players as foreigners and vice versa. Share with us some screenshots :)
User avatar
Primis
Freeware Moderator
Posts: 1698
Joined: Tue Aug 03, 2010 7:46 pm
Location: Michigan, USA

Re: Editing league structures & rules using a hex editor / A

Post by Primis »

Alessandro wrote:So are you enjoying your league? Please notice that Canadian teams won't have US players as foreigners and vice versa. Share with us some screenshots :)
No, because I got it done at 1:30am my time and then just went to bed after testing it. ;-) I should have done it earlier but I was playing the Diablo III demo on XBox instead. That was part of my problem too I think: I was messing around in a hex editor after midnight and that's never a great idea with me because my brain isn't at full functionality..

I need to get a DB ready in the pre-game editor (move SM Liiga, SEL, KHL teams, etc to replace some NHL teams) and then I can start a game. If I get ambitious I'll go in and change the AHL to a similar setup and thengive new affiliations between the two.

The problems that I still see potentially will be with the AI. The AI doesn't seem to handle vet limits very well, for instance in the AHL when you blank out team rosters (they'll signs 15 vets even though they can only dress 5, and play with half-full rosters) so I don't now how the AI will handle signing and drafting guys with limits in place.

And yeah I remember from trying this in the RSL/KHL before that the game doesn't distinguish between Americans and Canadians. That's annoying in a way, but also not a big deal to me personally at least because my main goal was to get the European teams mixed in there and see what happens. With 30 teams I may toss in some teams from weird nations just for fun.


My next thing to fiddle with then will be vet limits in the AHL and ECHL. I often play games in the AHL with unaffiliated, blanked-out teams and it might be fun to not have any vet limits and see what the level of play is like then.
Post Reply