• Resolved MiKapa

    (@mikapa)


    Hi all,

    I’m having a difficult time with some calculations in my Sportspress (Basketball related) installation. In particular:

    Sample event to check

    1. In each team’s total stats, the Total rebounds (REB) are zero, when the individual players’ rebounds are calculated correctly. Other Total columns (PTS, AST etc) are calculated correctly as well. The REB column is the sum of DEF and OFF columns. I’m guessing that, because of the fact that the Team’s total REB is a calculation of a calculation, this doesn’t work? Is there any way to fix that? Should it work out of the box and maybe I did something wrong (not sure what could I do wrong here)?

    2. In the same table (Player performance in Event) I’ ve added a custom formula for efficiency (there is a ready made variable for that, for use in player lists, but I want to show the efficiency in events as well). The formula works well for the players but I want to calculate the team’s average efficiency as well (now it shows 0). Can this be done in some way?

    (Btw the efficiency formula the plugin ships with is “pts + off + def + ast + stl + blk ? fga + fgm ? fta + ftm + to” which is wrong. The turnovers (to) should be subtracted, not added).

    Thanks,

    Manos

    • This topic was modified 6 years, 1 month ago by MiKapa.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Savvas

    (@savvasha)

    Hi @mikapa,

    We just released a new version (2.6.10) with the following changelog:

    
    2.6.10
    Tweak – Apply reverse teams settings to logos.
    Fix – Statistics doubling in player lists when player is assigned to a team.
    Fix – Display blank placeholder in player lists when no team is assigned.
    Preset – Update basketball efficiency rating equation.
    

    Do you still have the above problems?

    Thanks,
    Savvas

    Thread Starter MiKapa

    (@mikapa)

    Hi Savvas,

    Yes the problems still exist, any idea what could go wrong with the team’s total calculation of rebounds and efficiency rating? Please let me know if you need more info on my setup.

    Thanks,

    Manos

    Plugin Contributor Savvas

    (@savvasha)

    Hi @mikapa,

    1) You are right. I reproduced the issue and I will inform the Developers to fix it.

    2) Unfortunately the Total Average of a Performance is something complicated. Its not a simple adding all the Averages of the players and divide by the number of the players for example. You can always calculate the Total Average and add it manually.

    Thanks,
    Savvas

    Thread Starter MiKapa

    (@mikapa)

    Hi Savvas,

    Sounds great, waiting for the fix for the rebounds ??

    About the Efficiency total, my previous question about the average was wrong. I found out that the team’s efficiency is the sum of the players’ efficiency numbers. Maybe this fact changes something about the possibility to show the team’s efficiency?

    Thanks again,

    Manos

    Plugin Contributor Savvas

    (@savvasha)

    Hi @mikapa,

    The issue with the wrong total stats was found and fixed. It will be included in our next update. In the meantime you can try it with the following commit:
    https://github.com/ThemeBoy/SportsPress/commit/795ae271fe76d00a86f02f5ebeb6042a9d6701a7

    Thanks,
    Savvas

    Thread Starter MiKapa

    (@mikapa)

    Hi Savvas. Works like a charm, thanks!

    Plugin Contributor Savvas

    (@savvasha)

    Perfect!

    Thanks,
    Savvas

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Calculations errors’ is closed to new replies.