[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
kabbott50
Drafted
Posts: 158
Joined: Mon Apr 17, 2006 7:11 pm
Location: St. John's, NL

Re: [player_info.dat] Player Info tab in the Editor

Post by kabbott50 »

Isles22 wrote:
kabbott50 wrote:
archibalduk wrote: [table][tr][td]Newfoundland Midget AAA Hockey League[/td][td]18[/td][/tr][/table]
Has been renamed the Newfoundland & Labrador Major Midget Hockey League, and the age limit here I believe is 17 now (1994 born). Actully - on second thought, I guess it would be 18 for early birthdays...

Anyway, there are 5 teams in this league now, expected back to 6 next year. When I try to add teams to it through the editor, it doesn't allow me to. Is there any particular reason for that? I thought you could do almost anything with non-playable leagues.
Did you make the appropriate change in the index.dat file?
If you add a team in the club.dat file you have to change the size in the index.dat file.
That's exactly what I didn't do.

Thanks! I'll give it a try later.
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 »

kabbott50 wrote:
Isles22 wrote:Did you make the appropriate change in the index.dat file?
If you add a team in the club.dat file you have to change the size in the index.dat file.
That's exactly what I didn't do.

Thanks! I'll give it a try later.
If you used the Pre Game Editor, I would have expected it to have done this for you.
User avatar
kabbott50
Drafted
Posts: 158
Joined: Mon Apr 17, 2006 7:11 pm
Location: St. John's, NL

Re: [player_info.dat] Player Info tab in the Editor

Post by kabbott50 »

archibalduk wrote:
kabbott50 wrote:
Isles22 wrote:Did you make the appropriate change in the index.dat file?
If you add a team in the club.dat file you have to change the size in the index.dat file.
That's exactly what I didn't do.

Thanks! I'll give it a try later.
If you used the Pre Game Editor, I would have expected it to have done this for you.
I was using the pre-game editor, but as I put the a team in the league, another miraculously disappeared.
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 »

kabbott50 wrote: I was using the pre-game editor, but as I put the a team in the league, another miraculously disappeared.
Some of those lower junior leagues are coded to have a certain number of teams, I think. Some other user ran into the same problem before
User avatar
kabbott50
Drafted
Posts: 158
Joined: Mon Apr 17, 2006 7:11 pm
Location: St. John's, NL

Re: [player_info.dat] Player Info tab in the Editor

Post by kabbott50 »

I see. Thanks!
XenHL
Minor League
Posts: 279
Joined: Fri Nov 18, 2011 10:11 pm
Custom Rank: Retro Rosters Star!

Re: [player_info.dat] Player Info tab in the Editor

Post by XenHL »

I've been playing around with this, too, lately, getting a bit annoyed at the extra work, but we'll see.

Re: the major junior question: I have only ever heard "Major Junior" used in reference to the WHL, OHL and QMJHL, while every other junior league is referred to as "Junior A", "Junior B", etc.

In game, too, you'll sometimes see in a players info page "Wants to play major junior" - that's referring to CHL, too.

So, for this tab, I've been using CHL (O/W/QMJHL) totals for the "NA Major Jnr Games" box and ticking the "has played NA Major Junior" checkbox for players that have played in those leagues.

If John Smith played 100 games for the Vancouver Giants and 50 games for a BCJHL team, then I'll put "100" in the "NA Major Jnr Games" box, tick the "has played NA Major Junior" checkbox, and put "150" in the "Canadian Jnr games" box.
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 »

XenHL wrote: So, for this tab, I've been using CHL (O/W/QMJHL) totals for the "NA Major Jnr Games" box and ticking the "has played NA Major Junior" checkbox for players that have played in those leagues.

If John Smith played 100 games for the Vancouver Giants and 50 games for a BCJHL team, then I'll put "100" in the "NA Major Jnr Games" box, tick the "has played NA Major Junior" checkbox, and put "150" in the "Canadian Jnr games" box.
Good thinking!
I believe the only thing this info is used on in-game is that a player with Major JUnior experience is ineligible for NCAA play
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 have to say that I am completely confused about these different Canadian Jnr / NA as Jnr / Played in College / NA Major Jnr categories. :oops: I've been taking a look at a couple of players who completed the junior stage of their career prior to EHM 2007 being released (thereby presumably the Player Info was completed by SI):
  • This screenshot of Mark Recchi shows that he has played 259 Canadian Jnr games but zero NA Jnr games. Those 259 games consist of playing in the WHL and BCHL.
  • Sidney Crosby has 143 Canadian Jnr games consisting of the QMJHL (but doesn't include the Memorial Cup).
  • Tim Thomas has zero games recorded in Player Info but he played in the NCAA and ECAC.
  • Shane Doan has 174 Canadian Jnr games consisting of the WHL.
  • Ryan Garbutt has 75 Canadian Jnr games consisting of the MJHL.
:-?

I'll extract the Player Info file from the database to see if I can find some examples of the other types of leagues. I'll then see if I can match this up with this list of hockey tiers: http://en.wikipedia.org/wiki/List_of_ice_hockey_leagues
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 »

I have never seen a player with anything but a zero in NA Major Jnr Games. Maybe that is not in use, just like the Media Pundit.

US Junior games are not listed at all it seems
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've extracted the Player Info from the TBL:DB Unfaking v1.1 as this is the same as the original v3.0.4 rosters (but just unfaked). You can download it here: https://skydrive.live.com/redir.aspx?ci ... 29C5C5!280

Note that the fields for Has Played in NA Jnr and College are 1 = Yes and 0 = No.

There are no players listed as having played in the NA as a junior (as Manimal already said) and there are no players who have played any NA Major Jnr Seasons.

There are 2752 players listed as having played in college. These appear to be players who have played in the NCAA.

Mike Santorelli is an example of a player who has both played Canadian Jnrs (BCHL) and college (NCAA).

I still feel none the wiser... :-?
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 »

Have you tried looking it up in a saved game? Sim a season or two and check if you can find anything
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 »

In looking at the Player Info tab using the 1974 db I noticed

- if there's nothing in the Player Info tab (all show a "0") but there's History entries, the history shows up in the Player Bio in game

- if there's stats entered in the Player Info tab, but no History entries, the stats do NOT show up in game

- it seems if a young player has no Player Info or History but the Contract Start Date year is before 2005, the player can be "waiver eligible" despite 0 Pro GP
- A 23 year old with no Player Info or History and a contract start date year of 2005 was exempt from waivers
- A 22 year old with no Player info or History and a contract start date year of 2004 was not exempt from waivers
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 »

Has anyone found out what the value -1 means on league stats?
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:Has anyone found out what the value -1 means on league stats?
Where are you seeing a -1?
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 »

archibalduk wrote:Manimal wrote:
Has anyone found out what the value -1 means on league stats?
Archibalduk wrote:
Where are you seeing a -1?
On the Player Info tab, bottom right (League stats) section, many players have -1 entered for Appearances, Goals, Assists, PIMs, Wins and Shutouts.
XenHL
Minor League
Posts: 279
Joined: Fri Nov 18, 2011 10:11 pm
Custom Rank: Retro Rosters Star!

Re: [player_info.dat] Player Info tab in the Editor

Post by XenHL »

I've seen the -1 a couple of times too. Have no idea what it means, 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 »

Hmmm I would hazard a guess that the game treats it like a zero.

The only -1s I've come in the data are yes/no settings (-1 = yes) and for players who are free agents (their club contracted is -1). It also means blank in some tables (for example, if there is no host for an entry in the competition history then you set the host to -1) - hence my guess that -1 means zero/blank.
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 »

Maybe when they created the db, some players had values in League stats. During research they left that league and somehow it was turned into -1 with whatever editor they used to create the game :dunno:
Varlamov
Junior League
Posts: 14
Joined: Tue Apr 21, 2009 9:17 pm

Re: [player_info.dat] Player Info tab in the Editor

Post by Varlamov »

I tried fooling around with these things a long time ago, and it seemed as if some things are just locked, especially concerning waivers. If the player is waiver exempt to start the game, he will usually stay waiver exempt even if you add hundreds of games to his player info and history. I think it's the player ID that does this, not the info tab. When trying to move things around, like wanting a waiver exempt player (player A) to be waiver eligible, overwriting an unnecessary/retired waiver eligible player (player B) with player A's info, then overwriting player A with a new, young, waiver exempt player (player C).

And, when the game was new, I remember seeing Devereaux Heshmatpour, a name that's hard to forget, going to play in college, despite already playing in the OHL. I don't remember if that was fixed in a patch or when I clicked his Major Junior box.
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'm not sure it'll be something to do with the Player ID. I'm fairly certain these ID numbers change each time you add/remove/rename a player or member of staff.

When you tried overwriting a player, did you try changing the Date Joined field?
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 »

As I've mentioned here in my blog, I've made a start on writing a tool that automatically updates the Player Info based upon the player career histories. So far it calculates the Club Stats and League Stats sections (i.e. GP, G, A, PIM, Wins, SO) as well as the NHL Games Played field.

I'm now trying to figure out the answers to the following questions. If anybody has any suggestions, I'd love to hear them:
  • NHL Seasons - Does this only count regular seasons? E.g. if a player only plays in the playoffs in a season (i.e. he doesn't play any regular season NHL games), is this counted as a season?
  • Professional Games Played - I need to make a list of every league in the game that is regarded as a professional league
  • Canadian Junior Games - Which leagues does this cover? I know it covers the BCHL, OHL, QMJHL and WHL, but are there any others? I know for a fact it doesn't cover the Memorial Cup.
  • Played in North America as a Junior - Which leagues does this cover?
  • Has played in College - Which leagues does this cover? Presumably this covers the NCAA leagues (e.g. Hockey East, CCHA, WCHA, etc) but are there other college leagues in the US and does it also cover any Canadian college leagues?
  • North American Major Junior Games - Which leagues does this cover?
  • With regards to all of the above, does it cover just regular season or does it also include playoffs?
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 »

archibalduk wrote:[*]With regards to all of the above, does it cover just regular season or does it also include playoffs?[/list]
Yes. Only regular season except for all but the 'Has played in NA as Junior/in College'

I will get back to you on the other ones later
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've added the function to calculate the number of Canadian Junior League games played. At the moment, I have the following leagues listed as Canadian Juniors (I have included an example for the AJHL and BCHL to show a player whose Canadian Jnr games played includes those league(s)):
  • AJHL (Clarke MacArthur)
  • BCHL (Milan Lucic)
  • OHL
  • QMJHL
  • WHL
Looking at MacArthur and Lucic, I can see that playoff games are included in the Canadian Jnr League games played field. However, according to Clarke's Player Info and his career history, it doesn't seem to include the Memorial Cup (another example is Crosby). The omission of the Memorial Cup doesn't make sense to me. Do you think I also include it in the Canadian Jnr games? I guess not because it seems that's not what SI intended...

I'm going to try and find players in the database who have played in the various Canadian Jnr A and B leagues (there's a list here) to see which of those leagues are counted as Canadian Jnr.

Having looked through player history and the Player Info for players such as Eric Staal, I can see that playoffs are counted for the NHL Games field.
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 »

archibalduk wrote:it doesn't seem to include the Memorial Cup. The omission of the Memorial Cup doesn't make sense to me. Do you think I also include it in the Canadian Jnr games?
IIRC correctly you've noted the Player Info Tab seems to be for regular season games, and not playoffs.....so maybe the Memorial Cup is omitted because they're really "playoff games"?

EDIT - Now I reread and see you've noted that playoffs ARE included.....I wonder if what we're seeing is inputter error?
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 »

nino33 wrote:
archibalduk wrote:it doesn't seem to include the Memorial Cup. The omission of the Memorial Cup doesn't make sense to me. Do you think I also include it in the Canadian Jnr games?
IIRC correctly you've noted the Player Info Tab seems to be for regular season games, and not playoffs.....so maybe the Memorial Cup is omitted because they're really "playoff games"?
However, the playoffs for the OHL/QMJHL/WHL are included in the Player Info - as are playoffs for the NHL Games field.

Sorry - I subsequently updated my previous post above because I clicked on Submit rather than Preview!
Post Reply