[ Back to install ]
HockeyStats
The datafile
The datafile is a normal textfile where all the data about the matches are stored. The datafile consists of rows where every row represents one fact about the match. Examples of facts are: home or away match, opponent, date, shots, goals etc. Each row begins with the name of the fact followed by an equal-sign. Then you enter the data from the matches. Data from different matches are separated by semicolons. Data from the most recent match are always added at the beginning of the row, next to the equal-sign. Take a look at this datafile to get a clearer picture of how it works.
The order in which the rows are placed in the file is optional. It is however important that all the rows are there. If some row is missing or incomplete the program won't start.
Here are the facts that are to be added for every match:
1. Date
- Description
- The date the match was played.
- Format
- Can be any string but it's recommended to use a short string for the dates, for example a format like this: 11/12.
- Example
- Date=5/4;3/4;2/4;29/3;27/3;26/3;22/3
2. Place
- Description
- Specifies if it is a home- or awaymatch.
- Format
- 'h' for home and 'a' for away (road).
- Example
- Place=a;h;h;a;h;a;a;h
3. Opponent
- Description
- The opponent in the match.
- Example
- Opponent=Los Angeles;Washington;Colorado;Calgary;Vancouver
4. Attendance
- Description
- The attendance at the match.
- Example
- Attendance=15726;11987;15726;17345;18422;17099;15725
5. Goals
- Description
- The goals in the match, divided into goals by period.
- Format
- The goals are given by period and the periods are separated by commas. If the league uses overtime you just enter the overtime goals as if it were a fourth period (see also the Overtime-parameter). The goals of the own team should always be placed first.
- Example
- Goals=2-0,0-2,1-0;1-0,1-1,1-0;3-0,0-1,0-2,1-0;1-3,1-3,3-0;3-1,2-1,1-3
6. Shots
- Description
- The shots in the match, divided into shots by period.
- Format
- The shots are given by period and the periods are separated by commas. If the league uses overtime you just enter the overtime shots as if it were a fourth period (see also the Overtime-parameter). The shots of the own team should always be placed first.
- Example
- Shots=5-8,13-9,10-7;4-11,5-11,8-13;8-6,12-11,7-22,3-2
7. PowerPlay
- Description
- The number of power-play advantages.
- Example
- PowerPlay=2;3;3;3;6;4;1;4
8. ShortHanded
- Description
- The number of times playing short-handed.
- Example
- ShortHanded=6;2;5;3;4;2;3;5;5;4;1;4
9. PPFor
- Description
- The number of goals for when playing power-play.
- Example
- PPFor=2;1;0;0;1;1;2
10. PPAgainst
- Description
- The number of goals against when opponent is playing power-play.
- Example
- PPAgainst=0;2;1;3;1;0;2;0
11. SHFor
- Description
- The number of goals for when playing short-handed.
- Example
- SHFor=0;0;1;0;0;0;0;0
12. SHAgainst
- Description
- The number of goals against when opponent is playing short-handed.
- Example
- SHAgainst=0;1;0;0;0;0;0
[ Back to install ]
Copyright © 1998 Mats Bovin.
Comments can be sent to mats-bov@dsv.su.se