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.
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?
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..
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.
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! 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).
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).
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!
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.
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]
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.
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!!! It feels like we'll all be able to experience a much improved EHM thanks to your work.
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).
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!!! It feels like we'll all be able to experience a much improved EHM thanks to your work.
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.
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?