• Resolved aceniz

    (@aceniz)


    ok, so here’s something interesting. I’ve found that, like other users, I’m having problems with box score not populating. There was mention of this being due to them being named the same, which can be an issue with darts stats. I’d worked out where metrics were populating from, event results calls from player performance and so does box score, but box score was all reading 0 after inputting random data. tried a little AI coding on meta-box-event-performance lines 413 onwards, to no avail. I imported demo data and used those players to create an event, inputted random results, still nothing in box scores.

    Absolutely no idea why it isnt working.

    I’m also trying to create and pull custom metrics from the event results for darts, namely a players best leg and highest checkout, which shouldnt be hard, its literally just picking a min or max value from the event results. A player statistic allows for a number to be a total or an average so why not a min or max value?

    SO any ideas on why box score isnt populating ? and is it possible to add that min/max option into the code somewhere instead of it doing a total/sum?

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

    (@savvasha)

    Hi there @aceniz ,

    Some screenshots will help us understand exactly what is the issue you are facing. What do you mean “box score not populating”. Or “this being due to them being named the same”? Are you referring to other similar tickets? Can you share the links also?

    Thanks,
    Savvas

    Thread Starter aceniz

    (@aceniz)

    HI @savvasha,

    Not sure if that screenshot loads, but I created an event, put in random figures creating the win/loss, havent entered anything on the box score in teh admin page, but none of the random figures are entered into the box score boxes. I thought that was automatic? or am I missing something here? I’ve pasted another ticket Roch helped with someone on the same issue.

    I have named them something slightly different in event results and player performance so that its not getting confused what data its pulling.

    I’ve tried this with no other plugins running on Rookie theme, It’s been tried with default wordpress install and demo players and dummy data inputs. I create an event, input dummy data on the front end, approve it in the admin page for the event, box score still shows 0 in every box.

    https://www.ads-software.com/support/topic/not-showing-all-leagues-in-players-stats/

    • This reply was modified 3 months, 1 week ago by aceniz. Reason: added images
    Plugin Contributor Savvas

    (@savvasha)

    Hi @aceniz ,

    What equations are you using for your player performances? For example, how “3 Dart Average” should be calculated? Based on which stat? Did you check that the “Decimale Places” for your stats is set correctly?

    Thanks,
    Savvas

    Thread Starter aceniz

    (@aceniz)

    yes decimals are set to 2. There are no equations for the performances They’re just set to number, I’ve shown the config below. The 3DA is calculated in the table by the 3DA / matches played giving the average.

    I set all the stats I want to record in player performance, event results were set as the PP stat that I wanted to record. Or have I got that Backwards?

    • This reply was modified 3 months, 1 week ago by aceniz.
    Plugin Contributor Savvas

    (@savvasha)

    If the type of your Performances are just set to “Number” then there will be no auto-calculation. The system will just wait from the user to manual add some values to the fields. To initialize auto-calculations you need to use the “Equation” type and add some logic to your fields.

    Thanks,
    Savvas

    Thread Starter aceniz

    (@aceniz)

    ok. That being said where does each section get its data from? One of them has to be set to number for the others to get the data from by the equation. Which ones are supposed to be equations ? The Event results input only has options for player performance, operators, constants and Next Team, Player statistics only gets the data as number or time as an equation.

    If player performance is set to equation it doesnt show up in the event admin page as a chooseable option, if set to number it does. So what you’re saying is I cant use box score if I have to set PP to equation, either that or the codes broke. Bear in mind this is for DARTS, theres not really any difficult equations, 90% of it is adding up, the only stat that isnt added up is 3 dart average, which is 3da / matches in this case.

    Plugin Contributor Savvas

    (@savvasha)

    Hi @aceniz,

    Lets take it from the begining.

    In an event you can add the following info:

    1. Event Results (which can be either a simple field to manually add a value, or an equation which can be populated based on the player’s performance of that event)
    2. Player Performances (usually are simple fields to manually add performance data of a player on an event. You can though add an equation which can make some calculations based on other performance data of the same event! For example you can add 12 points for every inner succesfull shot. But inner succesfull shot must be defined as a separate player performance data. So an equation like Points = 12 x InnerShot can be used)
    3. Event Outcomes (these can be either auto-calculated if you have a default Event Result selected, or manually selected by the user)

    In a League Table you can add the following info:

    1. Table columns: You can use equations with multiple type of data like Event Outcomes and Event Results.

    In a Player List you can add the following info:

    1. Statistics: You can use equations with multiple type of data like Event Outcomes, Event Results and Player Performances. You can even add a Player Metric in the equation. With equations you have almost unlimited possible scenarios you can use.

    I hope that everything is more clear now. I am not quite familiar with Darts scoring, thats why I cannot give you specific examples for each type of configuration.

    Thanks,
    Savvas

    Thread Starter aceniz

    (@aceniz)

    For darts the stats that are recorded against each event/match are the legs won (each game of 501 is a leg), how many of the throws (3 darts per throw) have scored over set numbers eg 60+, 80+, 100+ and so on up to the maximum 180, their ‘Best Leg’ (how many darts it took to win the game, eg 9 darts is the lowest possible, look up Luke Littler for an idea), the highest checkout ( just the highest number scored to finish the game) and the players 3dart average for that game. everything apart from best leg, highest checkout and 3 dart average are just added up as totals, 3 Dart Avg on multiple games is just their 3DA of each game added and divided by their matches, I think in player stats you already have the option of Total or Average.

    I’ve decided to abandon the box score option, as its not necessary for darts just adds a little flare to the display. What I’m originally trying is to get the Best Leg variable to just choose the lowest number from the event results of the current season (for listing on a players statistics profile and in a league table) and their Highest checkout which should just be the highest number in that field. Both of those should in theory only need an equation to pull the MIN or MAX value from the database in the sp_results postmeta, so ‘should’ be possible.

    Theres currently no specific plugin or theme for Darts that I’ve found anywhere, most tend to cater to main stream sports of teams. So it might be an idea if you did develop one specifically for Darts to monopolise the idea.

    Plugin Contributor Savvas

    (@savvasha)

    Hi there @aceniz ,

    Thank you for taking the time to detail how darts scoring and statistics are recorded. I will pass it along to our development team for consideration in future SportsPress updates.

    Thanks,
    Savvas

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