Skip to content
TORNLIFE More

Inconsistent data in API

Started by _SCOFIELD_ [1441750] on in Bugs & Issues.

3 replies · 87 views · thread synced · 4 days ago · View on torn.com
About this thread

Posts archived: 4 / 4 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
4
Discussion span
→
People posting
2
Likes on archived posts
5
Posts by staff, officers and moderators
2
Authority score
56 / 100
Historical score
41 / 100
Story score
42 / 100
Engagement score
44 / 100

Most-liked replies

_SCOFIELD_ [1441750]

Here's the torn -> itemstats output for an empower melee:

 

{
"itemstats": {
"ID": 237,
"UID": 11161688399,
"name": "Kodachi",
"type": "Melee",
"market_price": 92927,
"stats": {
"damage": 1673754,
"hits": 1188,
"misses": 1080,
"highest_damage": 7295,
"finishing_hits": 221,
"critical_hits": 165,
"first_owner": 2317379,
"time_created": 1705095803,
"respect_earned": 657.23
}
}
}


Here's the torn -> itemstats output for a parry melee:

{
"itemstats": {
"ID": 237,
"UID": 11326836622,
"name": "Kodachi",
"type": "Melee",
"market_price": 92927,
"stats": {
"damage": 1280075,
"hits": 733,
"misses": 2496,
"highest_damage": 12641,
"finishing_hits": 101,
"critical_hits": 149,
"first_owner": 1441750,
"time_created": 1707391255,
"respect_earned": 135.69
}
}
}



Here's the torn -> itemstats output for adouble parry + empower melee:

{
"itemstats": {
"ID": 615,
"UID": 9451244838,
"name": "Naval Cutlass",
"type": "Melee",
"market_price": 0,
"stats": {
"damage": 26524060,
"hits": 16797,
"misses": 8170,
"damage_taken": 5955,
"highest_damage": 10708,
"hits_received": 2,
"most_damage_taken": 5190,
"damage_mitigated": 14081,
"most_damage_mitigated": 12049,
"finishing_hits": 2779,
"critical_hits": 3228,
"first_owner": 1427245,
"time_created": 1676033103,
"respect_earned": 12447.83
}
}
}



Why isn't there any data on hits received, dmg taken, dmg mitigated for the single bonus red parry melee?
_SCOFIELD_ [1441750]

Also, no info on those stats for my parry + grace double red melee?

 

{
"itemstats": {
"ID": 615,
"UID": 12468281534,
"name": "Naval Cutlass",
"type": "Melee",
"market_price": 0,
"stats": {
"damage": 217161,
"hits": 201,
"misses": 560,
"highest_damage": 8377,
"finishing_hits": 22,
"critical_hits": 36,
"first_owner": 1441750,
"time_created": 1721194092,
"respect_earned": 36.1
}
}
}
splent [2088243] Admin Staff

Hey, 

 

Sorry for taking so long to get back to this!


So this system is a little bit old and some parts might not be saved to DB correctly, but basically there are 3 different categories of stats saved - "All", "Weapon", "Armor".

 

For weapons, they are: 

  • Rounds fired, Respect earned, Critical hits, Finishing hits, Highest damage, Reloads, Misses, Hits, Damage

For armor, they are: 

  • Damage taken, Hits received, Most damage taken, Damage mitigated, Most damage mitigated

And the ones for both are:

  • First owner, First faction owner, Time created

 

So probably, the recorded damage mitigation stats for your weapons were actually made by the Armor worn at the time. Due to this bug:
https://www.torn.com/forums.php#p=threads&f=19&t=16298907&b=0&a=0&start=0 

 

I've now completely hidden armor stats for weapons & vice versa, just to remove any confusion in the future.

Hopefully when this part of the system gets refactored, we'll get better recorded weapon stats as well.

Thanks!

Mentions: RW Armor respect earned.