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.
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!
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.
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.
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?
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
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.
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?
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.
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.
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).
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.
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?
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
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).
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.