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.
 

Shared Icon ID's?

Author
Sable Blitzmann
24th Imperial Crusade
Amarr Empire
#1 - 2013-11-18 05:44:25 UTC
So, as everyone knows, there are many items in this game that share the same exact icon (implants come to mind). I know that you're able to download the icons from the toolkit, however they are in the format of typeID_size. Type ID is different even if the icon is the same.

Is there a field in the database dump that gives a shared iconID?

The reason I ask is because I'm displaying multiple (up to hundreds) of game items, the majority of which use the same IDs. However, since they are all different typeIDs, I'm making just as many requests to the webserver instead of loading the image once and be done with it. I'd like to cut back on the number of requests if possible.

The only workaround that I can see if a shared iconID doesn't exist is to checksum the image before responding to request, and build up a cache of which typeIDs share which icon. This is doable, but just extra hassle. =)
Rob Crowley
State War Academy
#2 - 2013-11-18 08:03:03 UTC  |  Edited by: Rob Crowley
Sable Blitzmann wrote:
Is there a field in the database dump that gives a shared iconID?
Yes, there is indeed. However it's in the yaml part, not in the SQL. In typeIDs.yaml you'll see an iconID for most items and in iconIDs.yaml you'll find the base icon name under that ID. So if you only download the icon once for all items that have the same icon name (or iconID) you can save those requests.

Note that this base icon doesn't have the little meta group indicator, so it's the same base icon for T1, T2, Deadspace, etc. However, if you need that indicator you can add it yourself or download a separate icon based on the item's "techLevel" (422) and "metaGroupID" (1692) attributes.

If you don't want to work with yaml and prefer SQL try this tool, though I haven't checked if it still works with the new Rubicon SDE.
Sable Blitzmann
24th Imperial Crusade
Amarr Empire
#3 - 2013-11-19 18:16:49 UTC
Completely forgot about the yaml files. I've looked into it, and the only concern I have is that there are no icons for ships as they are renders. But I'll continue to look into this as a viable solution to my problem. Thanks for the info!
Rob Crowley
State War Academy
#4 - 2013-11-19 18:39:33 UTC
Yep, for ships (and drones IIRC) you have to use typeID based icons. But conveniently enough you can tell those 2 by their categoryIDs.