Version 2.0.4 is now available. Here is the link:
http://sdrv.ms/1dgNmzS
IMPORTANT! I highly recommend NOT importing Staff Award History at the moment. I haven't yet been able to fix the crash with the Pre-Game Editor which arises when editing Staff Award History. The same goes for erasing Staff Award History.
V2.0.4 includes quite a few bug fixes as well as a couple of new features (e.g. Team Rights updating, Pass Tendency Calculation, Auto Name Correction and Birth Year Editing). As I mentioned previously, I never publicly released v2.0.3 and so I have incorporated those changes into the changelist below so that it shows everything that has been changed since v2.0.2:
- Added Team/Player Rights editing using contract_update and staff_new.
- Added ability to export Team/Player Rights.
- Added a Pass Tendency calculation function.
- Added an Auto Correction function for team and league names.
- Added Birth Year editing for attribute_update, nonplayer_update and staff_new.
- Added support for tab delimited csv files.
- XML files with incorrect <Title> tags can now be imported so long as their filename is the default filename.
- Added the EHM Updater version to the <Author> tag of XML spreadsheets.
- Corrected the heading cells for the duplicate_staff spreadsheet.
- Partially fixed the bug with misaligned header columns in exported csv files where the cells are spanned across multiple columns (more work needed to full fix this bug).
- Fixed a bug with staff_awards_update which prevented award names from being correctly matched.
- Fixed the Erase Player Awards History function so that it leaves a blank entry in order to be compatible with the Pre-Game Editor.
- Fixed the staff_new_errors file so that the error messages are shown in the correct column (and not at the end of each row).
- Upgraded from Qt v5.0.1 to v5.0.2.
- Fixed a bug where imperial measurements weren’t working in updater spreadsheets.
- Fixed a bug where the Birth Nation in staff_new was being ignored when assigning a player/staff’s Birth City.
- Newly-created goalies now have a Def Role of 20.
- The Optimise Database and Player Update functions now set all goalie’s Def Role to 20.
Here is a brief run-down of some of the new features (the Readme file has all of these details too):
Team/Player Rights Editing
Team rights can be added a to a player using staff_new.
It is also possible to add/edit/delete rights using contract_update. Team rights can be added and edited using the Add Rights 1 and Add Rights 2 columns (both columns are the same - you can use either or both). There are just two of them because it makes it easier if you want to add/edit multiple sets of rights. To add rights, just enter the name of the team under one of the two columns. If the player already has rights for a team within the same league as the team you’re trying to add, the existing rights will be removed. Thus to move rights between teams in the same league, you just have to enter the new team’s name because the Updater will automatically remove the old team for you.
To remove rights in contract_update, use the Delete Rights column (just enter the name of the team whose rights you want to remove). If you want to remove all rights from a player, enter _REMOVE_ALL.
It is also possible to export Team/Player Rights as a spreadsheet.
Auto Correct Names (accessed from the Settings Menu)
This setting will attempt to correct common abbreviations of team and league names which may have inadvertently been used in an Updater spreadsheet.
For example, if you accidentally wrote “NHL” rather than “National Hockey League” in the staff_history_update spreadsheet then the Updater would ordinarily give an error because the league name is not spelt correctly. However, with the Auto Correct Names setting enabled, it would automatically correct “NHL” back to “National Hockey League” when importing the data, thereby avoiding an error.
The Auto Correct Names setting is nothing intelligent. It just checks erroneous team and league names against a pre-defined list. If the erroneous name is found in the list then the Updater will correct the name. If not, it will give the usual NO MATCH error.
This function has been primarily designed for the staff career history update (but it will work with any Updater spreadsheet). The difficulty we have faced when updating career history using online sources is that the websites tend to use abbreviations or shortened names for teams and leagues. Thus once we have compiled all of the data in an Updater spreadsheet, we must then go through all of the names and manually correct them using the Find and Replace function in Excel/LibreOffice. This often takes many hours to correct. In order to save time, the Auto Correct Names function does the equivalent of the Find and Replace function.
The pre-defined list of names is hardcoded into the Updater and is something that is currently a work in progress. I will be working on expanding the list for version 2.0.5. If you wish to see how many names are in the pre-defined list, enable Debug Mode from the Settings menu. You will then see two greyed-out entries in the Settings menu which shows how many names are in the pre-defined lists.
Pass Tendency Calculation
Automatically calculates players' Pass Tendency ratings according to their player career history (the most recent 3 seasons' worth of stats for each player). More details on how this works is in the Readme.
Birth Year
It is now possible to create a player in staff_new with just a birth year. Just leave the Day and Month in his DOB blank (or set them both to zero - it doesn't matter which you do) and set the Year to whichever year you want. This will create the player with a DOB of 31/01/1900 and a Birth Year of the year you entered.
It is also possible to do the same using nonplayer_update and attribute_update. In the New DOB columns (located at the far right hand side of each spreadsheet), set the Day and Month to zero and the Year to whatever you want. Note that for these two spreadsheets, you
must enter zeros in both Day and Month - if you leave either blank then it'll just update the Year in the DOB rather than editing the Birth Year.
OpenOffice/LibreOffice Improvements
Tab delimited CSV files are now supported. This will solve the problem whereby Open/LibreOffice strip out the comma/semicolon delimiters and replaces them with tabs.
It is also possible to use XML files edited in Open/LibreOffice. This is so long as you do not alter the default filenames of the spreadsheets (using custom filenames for XML files is only possible if using Excel).