API - Points - Result

  • Hello erveryone,


    I have a question related to the EQDKP API that use to import the DKP Data into WoW-Classic.
    We are using a single dkp pool where the "Show Twinks" setting is set to "no" so that the points are summed up for the account.

    Sometimes there are some results i dont understand.

    Here is an example:
    Player with 2 Chars
    Main: ID=47 Name=Okat
    Twink: ID=103 Name Daokat
    To get the points for a player i would use the "points_current_with_twink" property in the json result.

    When i look at the main

    points_current_with_twink = -82.57
    Twink

    points_current_with_twink = -39.57

    Maybe i'm wrong but i think these 2 values should be the same?

    I picked an easy to read example cause in this case the twink never visited a till now and so the char as no points/adjustments/etc.

    I hope someone can help me to understand whats the reason behind so i can fix my points importer.
    Thx in advance.


            "player:47": {
                "id": 47,
                "name": "Okat",
                "active": "1",
                "hidden": 0,
                "main_id": 47,
                "main_name": "Okat",
                "class_id": 2,
                "class_name": "Druide",
                "points": {
                    "multidkp_points:1": {
                        "multidkp_id": 1,
                        "points_current": "-39.57",
                        "points_current_with_twink": "-82.57",
                        "points_earned": "155.00",
                        "points_earned_with_twink": "155.00",
                        "points_spent": "210.00",
                        "points_spent_with_twink": "210.00",
                        "points_adjustment": "39.09",
                        "points_adjustment_with_twink": "39.09",
                        "points_current_html": "<span class=\"negative\">-39.57<\/span>",
                        "points_current_with_twink_html": "<span class=\"negative\">-82.57<\/span>",
                        "points_earned_html": "<span class=\"positive\">155.00<\/span>",
                        "points_earned_with_twink_html": "<span class=\"positive\">155.00<\/span>",
                        "points_spent_html": "<span class=\"negative\">210.00<\/span>",
                        "points_spent_with_twink_html": "<span class=\"negative\">210.00<\/span>",
                        "points_adjustment_html": "<span class=\"positive\">39.09<\/span>",
                        "points_adjustment_with_twink_html": "<span class=\"positive\">39.09<\/span>"
    }
    },
                "items": {
                    "item:98": {
                        "game_id": "19437::::::::60:::::::",
                        "name": "Boots of Pure Thought",
                        "value": 50,
                        "itempool_id": "1"
    },
                    "item:100": {
                        "game_id": "19395::::::::60:::::::",
                        "name": "Rejuvenating Gem",
                        "value": 120,
                        "itempool_id": "1"
    },
                    "item:132": {
                        "game_id": "22399::::::::60:::::::",
                        "name": "Idol of Health",
                        "value": 40,
                        "itempool_id": "1"
    }
    },
                "adjustments": {
                    "adjustment:757": {
                        "reason": "Contentwechsel Softreset",
                        "value": "39.09",
                        "timestamp": "1597130625",
                        "event_id": "11"
    }
    }
    },

    "player:103": {
                "id": 103,
                "name": "Daokat",
                "active": "1",
                "hidden": 0,
                "main_id": 47,
                "main_name": "Okat",
                "class_id": 3,
                "class_name": "J\u00e4ger",
                "points": {
                    "multidkp_points:1": {
                        "multidkp_id": 1,
                        "points_current": "0.00",
                        "points_current_with_twink": "-39.57",
                        "points_earned": "0.00",
                        "points_earned_with_twink": "155.00",
                        "points_spent": "0.00",
                        "points_spent_with_twink": "210.00",
                        "points_adjustment": "0.00",
                        "points_adjustment_with_twink": "39.09",
                        "points_current_html": "<span class=\"neutral\">0.00<\/span>",
                        "points_current_with_twink_html": "<span class=\"negative\">-39.57<\/span>",
                        "points_earned_html": "<span class=\"positive\">0.00<\/span>",
                        "points_earned_with_twink_html": "<span class=\"positive\">155.00<\/span>",
                        "points_spent_html": "<span class=\"negative\">0.00<\/span>",
                        "points_spent_with_twink_html": "<span class=\"negative\">210.00<\/span>",
                        "points_adjustment_html": "<span class=\"neutral\">0.00<\/span>",
                        "points_adjustment_with_twink_html": "<span class=\"positive\">39.09<\/span>"
    }
    },
                "items": [],
                "adjustments": []
    }


  • Yes, the value at points_current_with_twink seams to be wrong. But I cannot tell you why it is wrong. Do you have APAs enabled? Do you already have recalculated the point cache at maintenace area? Also, which values do the standings page show? Also, which point system do you use?

    Viele Grüße,
    GodMod


    Bitte sendet mir keine unaufgeforderten Support-PNs. | Please don't send me unwanted support-PMs.
    Du willst dich bei mir bedanken: | You want to thank me:

    amazon_wishlist.jpg paypal_logo.jpg

  • Yes, APA is activated with a weekly decay, i did a recalculation in the maintenace area yesterday before our raid cause there were also some of these issues, i can't say now if the one with this player was already there or was added with the raids i entered yesterday.

    Anyway this problem is showing up again and again.
    I dont understand why everything is correct but only the points_current_with_twink of the main character is wrong.

    I added a Screenshot of the points page, everything is ok there.

  • I added a Screenshot of the points page, everything is ok there.

    The Screenshot only shows the Twink. How about the Main Column?

    I dont understand why everything is correct but only the points_current_with_twink of the main character is wrong.

    I also don't understand it. I am also not able to reproduce that issue.

    Yes, APA is activated with a weekly decay, i did a recalculation in the maintenace area yesterday before our raid cause there were also some of these issues, i can't say now if the one with this player was already there or was added with the raids i entered yesterday.

    Then make it again and see what happens

    Viele Grüße,
    GodMod


    Bitte sendet mir keine unaufgeforderten Support-PNs. | Please don't send me unwanted support-PMs.
    Du willst dich bei mir bedanken: | You want to thank me:

    amazon_wishlist.jpg paypal_logo.jpg

  • There were 3 rows in screenshot
    Daokat
    Okat
    Gesamt



    Here is a screenshot of the profile page of the user.

    After the recalc this user is ok now.
    But whats the point?
    Recalc after adding a raid?
    Is it possible to disable the autmatic calculation and only do it manually? (Site crashing anyways if multiple users are accessing points page after adding a raid when APA is active)


  • Is it possible to disable the autmatic calculation and only do it manually? (Site crashing anyways if multiple users are accessing points page after adding a raid when APA is active)

    The site crash is normal, as all caches have to be filled after a raid was inserted. But only can enable or disable an APA, or move to a onetime APA that you will trigger manually.

    Viele Grüße,
    GodMod


    Bitte sendet mir keine unaufgeforderten Support-PNs. | Please don't send me unwanted support-PMs.
    Du willst dich bei mir bedanken: | You want to thank me:

    amazon_wishlist.jpg paypal_logo.jpg

  • This week same problem again, i also did the recalculation, some Problems are are gone but a lot still there.

    Curretnly i have 9 accounts where the points_current_with_twink of the main and the twink are different.
    Now that the Recalc doesnt work also i really dont know what to do :/

    Inconsistent data, Aryuz, Aryuna

    Inconsistent data, Atomhirschi, Atomar

    Inconsistent data, Atömchen, Atomar

    Inconsistent data, Flottilol, Flottiløl

    Inconsistent data, Laserlutz, Kayujin

    Inconsistent data, Midgetsmage, Midget

    Inconsistent data, Repasu, Repa

    Inconsistent data, Tosutwink, Tosuau

    Inconsistent data, Zeluu, Zelu


    Example (whole json result is attached)


    "player:86": {
                "id": 86,
                "name": "Aryuna",
                "active": "1",
                "hidden": 0,
                "main_id": 86,
                "main_name": "Aryuna",
                "class_id": 8,
                "class_name": "Schamane",
                "points": {
                    "multidkp_points:1": {
                        "multidkp_id": 1,
                        "points_current": "-120.63",
                      "points_current_with_twink": "-120.63",
                        "points_earned": "129.00",
                        "points_earned_with_twink": "129.00",
                        "points_spent": "270.00",
                        "points_spent_with_twink": "270.00",
                        "points_adjustment": "30.31",
                        "points_adjustment_with_twink": "30.31"
    }
    },
                "items": [],
                "adjustments": []
    },

    "player:159": {
                "id": 159,
                "name": "Aryuz",
                "active": "1",
                "hidden": 0,
                "main_id": 86,
                "main_name": "Aryuna",
                "class_id": 3,
                "class_name": "J\u00e4ger",
                "points": {
                    "multidkp_points:1": {
                        "multidkp_id": 1,
                        "points_current": "0.00",
                        "points_current_with_twink": "-146.63",
                        "points_earned": "0.00",
                        "points_earned_with_twink": "129.00",
                        "points_spent": "0.00",
                        "points_spent_with_twink": "270.00",
                        "points_adjustment": "0.00",
                        "points_adjustment_with_twink": "30.31"
    }
    },
                "items": [],
                "adjustments": []
    },


    Files

    • json.json.txt

      (157.71 kB, downloaded 2 times, last: )

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!