Page 7 of 7 FirstFirst ... 567
Results 121 to 137 of 137
  1. #121
    ezStats programmer ezzemm's Avatar
    Join Date
    2011-08-18
    Location
    Germany
    Posts
    318
    BFBC2 PC
    ezzemm
    BF2
    siX|ezzemm
    Crysis2 PC
    ezzemm
    MOHW PC
    ezzemm
    Gamer IDs

    Steam ID: ezzemm

    AW: BF3 Stats API preview

    Thank you
    ezStats.org
    Clanleaderboard for Battlefield 4, Battlefield 3, Crysis 3, MoH Warfighter, XBOX Live and Playstation Network
    Serverviewer & RCON

  2. #122
    ezStats programmer ezzemm's Avatar
    Join Date
    2011-08-18
    Location
    Germany
    Posts
    318
    BFBC2 PC
    ezzemm
    BF2
    siX|ezzemm
    Crysis2 PC
    ezzemm
    MOHW PC
    ezzemm
    Gamer IDs

    Steam ID: ezzemm

    AW: BF3 Stats API preview

    2012-02-19
    - Added Ranking for weapons with over 100 kills.
    Hi 1April!

    Yesterday you've added rankings for weapons. Is it possible that you add those rankings to the API? I would really appreciate it.

    Due to the upcoming "Servers"-feature of bf3stats.com: If you've established this, do we have a "last seen online"-value in the API as we had in BFBC2?

    Regards, ezzemm
    ezStats.org
    Clanleaderboard for Battlefield 4, Battlefield 3, Crysis 3, MoH Warfighter, XBOX Live and Playstation Network
    Serverviewer & RCON

  3. #123
    Administrator 1ApRiL's Avatar
    Join Date
    2011-02-12
    Location
    Waiblingen, Germany
    Posts
    1,404
    BFBC2 PC
    1ApRiL
    NFS World
    1APRIL
    BF2
    1ApRiL
    BF3 PC
    1ApRiL

    Re: BF3 Stats API preview

    If you set ranking,weapons,weaponsRanking to true then you get c and r for every weapon:
    r: rank position
    c: count of ranked weapons
    Admin of bf3stats.com / bfbcs.com / nfstimes.com / mohstats.com / crystats.com | Twitter

  4. #124
    ezStats programmer ezzemm's Avatar
    Join Date
    2011-08-18
    Location
    Germany
    Posts
    318
    BFBC2 PC
    ezzemm
    BF2
    siX|ezzemm
    Crysis2 PC
    ezzemm
    MOHW PC
    ezzemm
    Gamer IDs

    Steam ID: ezzemm

    AW: Re: BF3 Stats API preview

    Quote Originally Posted by 1ApRiL View Post
    If you set ranking,weapons,weaponsRanking to true then you get c and r for every weapon:
    r: rank position
    c: count of ranked weapons
    Thank you very much
    This could be useful for vehicles as well )
    ezStats.org
    Clanleaderboard for Battlefield 4, Battlefield 3, Crysis 3, MoH Warfighter, XBOX Live and Playstation Network
    Serverviewer & RCON

  5. #125
    ezStats programmer ezzemm's Avatar
    Join Date
    2011-08-18
    Location
    Germany
    Posts
    318
    BFBC2 PC
    ezzemm
    BF2
    siX|ezzemm
    Crysis2 PC
    ezzemm
    MOHW PC
    ezzemm
    Gamer IDs

    Steam ID: ezzemm

    AW: BF3 Stats API preview

    Hi 1April!

    It seems the equipmentRanking does not work. Or did I anything wrong?
    Regards, ezzemm

    Edit: Sorry, I forgot you need more than 100 kills per equipment before ranking

    Click image for larger version

Name:	Unbenannt.PNG
Views:	55
Size:	114.7 KB
ID:	1914
    ezStats.org
    Clanleaderboard for Battlefield 4, Battlefield 3, Crysis 3, MoH Warfighter, XBOX Live and Playstation Network
    Serverviewer & RCON

  6. #126
    PHP Developer
    Join Date
    2011-11-21
    Location
    Amsterdam, The Netherlands
    Posts
    279
    BF3 PC
    Grezvany13
    Gamer IDs

    XFIRE ID: Grezvany13 Steam ID: Grezvany13

    Re: BF3 Stats API preview

    @ezzemm: I check it, and you seem to do everything correct.

    I did notice however that it will only return the r/c/v values when the item is actually listed at the leaderboards. However this is not the case for equipment. I tested it with my own stats, since I'm in the top 34% with claymore kills.

    Minor bug, easy to fix
    Member of [DD] DoubleDutchClan - Largest Dutch Multi Gaming Community Since 2007



    Proud developer of: BF3Stats API Class - A simple PHP Framework for your own projects

  7. #127
    ezStats programmer ezzemm's Avatar
    Join Date
    2011-08-18
    Location
    Germany
    Posts
    318
    BFBC2 PC
    ezzemm
    BF2
    siX|ezzemm
    Crysis2 PC
    ezzemm
    MOHW PC
    ezzemm
    Gamer IDs

    Steam ID: ezzemm

    AW: Re: BF3 Stats API preview

    Hm, the "ranking" options works sometimes, and sometimes not. And I have no idea, what is cause of this behavior.
    I've attached a screen from the API tester.
    Click image for larger version

Name:	Unbenannt.PNG
Views:	56
Size:	56.4 KB
ID:	1921
    ezStats.org
    Clanleaderboard for Battlefield 4, Battlefield 3, Crysis 3, MoH Warfighter, XBOX Live and Playstation Network
    Serverviewer & RCON

  8. #128
    Administrator HigH_HawK's Avatar
    Join Date
    2006-03-15
    Location
    UK / GER
    Posts
    1,209

    Re: BF3 Stats API preview

    Hi ezzemm,

    try using "rank" instead of "ranking", this should do the trick

    Greets

  9. #129
    ezStats programmer ezzemm's Avatar
    Join Date
    2011-08-18
    Location
    Germany
    Posts
    318
    BFBC2 PC
    ezzemm
    BF2
    siX|ezzemm
    Crysis2 PC
    ezzemm
    MOHW PC
    ezzemm
    Gamer IDs

    Steam ID: ezzemm

    AW: BF3 Stats API preview

    I am no beginner
    I am sure I want "ranking" and not "rank"

    Click image for larger version

Name:	Unbenannt.PNG
Views:	39
Size:	6.5 KB
ID:	1922
    ezStats.org
    Clanleaderboard for Battlefield 4, Battlefield 3, Crysis 3, MoH Warfighter, XBOX Live and Playstation Network
    Serverviewer & RCON

  10. #130
    Administrator HigH_HawK's Avatar
    Join Date
    2006-03-15
    Location
    UK / GER
    Posts
    1,209

    Re: BF3 Stats API preview

    It was worth a try

    It seems that the site is having some issues at the moment as well as the API. So we would have to wait for 1ApRiL to have a look at it.

  11. #131
    New User
    Join Date
    2012-02-24
    Posts
    6

    Re: BF3 Stats API preview

    Are there anyone that can tell me how to get a date out of the long date_update/date_insert informations?

    I can get the time from the values but not the date.

  12. #132
    Administrator HigH_HawK's Avatar
    Join Date
    2006-03-15
    Location
    UK / GER
    Posts
    1,209

    Re: BF3 Stats API preview

    Hi Rasch,

    if you are using PHP, you can use the date() function.

    Example:

    Time only
    PHP Code:
    date("H:i:s"$player['date_update']) 
    Output: 07:52:20

    Date only
    PHP Code:
    date("d F Y"$player['date_update']) 
    Output: 24 02 2012

    Time/Date
    PHP Code:
    date("d F Y - H:i:s"$player['date_update']) 
    Output: 24 02 2012 - 07:52:20

    You do the same for date_insert.

  13. #133
    PHP Developer
    Join Date
    2011-11-21
    Location
    Amsterdam, The Netherlands
    Posts
    279
    BF3 PC
    Grezvany13
    Gamer IDs

    XFIRE ID: Grezvany13 Steam ID: Grezvany13

    Re: BF3 Stats API preview

    Just like HigH_HawK said; however, in Javascript you need to do a little magic:

    Code:
    var dat = new Data( (p.date_insert * 1000) );
    var nice_date_insert = dat.getMonth() + '/' + dat.getdate() + '/' + dat.getFullYear() + ' ' + dat.getHour() + ':' + dat.getMinutes() + ':' + dat.getSeconds();
    
    // nice_date_insert = '21/31/2012 12:34:56'
    Member of [DD] DoubleDutchClan - Largest Dutch Multi Gaming Community Since 2007



    Proud developer of: BF3Stats API Class - A simple PHP Framework for your own projects

  14. #134
    New User
    Join Date
    2012-02-24
    Posts
    6

    Re: BF3 Stats API preview

    Sorry, I forgot to state that "minor detail". I am working in .NET and C#.

    I have tried to convert the number given in the json reply to a new DateTime() but that does not yield the correct date.

  15. #135
    PHP Developer
    Join Date
    2011-11-21
    Location
    Amsterdam, The Netherlands
    Posts
    279
    BF3 PC
    Grezvany13
    Gamer IDs

    XFIRE ID: Grezvany13 Steam ID: Grezvany13

    Re: BF3 Stats API preview

    Quote Originally Posted by Rasch View Post
    Sorry, I forgot to state that "minor detail". I am working in .NET and C#.

    I have tried to convert the number given in the json reply to a new DateTime() but that does not yield the correct date.
    Try this:
    Code:
    public static DateTime UnixTimeStampToDateTime( double unixTimeStamp )
    {
        // Unix timestamp is seconds past epoch
        System.DateTime dtDateTime = new DateTime(1970,1,1,0,0,0,0);
        dtDateTime = dtDateTime.AddSeconds( unixTimeStamp ).ToLocalTime();
        return dtDateTime;
    }
    Member of [DD] DoubleDutchClan - Largest Dutch Multi Gaming Community Since 2007



    Proud developer of: BF3Stats API Class - A simple PHP Framework for your own projects

  16. #136
    New User
    Join Date
    2012-02-24
    Posts
    6

    Re: BF3 Stats API preview

    Thank you Grezvany13. That was exactly what I was looking for ... I was not aware that Unix had a default time of January 1. 1970 :-)

    Again, thank you for the input!

  17. #137
    Administrator HigH_HawK's Avatar
    Join Date
    2006-03-15
    Location
    UK / GER
    Posts
    1,209

    Re: BF3 Stats API preview

    Quote Originally Posted by Rasch View Post
    ... I was not aware that Unix had a default time of January 1. 1970 :-)

    Again, thank you for the input!
    That is the date when UNIX started

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
P-STATS NETWORK FORUM LOGIN CREATE ACCOUNT