create a new database from a prior saved game

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
proxomat
Junior League
Posts: 9
Joined: Wed Feb 17, 2010 12:26 pm
Location: Germany

create a new database from a prior saved game

Post by proxomat »

Is it possible to extract a new playable database from a prior saved game?

I am playing an EHM2007 game for more than 60 seasons. What I want is to use the generated players and data in a new game.
So I think I need to create a new database first at all. How can I manage that? Is there a tool out for that?

And btw, is it possible to use this new created database with the new EHM 2015?
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: create a new database from a prior saved game

Post by archibalduk »

Unfortunately it is not really possible. In theory, much of the EHM 2007 saved game could be exported and then imported into a new database. However, it would be missing a lot of data (such as career histories). The big issue is that player attributes in EHM 2007 saved games are somehow encoded and nobody has ever been able to figure out how to decode them back into a human-readable format. You might just be able to export the players' Current Ability, Potential Ability, positions, etc but you'd be missing most/all of the attributes.

Doing this with an EHM 1 saved game is a little more feasible because the player attributes are no longer encoded. But you'd still have things like career histories missing.
proxomat
Junior League
Posts: 9
Joined: Wed Feb 17, 2010 12:26 pm
Location: Germany

Re: create a new database from a prior saved game

Post by proxomat »

Thanks, a lot for your answer.
It's a shame, because all the data must be located in the saved game.

What I just did, was to export all data with the TBL EHM Updater.
So i've got some files and spec. the attributes file contains all the players data (nearly 15000 lines).
For me, it looks like the first step is done.
Now i just need to import this player data in a new database.
How does this work?

So, if it's possible to import this data into a new database, everything worked for me.
Now I should be able to start a new game with the players and the attributes from my old savegame file from Dec. 2080 ;-).
All the historical data and the game rules etc. is not so important for me.
I would love to start now with a fantasy draft.
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: create a new database from a prior saved game

Post by archibalduk »

As I mentioned previously, the attributes are encoded in a way we do not know how to decode. If you take a look at your spreadsheet you will see that the attributes are not in the 1-20 range and they appear as an apparently random jumble of numbers.

Note that your spreadsheet probably includes any human GMs from your game so you'll need to remove these from the sheet (they might be at the very end of the spreadsheet, but I'm not sure).

To import any players/non-players/attributes into an EHM 1 database, you will need to use the EHM 1 Editor. Our Introduction to Researching Guide should explain how to import player/non-player data into the database. You will need to retire all of the existing players in the database if you want to start afresh. I hope there will be a free-agent utility in the next version of the Editor but, for now, you'd have to manually set them all to retired using a spreadsheet (you can export a list of players and non-players from the EHM 1 database using the Editor and then re-import with "_Retire" in the Job For Club column (leave all other columns blank aside from the Name and DOB columns)).
Post Reply