[player_info.dat] Player Info Generator

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
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: [player_info.dat] Player Info tab in the Editor

Post by archibalduk »

I tried creating a new free agent using the Pre Game Editor and set him to 50 Canadian Junior games. I then used the FREE_AGENT_MOVE in extra_config for him to move to a Hockey East Team. When I loaded up EHM, the player moved to the team on 1st September as planned. I tried doing it again but also added a 2010/11 career history entry with the Red Deer Rebels with 50 games. Nonetheless the player still moved to the team.

So having Canadian Junior games didn't prevent the player signing with an NCAA team (using extra_config at least). :-?
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: [player_info.dat] Player Info tab in the Editor

Post by Manimal »

Try having him with NA major junior games played

I have been looking at the professional games. This is the number used by NA minor pro leagues to set their veteran status(and development status in the UHL). The thing is, the game counts more european leagues as professional than the NA-leagues does IRL.
I checked this with the default database, as well.
It has no big effect on thegame, however. Only a handful of guys in each league gets the wrong status
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: [player_info.dat] Player Info tab in the Editor

Post by archibalduk »

Ovechkin has also appeared in my game in the top ten NHL most points by a rookie record. Weirdly, he is listed for the record with 15 points for 2011/12. However he has scored 39 points so far in the regular season. It almost seems that the game was counting his points up until a certain date but then stopped.
Manimal wrote:I have been looking at the professional games. This is the number used by NA minor pro leagues to set their veteran status(and development status in the UHL). The thing is, the game counts more european leagues as professional than the NA-leagues does IRL.
If you tell me which leagues we have listed as pro but are not counted IRL then I will remove them from the list. I think we go by what is accurate rather than what the game has done in the past.
Manimal wrote:Try having him with NA major junior games played
I'm trying it at the moment. :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: [player_info.dat] Player Info tab in the Editor

Post by archibalduk »

archibalduk wrote:
Manimal wrote:Try having him with NA major junior games played
I'm trying it at the moment. :thup:
I tried creating a player with three seasons of NA major junior experience but alas his FREE_AGENT_TRANSFER still went through. I didn't add any career history to him - I just edited his Player Info.
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: [player_info.dat] Player Info tab in the Editor

Post by nino33 »

Maybe there's a hierarchy, and the "Transfer" supersedes everything else? So regardless of "stats" if there's a transfer in the Extra_Config file the transfer occurs...

User Malmsten83 has been posting results in the 1974 DB Thread about his testing of the use of the Extra-Config file to keep Europeans in Europe (by having a transfer occur to the player's same European club years after start-up).......seems to work, as if a Transfer in the Extra_Config is superseding all other possibilities
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: [player_info.dat] Player Info tab in the Editor

Post by Manimal »

nino33 wrote:Maybe there's a hierarchy, and the "Transfer" supersedes everything else? So regardless of "stats" if there's a transfer in the Extra_Config file the transfer occurs...

User Malmsten83 has been posting results in the 1974 DB Thread about his testing of the use of the Extra-Config file to keep Europeans in Europe (by having a transfer occur to the player's same European club years after start-up).......seems to work, as if a Transfer in the Extra_Config is superseding all other possibilities
Transfers from Europe to NHL does not work properly, though. Otherwise, it seems to be the case.
Archi, does your test player stay with his college team and play games for them?
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: [player_info.dat] Player Info tab in the Editor

Post by archibalduk »

Manimal wrote:Transfers from Europe to NHL does not work properly, though. Otherwise, it seems to be the case.
Archi, does your test player stay with his college team and play games for them?
The player who had 50 Canadian junior games played a whole season in the Hockey East before being drafted and signed with the Caps (I set his PA as 90 so was surprised to see him signed by the Caps so soon).

I haven't seen whether the NA major junior player plays any games. I'll have a look tomorrow... He joined the team no problem though.
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: [player_info.dat] Player Info tab in the Editor

Post by archibalduk »

Version 1.0 of the Generator can be downloaded here: http://www.ehmtheblueline.com/forums/vi ... =88&t=9213

This version features a number of behind the scenes improvements compared with the previous beta version released.

If anybody has any feedback on which leagues should or should not be regarded as professional then please do let me know so that I can update the sample configuration file.
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: [player_info.dat] Player Info Generator

Post by Alessandro »

Excellent job Archie, as usual :notworthy:
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: [player_info.dat] Player Info Generator

Post by nino33 »

Alessandro wrote:Excellent job Archie
Agreed!
Alessandro wrote:as usual
So true!
User avatar
Tasku
TBL Admin Team
Posts: 8158
Joined: Sat Jul 10, 2004 9:36 pm
Custom Rank: W-WPoTBLfaSaD
Favourite Team: WSH Capitals
Location: Finland

Re: [player_info.dat] Player Info Generator

Post by Tasku »

nino33 wrote:
Alessandro wrote:Excellent job Archie
Agreed!
Most definately!
nino33 wrote:
Alessandro wrote:as usual
So true!
Yes sir!
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: [player_info.dat] Player Info Generator

Post by archibalduk »

Thanks for the kind words. :)

Btw, whilst I remember: I mentioned before that ideally the Player Info Generator should be used each time you update the player histories. However, it should also be used whenever you move players to a new team/league (or at least with every release of a roster) so that the Team and League stats remain accurate.
ryde93
Junior League
Posts: 8
Joined: Sat Nov 28, 2009 1:23 am
Location: Brampton, ON

Re: [player_info.dat] Player Info Generator

Post by ryde93 »

hey, i've run into a problem. first and foremost excellent work! we all appreciate it. i placed both the generator and the player_info.cfg in the database i wish to use. i then ran the generator and it performed all steps successfully until it got to generating the player_info.dat. it says an error was encountered. i'm using the latest roster in which i use the realism patch and that was it. i then thought maybe that could be the reason so i tried it on an untouched roster and still the same. any ideas? thanks for the help!
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: [player_info.dat] Player Info Generator

Post by archibalduk »

The error will be because the tool does not have permission to write to the files. Presumably you have Windows Vista or 7? If so, you need to right click on the exe and click on 'Run as admin' and then it should work fine.
ryde93
Junior League
Posts: 8
Joined: Sat Nov 28, 2009 1:23 am
Location: Brampton, ON

Re: [player_info.dat] Player Info Generator

Post by ryde93 »

i'll check it out, but i'm certain it was. i read the read me and everything so i know that was like rule number one haha, thanks for the help hopefuly im just a moron and thats why.
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: [player_info.dat] Player Info Generator

Post by archibalduk »

You're right - it is definitely rule number one! :D

If you still encounter difficulty, try moving your database to a temporary folder on your desktop and then run the Generator from there - this will bypass any of those admin-type issues.
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: [player_info.dat] Player Info Generator

Post by archibalduk »

I've received some confirmation about what each field/category covers and how it affects the game:
1) CanadianJuniorGamesPlayed - used for rookie status in the major junior leagues (WHL, OHL, QMJHL and the other Canadian juniors like AJHL, SJHL and BCHL). Also used for NHL to determine if the player can be sent to AHL if they still have junior eligibility and CHL rights held.

2) HasPlayedInNorthAmericaAsJunior - used for NHL draft eligibility checks as well as checking if a player can be signed to an NHL contract.

3) HasPlayedInCollege - only really used for players read in from the DB, not added during the game as we didn't model college hockey. Used in the player rights management to decide how long the NHL rights are valid after being drafted.

4) NorthAmericaMajorJuniorSeasons - used for draft eligibility rules and when deciding if player wants to or is allowed to play college hockey. This only updates if the player plays in the actual major juniors, so it only covers WHL, OHL and QMJHL.
I/we will need to check the settings file to ensure things are set up correctly. I think I've got the NA Major Junior category rather wrong!

I'll work on the settings file and readme.pdf file this weekend.
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: [player_info.dat] Player Info Generator

Post by nino33 »

archibalduk wrote:1) CanadianJuniorGamesPlayed - used for rookie status in the major junior leagues (WHL, OHL, QMJHL and the other Canadian juniors like AJHL, SJHL and BCHL). Also used for NHL to determine if the player can be sent to AHL if they still have junior eligibility and CHL rights held.
Does this mean that ticking "Has played in NA Junior" means the player has junior eligibility and can't be sent to the AHL if age 20 and under? OR is it all somehow really just by Games Played? Or is Games Played for Junior Rookie Status & "Has played in NA Junior" determines Junior/AHL eligibility for players 20 and under ?
EDITED (to clarify question)

archibalduk wrote:3) HasPlayedInCollege - only really used for players read in from the DB, not added during the game as we didn't model college hockey. Used in the player rights management to decide how long the NHL rights are valid after being drafted.
Do you know how long NHL rights are valid after being drafted if "Has Played in College" is ticked at start-up ?



Thanks
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: [player_info.dat] Player Info Generator

Post by archibalduk »

Version 1.1 has now been released and uploaded: http://www.ehmtheblueline.com/forums/vi ... =88&t=9213

Here is the change list:
  • The Generator will now accept any combination of two categories per league (previously one category had to be PRO).
  • Corrected the NA_JNR and NA_MAJOR_JNR categories in the default player_info.cfg file.
  • Updated and corrected information in the readme.pdf file.
I highly recommend removing version 1.0 and replacing with version 1.1 because it has transpired that the leagues we regarded as NA Major Junior were incorrect. We thought this category covered top tier USA junior leagues, but it actually covers the three Canadian major junior leagues.
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: [player_info.dat] Player Info Generator

Post by archibalduk »

nino33 wrote:
archibalduk wrote:3) HasPlayedInCollege - only really used for players read in from the DB, not added during the game as we didn't model college hockey. Used in the player rights management to decide how long the NHL rights are valid after being drafted.
Do you know how long NHL rights are valid after being drafted if "Has Played in College" is ticked at start-up ?
I found this which might help (I don't know how up to date this is):
A player not signed by his NHL team within two years of being drafted can re-enter the draft, as long as he is 20 years old or younger at the time of the subsequent draft. Players over 20 become unrestricted free agents.

NCAA players are an exception: NHL teams retain the rights to a college player until 30 days after the player has left college.
Source: http://proicehockey.about.com/od/prospe ... -Works.htm
Post Reply