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
nino33
Mr. Goalie
Posts: 6088
Joined: Sat Aug 07, 2010 3:37 am
Custom Rank: Retro Rosters Specialist
Favourite Team: 1970s hockey

Re: Custom Start Date Patch / ArtMoney Development Thread

Post by nino33 »

Viking wrote:How many players have been drafted since 2006? A thousand?
Used the hockey db site...

211 players drafted in 2007
211 players drafted in 2008
211 players drafted in 2009
210 players drafted in 2010
211 players drafted in 2011

1054 players drafted since 2006
painkiller89
Junior League
Posts: 10
Joined: Sat Mar 05, 2011 2:55 pm

Re: Custom Start Date Patch / ArtMoney Development Thread

Post by painkiller89 »

how does it work for you with the database and when do you make it clear? :-)
Hobbit13
Junior League
Posts: 37
Joined: Fri Jul 13, 2007 12:05 pm
Custom Rank: UUDB & Hex Man!

Re: Custom Start Date Patch / ArtMoney Development Thread

Post by Hobbit13 »

Hey guys so I'm back! I actually returned 2 weeks ago from Peru but just last week I started uni in Bristol and haven't really had larger amounts of free time until now. I have however been following your progress and it's great to see you've been able to solve so many of the issues!

I'll try to do some more work on finding out about league structures but I don't think I'll have much time for at least the next week...

So how did you solve the WC bug? Did you find some 2003 or 2004 date?
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: Custom Start Date Patch / ArtMoney Development Thread

Post by Alessandro »

When will u be online at msn
User avatar
Lazion
Second Line
Posts: 661
Joined: Tue Oct 23, 2007 5:34 pm
Favourite Team: Flyers

Re: Custom Start Date Patch / ArtMoney Development Thread

Post by Lazion »

archibalduk wrote:[*]No draft eligible players for the end of season 1 CHL draft (link
If anyone else hasn't noticed.. Most of the new-gens are born between 1986-92 no matter of what the starting year is.
There must be some sort of value in there which determines new-gens birth years.. :cry:
User avatar
YZG
Second Line
Posts: 682
Joined: Mon Aug 16, 2010 11:17 pm
Custom Rank: DHM Head Researcher
Location: Canada

Re: Custom Start Date Patch / ArtMoney Development Thread

Post by YZG »

Are you sure? When I tested the game, the regens had adequate birth dates; I tested the thing with a start date of 2050 and had no problem with this. However, it is normal that for the first few seasons, you have a lack of draftable players if you haven't tweaked your db beforehand, because all those in the db that should have been draftable have become too old with the patching, and because the regens take some time to appear and when they do, they're too young to be picked right away. The first two NHL drafts were empty with 0 player picked, and the third one saw a couple hundred young players from obscure hockey nations being picked because they spawn older than the others and are thus draft-eligible faster.

- YZG
User avatar
Lazion
Second Line
Posts: 661
Joined: Tue Oct 23, 2007 5:34 pm
Favourite Team: Flyers

Re: Custom Start Date Patch / ArtMoney Development Thread

Post by Lazion »

My bad.
I did not ment regens, but team filler gens, which appears right when you start a new game.


There is also appearing an error after few days if starting date is beyond 1950.
Even tho this is not a big deal. :-#
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: Custom Start Date Patch / ArtMoney Development Thread

Post by archibalduk »

I've been working on creating a mass contract tool that will increase/decrease all of the contract expiries in the database to whatever you want. It seems as though I've now got it to work correctly! :joy: I don't have much time to give it a proper test out and so I've uploaded a modified database here in case anybody wants to give it a go (it's the file named Lidas 3.2 CSD v2).

The tool doesn't alter any contract expiries that are set to 1900 (i.e. random) - it just alters those that are set as 1901 or higher. Also, if you try to decrease the expiry to less than 1901 then it'll set that contract as 1900. If, for example, you use my tool to decrease the expiries by something like 150 years then it will set all of the expiries to 1900 (i.e. random) - this might be useful for those working on fantasy databases.

If anybody gives my modified database a test then let me know if you think it's working okay (i.e. have the players got the correct contract lengths with a 2011 start date). :-)
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: Custom Start Date Patch / ArtMoney Development Thread

Post by Alessandro »

I'm gonna test it.
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: Custom Start Date Patch / ArtMoney Development Thread

Post by Alessandro »

Contracts work
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: Custom Start Date Patch / ArtMoney Development Thread

Post by archibalduk »

Alessandro wrote:Contracts work
Thanks as always. :thup: :)
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: Custom Start Date Patch / ArtMoney Development Thread

Post by archibalduk »

archibalduk wrote:No draft eligible players for the end of season 1 CHL draft (link)
I've resolved this issue. It's now just a matter of narrowing down exactly which offset resolves it (I test a spread of offsets at a time in order to speed up testing).
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: Custom Start Date Patch / ArtMoney Development Thread

Post by Alessandro »

Excellent!
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: Custom Start Date Patch / ArtMoney Development Thread

Post by Alessandro »

Btw, you said in another forum that goalies histories don't work. Well, they do. Just tested!
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: Custom Start Date Patch / ArtMoney Development Thread

Post by archibalduk »

Alessandro wrote:Btw, you said in another forum that goalies histories don't work. Well, they do. Just tested!
Ha you're so on the ball when it comes to testing! =D>

I wonder what is going on with Manimal's rosters... Hopefully he'll be able to provide me with a copy of the DB so that I can get to the root of the problem.
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: Custom Start Date Patch / ArtMoney Development Thread

Post by archibalduk »

archibalduk wrote:
archibalduk wrote:No draft eligible players for the end of season 1 CHL draft (link)
I've resolved this issue. It's now just a matter of narrowing down exactly which offset resolves it (I test a spread of offsets at a time in order to speed up testing).
Fixed! Offset 0054 96A6 is the relevant offset (it is located within the database.cpp section of the exe). This is set to <start year>.

Here's an updated task list:
  • Patch is incompatible with Windows XP [This has now been resolved and I have released a temporary XP patch whilst XP users are awaiting v1.2 (link)]
  • No host for the WCJ Div 1 in season 1 recorded in the competition history (I also need to check the two continental competitions)
  • No draft eligible players for the end of season 1 CHL draft (link) [This has now been resolved and will be incorporated into v1.2]
  • Competition player/team records lost? (link) [This was not a CSD-related issue. This has always been an issue with EHM - many records in EHM are blank and some do not appear]
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: Custom Start Date Patch / ArtMoney Development Thread

Post by archibalduk »

Alessandro wrote:Btw, you said in another forum that goalies histories don't work. Well, they do. Just tested!
I took a look at the database and the issue was that the number of Games Played for the goalies had not been set. If the GP is set to zero then the history entry doesn't appear in game. Thus, as far as I can tell, the histories are working as they should using the CSD Patch.
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: Custom Start Date Patch / ArtMoney Development Thread

Post by Alessandro »

GREAT NEWS
Me and Marek managed to expand the Austrian league to 10 teams. 100% working, multiple seasons tested.
Nikki Nine
Junior League
Posts: 45
Joined: Fri Sep 05, 2008 3:16 pm
Location: Karlstad, Sweden

Re: Custom Start Date Patch / ArtMoney Development Thread

Post by Nikki Nine »

Wow, that's impressive. Good work!

Have you tried decreasing the number of teams? Will you?
Viking
Junior League
Posts: 48
Joined: Sat Aug 07, 2004 2:32 pm

Re: Custom Start Date Patch / ArtMoney Development Thread

Post by Viking »

Alessandro wrote:GREAT NEWS
Me and Marek managed to expand the Austrian league to 10 teams. 100% working, multiple seasons tested.
That is great new. Good job!
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: Custom Start Date Patch / ArtMoney Development Thread

Post by archibalduk »

Alessandro wrote:GREAT NEWS
Me and Marek managed to expand the Austrian league to 10 teams. 100% working, multiple seasons tested.
Oh boy! This is great news. Well done!!! =D> It feels like we'll all be able to experience a much improved EHM thanks to your work. :thup:

If you send me the list of offsets and values then I'll add it to the next beta version of the league patch (which I'll do my best to have ready for you by the end of tomorrow).
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: Custom Start Date Patch / ArtMoney Development Thread

Post by Alessandro »

Nikki Nine wrote:Wow, that's impressive. Good work!

Have you tried decreasing the number of teams? Will you?
What league needs less teams?
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: Custom Start Date Patch / ArtMoney Development Thread

Post by Alessandro »

archibalduk wrote:
Alessandro wrote:GREAT NEWS
Me and Marek managed to expand the Austrian league to 10 teams. 100% working, multiple seasons tested.
Oh boy! This is great news. Well done!!! =D> It feels like we'll all be able to experience a much improved EHM thanks to your work. :thup:

If you send me the list of offsets and values then I'll add it to the next beta version of the league patch (which I'll do my best to have ready for you by the end of tomorrow).
Hm, knowing offsets and values is beyond my skills, I worked with hex editing, better if we wait Marek for this.
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: Custom Start Date Patch / ArtMoney Development Thread

Post by archibalduk »

Alessandro wrote:Hm, knowing offsets and values is beyond my skills, I worked with hex editing, better if we wait Marek for this.
Ok sure I'll wait for Marek.

Hex editing is the same as offsets and values. When you edit hex, each hex has an address/offset (e.g. 0x7D11C0 or 007D11C0) and the value is either a decimal number (such as 2006) or a hex number (such as 07D6). However I guess what you mean is that you edited the exe rather than the RAM?
Viking
Junior League
Posts: 48
Joined: Sat Aug 07, 2004 2:32 pm

Re: Custom Start Date Patch / ArtMoney Development Thread

Post by Viking »

Alessandro wrote:What league needs less teams?
Swedish Allsvenskan (or HockeyAllsvenskan) now has 14 teams, it has 16 in the game.
Post Reply