Skip to content
TORNLIFE More

API wrong outcome of attack (Timeout instead of Attacked)

Started by waTer [2251652] on in Bugs & Issues.

6 replies · 40 views · thread synced · 3 days ago · View on torn.com
About this thread

Posts archived: 7 / 7 posts (100%) · the total is Torn's reply count + the opening post at the last fetch

Counted by TornLife from the archived posts.

Archived posts
7
Discussion span
→
People posting
3
Likes on archived posts
1
Posts by staff, officers and moderators
3
Authority score
56 / 100
Historical score
28 / 100
Story score
35 / 100
Engagement score
46 / 100

Mentioned in this thread

Muckamuck [1884573] ×1 cookdandbombd [2450557] ×1

waTer [2251652]

Something strange happened in this one fight, when I look its log it has this part




So Muckamuck left cookdandbombd on street and earned respect, but there is after that cookdandbombd was sent to hospital before Muckamuck was able to finish the fight.

In API it appears like this
 {
      "id": 456271106,
      "code": "93abbf1672f8f4f4d2174786495febf1",
      "started": 1773342586,
      "ended": 1773342588,
      "attacker": {
        "id": 1884573,
        "name": "Muckamuck",
        "level": 100,
        "faction": {
          "id": 18736,
          "name": "Monarch Research"
        }
      },
      "defender": {
        "id": 2450557,
        "name": "cookdandbombd",
        "level": 100,
        "faction": {
          "id": 8151,
          "name": "Chromatic"
        }
      },
      "result": "Timeout",
      "respect_gain": 11.25,
      "respect_loss": 2.81,
      "chain": 5,
      "is_interrupted": false,
      "is_stealthed": false,
      "is_raid": false,
      "is_ranked_war": true,
      "modifiers": {
        "fair_fight": 3,
        "war": 2,
        "retaliation": 1,
        "group": 1.25,
        "overseas": 1,
        "chain": 1,
        "warlord": 1
      },
      "finishing_hit_effects": []
    }


I am not sure what happened, but I think in API it shouldn't be timeout if it really did make respect, it should probably be result Attacked?

CloudJumper [1636201]Staff

I see that two activity logs were generated for this fight, I will ask Pavel to check that first before re-assigning to Mauro for checking API.

 

19:09:48 - 12/03/26  Muckamuck attacked cookdandbombd (with 1 other) sending them to the hospital for 0h 15m [view]
19:09:48 - 12/03/26  Muckamuck attacked cookdandbombd but failed due to a status change [view]

 

 

Thanks!

Mentions: cookdandbombd [2450557] · Muckamuck [1884573]

waTer [2251652]

I am still getting Timeout with respect

    {
      "id": 456271106,
      "code": "93abbf1672f8f4f4d2174786495febf1",
      "started": 1773342586,
      "ended": 1773342588,
      "attacker": {
        "id": 1884573,
        "name": "Muckamuck",
        "level": 100,
        "faction": {
          "id": 18736,
          "name": "Monarch Research"
        }
      },
      "defender": {
        "id": 2450557,
        "name": "cookdandbombd",
        "level": 100,
        "faction": {
          "id": 8151,
          "name": "Chromatic"
        }
      },
      "result": "Timeout",
      "respect_gain": 11.25,
      "respect_loss": 2.81,
      "chain": 5,
      "is_interrupted": false,
      "is_stealthed": false,
      "is_raid": false,
      "is_ranked_war": true,
      "modifiers": {
        "fair_fight": 3,
        "war": 2,
        "retaliation": 1,
        "group": 1.25,
        "overseas": 1,
        "chain": 1,
        "warlord": 1
      },
      "finishing_hit_effects": []
    },

waTer [2251652]

Looks well, thanks!


{
  "attacks": [
    {
      "id": 456271106,
      "code": "93abbf1672f8f4f4d2174786495febf1",
      "started": 1773342586,
      "ended": 1773342588,
      "attacker": {
        "id": 1884573,
        "name": "Muckamuck",
        "level": 100,
        "faction": {
          "id": 18736,
          "name": "Monarch Research"
        }
      },
      "defender": {
        "id": 2450557,
        "name": "cookdandbombd",
        "level": 100,
        "faction": {
          "id": 8151,
          "name": "Chromatic"
        }
      },
      "result": "Attacked",
      "respect_gain": 11.25,
      "respect_loss": 2.81,
      "chain": 5,
      "is_interrupted": false,
      "is_stealthed": false,
      "is_raid": false,
      "is_ranked_war": true,
      "modifiers": {
        "fair_fight": 3,
        "war": 2,
        "retaliation": 1,
        "group": 1.25,
        "overseas": 1,
        "chain": 1,
        "warlord": 1
      },
      "finishing_hit_effects": []
    }
  ],
  "_metadata": {
    "links": {
      "prev": null,
      "next": null
    }
  }
}