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] Getting player data under outfit

Discussion in 'Census: Planetside 2' started by Novicode, Jun 18, 2013.

  1. Novicode

    Novicode Guest

    Is there a way to display more player info under /outfit? Currently my program needs to check everyone's outfit id, then go to all 120 member pages to get their username and stats. This takes over 30 seconds, even on my webserver's internet connection. This is less then ideal for clients using my webpage.
     
  2. Dedith

    Dedith Guest

    First, this should be in the Planetside 2 sub-forum, but feldon should be able to move it for you. Second, you should be able to resolve some player data into the outfit, but you really don't want to resolve it all.. just what you need. Example (taken from another thread in the ps2 sub-forum:

    http://census.daybreakgames.com/get/ps2-beta/...ue,stats.kills.value,type.faction,experience)

    That's resolving the member list, but only bringing in the fields in the parenthesis.
     
  3. Moved to the Planetside 2 subforum. :)
     
  4. K1Ram

    K1Ram Guest

    Hi Novicode,

    Looks like a sencible place to post an answer, but also a question of my own

    So i have an outfit website (the look and feel sucks but the content is OK) http://x8-decisive-sylph-m.appspot.com/

    So to get outfit Info I use the following calls to the API

    First I use
    http://census.daybreakgames.com/s:mb/get/ps2-beta/outfit/?alias=PUGZ

    To get the outfit ID and some other info, then I use

    http://census.daybreakgames.com/get/ps2-beta/outfit_member/37511770385198092?c:limit=100&c:start=0&c:resolve=character(name,type.faction,experience,profile.active_name.en,stats_weekly.kills.faction,stats_weekly.facility_capture_count,stats_weekly.facility_defended_count,stats_weekly.play_time.class,stats_daily.facility_capture_count,stats_daily.facility_defended_count,stats_daily.play_time.class,stats_daily.kills.faction,stats_monthly.facility_capture_count,stats_monthly.facility_defended_count,stats_monthly.play_time.class,stats_monthly.kills.faction,,stats.facility_capture_count,stats.facility_defended_count,stats.play_time.class,stats.kills.faction,times.last_login),online_status

    to get 100 players info at a time using the resolve keyword to get the info I need. I then repeat this for all the members of the outfit, I use 50 at a time to avoid timeouts etc. And this works for even big outfits like G0DS with nearly 4k members

    http://x8-decisive-sylph-m.appspot.com/?outfit=G0DS&sort=outfit_rank

    My problem is that this dosn't work with the new ps2 api. If anyone has an idea that would be great, otherwise i will keep on looking.

    Cheers

    K1
     
  5. K1Ram

    K1Ram Guest

Share This Page