April 1st, 2016 by

journalismUHS Build 9948 – April 1 2016
April Fool’s Day… no but really… this is a legit build.

This is a relatively smaller build but it’s one that comes with a major piece of functionality that will allow COMs and GMs the opportunity to contribute to the fantasy of their league. Media Articles are basically here to put an end to one of the needs of having forums. I have some further plans for Media Articles but we take baby steps first.

We also added in commentary from the AutoGM on declined trades. It’s nothing huge or robust… just a little something to give you an idea about why the trade was declined.

Media Articles
Leagues now have the opportunity to allow GMs to contribute to the overall fantasy and culture of the league and team by writing media articles. Media articles are typically written in the vein of a local tv station or newspaper covering the team. This also allows the GM to earn extra money for their team.

COMs can modify settings in the Settings > Media Settings section. In here, the COM can set:
– Articles require COM Approval (default) or are automatically approved on GM Submission.
– Minimum Words required to qualify an article to earn money. By default this is set to 300 words.
– Maximum Revenue allowed for each article. By default this is set to $250,000.
– Revenue / Word will set how much money is earned per word (as long as they meet the Minimum Words requirement). By default this is set to $500 / word.

Media Articles will appear on the League home page above the Game Results.

Bug Fixes & Miscellaneous Changes
– The AutoGM will now respond with very basic comments on why the trade was declined. You will know if you’re close to a deal (within 25%) or not.
– Fixed an issue where teams were not allowed to view trades they were not involved in.
– Status messages with excessively long words will now be wrapped so the Commissioner’s Corder, Game Results and League Activity are not squished.
– Users will now be able to Toggle whether the Commissioner’s Corner, Recent Media Articles, Game Results, Recent League Activity and Status Updates are shown.
– Fixed an issue where old draft picks would incorrectly be shown for trades completed by the Commissioner.
– Fixed an issue where Trades completed by the COM would not void other pending trades for the same players / picks.

Hot Fixes
– Fixed an issue where the play by play indicated the Goalie was being put back in the net despite never getting pulled for the extra attacker. Released on February 16 2016.
– Fixed an issue where a team losing by 1 or 2 goals would still pull the goalie if they were killing a penalty. Goalies should never be pulled if the team is on the penalty kill. Released on February 16 2016.
– Fixed an issue there a COM placing a player on waivers would calculate the end time based on days instead of hours. Released on February 24 2016.
– Fixed an issue where players were being released from teams and were placed in free agency, however, the AutoGM would not necessarily see them. Released on February 25 2016.
– Fixed an issue where attempting to relocate a team would result in an error. Released on March 5 2016.
– Fixed an issue where the new Fighting skill was not showing up in the Edit Player screen for COMs. Released on March 14 2016.
– Fixed an issue where Firing a Coach was not applying the league’s Salary Buy-Out Percentage. Released on March 14 2016.
– Added a new Unprotected Player report. The report will only appear for GMs or COMs when they are logged into UHS. Released on March 14 2016.
– Fixed an issue where Teams with a negative account balance could not purchase a $0 medical facility or staff. Released on March 14 2016.
– Fixed an issue where Players would remain protected after being traded, allowing teams to exceed the maximum allowed protected value set by the COM. This fix will be applied to AutoGMs once the build has been released. Released on March 14 2016.
– Fixed an issue where Expansion Teams were not appearing in Priority Lists for Waiver Claims. Released on March 14 2016.
– Fixed an issue where the AutoGM was able to draft underaged players. Released on March 26 2016.
– Fixed an issue where the AutoGM was signing drafted players to $0.125/1 contracts when they should have automatically be signed to the Salary / Contract as set by the Commissioner. Released on March 27 2016.

February 12th, 2016 by

A large explosion of confiscated mortar rounds, grenades, guns and other explosive devices set up by Army explosive ordnance disposal technicians on Contingency Operating Base Q-West, Iraq, Dec. 31. The controlled blast, which contained more than 1,500 pounds of explosives, was set off at midnight as a way to ring in the New Year from Iraq.UHS Build 9758 – February 11 2016

Happy birthday, Owen! This is a massive build… it’s so massive that it’s actually the largest build we’ve ever released since we did UHS Dark. It’s the first build of the new year and it took 2.5 months. We actually needed to shut down UHS for hours in order to properly deploy the build and convert all league’s existing savepoints.

The All-Star / World Cup functionality was originally supposed to be the high-light of the build and that did take the majority of the work. All-Star stuff has been overhauled from top to bottom. But that wasn’t all we had in store. We also implemented the AG skill change and introduced the new FI skill. It took a lot less time than we originally thought, so might as well push it through.

The AutoGM got a new piece of code to get them out of financial trouble and the Three-Star determination / selection received a much-needed overhaul. Just when we thought we were good to go, I got ambitious and decided to rewrite the personnel management code to make sure the AutoGM properly manages it’s players.

We also have a new WIKI page if any UHS experts feel like contributing.

New Support Method – Discord
I’m happy to be able to offer another method of getting in touch with us for support or even just general chatting: DISCORD! If you haven’t heard of Discord, it’s a fairly robust chat program that also offers voice capabilities to folks that want it. All you need to do is click this link: https://discord.gg/0mQXA3o55cioiFhW and install the Discord program.

On Discord I’m known as Stone (don’t ask… that’s just my online “persona”). While I do keep the program running, I don’t necessarily keep it open, however, you can get my attention by typing @Stone. If I still don’t respond, I might not be at my computer or have access to my phone, so the best bet then would be to send in a support ticket. I typically won’t be available by VOICE (for reasons), but I will most certainly try to respond in chat.

On the usage of the chat, since this is a fairly public forum we can lay out a bunch of rules but they can best be summarized by saying we follow Wheaton’s Law: Don’t be a jerk! No racism, prejudice, uttering threats and general douchebaggery. We can and will ban folks for abuse.

AG Skill Change
The Aggression skill was a fairly wonky skill. The higher it was, the more of a chance your player was going to get involved in a fight and not be on the ice. So for a highly skilled player, a high AG was bad as it meant he would likely be off the ice more than he’d be on. I feel a skill should be valuable if it’s higher than lower. So it’s time for a change.

Skaters: The AG skill no longer affects fights. Instead, the AG skill gives each skater a chance to change a successful check into a Big Hit. A Big Hit will now provide the team with a little momentum and will also result in the checked player losing extra energy. Big Hits are tracked under the BH statistic and will directly affect how the AG skill rerates for a skater.

Goalies: For goaltenders, the AG skill was pretty much useless since Goalies are not permitted to fight. The AG skill now gives the goaltender a chance to reduce the Scoring Chance by 1%. Saves made with a successful AG skill check will be tracked in the new AgrSv (Aggressive Saves) statistic and will directly affect how the AG skill rerates for the goaltender.

New Fighting Skill
Since the Aggression skill is now going to be focused on Big Hits and giving goalies a better chance at making saves, we needed a new stat that tells us whether a player is prone to fighting. The Fighting skill (abbreviation FI) does that. For existing players, the FI skill will match that of the AG skill. For new players the FI skill be a random 1-9 skill that does NOT count towards the player’s overall skill.

The Fighting skill is simply a measure of how likely a player will engage in a fight, so we made the decision to leave it out of the Player’s Total skill calculation… plus… we like that the total overall skill for a player is 99… adding Fighting to that would have increased that to 108 which feels a bit weird.

The Fighting skill is also not handled by rerates in the same way as the other skills. Fights engaged in at the pro, farm or junior levels all carry the same weight. The skater’s Fighting skill will rerate accordingly… if they have fewer fights last season over the previous season and the ratio meets the threshold, the FI skill will rerate down… it doesn’t matter if the skater is in the Junior, Farm or Pro league: A fight is a fight. Additionally, while other skills are impacted by the amount of time on the ice, the Fighting skill ignores Ice Time for rerate purposes.

All-Stars / World Cup functionality
The All-Star Game link is now gone and changed slightly. There is a new link that only shows up during the Regular Season under League > All-Star / International. This will take you to the new page to manage everything you need for the new All-Star / World Cup functionality.

An additional change you’ll notice is that we’ve pulled out the Add Team code for All-Star teams and placed it into the Manage All-Star screen. You are still able to create / manage your all-star teams, however, you won’t do that with the Add Team section like you would previously. In fact, once you are out of the Off-Season the Add Team functionality will be hidden / disabled since you weren’t able to add Pro, Farm or Junior teams anyway.

When your league has all-star / international games played for a given day, a link will appear on the front page alongside the Pro, Farm, Junior game results link. In fact, the All-Star scores will be the default scores loaded as it is possible to sim international games on the same game day as the other levels in your league.

Logos
When creating an all-star team that has the same name as a Country, a logo will automatically be selected for the team using the 44 country flags we have on file. If you want to use your own logo, you can upload a 250×125 sized flag/logo for your all-star team. If no flag can be found the default All-Star flag will be used.

Penalties / Scoring
If you are running a single all-star game for the season, the base scoring chance will be bumped up to 25%. If you are running a tournament, the scoring chance will remain the same as a regular game. Penalty chances for a single all-star game will be 0% (no penalties) and 1% for tournaments (minimal number of penalties).

Goaltender Switching
In a single All-Star game, goalies will switch like they have in the past. The starting goalie will play the 1st and 3rd periods. The backup will play the 2nd period. In Tournaments, the Starting goalie will play all periods but will switch with the backup if the team is down by 3 goals.

All-Star Skills Competition
For single All-Star Games (as opposed to tournament / international level games), we’ve added the results of the All-Star Skills competition. All players participate in each of the competitions, however, only the top 4 for each team are shown.

Fastest Skater Competition: This uses the skater’s QK, SK and FA skills. Thanks to Jon Lau for supplying the base code that was slightly modified to fit UHS’s needs.
Accuracy Competition: This uses the SH, PC and PS skills to determine how many attempts a player needs to hit 4 targets.
Hardest Shot Competition: This uses the player’s SH and PW skills. Thanks to Jon Lau for supplying the base code that was slightly modified to fit UHS’s needs.
Breakaway Competition: This pits all 18 shooters against both goalies using the SH, PC, QK and SK skills.

AutoGM – Personnel Management Re-Write & Code Review
Yes, here we are again, messing around with the AutoGM. We’re going to keep at it until it feels just right. I’ve re-written the Free Agency Poaching, Waiver Poaching and overall player code into one Personnel Management section that will run before we get to set rosters. Once the Draft is over (or PreSeason and beyond), the AutoGM will begin to manage its players. If there are empty spots, it’ll attempt to fill them with existing players first and then hit up Free Agency and Waivers.

The AutoGM will still look at Free Agency and Waivers to see if there are any guys out there that will be good for their team, however, they’ll only do that one at a time.

The Pro Roster and Farm Roster setting code was pretty much gutted to eliminate the extraneous Free Agency and Waivers code. Makeweights WILL be created if the AutoGM lacks enough players to ice a team (less than 20 players) and there are actually still games remaining for the AutoGM to play in during the current Season Stage (PreSeason, Regular Season, Playoffs).

Overall I reviewed the entire AutoGM script with the goal of making it more efficient (less database queries and more optimized code) and smarter by pulling in projected expenses and revenue data. We are also calculating Player Salary Cap hits.

By no means, I don’t think it’s perfect and there will always be room for improvement, so if you notice anything wonky, please report it.

AutoGM – Get Out of Trouble code
I’ve added code to allow the AutoGM to sell off players to get under the Salary Cap or get out of debt (negative bank account value). The AutoGM will select a random player from their Pro Team and make a trade offer to all pro teams for cash.  The value of the player is based on the player’s Total Skill + a random factor. Offers will be valid for up to three days. If the offer is not taken the AutoGM will void ALL offers and make a new one with a new random player if they’re still in debt or over the cap. Offers will not be less than $1 million.

This code will NOT run during the Off-Season. During that period the AutoGM needs to be able to move players around without freaking out about being over the cap and trying to sell off players. This code should only execute during PreSeason, Regular Season and Playoffs.

Three-Star Determination Overhaul
As most of you might know the old Three-Star determination method was to collect all the candidates, those who scored a goal, a game-winner or game-tying, a shut-out, save pct and so on and select the top three from those randomly. This method also tended to heavily favour the goaltenders. We’ve changed this to assign Star Pts based on the player’s performance in that game. The players with the three highest Star Pts will now be your Three Stars.

Players: Goal – 1pt, Assist – 0.75pt, Game-Winning Goal – 0.5pt, Game-Tying Goal – 0.5, Overtime Goal – 0.5pt, Plus-Minus – used for tiebreaking only.
Goalies: Shutout – 1pt, Goal – 1pt, Assist – 0.75pt, Saves (if Shutout) – 1pt / 14 saves, Saves (if no Shutout) – 1pt / 28 saves.

Goalies will be able to get a three-star appearance if they make lots of saves even in games where there are lots of goals…  as long as two or more players don’t have multiple goals/assists. I’ve compared the point-weights to some recent NHL games and have seen that the three-star selections were fairly close to what actually were selected or could have been.

Waiver Clear Days (HOURS!)
We’ve changed the Waiver Clear Days field to now be Waiver Clear Hours to give COMs the ability to fine-tune when players can clear waivers. This field lines up with Free Agency and Contract offer fields which are also in hours. The change will be applied to any new players placed on waivers as we record the clearing time at the moment the player enters waivers.

Junior Goalie Fatigue Injuries
Junior teams will now better manage their goalies so they no longer get fatigue injuries. This doesn’t mean fatigue injuries can’t happen, in fact, goalies can play over their fatigue if they’re the backup and get subbed in because the starting goalie is getting lit up. It’s still possible, just not as likely as it happened in the past.

Wiki Updates
The wiki site is now up and running. We’ve moved our help pages and guides to the wiki and will continue to add more with time.
– Player Characteristics was moved from the UHS site to the Wiki.
– Idle Leagues / Deletion page was moved from the UHS site to the Wiki.
– Inaugural Season Walk-through page was moved from the UHS site to the Wiki.
– added new page for All-Star Games & International Tournaments.
– Updated Player Characteristics with new information for Aggression (AG) and Fighting (FI) skills.
– Added an article on Player Rerates and a step-by-step walk-through of the rerate formula.

Bug Fixes & Miscellaneous Changes
– Links to the Guides & Walkthroughs have been replaced with links to the UHS Wiki: http://wiki.hockeysim.ca.
– Fixed an issue that was causing Debug Output files to be incorrectly formatted.
– Fixed an issue that caused an error to be displayed when deleted All-Star teams.
– Fixed an issue where newly added Status Messages were appearing as -196 seconds ago.
– Fixed an issue where Draft Picks could not be found in Entry Drafts for Season 2 and beyond when using the Make All Picks function.
– Fixed an issue where the Home player’s name would be used in the Live Game Penalty Summary when an Away player received a penalty due to injuring a player.
– Fixed an issue where unplayed games were not appearing on the Schedule page for Public Websites.
– RFA players owned by Teams becoming defunct will now correctly become UFAs.
– 172 Last Names and 41 First Names were added to the player pool from the 2016 World Junior Championships. UHS now has 1260 first names and 5929 last name-country combinations for a total of 7,470,540 name combinations.
– Fixed an issue where the rerate code was a little bit off from the intended calculations / formula.
– The AutoGM will now only send offers to players with expired contracts if their skill is 80% of the team’s highest skilled player. Previously this was set to 75%.
– Fixed an issue where selecting Make All Picks would incorrectly use the serpentine method for entry drafts.
– The Build History is now located under About UHS.
– Made some css tweaks to make the profile of buttons smaller.
– Made some css tweaks to decrease the height of the UHS navigation bar.
– Replaced the UHS Build link in the login panel with the league’s Database Name.
– Fixed an issue where it was possible to make free agent offers to players that were retired.
– The Last Wage column has been removed from the COM view of the Team roster.
– Fixed an issue where the player options were not appearing for Farm or Junior teams in the COM view of the Team Roster.
– Removed the Farm Team: ## text from appearing on the COM view of the Team Roster. This was being used for debugging.
– Added a TOT column to the COM Team Roster to show the total number of players on the team.

Hot Fixes
– Fixed an issue where the AutoGM wouldn’t pull back correct TeamStandings data when performing Player Release functions. Released on November 16 2015.
– Fixed an issue (I think) where the AutoGM was releasing all players. Not sure why this was happening, however, I did see the AutoGM job hanging for one league. I added in some extra code to ensure player/team arrays are fresh for each Release check. Released on November 17 2015.
– Fixed an issue where the AutoGM was not making contract offers to players with expiring contracts. This relates directly to the problem “fixed” on November 17… players were not being offered new contracts so they were all released once free agency began. Released on November 20 2015.
– Fixed an issue where the AutoGM would hang in a very specific set of circumstances (affected only one league) when setting the team’s game roster. This would result in players being bought out incorrectly and also caused game roster errors within the sim engine. Released on November 20 2015.
– Added an additional check for roster positions where the PlayerID is 0. This results in errors when the game is about to be simmed. Released on November 21 2015.
– Fixed an issue where Trades involving other teams were not being voided if the players/picks were being offered to the AutoGM. Released on November 24 2015.
– Fixed an issue where creating unassigned players in a relegation league would result in the players not appearing in Free Agency. Released on November 25 2015.
– Fixed an issue where the AutoGM was not making Entry Draft selections. Released on November 26 2015.
– Fixed an issue where the AutoGM was signing Free Agents and then immediately buy them out. AutoGMs will no longer buy-out players that are on the first year of their contract with the team. Released on November 29 2015.
– Fixed an issue where GMs making a Coach Free Agent offer would receive a message saying they already made an offer in X number of hours even though an offer had not been made. Released on December 3 2015.
– Released code to prevent the AutoGM from running for teams (and their applicable farm teams) if there are games queued. Released on December 14 2015.
– Fixed an issue where Incoming trades could potentially put AutoGMs over the Salary Cap or under the Salary Minimum. Released on December 15 2015.
– Released code to allow AutoGMs from Relegation leagues to make more than 5 Free Agent offers during the Off-Season so that they can fill their rosters. Released on December 31 2015.
– Fixed an issue where clicking the UHS Wiki link would make the Wiki page show in a super short frame. Released on January 14 1016.
– Released code to clean up issues where the AutoGM could crash the Free Agency tables… this resulted in some Free Agents not being able to be signed. Released on January 21 2016.
– Added further checks on SavePoint names to ensure illegal characters can’t be used. Released on January 23 2016.
– Released a change to limit AutoGMs to only look at the top 5 free agent coaches instead of everyone that is better than their current coach. Released on January 26 2016.
– Fixed an issue where the AutoGM could ignore player and pick ownership for incoming trades. Released on January 31 2016.
– Added further limits on the AutoGM and free agency: if the AutoGM’s team salary cannot support even one player at the minimum Salary, the AutoGM won’t bother looking at free agency at all.  Released on January 31 2016.
– When the AutoGM is looking at Free Agency to fill out their team, they will pull back only the top 50 free agents instead of ALL free agents. Released on January 31 2016.
– Fixed an issue where players could remain on their team with a 0-contract if they had ever been an RFA. Released on February 8 2016.
– Fixed an issue where a team claiming a player on waivers resulted in all teams incorrectly paying the waiver fee with no ledger entry. Released on February 9 2016.

November 16th, 2015 by

sea of humanity

UHS Build 8971 – November 16 2015
I had a few other developments lined up for this build, however, the changes to the AutoGM were not accompanied by the updated Roster checking/fixing functions so we began seeing a number of errors. The problem was the errors were more on the back end or when a COM attempted to sim a game. There would be no other indication that there was a roster error to the COM other than the game just not simming.

Also… Happy 70th Birthday, Mom!

Tier 3 Relegation Exemptions
Relegation leagues now have an option to make the bottom teams for Tier 3 be exempt from disbanding / relegation. Subsequently, COMs will lose the ability to add a new team to fill the vacant position since it’s no longer being vacated.

Team Power Rankings
GMs will have a new Team Power Rankings option under the Scouting menu. For leagues that have skills shown, this simply takes the overall skill of the team’s top 4 C, 4 LW, 4 RW, 6 D, and 2 G and sums them together. For leagues that have skills hidden, we compare each team’s players against every other team and accumulate points that way.

Auto-Complete Draft
We’ve built in a new option during the draft. Owners and COMs will now be able to select a “Mall All Draft Picks” button that will basically complete the remainder of the draft. A confirmation message will be shown and the button will become disabled. This was tested using 25-round 30-team league (750 picks) and saw a completion time of 40 seconds. With slower connections, it’s possible you could see up to a minute or more. There is a 2-minute time-out period… if you see a Gateway timeout issue it means the draft was a little too large, however, I *believe* the picks are still being made… it’s just that the browser has lost this particular connection.

You will be able to monitor the progress of the draft through your Public Site > League > Entry Draft.

For Inaugural Drafts, the drafter is designed to select 6 forwards, 3 defense and 1 goalie for every 10 picks. For Entry Drafts, the teams will be selecting the highest Total Skill players first.

AutoGM Modifications (not hotfixed)
AutoGMs will now void trades where they are sending out prospects (players equal or under the Max Age Protected age) and they are receiving no prospects in return.

Fixed an issue with draft pick valuations. Previously it was possible for the AutoGM to value high round draft picks the same as late round draft picks, however, there had to be a pretty unique set of circumstances happen. With the fix, the valuation applied to draft picks by the AutoGM has been lowered.

AutoGMs will now assess the state of their team roster and release extraneous players if they meet the following criteria:
– Buying out the player will not bring the team below $10 million.
– Player’s age must be greater than MaxAgeProtected (prospect players are exempt from release).
– Player must not be on a game roster.
– Player must be out of the top X for each position (doubled if a real farm team exists): C/LW/RW = 5; D = 8; G = 3.

AutoGM & Forwards ** – Released as Hotfix on November 2 2015
The AutoGM and the Roster Fixer functions have been updated to better handle Forward players (vs. C, LW, RW). Previously, Forwards were inserted a roster position without looking at whether other forward positions had vacancies. For example: 3 F players Joe, John, James were inserted as Centers, even though the team already had 3 Centers (but happened to be lower skilled than the Forwards) and despite the fact the team had no LWs! This meant the team would look elsewhere to fill those empty spots (farm team, free agency, waivers, makeweights).

The changes made will now mean that Forwards will be used to fill empty positions first before being reinserted based on skill. For the above example: Joe, John, James will be marked as LWs internally (you won’t see this) to ensure the game roster minimums can be met and a roster can be created.

Additionally, the AutoGM will now always set their best Pro and Farm Game Roster, regardless if a valid Game Roster is already set. Previously, the Game Roster would only be set / changed if a player was injured or suspended. This also means that the AutoGM will over-write any changes you might make to their rosters.

The AutoGM will now look at players to move down to the farm team AFTER the Pro Game Roster has been set and BEFORE the Farm Game Roster is set. Previously, the AutoGM moved players down to the farm before the Pro Game Roster was set… this led to high-level players being sent down because the Game Roster was valid and there was no need for the extra player.

Bug Fixes & Miscellaneous Changes
– Teams changed to AutoGM will change their prospect scouting to 0 since AutoGMs don’t use it anyway.
– Updated the RosterFixer function to integrate Forwards better into a GameRoster.
– Fixed an issue where GMs could ignore the Free Agent Decline Hours setting and make multiple offers to free agent coaches until he accepted an offer.
– Fixed an issue where Goalie Save Pcts were over-inflated for Team Career Spct leaders in Public Websites.
– Fixed an issue where a team could have an incorrect roster and the GM / COM may not even know… this prevented games from being simmed but returned no errors indicating a roster issue, leaving the GM/COM unable to proceed with the season.

Hot Fixes
– Fixed an issue where the new mailer was not working the live / public version of UHS (but it DID work through the test version). Released as hotfix on October 25 2015.
– Fixed an issue where teams could not be assigned to AutoGM if there was already a schedule created. Released as hotfix on October 26 2015.
– Fixed an issue where sometimes a schedule could not be created in Relegation leagues. Released as hotfix on October 27 2015.
– Fixed an issue where the PlayOff Tree would not display on Public Sites for Relegation Leagues. Released as hotfix on October 27 2015.
– Fixed an issue where saving General settings in Season 2 and beyond would cause a league to revert from a Relegation League to a Standard League. Released as hotfix on October 27 2015.
– Fixed an issue where Free Agents idle for 2 or more seasons were not having their Last Salary and Last Contract Value numbers adjusted downwards. Those values should be 75% of the previous value for each season after the first idle season. Released as hotfix on October 28 2015.
– Released code that allows UHS Admin to toggle whether SavePoints are allowed for all leagues. This will be used when we have builds being released that require previous SavePoints be to be updated with database changes. Released as hotfix on October 28 2015.