API for player statistics - Page 3
+ Reply to Thread
Page 3 of 7 FirstFirst 1234567 LastLast
Results 21 to 30 of 68

Thread: API for player statistics

  1. Top | #21
    Senior Member Arconaut
    Join Date
    Jun 2009
    Posts
    492
    Threads
    26

    Re: API for player statistics

    Heikkiv, MaZ,
    I love you.

    http://sh.lawlr.us/compare?tags=+[TSC]

    PS: Looks like Match draws count as defeats!?
    Last edited by deebz; 11-16-2009 at 05:56 PM.

  2. Top | #22
    Former Staff
    Join Date
    Sep 2009
    Location
    Finland
    Posts
    23
    Threads
    2

    Re: API for player statistics

    Quote Originally Posted by MaZ- View Post
    From what I understand, total kills is however much you've killed (friendlies and enemies) MINUS the number of team kills - but the actual number of rifle kills / sniper kills seems to count team kills as well (which explains why some people I've seen have higher rifle kills than kills in total [shocked]).
    That's correct. The total number of kills does not count team kills in order not to encourage team killing but the other stats (assault mode, sniper mode, melee etc...) include those as well.

    The number of deaths counts all deaths, including deaths from friendly fire.

  3. Top | #23
    Veteran Firefly Unstoppable beta tester
    Arconaut

    Join Date
    Sep 2009
    Location
    Small country for a great holiday
    Posts
    1,610
    Threads
    19

    Re: API for player statistics

    Great wok, thx for that!

  4. Top | #24

    Re: API for player statistics

    Quote Originally Posted by deebz View Post
    PS: Looks like Match draws count as defeats!?
    Seeing as there's no "draws" data and pretty much everyone has more losses than wins, seems like a good theory


    edit: Timestamps for achievements seem to have an appended '.0' (eg. <time>2009-11-06 20:22:35.0</time>), which looks like it would represent milliseconds except it never seems to change. Is this intentional?

    edit2: game->wins + game->losses doesn't equal 'matches', which seems to always be slightly larger. Any chance the missing amount not outputted specifically is "draws"?

    Also, the "main" achievements tag is called achievements while the child tags for each achievement are achivement

    Also also: It doesn't particularly change things for single-use API requests (signature generation for a single person / whatever), but for things where multiple player stats need to be retrieved it would be really useful for it all to be possible in a single request - should speed up multiple requests quite a bit and reduce load from connection spam on both ends - e.g. say I want to compare 16 players and their stats, based on their player name - I have to make one request per player to retrieve their ID and 1 request to retrieve their actual stats - 32 individual HTTP requests which would optimally be returned in 2 requests - 1 grabbing all the player ID's for a list of names, and 1 returning all the stats for each ID in that list.

    Yet more:

    Player searching seems to work a bit strangely - for example, doing a player search for 'Kher' returns '[CPC] Akheris' as the first result when there is also a player named exactly Kher. Would be cool if it returned players ordered by their likeness to the search string or something, or return exact matches first (I think atm it seems to sort by player ID, right?)

    Even more even more (sorry):

    Perhaps a quick API for the global stats would be cool (players online, servers online, matches played)
    Last edited by MaZ-; 11-16-2009 at 08:26 PM.

  5. Top | #25

    Re: API for player statistics

    This is aMaZing work - see what I did there?

    MaZ, if you can add a more user-friendly front-end to your stats site I would be happy to add it to our Fansites page on the official website: http://www.shatteredhorizon.com/community/fansites/

  6. Top | #26
    Senior Member Arconaut
    Join Date
    Oct 2009
    Location
    Germany
    Posts
    324
    Threads
    17

    Re: API for player statistics

    Quote Originally Posted by FM_HeikkiV View Post
    Yes, you can use a steam id instead of our player id. Eg.

    Code:
    http://stats.shatteredhorizon.com/stats/api/playerStatistics.action?steamId=76561197967188786
    <3 ![thumbup]

  7. Top | #27

    Re: API for player statistics

    Quote Originally Posted by FM_kingkatt View Post
    This is aMaZing work - see what I did there?

    MaZ, if you can add a more user-friendly front-end to your stats site I would be happy to add it to our Fansites page on the official website: http://www.shatteredhorizon.com/community/fansites/
    Terrible joke

    http://sh.lawlr.us - That's about as much of a front end as I have effort to write atm - also moved it to a shorter domain because the other one is a bit much effort to remember

  8. Top | #28
    Senior Member Arconaut
    Join Date
    Jun 2009
    Posts
    492
    Threads
    26

    Re: API for player statistics

    MaZ can you add a contact mail or form to your stats webapp ? Also i can't contact you by PM ?

  9. Top | #29

    Re: API for player statistics

    Quote Originally Posted by deebz View Post
    MaZ can you add a contact mail or form to your stats webapp ? Also i can't contact you by PM ?
    Go for it (I'll link my email in the page footer in a sec).

  10. Top | #30

    Re: API for player statistics

    Quote Originally Posted by MaZ- View Post
    Terrible joke

    http://sh.lawlr.us - That's about as much of a front end as I have effort to write atm - also moved it to a shorter domain because the other one is a bit much effort to remember
    Nice work. Is it possible to detect the "_" character so that we could take a look at all dev players with FM_XXXX names?

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts