Custom Start Date Patch / ArtMoney Development Thread

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: 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: Changing the EHM 2007 start date using ArtMoney

Post by archibalduk »

batdad wrote:Wow. Really great work Archi. I hope that the patch is so simple an old man idiot like me can understand it and use it once all is said and done. Been following the thread since the start, and understand virtually none of it, except when you tell us something now works.
Thanks! :) Yep, I've designed the patch to be as easy as possible. You just double-click on the patch exe file, and then select your start date. Then you click on one of the launch buttons (one launches full screen and the other in windowed mode) which loads EHM and applies the patch:

Image

You do have to use the patch when you reload your saved game, but once you are beyond 1 October of the first season (or 1 July if you have Russia/Finland selected) you no longer need to use the patch to load your game.
Nikki Nine wrote:Wouldn't it be possible to write something that could merge the history database? I mean, the more that could help updating the histories, the better.
Most probably. Perhaps this could be considered in the future because, like you say, the more that can help with it the better. However, it's already a very simple thing to do manually and so the contract tool will take priority. However, I must stress that I haven't tried merging the history database into another database yet - but theoretically it should be possible.
Alessandro wrote:
archibalduk wrote:The offset that fixes the career history bug is 005F 08A2. I'll update my old post where I listed all of the offsets in the near future.
Just out of curiosity, what new value did you set?
In ArtMoney, perform a search for values set to 2006 and you'll find it. Change it to the same value as the start year. E.g. if you're going to start in the 2011/12 season then set it to 2011.

Something I haven't tested is what happens if you add history beyond the start year. Does it simply not load it or does it crash when it reaches the following season? E.g. if you add history up to the 2010/11 season then what happens if you set the start date to 2008/09 for example? Does it just not load the 08/09+ season history or will it crash at the end of the season? It'll be important to find this out before Manimal or anybody else starts adding post 05/06 histories as it could have ramifications for his database if he is still going to support the normal 2006 start date as well as the CSD Patch.
Nikki Nine
Junior League
Posts: 45
Joined: Fri Sep 05, 2008 3:16 pm
Location: Karlstad, Sweden

Re: Changing the EHM 2007 start date using ArtMoney

Post by Nikki Nine »

archibalduk wrote: Something I haven't tested is what happens if you add history beyond the start year. Does it simply not load it or does it crash when it reaches the following season? E.g. if you add history up to the 2010/11 season then what happens if you set the start date to 2008/09 for example? Does it just not load the 08/09+ season history or will it crash at the end of the season? It'll be important to find this out before Manimal or anybody else starts adding post 05/06 histories as it could have ramifications for his database if he is still going to support the normal 2006 start date as well as the CSD Patch.
Running a test on this right now.
Nikki Nine
Junior League
Posts: 45
Joined: Fri Sep 05, 2008 3:16 pm
Location: Karlstad, Sweden

Re: Changing the EHM 2007 start date using ArtMoney

Post by Nikki Nine »

I have tested it now.

I added history up to the 2010/11 season for a player, and started the game in 2008. The 2006/2007 season showed up, but nothing else.

When I simmed a season, the history that I added DID NOT show up, the game wrote it over with the in game stats.
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: Changing the EHM 2007 start date using ArtMoney

Post by archibalduk »

Nikki Nine wrote:I have tested it now.

I added history up to the 2010/11 season for a player, and started the game in 2008. The 2006/2007 season showed up, but nothing else.

When I simmed a season, the history that I added DID NOT show up, the game wrote it over with the in game stats.
Nice one! :thup: That's great news!
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: Changing the EHM 2007 start date using ArtMoney

Post by Alessandro »

I tried publishing your utility at the Fhockey forums: http://www.fhockey.com/forum/phpBB2/vie ... 4685#94685
User avatar
visualdarkness
Stanley Cup Winner
Posts: 1434
Joined: Tue Jul 15, 2008 3:14 am
Location: Surahammar, Sweden

Re: Changing the EHM 2007 start date using ArtMoney

Post by visualdarkness »

Awe...wait for it...some!
I sometimes wish I could code like you Archi. :)
goleafsgo
Junior League
Posts: 19
Joined: Tue Dec 05, 2006 8:54 pm

Re: Changing the EHM 2007 start date using ArtMoney

Post by goleafsgo »

This is Great News !!! Love To See this game as new as possible
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: Changing the EHM 2007 start date using ArtMoney

Post by archibalduk »

Alessandro wrote:I tried publishing your utility at the Fhockey forums: http://www.fhockey.com/forum/phpBB2/vie ... 4685#94685
Good idea. :thup: The more EHM 2007 owners who know about this, the better. It'll help keep many of those who are fortunate enough to own the game interested in sticking with the community.
visualdarkness wrote:I sometimes wish I could code like you Archi. :)
Hehe! :D To be honest, I know very little about coding C++. :oops: I just read some examples and tutorials online about different features I needed and kind of slotted them together after about two/three days of learning and experimenting. There are lots of good sites out there with code snippets and there are several good C++ IDEs such as Codeblocks and Microsoft Visual C++ 2010 Express which are completely free.
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: Changing the EHM 2007 start date using ArtMoney

Post by archibalduk »

I've pretty much hit a brick wall with fixing the WC bug. It seems that none of the 2006 offsets have any impact and thus far none of the 2005 offsets have an impact either (I just have four or five more 2005 offsets to try). I'm going to keep working through them, but I've no idea what the heck to do next if none of the 2003 or 2004 offsets work either... :help:

I've been wondering if I could get around the issue by rearranging the data in the nation.dat and nat_club.dat files. I've tried swapping around Afghanistan and Canada in each file and have tried swapping the primary keys between the two nations (the primary key is the unique ID number given to each record in the database). I've tried various possible combinations (e.g. just swapping the nations in the nat_club.dat file, just in the nation.dat file, both files and then various combinations of swapping and not swapping the primary keys). The best I managed to get was Team Canada in the WCs but it was made up of greyed out Canadian players. All actual Canadian players in the database played for Team Afghanistan. :grin: So it ended up as a bit of a dead end.

Interestingly, it looks as though you might be able to swap around the playable leagues by altering the nat_club.dat and/or nation.dat file(s). Perhaps you'd run into difficulties with the scheduling etc, I don't know. Still, it might be worth investigating one day.
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: Changing the EHM 2007 start date using ArtMoney

Post by Alessandro »

At that point imho you should rename afghanistan and canada in the nation.dat file
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: Changing the EHM 2007 start date using ArtMoney

Post by archibalduk »

Alessandro wrote:At that point imho you should rename afghanistan and canada in the nation.dat file
That wouldn't help because the new "Canada" would not be in the WC and the new "Afghanistan" would be. It would put us in the same position as we are now (but with some additional complications).
User avatar
Calv
TBL Admin Team
Posts: 4423
Joined: Tue Jul 06, 2004 9:02 pm
Custom Rank: Goalie....Sieve....!
Favourite Team: Team GB
Location: Manchester, UK

Re: Changing the EHM 2007 start date using ArtMoney

Post by Calv »

Any idea whether editing the British Cup is possible?

Currently Newcastle, Basingstoke & Manchester are in there with the some of the EIHL teams which is incorrect. There is no way of using the editor to do this.
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: Changing the EHM 2007 start date using ArtMoney

Post by archibalduk »

Calv wrote:Any idea whether editing the British Cup is possible?

Currently Newcastle, Basingstoke & Manchester are in there with the some of the EIHL teams which is incorrect. There is no way of using the editor to do this.
Possibly. Marek/Alessandro might be able to give some more info. Myself and Alessandro are going to start a new thread soon to ask if anybody would be interested in researching the structure and rules changes for the playable leagues. We can then work on a patch to update the structure/rules of all playable leagues.
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: Changing the EHM 2007 start date using ArtMoney

Post by archibalduk »

Oh yeah! I've fixed the WC bug!!! :party: So we now have a fully functioning start date patch!!!

I now need to narrow down precisely which offset fixed the issue (I've been trying several at once). Once I've done this, I'll invite a couple of users to privately beta test the patch before I upload it to the site.

Image

Image
Viking
Junior League
Posts: 48
Joined: Sat Aug 07, 2004 2:32 pm

Re: Changing the EHM 2007 start date using ArtMoney

Post by Viking »

I love you.
Nikki Nine
Junior League
Posts: 45
Joined: Fri Sep 05, 2008 3:16 pm
Location: Karlstad, Sweden

Re: Changing the EHM 2007 start date using ArtMoney

Post by Nikki Nine »

Viking wrote:I love you.
Seconded. Absolutely fantastic job!
User avatar
ElQuapo
Fringe Player
Posts: 393
Joined: Wed Sep 27, 2006 9:24 am
Location: Denmark

Re: Changing the EHM 2007 start date using ArtMoney

Post by ElQuapo »

archibalduk wrote:Oh yeah! I've fixed the WC bug!!!
It's official - I love you! :notworthy:
User avatar
Ogilthorpe
Minor League
Posts: 222
Joined: Tue Sep 27, 2005 5:14 am
Location: B.C. Canada

Re: Changing the EHM 2007 start date using ArtMoney

Post by Ogilthorpe »

=D> Archi =D>
User avatar
ElQuapo
Fringe Player
Posts: 393
Joined: Wed Sep 27, 2006 9:24 am
Location: Denmark

Re: Changing the EHM 2007 start date using ArtMoney

Post by ElQuapo »

Can we decide which nations are in the Elite Group, or does it have to be the same as in 2006?
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: Changing the EHM 2007 start date using ArtMoney

Post by Alessandro »

God ... you're da man archi...
User avatar
Reave
Drafted
Posts: 197
Joined: Wed Apr 15, 2009 9:59 am
Favourite Team: Färjestad BK
Location: Sweden

Re: Changing the EHM 2007 start date using ArtMoney

Post by Reave »

Way to go archi!
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: Changing the EHM 2007 start date using ArtMoney

Post by archibalduk »

Haha there's far too much love in this thread! :loveyouman: :D
ElQuapo wrote:Can we decide which nations are in the Elite Group, or does it have to be the same as in 2006?
This is something I've been thinking about too. If I can find where in nation.dat or nat_clubs.dat the previous WC positions are stored then yes it'll be possible. :nod:
User avatar
YZG
Second Line
Posts: 682
Joined: Mon Aug 16, 2010 11:17 pm
Custom Rank: DHM Head Researcher
Location: Canada

Re: Changing the EHM 2007 start date using ArtMoney

Post by YZG »

You. Are. Brilliant.

And that's quite an understatement :)

- YZG
User avatar
batdad
The Great One
Posts: 12616
Joined: Thu Aug 17, 2006 7:46 pm
Custom Rank: Mr Technology
Favourite Team: Syracuse Bulldogs.
Location: Look behind you, you peon

Re: Changing the EHM 2007 start date using ArtMoney

Post by batdad »

archibalduk wrote:Haha there's far too much love in this thread! :loveyouman: :D

I freaking hate you Archi. Now I have to figure out how to use some other kind of program on my computer. You say it is easy...I know I will find a way to mess it up. hate 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: Changing the EHM 2007 start date using ArtMoney

Post by nino33 »

Congrats Archi! Great work!

The 1974 db is going to be so much better with the correct year, correct WC teams, correct Team/League records, correct retired numbers...wow! Thanks much to you Archi and Marek
Post Reply