Page 11 of 18

Re: Changing the EHM 2007 start date using ArtMoney

Posted: Sat Sep 24, 2011 10:02 am
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.

Re: Changing the EHM 2007 start date using ArtMoney

Posted: Sat Sep 24, 2011 10:33 am
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.

Re: Changing the EHM 2007 start date using ArtMoney

Posted: Sat Sep 24, 2011 12:00 pm
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.

Re: Changing the EHM 2007 start date using ArtMoney

Posted: Sat Sep 24, 2011 12:06 pm
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!

Re: Changing the EHM 2007 start date using ArtMoney

Posted: Sun Sep 25, 2011 8:49 am
by Alessandro
I tried publishing your utility at the Fhockey forums: http://www.fhockey.com/forum/phpBB2/vie ... 4685#94685

Re: Changing the EHM 2007 start date using ArtMoney

Posted: Sun Sep 25, 2011 12:32 pm
by visualdarkness
Awe...wait for it...some!
I sometimes wish I could code like you Archi. :)

Re: Changing the EHM 2007 start date using ArtMoney

Posted: Sun Sep 25, 2011 2:55 pm
by goleafsgo
This is Great News !!! Love To See this game as new as possible

Re: Changing the EHM 2007 start date using ArtMoney

Posted: Sun Sep 25, 2011 3:43 pm
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.

Re: Changing the EHM 2007 start date using ArtMoney

Posted: Sun Sep 25, 2011 4:44 pm
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.

Re: Changing the EHM 2007 start date using ArtMoney

Posted: Sun Sep 25, 2011 6:03 pm
by Alessandro
At that point imho you should rename afghanistan and canada in the nation.dat file

Re: Changing the EHM 2007 start date using ArtMoney

Posted: Sun Sep 25, 2011 6:11 pm
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).

Re: Changing the EHM 2007 start date using ArtMoney

Posted: Sun Sep 25, 2011 6:34 pm
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.

Re: Changing the EHM 2007 start date using ArtMoney

Posted: Sun Sep 25, 2011 6:55 pm
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.

Re: Changing the EHM 2007 start date using ArtMoney

Posted: Mon Sep 26, 2011 7:58 pm
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

Re: Changing the EHM 2007 start date using ArtMoney

Posted: Mon Sep 26, 2011 8:05 pm
by Viking
I love you.

Re: Changing the EHM 2007 start date using ArtMoney

Posted: Mon Sep 26, 2011 8:46 pm
by Nikki Nine
Viking wrote:I love you.
Seconded. Absolutely fantastic job!

Re: Changing the EHM 2007 start date using ArtMoney

Posted: Mon Sep 26, 2011 8:50 pm
by ElQuapo
archibalduk wrote:Oh yeah! I've fixed the WC bug!!!
It's official - I love you! :notworthy:

Re: Changing the EHM 2007 start date using ArtMoney

Posted: Mon Sep 26, 2011 8:51 pm
by Ogilthorpe
=D> Archi =D>

Re: Changing the EHM 2007 start date using ArtMoney

Posted: Mon Sep 26, 2011 8:52 pm
by ElQuapo
Can we decide which nations are in the Elite Group, or does it have to be the same as in 2006?

Re: Changing the EHM 2007 start date using ArtMoney

Posted: Mon Sep 26, 2011 8:55 pm
by Alessandro
God ... you're da man archi...

Re: Changing the EHM 2007 start date using ArtMoney

Posted: Mon Sep 26, 2011 8:57 pm
by Reave
Way to go archi!

Re: Changing the EHM 2007 start date using ArtMoney

Posted: Mon Sep 26, 2011 9:09 pm
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:

Re: Changing the EHM 2007 start date using ArtMoney

Posted: Mon Sep 26, 2011 11:23 pm
by YZG
You. Are. Brilliant.

And that's quite an understatement :)

- YZG

Re: Changing the EHM 2007 start date using ArtMoney

Posted: Tue Sep 27, 2011 12:22 am
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.

Re: Changing the EHM 2007 start date using ArtMoney

Posted: Tue Sep 27, 2011 12:55 am
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