Kage9951 / Destiny2ItemManager

Python script to quickly sort through armor in Destiny 2 using Destiny Item Managers csv Export/Import and tags
23 stars 5 forks source link

Unable to process after recent DIM/Bungie update #2

Open WindedHero opened 5 years ago

WindedHero commented 5 years ago
Destiny2Armor.py

Enhanced Bow Targeting
Traceback (most recent call last):
  File "Destiny2Armor.py", line 152, in <module>
    if arm.total_rec_perks > topArmor[key][0].total_rec_perks:
KeyError: 'gambitprime-Helmet'

Changelog for DIM states:

5.33.0(6/15/2019)
CSV exports now include item sources. These match the DIM filter you can use to find the item.
WindedHero commented 5 years ago

The issue lies in line 101~117. Variable names are hard-coded to specific columns in the array, versus assigning variable names based on the header row of the CSV being processed. A shift of +1 to each row[x] after line 109 should correct the issue for now, but should expect to break if DIM developers add another data column within the existing data array instead of appending it.