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

PS2 outfit data from character lookup?

Discussion in 'Census: General Discussion' started by DereksDontR, Feb 23, 2013.

  1. DereksDontR

    DereksDontR Guest

    Sorry to sound like a noob but have been going through the census.soe exaples to get my head around the get links I want to use and I'm getting confused when I'm trying to link characters to outfits...

    characters - I can get by:

    <a rel="nofollow" href="http://census.daybreakgames.com/get/ps2-beta/character/?name.first_lower=dereksdontrun"]http://census.daybreakgames.com/get/ps2-beta/...r=dereksdontrun[/url]

    which spews out too much info so I've trimmed it down with something like:

    <a rel="nofollow" href="http://census.daybreakgames.com/get/ps2-beta/character/?name.first_lower=dereksdontrun&c:show=name,type,experience,stats.kills.faction,stats.deaths.value"]http://census.daybreakgames.com/get/ps2-beta/...ts.deaths.value[/url]

    this gives me character name, ID etc. but unles I'm being blind I can't see anything specific to outfit within the character collection.

    census has some outfit examples and the bottom one is:

    Find for a given character:<a rel="nofollow" href="http://census.daybreakgames.com/get/ps2-beta/outfit_member/?members.character_id=5428010618015189713&c:resolve=outfit(alias,name)"]http://census.daybreakgames.com/get/ps2-beta/...fit(alias,name)[/url]

    which I cant get to work.  I've pasted my character ID (from the character request above):

    <a rel="nofollow" href="http://census.daybreakgames.com/get/ps2-beta/outfit_member/?members.character_id=5428010618030962689&c:resolve=outfit(alias,name)"]http://census.daybreakgames.com/get/ps2-beta/...fit(alias,name)[/url]

    and I still get the same result linked to "The NwA Clan" - is that exmple not working correctly?  All the other examples seem to require the prior knowledge of either the outfit ID or at least its name for the search string.

    so, how can I get the outfit info from the character id?  and can this all be obtained through 1 request - think it would be bad and a performance-hit to have a request for the character details and then need a 2nd request for the outfit info, if that makes sense.

    cheers for any help, DDR

     
  2. torokokill

    torokokill Guest

    You are able to grab outfit information from a character collection by using the resolve command. Valid collection resolves are listed in the resolve_list for each collection are listed at: http://census.daybreakgames.com/get/ps2-beta/

    In your first example: <a rel="nofollow" href="http://census.daybreakgames.com/get/ps2-beta/character/?name.first_lower=dereksdontrun&c:show=name,type,experience,stats.kills.faction,stats.deaths.value"]http://census.daybreakgames.com/get/ps2-beta/...ts.deaths.value[/url]Simply add &c:resolve=outfit [link]To further expand upon that, if you are only interested in the name and alias of the outfit, use &c:resolve=outfit(name,alias) [link]

    With regards to the example outfit call, in my experience, quite a few of the querying/search modifiers are not working at the moment. For example, I am unable to search by timestamps (ex. timestamp=>123456789) within the characters_event collection. However, I am able to search by stack size in the items collection (ex. max_stack_size=>1).

    Edit: Cleaned up the post

     
  3. DereksDontR

    DereksDontR Guest

    cheers for that, for some reason didn't look at the resolve list and thought i somehow needed to get the character id to search within the outfits as a 2nd query.

     

Share This Page