How to Add a New Player

DISCLAIMER:This is written with the belief you know the players.ehm file, if you are not familiar with the players.ehm file, you may want to have the players.ehm 101 page open with this to follow along! It is located here.


Since so many people like to create additional players into their games (like superstar versions of themselves, you narcissists!), Tie asked me to write this. Part I is for adding a new player before you start a league file, and Part II is adding a new player after you've started a league file.

Part I: How to Add a New Player


1. With Notepad, open up the roster file that you would like to change. Various roster files have diferent names, but they all end with the .rst extension. The rosters used here at FHockey are called DraftRosters.rst. The default ones are, naturally, called default.rst, Jan Smetana named his rosters Smetana.rst, and The Mole labeled his rosters as RosterEdit.rst.


2. Once you have the roster file open, scroll down to the very bottom of the file. Copy the following player skeleton form at the bottom:

0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0
0 0 0
0 0 0 0
0 0 0
NAME#R
0 0
0 0 10 1 1 1 1 1 1 1

Remember to press Enter after you paste it in, so that the last line in the file is blank. Also, each line except Line 8 has a single space at the end.


3. Each digit in the skeleton form corresponds with certain skill attributes or personal information about the player.

- for Forwards and Defensemen:
Line 01: Shooting | Playmaking | Stickhandling | Checking | Positioning | Hitting | Skating | Endurance | Penalty | Faceoffs
Line 02: Leadership | Strength | Potential | Consistency | Greed | Fighting | Click | Team | Position | Country
Line 03: Birth Year | Birth Month | Birth Day | Salary | Yrs Left on Contract | Year Drafted | Round Drafted | Drafted By | NHL Rights
Line 04: Career Games | Career Goals | Career Assists | Career PIMs
Line 05: x | x | x
Line 06: x | x | x | x
Line 07: Career High Goals | Career High Assists | Career High Points
Line 08: Name | Handedness
Line 09: Height | Weight
Line 10: Alternate Position | Ama/Jr Team | Injury Resist | x | x | x | x | x | x | x

- for Goaltenders:
Line 01: Glove | Blocker | Stickhandling | Pads | Angles | Agility | Skating | Endurance | Penalty | Rebounds
Line 02: Leadership | Strength | Potential | Consistency | Greed | Fighting | Click | Team | Position | Country
Line 03: Birth Year | Birth Month | Birth Day | Salary | Yrs Left on Contract | Year Drafted | Round Drafted | Drafted By | NHL Rights
Line 04: Career Games | Career Goals Against | Career Shutouts | Career Saves
Line 05: x | x | x
Line 06: x | x | x | x
Line 07: Career Goals Against | Career Shutouts | Career Save Percentage
Line 08: Name | Handedness
Line 09: Height | Weight
Line 10: Alternate Position | Ama/Jr Team | Injury Resist | x | x | x | x | x | x | x

If you want this new player eligible for your upcoming Draft, enter 99 for his Team in Line 2. If you want him to be a free agent, leave his Team as 0. For more information, like the team numerical values, it is explained on the Players.ehm 101 page. Read it -- it's good for you.


4. Now scroll back to the very top of the file. The number on the first line represents the amount of players that are in the database. Add one to the number, for your newly-created player. Since this new player is the last in the file, the player amount total is also his Player ID number.


5. Now you can either edit this new player now here in Notepad, or you can save and close the file and edit him with the Player Editor. Either way works, but you can do a few more things in Notepad that you cannot in the Editor (for example, in Notepad, you can set any attribute above 99, or assign the player as draft-eligible -- you cannot do either with the Editor). After you finish editing, save and close the file.


6. If you want to add career statistics for this new player, you can either do so with the Player Editor, or you can do it in Notepad. If you want to add them in with Notepad, continue to Step 7. If you want to add them in the Editor, move on to Step 8.


7. With Notepad, open up your career file, default.car. Scroll down to the very bottom of the file. Do you remember the number at the top of the roster file you changed? You should, as it only three steps ago and you should not have forgotten it already. That is your new player's Player ID number. This number should already be at the bottom of the file, as the career file requires a Player ID number for all players in the roster, plus the next number. So if the player you just created is Player ID #3000, enter #3001 at the end of the career file -- the Editor can crash without a number greater than the actual total of players (Why it needs the next number, I don't know, so don't bother asking). Then add in any and all career statistics under #3000. Then save and close the file.


8. With the Editor, under Options, check Edit Career Years. Then click on your new player (Note: if you made this new player draft-eligible, clicking on their name will crash the Editor) and type in the statistics in the little window that will pop up.

----------

Part II: How to Add a New Player to an Existing File


This part is a little more complex than Part I. I would advise you to backup your league file just in case something goes awry.


1. Go into your EHM directory (most likely C/Program Files/Eastside Hockey Manager). Go into your saves folder and find the league folder that you want to add a player into.


2. With Notepad, open the players.ehm file. If you want to create a new player over an existing player, then all you gotta do is edit that player. Most likely, you're not here for that. You're here because you want to create an additional player. Copy the following player skeleton form at the bottom:

0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0
-
NAME

- -
000000000000000000000000000000000000000
1.17 (15.5.2002)
1.17 (15.5.2002)
0 0 0 0 0

If you want this new player eligible for your upcoming Draft, enter 99 for his Team in Line 2.

<i> Lines 18 and 19 are the version and date of the version. Enter whichever version it is that you use.</i>


2. Once you have copied in the skeleton form of a new player into your players.ehm file, scroll back to the top and add one to the total number of players at the very top of the file. Again, this is your new player's Player ID number. Then return to the bottom of the file and edit your player. All the these line explanations are lain out in the Players.ehm 101 page. Once you are done editing, save and close the file.


3. With Notepad, open the career.car file. Scroll down to the very bottom of the file and find your new player's Player ID number. Then add in any and all career statistics. Upon completion, save and close the file.


4. With Notepad, open the statistics.ehm folder. Copy the following into the bottom of your statistics.ehm file.

0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0
0 0 0 0 0

For more information, it is explained on the Statistics.ehm 101 page. For now, the only real important part to edit is the Player ID number. Enter that as the fifth digit on the 25th line. If you aren't sure what number he is, remember the number at the top of the players.ehm file, that is how many players there are, and the last player will be that number, get it? Good!

If you want the new player added to be on a non-NHL/AHL team (Canadian junior team, American college, European team), the list of all 217 non-NHL/AHL teams is listed here. As always, save and close the file when you finished.