JavaScript is required to use Bungie.net

Group Avatar

BungieNetPlatform

"Updates, discussions, and documentation of the BungieNetPlatform API."

Request Join
originally posted in:BungieNetPlatform
Edited by Beerfrogs Beard: 1/19/2017 4:46:09 AM
2

Unadjusted Stat Nodes (Int, Dis, Str)

I'm working on a personal application that I can use to easily determine whether or not I want to keep a piece of armor (trying to stave off my hoarding ways and make some room). As a part of it I'm looking at stat quality. I was looking at the statsOnNodes section in /Platform/Destiny/{membershipType}/Account/{destinyMembershipId}/Character/{characterId}/Inventory/{itemInstanceId}/ And it looks to have the data I'm after, however, I haven't been able to determine how to easily tell which array to look at under Response.data.statsOnNodes. It looks like most legendary items (that I have) are under zero. However, exotics appear to follow a different set of rules. Then I tried looking at the first item in the array, and that did seem to work for MOST items, but not all. Is there an easier more reliable way to get to the unadjusted stat values for Int, Dis, and Str? I tried looking through the talentGridHash, but nothing jumped out at me. I'm using /Inventory/Summary/ to get the items and then Inventory/{itemInstanceId}/ to get the additional detail. I'm also using the Manifest for most xrefs. I've viewed the following threads, and while helpful I didn't see the answer to my exact question (or maybe they do and I just don't understand): https://www.bungie.net/en/Clan/Post/39966/194917560/0/0 https://www.bungie.net/en/Clan/Post/39966/206417491/0/0 If you have any questions or need any additional information or points of clarity, let me know. Thanks in advance for your help! PS - I love being able to use the API! I still recall screen scraping Halo 3 data into SQL Server many many years ago. Edit: A visual representation of what I mean. How can I programmatically know that 4 has the values I'm seeking? http://imgur.com/a/YCRCe

Posting in language:

 

Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

  • Edited by GeekyEggo: 1/20/2017 12:48:07 PM
    It sounds like you're close to answering your own question, but hopefully this will help too. You're spot on with regards to the talent grid. Used in conjunction with the nodes from the item, and some very nice people, it's possible to calculate the stats quick [i]easily[/i]. [url=http://destinytailor.com]DestinyTailor.com[/url] uses the [url=https://github.com/GeekyEggo/DestinyTailor/blob/master/client/js/models/itemStatParser.js]itemStatParser.js[/url]. Check out the method "assignStatBonuses" in particular to highly how the talent grid is used. It's also worth noting, that with this approach it's possible to calculate stats from a character's inventory, which doesn't mean we have to do a request per item instance! :)

    Posting in language:

     

    Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

    3 Replies
    • Edited by Beerfrogs Beard: 1/19/2017 4:36:39 AM
      Not one to sit around and wait, I think I have come up with a solution. I'd love to hear your thoughts on this. I noticed while looking at the data, that the statsOnNodes index that I wanted to retrieve was the only one NOT listed in the nodes found in DestinyTalentGridDefinition using the value from Response.data.item.talentGridHash. The sections of interest are exclusiveSets and independentNodeIndexes. I created an array of the integers found in those two sections, then sorted the integers and found the missing one. I used that to choose which statsOnNodes item use use. All of the items I've checked against in game values line up so far. Edit: I'm currently only looking at helmets, gauntlets, chest armor and leg armor. I plan to add ghosts, artifacts and class items (but haven't yet), so I don't know if they will behave differently.

      Posting in language:

       

      Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

    You are not allowed to view this content.
    ;
    preload icon
    preload icon
    preload icon