• Resolved jalaloo

    (@jalaloo)


    I have 2 questions pleas
    -when I create custom league
    Then added 6 games as example
    Players will predict and points will calculated and players will be ranked after games finished
    Then
    I want add another 6 games for next week
    Is that possible ! So the new calculations will be added to the early week resuakrs ?
    Or it will reset previous points !
    – question 2
    If I like to add extra points system like :player who succefuly guess (w,l,tie)(with no exact goals number ) 5 games out of 6 or more than 70% of the gameweek matches will gain +5 points .. is that possible ? Ty

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author AntoineH

    (@antoineh)

    Question 1:
    When you add the games, then the points will be added to the previous points. Only if you delete the previous games (or import & overwrite), then you will also remove the predictions for those games (and rewarded points after a calculation).

    If you want to create a ranking for a match week, then this is also possible by defining custom rankings in the admin. Those custom rankings will be calculated after the default ranking (which contains all scores).

    Question 2:
    I think it will be very hard. The calc_score method can be overwritten via a hook in PHP, but that method only looks at one match at a time. You would have to do a lookup of other, adjacent matches for each individual score calculation inside the method. That might also impact the performance. Another option can be to hook into the admin score calculation script after the ranking calculation has finished. Then you could query the score history and maybe ‘up’ the scores more efficiently. Just thinking out loud now ??. But that would only affect the ranking, not the display of points for an individual match.

    Another (manual) option, is to add bonus questions that you immediately close for input. Then write a script that will enter a value for each contestant (can be anything, e.g. “bonus points awarded”, it’s just that this functionality needs a user answer). And then award points on the question per user based on your own manual calculation.

    Thread Starter jalaloo

    (@jalaloo)

    Really appreciate ur fast answer
    Tyyyy it covered the question very well for me

    Thread Starter jalaloo

    (@jalaloo)

    Thnx

    My points for the deleted matches are still there? Help

    Plugin Author AntoineH

    (@antoineh)

    My points for the deleted matches are still there? Help

    You have to do a calculation in the admin after you have deleted the matches.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Calculation support’ is closed to new replies.