Items API "names" will be broken

Items API "names" will be broken

in API Development

Posted by: Stefan Larimore.6872

Stefan Larimore.6872

Programmer

Hi All,

We realized late in our release cycle that today’s wardrobe changes broke the “name” field for some of the items coming back from /item_details.json. I am working on a fix for this which should be out soon in a subsequent hotfix. I apologize for any inconvenience.

Items API "names" will be broken

in API Development

Posted by: StevenL.3761

StevenL.3761

Thanks for the heads up. But what do you mean by breaking a field? Do these item names display as empty strings now?

(edited by StevenL.3761)

Items API "names" will be broken

in API Development

Posted by: nightzirch.3126

nightzirch.3126

I noticed all of the items in the tool I created (gw2wardrobe.com) suddenly had weird names. Looking forward to a fix, and thank you for informing us

Hi, I’m Chris aka nightzirch
Snow Crows [SC]
Front-end developer – SecretToymaker.com

Items API "names" will be broken

in API Development

Posted by: Dr Ishmael.9685

Dr Ishmael.9685

The “break” is that the base item name for suffix-able equipment is no longer present. If the item has a suffix_item_id, that item’s “suffix” is returned as item_name, otherwise you get a blank item_name.

Items with the “HideSuffix” flag are unaffected, e.g. legendary weapons. There are some others as well, but I don’t see a pattern for them yet – one is item_id 57 “Hearty Back Brace”.

Items API "names" will be broken

in API Development

Posted by: DarkSpirit.7046

DarkSpirit.7046

Thanks for the heads up.

I have a feeling that something like this would happen after the big patch, so I downloaded all the items and recipes on Monday.

Items API "names" will be broken

in API Development

Posted by: LadyRhonwyn.2501

LadyRhonwyn.2501

Ah, that explains all those empty names and all those " of undead slaying" I saw yesterday….

Items API "names" will be broken

in API Development

Posted by: Mystic.5934

Mystic.5934

Thanks for the heads up.

I have a feeling that something like this would happen after the big patch, so I downloaded all the items and recipes on Monday.

I’ll probably sound like a noob, but is there a simple way to download all the items and recipe details? /item_details.json and /recipe_details.json seem to only be capable of one item/recipe at a time, which would take a long time to get them all. I know about items.json, but that’s only the item_ids

Items API "names" will be broken

in API Development

Posted by: Dr Ishmael.9685

Dr Ishmael.9685

Nope, you just have to loop through items.json and call item_details.json for every item_id. My Perl script runs 4 threads and takes about an hour to process everything. Once you’ve processed every item for a build, though, you can skip any items you already have data for – item data can’t change on-the-fly, only with a new build.

Items API "names" will be broken

in API Development

Posted by: smiley.1438

smiley.1438

Thanks for the heads up.

I have a feeling that something like this would happen after the big patch, so I downloaded all the items and recipes on Monday.

I’ll probably sound like a noob, but is there a simple way to download all the items and recipe details? /item_details.json and /recipe_details.json seem to only be capable of one item/recipe at a time, which would take a long time to get them all. I know about items.json, but that’s only the item_ids

If you’re into PHP, you might want to have a look at my database project: https://github.com/codemasher/gw2-database
The db created by this is basically the backend of http://gw2treasures.de (https://github.com/darthmaim/gw2treasures-webinterface) etc.

Items API "names" will be broken

in API Development

Posted by: DarkSpirit.7046

DarkSpirit.7046

Thanks for the heads up.

I have a feeling that something like this would happen after the big patch, so I downloaded all the items and recipes on Monday.

I’ll probably sound like a noob, but is there a simple way to download all the items and recipe details? /item_details.json and /recipe_details.json seem to only be capable of one item/recipe at a time, which would take a long time to get them all. I know about items.json, but that’s only the item_ids

Yes, like the others said, you have to download them one at a time, for now so it takes awhile for my script to download all of them and compile them into a local database or JSON file for me.