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 lowlines: 10/9/2015 5:31:54 PM
2

Classified Weapons Will Break Your Code

So for once I was able to obtain one of the classified weapons before the manifest was updated and suddenly my Warlock's inventory was cut in half due to a null referencing error. This is a great, you can't even transfer a classified item through the official app/website without returning a Vendor Not Found error code. That being said, it will most definitely break anyone's code that expects an InventoryItemDefinition to exist, so be sure to check for this. It would be nice if something would return (perhaps setting up a Classified placeholder definition that uses the icon in your collections when you haven't unlocked an item yet), but only when making requests to inventory endpoints, otherwise people could just count the number of classified items in the database and that would take away half the fun of not knowing exactly how many more new things are just gonna pop up one day on our Directors beckoning us to check them out ;) [edit] Also why is the primary stat light?

Posting in language:

 

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

View Entire Topic
  • Edited by lowlines: 10/9/2015 5:26:55 PM
    @Rhagic The itemInstanceId looks to be -1, which would explain why it can't be moved through the APIs, Primary Stat is apparently "Light", however 35 is definitely not right. I'm guessing a lot of the values are defaults. [quote]{ "itemHash": 3012398149, "bindStatus": 0, "isEquipped": false, "itemInstanceId": "6917529065925781455", "itemLevel": 49, "stackSize": 1, "qualityLevel": 4, "stats": [], "primaryStat": { "statHash": 2391494160, "value": 35, "maximumValue": 0 }, "canEquip": false, "equipRequiredLevel": 30, "unlockFlagHashRequiredToEquip": 2166136261, "cannotEquipReason": 0, "damageType": 0, "damageTypeNodeIndex": -1, "damageTypeStepIndex": -1, "progression": { "dailyProgress": 0, "weeklyProgress": 13994, "currentProgress": 13994, "level": 7, "step": 0, "progressToNextLevel": 0, "nextLevelAt": 2399, "progressionHash": 751343210 }, "talentGridHash": 0, "nodes": [], "useCustomDyes": false, "artRegions": {}, "isEquipment": false, "isGridComplete": false, "perks": [], "location": 1, "transferStatus": 0, "locked": true, "lockable": false, "objectives": [], "state": 1 }[/quote]

    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