These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
 

Item Location IDs and the Locations API

Author
Kainar Detremov
The Force Kin
#1 - 2015-06-09 04:01:23 UTC  |  Edited by: Kainar Detremov
Hi all,

I've been toiling and toiling, attempting to make sense of the numerous quirks of the Locations API.

It is my understanding that not all items can be fed into this particular API. The items that can be analyzed by it need to be owned by the player whose API is currently being used by the session and they also need to be singletons.

Unfortunately these aren't the only criteria; some Location IDs are entirely lost on the API, and for this reason I have started this thread to try and get to the bottom of this issue once and for all.

What Location IDs are permitted by the Locations API and what aren't?

So far in my travels I've identified a few (I think):
Location ID 0 indicates that the item is a singleton located within a container or a ship, either fitted or otherwise. Throws an error (but sometimes it doesn't).
Location ID 60005485 indicates that the item is a singleton, but is a blueprint. Throws an error.

I would love some clarity on this so that I can filter for valid items, or work my way around this issue without needing to spend 5 minutes catching hundreds of exceptions. Some items in containers are retrievable while others are not. For example; a container full of corpses is no issue, whereas the modules on ships ARE.

Any help would be greatly appreciated.

Kain.
Kali Izia
GoomWaffe
#2 - 2015-06-09 07:24:03 UTC  |  Edited by: Kali Izia
For items in stations, Locations can only be called on named/nameable items.
Basically you want to check if any of the following are true:
- Is a ship (categoryID == 6)
- Is a cargo container (groupID == 12, 340, 448, 649)
- Is a biomass (groupID == 14)

They also need to be assembled (singleton == 1)

Anything that's in space should be valid for Locations. Except if they're in containers, then the same rules apply.
Kainar Detremov
The Force Kin
#3 - 2015-06-09 10:40:45 UTC
Hi again Kali,

Thanks - it's all running beautifully.