EHM 2007 Updater (A Pre-Game & Saved Game Editor)

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
Manimal
TBL Admin Team
Posts: 6344
Joined: Thu Apr 24, 2008 4:01 am
Custom Rank: EHM Rosters Man
Favourite Team: Djurgårdens IF
Location: Karlstad, Sweden

Re: Official Pre Game Editor Thread. All questions here plea

Post by Manimal »

rob_lee wrote:Hello!

Is there any way to make a staff into a player again?

The thing is that I am at year 2043 now and I have coached a guy from the age of 15 in a small town in sweden and followed him all over during his career in all kinds of tournaments and he is more or less a legend now. He is at my side as a ass. GM and I would love to see him play at least one game more, just as a showoff.

If anyone has any solution... any at all. PLEASE let me know! :help:
That question belongs to the Saved game editor, not the pre-game editor. I'll move the post
Sorry, but I have never used the Saved game editor so I can't answer you

EDIT: This is probably the best thread to post that question in.
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: EHM 2007 Updater (A Pre-Game & Saved Game Editor)

Post by archibalduk »

Converting a player to/from a non-player is a little complex even for pre-game editing, let alone saved game editing. It's not just simply changing a field; there's data that must be removed from some files and added to others. It's something I've wanted to add to the Updater but I've been putting it off because of the complexity. If I do eventually add it for DB editing, I'll add it for saved game editing but I can't promise it'll work for saved games.
rob_lee
Junior League
Posts: 17
Joined: Wed Aug 14, 2013 5:44 pm

Re: EHM 2007 Updater (A Pre-Game & Saved Game Editor)

Post by rob_lee »

But there isn't any way to make him into a "playing coach"? using hex codes or anything? no way by changing his age (saved game editor) and being able to give a player contract or has the function of being a player totally dissapeared?
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: EHM 2007 Updater (A Pre-Game & Saved Game Editor)

Post by nino33 »

rob_lee wrote:But there isn't any way to make him into a "playing coach"? using hex codes or anything?
Beyond Hobbit13, Lazion and maybe a couple/few others I'm not sure there's many that know how to hex edit (it's not easy! here's the thread on hex-editing http://www.ehmtheblueline.com/forums/vi ... ex_editing)

and as Archi noted
archibalduk wrote: It's not just simply changing a field; there's data that must be removed from some files and added to others.

rob_lee wrote:no way by changing his age
I don't think age would make any difference; with the 1974 database (http://www.ehmtheblueline.com/forums/vi ... 116&t=9915) I've had Pro Staff that were 5-6 years old without any apparent issue in-game....I've even had players with negative ages! (i.e. -2 as a start-up age because their DOB is two years after the in-game starting date!)


rob_lee wrote:has the function of being a player totally dissapeared?
I don't think there ever was a function to "be a player". The game is programmed so that Players can become Staff, but there's no "function" to have Staff become Players
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: EHM 2007 Updater (A Pre-Game & Saved Game Editor)

Post by archibalduk »

rob_lee wrote:But there isn't any way to make him into a "playing coach"? using hex codes or anything? no way by changing his age (saved game editor) and being able to give a player contract or has the function of being a player totally dissapeared?
Yes, he could be changed to a Player/Coach but this again requires modification of a number of files. This is why it is complex.

In relation to pre-game/database editing: Every player must have a record in a number of files; such as player.dat (attributes), player_info.dat (total stats) and club.dat (linking the player to the team's roster). To turn a non-player into a Player/Coac requires an entry in each of those files (and several more) and these entries must be correctly linked. The saved game is in a similar situation except that even more files must be changed; such as contract.dat which contains all of the contract data for each player and staff.

It's not as simple as changing a setting from Non-Player to Player/Coach. A lot of data must be added and removed from different files, indexes correctly updated and the entries correctly linked. This is complex but achievable task for database editing but with saved games it is more complex because we don't know the full details of the saved game structure. Hence you're not going to achieve what you want with the Saved Game Editor. The Updater might be able to do what you want one day, but not right now I'm afraid.
rob_lee
Junior League
Posts: 17
Joined: Wed Aug 14, 2013 5:44 pm

Re: EHM 2007 Updater (A Pre-Game & Saved Game Editor)

Post by rob_lee »

Is it of any help if I have numerous of save files? For example I started to save the files each summer for the last 7 seasons because I thought he would quit anytime now. So I still have a file of him as a player. Is that perhaps of any help in order to link some data together?
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: EHM 2007 Updater (A Pre-Game & Saved Game Editor)

Post by archibalduk »

rob_lee wrote:Is it of any help if I have numerous of save files? For example I started to save the files each summer for the last 7 seasons because I thought he would quit anytime now. So I still have a file of him as a player. Is that perhaps of any help in order to link some data together?
No I'm afraid not. It's simply a case of me writing the code for the Updater. Doing it for the database is straightforward (but time consuming) but I can't say for sure it'll work with the saved game - I'll try, but I can't promise that it won't corrupt the saved game. But unfortunately my priorities are elsewhere at the moment - FHM research and some other functions for the Updater. I will eventually add the function because it's something that does need adding, but it won't be in the immediate future.

My advice in the meantime is to keep a backup of your saved game from your present stage. Then if I can get it working for saved games, you can get your player out of retirement.
rob_lee
Junior League
Posts: 17
Joined: Wed Aug 14, 2013 5:44 pm

Re: EHM 2007 Updater (A Pre-Game & Saved Game Editor)

Post by rob_lee »

OKey, thanks for the good and quick responses anyway! I will keep an eye open for updates! :)
User avatar
Asbeen
Drafted
Posts: 161
Joined: Wed May 03, 2006 2:41 pm
Location: Gatineau
Contact:

Re: EHM 2007 Updater (A Pre-Game & Saved Game Editor)

Post by Asbeen »

Is it or will it be possible to add players to a saved 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: EHM 2007 Updater (A Pre-Game & Saved Game Editor)

Post by archibalduk »

Asbeen wrote:Is it or will it be possible to add players to a saved game?
Possibly in the future. The potential difficulty is similar to that I mentioned in relation to changing a player to a non-player, etc. I.e. I can try and add a player in the same way I'd do so with a database, but there are so many files in the saved game that I don't know what they do and so it's hard to say whether or not it'll work.

The second difficulty is that of attributes. The scale used in the saved game isn't 1-20 but is instead converted to a much wider scale in order to allow for development between attribute points. I've made a start trying to figure out the formula, but it seems pretty complex. I might be able to create some sort of rough conversion but it won't be 100% accurate.
User avatar
Asbeen
Drafted
Posts: 161
Joined: Wed May 03, 2006 2:41 pm
Location: Gatineau
Contact:

Re: EHM 2007 Updater (A Pre-Game & Saved Game Editor)

Post by Asbeen »

So maybe it would be easier to "change" a player name and attributes instead of adding one?

The game creates fictionous player so these could be change to "real new prospect" but attributes remains complicated to adjust, I guess.
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: EHM 2007 Updater (A Pre-Game & Saved Game Editor)

Post by archibalduk »

Asbeen wrote:but attributes remains complicated to adjust, I guess.
Yeah this remains the biggest challenge to overcome if any real player editing is to be possible. This thread gives an idea of what we're up against (although note that the Saved Game Editor uses a slightly different scale because of the way it has interpreted the data at byte level - although it's not technically incorrect, it doesn't follow the exact scale SI will have used in the 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: EHM 2007 Updater (A Pre-Game & Saved Game Editor)

Post by archibalduk »

I have moved our recent discussion about nation editing to here (and I've also posted a response to Rob_Lee and zbguy's recent queries): http://www.ehmtheblueline.com/forums/vi ... 83#p159283

I think that's a more suitable thread for discussion that topic.
10minmail
Junior League
Posts: 11
Joined: Fri Oct 11, 2013 7:09 pm

Re: EHM 2007 Updater (A Pre-Game & Saved Game Editor)

Post by 10minmail »

WHOA, I just this seen this. Gonna give it a shot!!
User avatar
umwoz
Minor League
Posts: 229
Joined: Fri Jan 21, 2011 7:27 pm

Re: EHM 2007 Updater (A Pre-Game & Saved Game Editor)

Post by umwoz »

Yeah I literally just made a thread hoping this was going to be possible..... wow...


Just diggin into it now, but just a question. What are the field options for "morale". Is this the in game "unhappy"(UNH) status?

Also, am I correct in assuming that any given area if left blank will just default to the value already in the db?
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: EHM 2007 Updater (A Pre-Game & Saved Game Editor)

Post by archibalduk »

umwoz wrote:Just diggin into it now, but just a question. What are the field options for "morale". Is this the in game "unhappy"(UNH) status?
Yes I think it is. I don't think this does anything if you try editing it in a DB but it should do something if you try editing it in a saved game. Try exporting the player attributes from a saved game and hopefully that'll give you an idea of the scale used (it might be 1 - 20 or it might be -127 - 128).
umwoz wrote:Also, am I correct in assuming that any given area if left blank will just default to the value already in the db?
That's correct. :)

On a related note: This is unconfirmed, but I think there may be a bug with updating Pass Tendency and Strength. It seems as though that if you try changing one of these two attributes, they are changed to zero in the DB. It might be just that my spreadsheet is formatted incorrectly because I know these two attributes were updating fine before. I need to do some proper testing to see if there is really an issue there.
User avatar
umwoz
Minor League
Posts: 229
Joined: Fri Jan 21, 2011 7:27 pm

Re: EHM 2007 Updater (A Pre-Game & Saved Game Editor)

Post by umwoz »

Made a foolish error of creating a bunch of prospects BEFORE editing the ages, so they're all a year too old(the cap's at least). When I enter the birth date in the attribute updater does it have to be exact or can I use that to edit it?
User avatar
Manimal
TBL Admin Team
Posts: 6344
Joined: Thu Apr 24, 2008 4:01 am
Custom Rank: EHM Rosters Man
Favourite Team: Djurgårdens IF
Location: Karlstad, Sweden

Re: EHM 2007 Updater (A Pre-Game & Saved Game Editor)

Post by Manimal »

umwoz wrote:Made a foolish error of creating a bunch of prospects BEFORE editing the ages, so they're all a year too old(the cap's at least). When I enter the birth date in the attribute updater does it have to be exact or can I use that to edit it?
I've never tried the DOB editing but I think you can change the years on the players there. I think you can leave month and day blank. Just try it out and you'll see
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: EHM 2007 Updater (A Pre-Game & Saved Game Editor)

Post by archibalduk »

Manimal wrote:
umwoz wrote:Made a foolish error of creating a bunch of prospects BEFORE editing the ages, so they're all a year too old(the cap's at least). When I enter the birth date in the attribute updater does it have to be exact or can I use that to edit it?
I've never tried the DOB editing but I think you can change the years on the players there. I think you can leave month and day blank. Just try it out and you'll see
Yeah that's right. You can edit any part of the DOB individually (e.g. only the year).
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: EHM 2007 Updater (A Pre-Game & Saved Game Editor)

Post by archibalduk »

archibalduk wrote:On a related note: This is unconfirmed, but I think there may be a bug with updating Pass Tendency and Strength. It seems as though that if you try changing one of these two attributes, they are changed to zero in the DB. It might be just that my spreadsheet is formatted incorrectly because I know these two attributes were updating fine before. I need to do some proper testing to see if there is really an issue there.
Turns out the issue was with my spreadsheet. I hadn't realised that the numbers were decimals in my spreadsheet (e.g. 11.038742) because they were only displaying to zero decimal places. The Updater doesn't like these figures (except for imperial height and weight). It only likes whole numbers. I removed the decimal places from my spreadsheet and it worked fine.
User avatar
thegreaterikku
Junior League
Posts: 27
Joined: Fri Aug 12, 2011 5:36 pm
Location: Quebec, Canada

Re: EHM 2007 Updater (A Pre-Game & Saved Game Editor)

Post by thegreaterikku »

Just to know, it's impossible to view/add/change player rights right?

I scanned every file and I was wondering where that info was until I found one with a bunch of -1, so my guess it's not done yet?
User avatar
umwoz
Minor League
Posts: 229
Joined: Fri Jan 21, 2011 7:27 pm

Re: EHM 2007 Updater (A Pre-Game & Saved Game Editor)

Post by umwoz »

Made my spreadsheet in CSV format, yet every time I try to import it says Imported 0 and changes nothing... any tips?
User avatar
Manimal
TBL Admin Team
Posts: 6344
Joined: Thu Apr 24, 2008 4:01 am
Custom Rank: EHM Rosters Man
Favourite Team: Djurgårdens IF
Location: Karlstad, Sweden

Re: EHM 2007 Updater (A Pre-Game & Saved Game Editor)

Post by Manimal »

thegreaterikku wrote:Just to know, it's impossible to view/add/change player rights right?

I scanned every file and I was wondering where that info was until I found one with a bunch of -1, so my guess it's not done yet?
It is not part of the Updater yet
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: EHM 2007 Updater (A Pre-Game & Saved Game Editor)

Post by archibalduk »

umwoz wrote:Made my spreadsheet in CSV format, yet every time I try to import it says Imported 0 and changes nothing... any tips?
Email your spreadsheet to me and I'll take a look for you: archibalduk AT gmail DOT com
User avatar
umwoz
Minor League
Posts: 229
Joined: Fri Jan 21, 2011 7:27 pm

Re: EHM 2007 Updater (A Pre-Game & Saved Game Editor)

Post by umwoz »

sent.
Post Reply