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 Rhagic: 5/8/2015 9:41:07 AM
1

Calculating maximum progression on items

[b]Calculating maximum progression on items[/b] It ought to be possible to calculate the maximum progression for any item returned by the endpoint [quote]/Destiny/[membershipType]/Account/[accountId]/Character/[characterId]/Inventory/[/quote] Interpolating node step indexes and progression information, it wouldn't be unreasonable to expect that the maximum progression on an item be the final [i]progression.step.progressTotal[/i] added to the maximum [i]talentgrid.node.step.startProgressionBarAtProgress[/i]. [b]In practice[/b] Using this method works for the majority of my items, but I've found items whose current progress is greater than this calculated maximum in two different ways: [b]Off by a multiple of final progression step[/b] Sometimes, the value over is the same as an additional progression.step.progressTotal. On these occasions, there are often multiple For example I have a [url=https://www.bungie.net/Platform/Destiny/2/Account/4611686018433593400/Character/2305843009230882426/Inventory/6917529043050679256]Naraka SR5[/url] that's just shy of maxed progress. The progression data from the (non-detailed) inventory summary has: [quote]{ [b]'currentProgress': 34774,[/b] 'dailyProgress': 0, 'level': 6, 'nextLevelAt': 6000, 'progressToNextLevel': 5974, 'progressionHash': 601852144, 'step': 0, 'weeklyProgress': 0} [/quote] The [url=http://www.bungie.net/platform/Destiny/Manifest/Progression/601852144/]progression definition[/url] has: [quote]{ 'name': 'weapon_rare_scout_rifle', 'progressionHash': 601852144, 'repeatLastStep': True, 'scope': 2, 'steps': [{'progressTotal': 0}, {'progressTotal': 4800}, {'progressTotal': 6000}]} [/quote] Summarising the interpolated node step indexes on the [url=http://www.bungie.net/platform/Destiny/Manifest/TalentGrid/1470293950/]talentGrid[/url] definition: [quote][b]Column 0, Row 0[/b], AutoUnlocks True --- Step 0, startsAt 0 --- 'This weapon causes kinetic damage.' [b]Column 1, Row 0[/b], AutoUnlocks True --- Step 4, startsAt 0 --- 'Accurized sight. For precise fire.' [b]Column 1, Row 1[/b], AutoUnlocks False --- Step 0, startsAt 4800 --- 'Precision sight. Highest zoom in class. Enhanced range.' [b]Column 1, Row 2[/b], AutoUnlocks False --- Step 1, startsAt 10800 --- 'Mid-range scope. Good effective range and recoil control. Heavy and slow.' [b]Column 2, Row 0[/b], AutoUnlocks False --- Step 0, startsAt 0 --- 'Shooting any type of ammo picks it up.' [b]Column 3, Row 0[/b], AutoUnlocks False --- Step 0, startsAt 4800 --- 'Increases Attack Power, allowing this weapon to cause more damage.' [b]Column 4, Row 0[/b], AutoUnlocks False --- Step 1, startsAt 16800 --- 'This weapon is effective at an extended range.' [b]Column 4, Row 1[/b], AutoUnlocks False --- Step 2, startsAt [b]22800[/b] --- "Volatile payload explodes on impact, dealing a portion of the weapon's damage in an area." [b]Column 5, Row 0[/b], AutoUnlocks False --- Step 0, startsAt [b]22800[/b] --- 'Increases Attack Power, allowing this weapon to cause more damage.' [/quote] You'll notice that C4:R1 and C5:R0 both start progression at 22800. However, this isn't the case. According to the detailed item instance information, the final node is 99%. According the the progression data, the progressToNextLevel is 5974 of 6000 and the current progress is 34774 (11974 more than the 22800 it should have started unlocking at). I haven't been able to determine if there's any other information that specifies that C5:R0 has to wait for C4:R1 to complete first. However, if you instead for the calculation you take the highest startsAt value and add the final progression step size multiplied by the number of occurences of this highest value then the calculated max will match the currentProgress on more items. [quote]22800 + 6000 * 2 == 34800[/quote] [b]Off by an increment that doesn't appear in the progression steps[/b] Some items have a currentProgress that is greater than either method of calculation and the difference is not a multiple of any of the progression step sizes. For example my [url=https://www.bungie.net/Platform/Destiny/2/Account/4611686018433593400/Character/2305843009216766908/Inventory/6917529037991695317]Ruin Wings[/url], which have [url=http://www.bungie.net/platform/Destiny/Manifest/Progression/2043912351/]this progression definition[/url] and [url=http://www.bungie.net/platform/Destiny/Manifest/TalentGrid/2060873404/]this talent grid definition[/url] has: [quote]{ [b]'currentProgress': 162500,[/b] 'dailyProgress': 0, 'level': 8, 'nextLevelAt': 25000, 'progressToNextLevel': 0, 'progressionHash': 2043912351, 'step': 0, 'weeklyProgress': 0} [/quote] Progress definition: [quote]{'name': 'armor_exotic', 'progressionHash': 2043912351, 'repeatLastStep': True, 'scope': 2, 'steps': [{'progressTotal': 0}, {'progressTotal': 12500}, {'progressTotal': 25000}]} [/quote] Talent Grid Summary: [quote][b]Column -1, Row 0[/b], AutoUnlocks True --- Step 0, startsAt 0 --- 'This armor is attuned to your Light and grants bonuses to your abilities.' [b]Column -1, Row 2[/b], AutoUnlocks True --- Step 0, startsAt 0 --- 'Draw upon the Light within this armor to boost your ability damage against higher level enemies.' [b]Column 1, Row 0[/b], AutoUnlocks False --- Step 0, startsAt 0 --- 'Increases the reload speed of all Special Weapons.' [b]Column 2, Row 0[/b], AutoUnlocks False --- Step 0, startsAt 11250 --- 'Increases Defense Power, allowing this armor to absorb more damage.' [b]Column 3, Row 0[/b], AutoUnlocks False --- Step 0, startsAt 35000 --- 'Causing damage with a melee reduces your grenade cooldown.' [b]Column 4, Row 0[/b], AutoUnlocks False --- Step 0, startsAt 60000 --- 'Heavy ammo drops more often, and contains more ammo in each drop.' [b]Column 5, Row 0[/b], AutoUnlocks False --- Step 0, startsAt 85000 --- 'Increases Defense Power, allowing this armor to absorb more damage.' [b]Column 5, Row 1[/b], AutoUnlocks False --- Step 0, startsAt 110000 --- 'Increases Defense Power, allowing this armor to absorb more damage.' [b]Column 5, Row 2[/b], AutoUnlocks False --- Step 0, startsAt 135000 --- 'Increases Defense Power, allowing this armor to absorb more damage.' [/quote] Either calculation method yields a theoretical max of [quote]135000 + 25000 * 1 == 160000[/quote] which is 2500 less than the currentProgress of 162500. Other items that also do this are [i]Willbreaker's Fists[/i], [i]Mk. 44 Stand Asides[/i], [i]The Glasshouse[/i], [i]Obsidian Mind[/i] and [i]Don't Touch Me[/i]. [b]So questions:[/b] - How do you know whether two nodes with the same startProgressionBarAtProgress value are actually going to unluck simultaneously or consecutively? - What's going on with my Ruin Wings having 2500 more progress than would be anticipated? - Is there a reliable way of determining the max progression for any given item? If so, how? [i](i.e. without using the detailed item info API endpoint and extrapolating percentages)[/i]

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 Rikkert2x: 5/11/2015 9:40:29 AM
    - How do you know whether two nodes with the same startProgressionBarAtProgress value are actually going to unluck simultaneously or consecutively? simultaneously: The percentrate must be equal consecutively: The percentrate is not euqal - Is there a reliable way of determining the max progression for any given item? If so, how? Its not mentioned in the Endpoint but Calculated. Read this Forum https://www.bungie.net/en/Forum/Post/118422128/0/0/1

    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
    You are not allowed to view this content.
    ;
    preload icon
    preload icon
    preload icon