Overtime Win/Loss Point Calculation

Shoal Summit Solutions Forums MSTW League Manager Plugin (& Add-ons) Overtime Win/Loss Point Calculation

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #6550

    Hi there, I have a quick question concerning point calculation in my Ice Hockey League. In the League settings I set up 3 Points for a win, 2 Points for an overtime Win and 1 Point for a loss. I have the league manager add ons plugin running that does the point calculation automatically. However in the standings table (after marking the game as final)it gives the OT-winner 3 points and 0 to the ot looser. What I want is 2 points for the OT-winnter, 1 for the OT-Looser.

    When editing a game score I nowhere see a checkbox for OT win/loss. How does the plugin even “know” if a game went to OT?
    I also can’t see any changed if I manually go to “update games” or “update records”. I don’t know how to “tell” the plugin that a game went to overtime. What am I doing wrong? All leagues are in “ice hockey” and so are my league settings for the point distribution….can you please help?
    Best regards
    Pat

    #6551
    Mark
    Keymaster

      Hi Patrick,
      Thank you for posting your question here. Excellent questions. You made me dig deep into the memory bank and the code. So as background, I believe this all works when you don’t use the automatic updates and instead enter the team records manually. This was the only way to do standings before the LM Add-ons plugin introduced the automatic calculations.

      When we started to implement the auto-calc standings, it got pretty crazy pretty fast. In particular, the user needs/wants for calculating points got pretty complicated. SO, there is a filter mstw_lm_points_calc, that lets you do points however you want to do points (https://shoalsummitsolutions.com/lm-actions-filters/#points_calc).

      BTW, there is also a way to indicate that a game was an OT game in the various schedule shortcodes – the Game Status Append field on the Edit Game Screen.

      That’s all nice, but you are the first user to discover that there is no way to indicate that a game was an OT game so the points calculations can work. SO none of the above matters (other than indicating in the schedules that a game was OT) because you can’t make the auto-calculations work.

      So the short answer is:
      o OT games don’t work with the auto-calculation right now. They only work with manual entry of records.
      o It’s on the list, and will be in the next release, which I expect to release before the end of the year.

      I wish I had a better answer for you right now.

      -Mark

      #6552

      Hi Mark,
      thanks for the info and going back memory lane for me:) I did uncheck “auto fill” and helped myself by manually editing records. I highly appreciate your announcement fixing this in the upcoming release though. Can’t wait.
      Best regards
      Patrick

      #6613

      Thanks for this post as our league has OT as well and I could not figure out how to record OT games.

      #6618
      Mark
      Keymaster

        Thanks. I hope to figure this out and implement it soon, but it ain’t going to be the end of 2021.

        #6787

        Hi Mark,
        me again 🙂 Sorry, I am buggin you all the time, but I really like your plugin and its an essential part, if not to say the heartpiece on my website. Therefore I really appreciated your effort to place my request concerning the OT-game point calculation in the latest update. However now I have a slight issue: The “pointrules” from the settings screen are not calculated correctly when auto-filling standings correcty.

        Same situation as mentioned above:In the League settings (for my hockey league) I set up 3 Points for a win, 2 Points for an overtime Win and 1 Point for an overtime loss, (0 for a normal loss of course). I have the league manager add ons plugin running that does the point calculation automatically and the new checkbox for calculation overtime games is active as well..

        However in the standings table (after marking the game as final) it still gives the OT-winner 3 points (instead of 2) and 1 Point to the ot looser (ok).
        Therefore also in the standings the winning team gets a +1 in “Wins” (instead of in “OTW”). The loosing team correctly gets a +1 in “OTL”.
        I might be missing something, but everything else is set up correctly I guess. Its “kinda” critical because all results (also in archived seasons) and other leagues would get messed up by this (if it was a bug) 😉
        Could you please have a look?
        Greedings from germany
        Patrick

        Plugin versions up to date:
        MSTW League Manager Plugin: 2.9
        MSTW League Manager Plugin Add-ons: 2.9

        #6789
        Mark
        Keymaster

          Hi Patrick,
          I’ll check on this, but I believe you are correct. I should be an easy fix, but there’s also a filter available that gives you pretty much complete control of the points calculation. I need to get a man page up on this. Hoffentlich morgen. I’ll post here when it’s available.

          Beste Grüße,
          -Mark

          #6790
          Mark
          Keymaster

            So Patrick,
            I took a look at this and the difficulty (for me) is not the points calculation (I still have to write the man page, and I may do a video too.) but the display. Should OT wins display as wins, should OT losses display as losses, or should they be separated. This affects the database and the shortcode displays. There are simply too many possibilities to fit everyone’s needs. I’ll get to some new controls, perhaps for the next build (whenever that might be). If you would like me to something ‘quick and dirty’ for your specific requirements, drop me an email and we can discuss.

            -Mark

            #6791

            Ah, I get your point, I didnt know. OT-Results must be counted separately so in the database you would probably really need 2 new metrics besides Wins, Losses and Ties. For example in hockey, an overtime win does not show up at wins. Only at OT-Wins. Nor does a 1 point for ties after regular gametime, and a loss after OT show up for ties.

            Game 1: Team A vs. Team B: 5:4 (O.T.)

            In the standings it would look like this:
            TEAM	GP	PTS	W	OTW	L	OTL	GS	GA	+/-
            Team A  1        2      0        1      0        0       5       4       +1
            Team B  1        1      0        0      0        1       4       5       -1

            So Wins, Losses & Ties do not get a +1, ONLY the new metrics OTW & OTL.
            But to make it even more confsuing, I guess this changes from league to league or country. It might be possible, that in some leagues they say that an OT Win DOES count to regular wins. I think an optional checkbox for the user to decide whether or not he/she wants OT-Wins to be displayed as Wins OR as OT-wins would be the best solution. But for the database, I think you’d have to add these new ones.

            #6794
            Mark
            Keymaster

              Well, hopefully we can make it a bit simpler than that. But you’ve got the idea, it’s a bit tricksy.
              Stay tuned.
              -Mark

            Viewing 10 posts - 1 through 10 (of 10 total)
            • You must be logged in to reply to this topic.