Page 1 of 1

Website upgrades

Posted: Sat May 23, 2020 1:53 pm
by SharksGM
Due to popular demand, the website now display farm, playoff and career statistics in various locations (Leaders, Pro/Farm/Playoff Stats, and team Statistics pages). Player teams are listed with an asterisk for players currently in the AHL, since I doubt many people know even half of the AHL team names/acronyms. Enjoy.

Incidentally, some of the highlights from the AHL include Joe Thornton's 181 point, +82 season; Ivan Bocharov's league-leading 87.23 sv%; Mattias Ekholm's 0 points and -41 in 67 GP, and Nick Bobino's 4 points, -69 and 406 PIM in 82 GP (what an iron man!).

Re: Website upgrades

Posted: Sat May 23, 2020 3:31 pm
by Jets GM
THanks Dan!

Re: Website upgrades

Posted: Sat May 23, 2020 6:20 pm
by Bernyhawks
Nice!

Is it possible to see career stats for each player not just leaders?

Re: Website upgrades

Posted: Sat May 23, 2020 7:27 pm
by Edmonton Mike
Good job!

By the way, let me know if I can help to cover hosting costs.

Re: Website upgrades

Posted: Sat May 23, 2020 9:33 pm
by AvalancheGM
That's awesome, thanks.

Re: Website upgrades

Posted: Mon May 25, 2020 12:24 am
by SharksGM
Bernyhawks wrote: Sat May 23, 2020 6:20 pm Nice!

Is it possible to see career stats for each player not just leaders?
Individual player profile pages now have their career stats, with a few caveats:

1) I don't have an end-of-season file for the first season (2010); all I could find was the Olympics file which is ~60 games in. If anyone has one, let me know. archive.org apparently didn't visit ehechockey.com much.
2) The career stats in statistics.ehm include NHL seasons but are very incomplete. I don't quite get what some of the goalie statistics are supposed to be because they're not in the same order as the other sets of statistics (juniors, farm, pro, playoffs).
3) AHL GP numbers are wrong. I only half-fixed this by not displaying AHL stats for players who have >0 GP with 0 total icetime (yeah...).
Edmonton Mike wrote: Sat May 23, 2020 7:27 pm Good job!

By the way, let me know if I can help to cover hosting costs.
Thanks; I may take you up on that when we need to renew the plan in September.

Re: Website upgrades

Posted: Mon May 25, 2020 9:58 am
by DetroitGM
SharksGM wrote: Mon May 25, 2020 12:24 am 2) The career stats in statistics.ehm include NHL seasons but are very incomplete. I don't quite get what some of the goalie statistics are supposed to be because they're not in the same order as the other sets of statistics (juniors, farm, pro, playoffs).
Ben Bishop or Erik Portillo might be good places to start on figuring out goalie stats, the only goalies to play all three of farm, pro, and playoffs this season.

I'm not sure what you know/don't know, so I'm just going to try to explain everything I do know using Portillo's stuff on stats.ehm, hopefully it'll help someone!
0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 158 0 -1
0 0 0 0 0 0
0 0 0 0 0
20 0 0 0 0 0
0 0 70730 0 0 396 0 0 0 0 0 0
43 1 15 3 0 1
0 0 0 0 0
40 0 0 0 0 0
0 0 126720 0 0 643 0 0 0 0 0 71
121 1 17 16 0 2
0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 59
0 0 0 0 0 0
0 0 0 0 0
7 0 0 0 0 0
0 0 25930 0 0 148 0 0 0 0 0 59
21 0 5 2 0 0
0 0 2 0 0
0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 -1
0 0 0 0 0 0
0 0 0 0 0
0 0 -1 0 2274
Then we can compare with his profile stats
Portillo.png
Portillo.png (132.62 KiB) Viewed 13139 times
So what we do know is that he made 396 saves in the NHL, 643 in the AHL, and 148 in the playoffs, so it's easy enough to isolate which line is which. In theory this means lines 5-7 are NHL stats, 9-11 AHL, and 17-19 playoffs.
20 0 0 0 0 0
0 0 70730 0 0 396 0 0 0 0 0 0
43 1 15 3 0 1
20 games played, 396 saves, 43 goals against, 15-3-0-1 record. I'm guessing the other 1 in the second line is shutouts, and it seems to match when comparing with other goalies with higher numbers of shutouts.
Everything else is 0s except one - 70730. The most obvious missing stat is minutes - 70730 seconds / 60 = 1178 minutes.

One thing of note, looking at Ben Bishop's stats.ehm stuff, is his NHL stats;
40 0 2 0 0 0
0 0 144280 0 0 886 0 0 0 0 0 0
102 2 24 9 2 4
The reason this is interesting is because it's the total of his stats for the year - it does not get split up between his time with Chicago and his time with Dallas, unlike his EHM profile. Meanwhile he has this weird bit in lines 13-15 that I can only assume is relating to the trade, but I can't make heads or tails of it. I checked Nedeljkovic and Lundqvist, who were traded for each other, and they also have stats there;
Bishop:
322 12 4 0 0 0
0 0 0 0 0 7153 0 117 0 0 0 -1
888 11 125 158 0 27
Lundqvist:
192 0 7 0 0 0
0 0 0 0 0 4246 0 17 0 0 0 -1
556 10 92 74 0 21
Nedeljkovic:
943 604 44 0 0 0
0 0 0 0 0 21320 0 6723 0 0 0 60
2365 57 476 333 0 74

Unfortunately that's pretty much the end of what I know / can remember, other than that injury status/length is kept in there somewhere. Hopefully it helps?

Re: Website upgrades

Posted: Mon May 25, 2020 10:44 pm
by SharksGM
I know what the non-career stats are; they go like this:

GP G A PPG SHG GWG
HITF HITA ICETIME FA FAW SHOTSAVE PLUSMINUS PIM
GA SO W L OTL SOL
TAKEAWAY GIVEAWAY BLOCKEDSH FIGHTS FIGHTSW

The injury line is at the very end. The career stats are different though; for career stats though all I have is:

GP G A ? ? ?
? ? ? ? ? SHOTSAVE ? PIM
GA SO W L OTL SOL
? ? ? FIGHTS FIGHTSW

PPG SHG GWG ICETIME FIGHTS(W) FA(W) BLOCKEDSH are all either missing or track something other than what they do in season stat blocks, as far as I can tell.
DetroitGM wrote: Mon May 25, 2020 9:58 am The reason this is interesting is because it's the total of his stats for the year - it does not get split up between his time with Chicago and his time with Dallas, unlike his EHM profile. Meanwhile he has this weird bit in lines 13-15 that I can only assume is relating to the trade, but I can't make heads or tails of it. I checked Nedeljkovic and Lundqvist, who were traded for each other, and they also have stats there;
Yes, unfortunately the stats-per-team for traded players don't get written to statistics.ehm but instead go to ... I think career.car? And they have to be traded in-game for that, so a bunch of players missed out on it by being traded through editing players.ehm directly.

Re: Website upgrades

Posted: Mon May 25, 2020 10:50 pm
by DetroitGM
SharksGM wrote: Mon May 25, 2020 10:44 pm The injury line is at the very end. The career stats are different though; for career stats though all I have is:

GP G A ? ? ?
? ? ? ? ? SHOTSAVE ? PIM
GA SO W L OTL SOL
? ? ? FIGHTS FIGHTSW

PPG SHG GWG ICETIME FIGHTS(W) FA(W) BLOCKEDSH are all either missing or track something other than what they do in season stat blocks, as far as I can tell.
Ohhhh, gotcha, I thought you were looking specifically at statistics.ehm, missed the career part. I'll do some digging tomorrow, see if I can figure out some of that.

Re: Website upgrades

Posted: Tue May 26, 2020 2:15 pm
by DetroitGM
SharksGM wrote: Mon May 25, 2020 10:44 pm The career stats are different though; for career stats though all I have is:

GP G A ? ? ?
? ? ? ? ? SHOTSAVE ? PIM
GA SO W L OTL SOL
? ? ? FIGHTS FIGHTSW
Question; when you're looking for career stats, what file are you going for? I don't see them in statistics.ehm at all and while they do go to career.car, they're in the more simplistic/straightforward format found on the career tab, not the statistics.ehm format.

(unrelated, I've randomly discovered that the 2013-14 playoff stats are not included in the player profiles, as you can see from 2014 Cup winner Anze Kopitar's profile)

Re: Website upgrades

Posted: Tue May 26, 2020 2:29 pm
by TorontoGM
Anyone else having issues when clicking on "rosters" on the team pages?

Re: Website upgrades

Posted: Tue May 26, 2020 10:55 pm
by AvalancheGM
I just did with no problem.

Re: Website upgrades

Posted: Tue May 26, 2020 11:20 pm
by Vik (Habs)
TorontoGM wrote: Tue May 26, 2020 2:29 pm Anyone else having issues when clicking on "rosters" on the team pages?
My team is fine, your team gives me a division by zero error. Pretty sure it's because you don't have any prospects - the site shows averages at the bottom of each subsection and must not have a check for if the # of players it's averaging over is zero.

Re: Website upgrades

Posted: Wed May 27, 2020 11:02 am
by PittsburghGM
There's also something off with the goalies' EHEC + NHL stats, which is causing them to dominate the PIM category of career leaders

Re: Website upgrades

Posted: Wed May 27, 2020 1:31 pm
by Vik (Habs)
PittsburghGM wrote: Wed May 27, 2020 11:02 am There's also something off with the goalies' EHEC + NHL stats, which is causing them to dominate the PIM category of career leaders
Rick DiPietro - 2nd alltime in goals but no where to be seen for assists. Give that man a Cy Young.
Samuel Carrier - feels like a veteran of 1411 games after his 39 game stint with St. Louis years ago.

Re: Website upgrades

Posted: Wed May 27, 2020 2:52 pm
by AvalancheGM
Haha, in my old Minsk Wolves file Dan Ellis and Mike Bales had the most wins by far, like quadruple the next highest.

Re: Website upgrades

Posted: Wed May 27, 2020 4:41 pm
by PittsburghGM
Vik (Habs) wrote: Wed May 27, 2020 1:31 pm
PittsburghGM wrote: Wed May 27, 2020 11:02 am There's also something off with the goalies' EHEC + NHL stats, which is causing them to dominate the PIM category of career leaders
Rick DiPietro - 2nd alltime in goals but no where to be seen for assists. Give that man a Cy Young.
Oh, I didn't even notice all the goalies on the goals leaderboard... imagine having 729 goals and 7032 PIM in 738 games lol

Re: Website upgrades

Posted: Wed May 27, 2020 9:00 pm
by Bernyhawks
Would also be nice if you update the Cup champ to forget that lame ass cheater!

Re: Website upgrades

Posted: Wed May 27, 2020 10:45 pm
by SharksGM
Bernyhawks wrote: Wed May 27, 2020 9:00 pm Would also be nice if you update the Cup champ to forget that lame ass cheater!
Ah, I should put up Edmonton just in time to replace them next week? Great call!
DetroitGM wrote: Tue May 26, 2020 2:15 pm Question; when you're looking for career stats, what file are you going for? I don't see them in statistics.ehm at all and while they do go to career.car, they're in the more simplistic/straightforward format found on the career tab, not the statistics.ehm format.
They're lines 17-20 of each 25-line statistics.ehm block. Like I said, it's five blocks each for junior, pro, farm, career and playoff. There's a sixth block of mystery that is mostly zeros, although I noticed that Petr Straka has these numbers:

4 3 1 1 0 0
6 7 4030 17 9 6 0 2 0 2 0 20
0 0 0 0 0 0
2 3 1 0 0

The last time is for injuries and ends with the player ID.

Re: Website upgrades

Posted: Wed May 27, 2020 10:51 pm
by SharksGM
Vik (Habs) wrote: Wed May 27, 2020 1:31 pm Samuel Carrier - feels like a veteran of 1411 games after his 39 game stint with St. Louis years ago.
Wait a second, didn't you make the original file? That one's not my fault. Carrier has had Teppo Numminen's career stat line since the first season. I presume Adam wrote over his entry in players.ehm instead of picking an existing draftee.

Re: Website upgrades

Posted: Wed May 27, 2020 11:04 pm
by Vik (Habs)
SharksGM wrote: Wed May 27, 2020 10:45 pmThey're lines 17-20 of each 25-line statistics.ehm block. Like I said, it's five blocks each for junior, pro, farm, career and playoff. There's a sixth block of mystery that is mostly zeros, although I noticed that Petr Straka has these numbers:

4 3 1 1 0 0
6 7 4030 17 9 6 0 2 0 2 0 20
0 0 0 0 0 0
2 3 1 0 0
International stats.
SharksGM wrote: Wed May 27, 2020 10:51 pm
Vik (Habs) wrote: Wed May 27, 2020 1:31 pm Samuel Carrier - feels like a veteran of 1411 games after his 39 game stint with St. Louis years ago.
Wait a second, didn't you make the original file? That one's not my fault. Carrier has had Teppo Numminen's career stat line since the first season. I presume Adam wrote over his entry in players.ehm instead of picking an existing draftee.
Original file = yes. Carrier = no. Looking that up make me feel old = very much.

Re: Website upgrades

Posted: Wed May 27, 2020 11:31 pm
by SharksGM
Vik (Habs) wrote: Wed May 27, 2020 11:04 pm
SharksGM wrote: Wed May 27, 2020 10:45 pmThey're lines 17-20 of each 25-line statistics.ehm block. Like I said, it's five blocks each for junior, pro, farm, career and playoff. There's a sixth block of mystery that is mostly zeros, although I noticed that Petr Straka has these numbers:

4 3 1 1 0 0
6 7 4030 17 9 6 0 2 0 2 0 20
0 0 0 0 0 0
2 3 1 0 0
International stats.
Oh, I suppose he did actually play 4030 seconds in four games, which says something about team Czechia.
Vik (Habs) wrote: Wed May 27, 2020 11:04 pm
SharksGM wrote: Wed May 27, 2020 10:51 pm
Vik (Habs) wrote: Wed May 27, 2020 1:31 pm Samuel Carrier - feels like a veteran of 1411 games after his 39 game stint with St. Louis years ago.
Wait a second, didn't you make the original file? That one's not my fault. Carrier has had Teppo Numminen's career stat line since the first season. I presume Adam wrote over his entry in players.ehm instead of picking an existing draftee.
Original file = yes. Carrier = no. Looking that up make me feel old = very much.
A pleasure to be of service. At least we're not Teppo Numminen's age.

Re: Website upgrades

Posted: Thu May 28, 2020 10:06 am
by DetroitGM
SharksGM wrote: Wed May 27, 2020 10:45 pm They're lines 17-20 of each 25-line statistics.ehm block. Like I said, it's five blocks each for junior, pro, farm, career and playoff.
Weird, I have no idea how I didn't get that from you saying it and from looking at the file, it feels obvious now that you've said it a second time.

New hypothesis: considering the structure of the career block is the same as the others (with the same slots for G, A, W, L, etc) and considering the spots you noted as being unknown in the career stats seem to be entirely 0s for everyone, maybe they act as a sort of placeholder and the game just isn't tracking career PPGs, for instance?
The ones that are not 0s are pretty straightforward, right? Games, goals, assists, pim. Shots too, somewhat oddly, as it's not noted anywhere else for career stats (like, there are milestones for games, goals, assists, there's the leaderboard for most career PIM, but nothing for shots). Similar for goalies.

The fact that the career stats follow the same block might also explain why goalies would be high on the leaderboard for goals, PIM, etc. If the original file was manually edited to add players but without removing things from the stats.ehm file, then some goalies would have pre-existing numbers for goals, assists, etc. Which means there would, presumably, also be skaters with wins, losses, etc, though I haven't found any yet.


Unrelated, when I looked at goalies profiles on the website, they now all have a bunch of lines saying this:
Notice: Undefined offset: 2047 in /home/ehecpro/public_html/get_nhl_statistics_attributes.php on line 146

Re: Website upgrades

Posted: Wed Jun 17, 2020 10:45 pm
by SharksGM
Although I haven't made this visible, you can now browse stats from previous seasons in any if the three stats pages (pro, farm, playoff) like so:

https://ehec.pro/statistics_player.php? ... o&season=0

Season 0 is the debut 2009-10 season, for which I sadly only have the Olympics save which was based off the league file ~60 games in but all of the player teams are wrong since they got moved to countries instead. Every other season is fine, as far as I know, although I had to go back and fix some impossible birthdates because seriously why would a European developer store dates in YYYY DD MM format?
DetroitGM wrote: Thu May 28, 2020 10:06 am The fact that the career stats follow the same block might also explain why goalies would be high on the leaderboard for goals, PIM, etc. If the original file was manually edited to add players but without removing things from the stats.ehm file, then some goalies would have pre-existing numbers for goals, assists, etc. Which means there would, presumably, also be skaters with wins, losses, etc, though I haven't found any yet.
For the most part, we (well, past commissioners) let EHM retire the necessary number of players for the next draft class, so at most there will just be a handful of prospects who were written over veterans who hadn't had a chance to retire and have their history scrubbed clean.

Re: Website upgrades

Posted: Tue Jul 11, 2023 1:47 am
by SharksGM
This is purely for the forums only, but I figured out how to rebuild the search index so you can search for any words of 2 characters or longer, e.g. "TB 1st". It won't complain about short words or common ones and ignore them anymore.

Re: Website upgrades

Posted: Tue Jul 11, 2023 2:10 pm
by NYRNYRNYR
SharksGM wrote: Tue Jul 11, 2023 1:47 am This is purely for the forums only, but I figured out how to rebuild the search index so you can search for any words of 2 characters or longer, e.g. "TB 1st". It won't complain about short words or common ones and ignore them anymore.
Everytime I search for any "1sts" it just responds with "LOL LUL JUST GO CHECK WINNIPEG"

So, I mean, working as intended

Re: Website upgrades

Posted: Wed Aug 02, 2023 5:35 pm
by TorontoGM
Is there anyway we can add a dark mode feature to the forum?

Re: Website upgrades

Posted: Wed Aug 02, 2023 5:47 pm
by VancouverCanucksGM
TorontoGM wrote: Wed Aug 02, 2023 5:35 pm Is there anyway we can add a dark mode feature to the forum?
Please

Re: Website upgrades

Posted: Thu Aug 03, 2023 9:33 pm
by SharksGM
Maybe, I'll look into it after the draft. In the meantime, try browser extensions like Dark Reader or mobile browsers with built-in dark modes.

Re: Website upgrades

Posted: Fri Aug 04, 2023 11:54 am
by TorontoGM
SharksGM wrote: Thu Aug 03, 2023 9:33 pm Maybe, I'll look into it after the draft. In the meantime, try browser extensions like Dark Reader or mobile browsers with built-in dark modes.
Fair enough, just wondered if there was an easy option to add to the forum. Dark reader is too buggy IMO and the other extension I had, doesn't seem to work on forums.

Thanks!

Re: Website upgrades

Posted: Fri Aug 04, 2023 12:04 pm
by DetroitGM
For what it's worth, this came up fairly quickly in a search for phpBB dark mode

https://www.phpbb.com/customise/db/extension/darkmode/

Re: Website upgrades

Posted: Sun Sep 24, 2023 8:02 pm
by SharksGM
I installed this dark theme: https://www.phpbb.com/customise/db/style/dvgfx2/

To use it, go to your User Control Panel, Board Preferences and select it under My board style (link here).

Personally, I prefer the original prosilver with Dark Reader, but ymmv. If you want a different dark style installed, browse through the styles in the phpbb link above and let me know which.

Re: Website upgrades

Posted: Sun Sep 24, 2023 8:22 pm
by AvalancheGM
Interesting. I downloaded Dark Reader. I like it better than the new theme, but I prefer white for the team pages.

Re: Website upgrades

Posted: Mon Sep 25, 2023 10:32 am
by SharksGM
Entirely separately, I finally added an overall drsft position column to the draft history page (in addition to the existing draft round column).

Re: Website upgrades

Posted: Mon Sep 25, 2023 10:53 am
by Wiild
Oh hell yeah. Dark looks goooood.

Re: Website upgrades

Posted: Tue Sep 26, 2023 7:47 am
by Dallas Stars GM
Nice job.
Even though, we all know dark mode is better for the eyes, I'll stick with the classic bright with EHEC.

Re: Website upgrades

Posted: Tue Sep 26, 2023 8:34 am
by DetroitGM
Dallas Stars GM wrote: Tue Sep 26, 2023 7:47 am Nice job.
Even though, we all know dark mode is better for the eyes, I'll stick with the classic bright with EHEC.
Ya, same. I tried dark mode the past few days but just haven't cared for it. But I keep my brightness down, so it's fine, not like my eyes are progressively getting worse or something 😅😅

Re: Website upgrades

Posted: Tue Sep 26, 2023 9:11 am
by AvalancheGM
SharksGM wrote: Mon Sep 25, 2023 10:32 am Entirely separately, I finally added an overall drsft position column to the draft history page (in addition to the existing draft round column).
Not all heroes wear capes.

Re: Website upgrades

Posted: Sun Dec 03, 2023 3:09 am
by SharksGM
As requested, there are now team-specific schedule pages, with convenient links from the regular schedule page.

Re: Website upgrades

Posted: Sun Dec 03, 2023 3:27 pm
by AvalancheGM
Whoa, that's awesome. If only someone could extrapolate a full schedule for my HLM league, where the game only lets you view the games for one team at a time...

Re: Website upgrades

Posted: Sun Dec 03, 2023 3:38 pm
by DetroitGM
SharksGM wrote: Sun Dec 03, 2023 3:09 am As requested, there are now team-specific schedule pages, with convenient links from the regular schedule page.
Thank you :)

Re: Website upgrades

Posted: Sun Dec 03, 2023 4:54 pm
by Sharp Stick Bisons
SharksGM wrote: Sun Dec 03, 2023 3:09 am As requested, there are now team-specific schedule pages, with convenient links from the regular schedule page.
Very nice very nice, well done.

Re: Website upgrades

Posted: Tue Mar 26, 2024 2:01 am
by SharksGM
The player pages now work correctly if you specify the season, and the team scoring pages from past seasons will link to the player page from the corresponding season, so you can check out stats for players who retired, amongst other things.

The league scoring pages should eventually do the same, one day.

Prior season standings will take a bit more effort; if/when I ever get around to them I'm probably not going to bother with digging up how the division alignments changed, etc.

Re: Website upgrades

Posted: Tue Mar 26, 2024 11:13 am
by Dallas Stars GM
Nice job, thanks.