1. I have corrected the e-mail settings so that outgoing e-mails from these forums should be sent now. If you tried to Register or Reset your Password, please try again!
    Dismiss Notice

Get images and zone data

Discussion in 'Census: EverQuest II' started by Ionian Tinnear, May 14, 2013.

  1. Two questions:

    1. I'd like to get the headshot of characters. The documentation hints that this is possible, and I've seen other sites do it, but..

    Requests for game images follow the pattern:
    /[s:serviceID]/img/{game}/{collection}/{itemInCollection}/{category}[/{itemInCategory}]

    This is of course totally helpful, except I have found no explanation, and more importantly samples, of this syntax for getting character images. (I will want images of armor/weapon/jewelry items too)

    Getting an icon image of an item works: census.daybreakgames.com/img/eq2/icons/3119/item
    Getting an headshot image of a character does not: census.daybreakgames.com/img/eq2/headshot/450971707027/character

    Obviously its my call's syntax, but why? What is itemInCollection? Category? [itemInCategory]?
    Are there any examples showing a variety of image gets?

    2. I'd like to get some of the data about a zone (mainly just want the zone's id) by name but...

    These works:
    census.daybreakgames.com/s:ionian/xml/get/eq2/zone/?zone_data.display_name=Antonica
    * census.daybreakgames.com/s:ionian/xml/get/eq2/zone/?zone_data.display_name=The Clefts of Rujark

    These don't work:
    census.daybreakgames.com/s:ionian/xml/get/eq2/zone/?zone_data.display_name=Commonlands
    * census.daybreakgames.com/s:ionian/xml/get/eq2/zone/?zone_data.display_name=The Commonlands
    census.daybreakgames.com/s:ionian/xml/get/eq2/zone/?zone_data.display_name=Stormhold
    census.daybreakgames.com/s:ionian/xml/get/eq2/zone/?zone_data.display_name=Runnyeye

    *(imagine plus signs where you may see spaces, this site is stripping them. i.e. add plus between 'The' and 'Commonlands'. mouse hover and look at target url and you'll also see the pluses)

    How do I get the valid name of a zone?

    Otherwise my project is progressing well. These questions are to help make it prettier!
     
  2. Voleur

    Voleur Guest

  3. Thanks Voleur, one problem solved!
     
  4. Feldon

    Feldon Guest

    Your query is asking for image attachment "character" in collection "headshot", which does not exist...
    census.daybreakgames.com/img/eq2/headshot/450971707027/character

    Try asking for the "headshot" image attachment from the "character" collection:
    census.daybreakgames.com/img/eq2/character/450971707027/headshot

    You can find out what image attachments exist in in the Character collection with this URL:
    census.daybreakgames.com/xml/get/eq2/character/?name.first=Feldon&c:show=attachments&c:attachments=all

    There are additional images for Beastlord Warders. Unfortunately the query above does not work with items or spells.
    Zone data is new, unfinished, and still in the testing phase. Only 58 out of the ~1,200 zones have been exported thus far. Figuring out a way to keep all the Zones, NPCs, Spawncamps, and Treasureclasses updated in Census has to be a challenge.

    You can get a list of published Zones with just their display_name shown using this URL:
    census.daybreakgames.com/xml/get/eq2/zone/?c:limit=999&c:show=zone_data.display_name
     
  5. Thanks Feldon, that helps.

    I actually, as a result of yours and Voleur's responses, figured out how to get an icon for an item.

    First: Get the data for an item.
    Then: Get the iconid attribute (I'm using xml here..) from the <item.. ..> node.
    Finally: Get the icon with: census.daybreakgames.com/img/eq2/icons/600/item putting the iconid in where I have 600

    Cheers!
     

Share This Page