BF2142 stats server: Error: Snapsnot data not found

Discussion in 'BF2Statistics discussion' started by Kungfunpanda2, Apr 14, 2018.

  1. Kungfunpanda2

    Kungfunpanda2 New Member

    Hello, i have set up bf2 statistics on my bf2142 server, the web server is running well without error excepted the snapshots not sent and the bf2statistics.php page that is not working.
    [​IMG]


    Anyone to help me?

    Thanks.
     

    Attached Files:

  2. Kungfunpanda2

    Kungfunpanda2 New Member

    Here is a screenshot of my webserver.
     

    Attached Files:

  3. Kungfunpanda2

    Kungfunpanda2 New Member

    Come on, nobody to answer?
     
  4. exemaco

    exemaco Member

    bf2statistics is for bf2 only.
     
  5. MrNiceGuy

    MrNiceGuy Founder Staff Member

  6. Kungfunpanda2

    Kungfunpanda2 New Member

    Already seen this topic. A guy uploaded the web version for bf2142 (maiorBoltach/bf2142stats_emu) but it doesn't work... Some files are missing like the ASP folder to install it. I can't even install it by bypassing the " defined (_'BF2142_admin') or die ('Restricted Acces');". Inside files for BF2 that's wrote "('_'BF2_admin'), so ASP filer for bf2142 are missing. Some guys in 2142 has ranking with BFHQ working... Anyone has that part missing?
     
  7. Wilson212

    Wilson212 Administrator Staff Member

    We do not offer support for bf2142 here. Sorry mate.
     
  8. Kungfunpanda2

    Kungfunpanda2 New Member

    Well but at at least an idea about the error "snapshot data not found"? Stats are updated on bf2sclone but not in the bf2statistics.php...
     
  9. Wilson212

    Wilson212 Administrator Staff Member

    snapshot data not found means that you are opening bf2statistics.php without POST data from a server. You are opening with a GET request, and there is nothing to show there since that is the receiver for stats data.
     
  10. Kungfunpanda2

    Kungfunpanda2 New Member

    In normal language what does it means? Sorry i'm noob. That's normal to get that error message or shouldn't get it?
     
  11. Wilson212

    Wilson212 Administrator Staff Member

    This means you are not supposed to open bf2statistics.php in your browser
     
  12. Kungfunpanda2

    Kungfunpanda2 New Member

    Ok thanks! :) Well problem resolved.
     
  13. Kungfunpanda2

    Kungfunpanda2 New Member

    Euh topic not resolved finally. I've also another problem, what ever bf2 or bf2142, stats are recorded in the database but ranks are not updating ingame, do you know why?
     
  14. MrNiceGuy

    MrNiceGuy Founder Staff Member

    Hi,
    make sure the game client pc is redirected to the web server.

    http://bf2statistics.com/threads/newcomers-guide-to-bf2statistics.1306/

    (The information might not be up to date)

    Regards,
    Mng.
     
  15. Kungfunpanda2

    Kungfunpanda2 New Member

    My hosts file is well edited. I got this in my python log:

    "
    medals.py[229]: Readded player 0 to medal/rank checking
    medals.py[230]: Getting Stats...
    medals.py[240]: Requesting player STATS
    medals.py[274]: Requesting player AWARDS
    rank.py[58]: Added player 0 to rank checking
    unlocks.py[31]: Added player 0 to unlock checking
    medals.py[486]: Stats request failed for player 0 : TEXT_hostlookupfailed
    rank.py[69]: rank not found, aborting
    medals.py[554]: Medal request failed for player 0 :
    Traceback (most recent call last):
    File "python\bf2\stats\medals.py", line 442, in onAwardsResponse
    print "medals.py[554]: Medal request failed for player ", playerIndex, ": ", stats
    NameError: global name 'stats' is not defined
    medals.py[486]: Stats request failed for player 0 : TEXT_hostlookupfailed
    rank.py[69]: rank not found, aborting
    medals.py[486]: Stats request failed for player 0 : TEXT_hostlookupfailed
    rank.py[69]: rank not found, aborting
    medals.py[554]: Medal request failed for player 0 :
    Traceback (most recent call last):
    File "python\bf2\stats\medals.py", line 442, in onAwardsResponse
    print "medals.py[554]: Medal request failed for player ", playerIndex, ": ", stats
    NameError: global name 'stats' is not defined
    medals.py[486]: Stats request failed for player 0 : TEXT_hostlookupfailed
    rank.py[69]: rank not found, aborting
    medals.py[486]: Stats request failed for player 0 : TEXT_hostlookupfailed
    rank.py[69]: rank not found, aborting
    medals.py[554]: Medal request failed for player 0 :
    Traceback (most rec"

    Looks like my server send informations in the database but not receive.
     
  16. MrNiceGuy

    MrNiceGuy Founder Staff Member

    Hi,

    looks like it's failing the lookup. I think @Wilson212 would better help you. I'm a little outdated on this :p

    Do you get the correct ip address to your server if you ping bf2web.gamespy.com from the client PC?

    Regards,
    Mng.
     
  17. Kungfunpanda2

    Kungfunpanda2 New Member

    Yes it returns my external ip.
     
  18. MrNiceGuy

    MrNiceGuy Founder Staff Member

    Is this external ip the same as the web server?

    bf2web.gamespy.com on the client PC needs to point to the web server where the ASP back-end resides.

    Client PC --> Web server ASP

    If you run both client and server on the same PC, "ping bf2web.gamespy.com" should return "127.0.0.1" IP address.

    Hope that makes sense.

    Regards,
    Mng.
     
  19. Kungfunpanda2

    Kungfunpanda2 New Member

    I tested on my local pc where is located my gamespy server + server and client. I don't know why but i have to put 192.168.... instead of 127.0.01 in the hosts files otherwise my game crash. An idea about it? And if i ping it, it returns 127.0.0.1

    On my vps my gamespy server is set up to 127.0.0.1 and hosts file external ip. So if i ping it it returns my external ip.

    So i tested on 2 différents configurations.
     
    MrNiceGuy likes this.
  20. Kungfunpanda2

    Kungfunpanda2 New Member

    The problem wouln't be cause the player.index...?
    From what i see in the log:

    rank.py[69]: rank not found, aborting
    medals.py[486]: Stats request failed for player 0 : TEXT_hostlookupfailed
    rank.py[69]: rank not found, aborting
    medals.py[554]: Medal request failed for player 0 :
    Traceback (most recent call last):
    File "python\bf2\stats\medals.py", line 442, in onAwardsResponse
    print "medals.py[554]: Medal request failed for player ", playerIndex, ":"
     
    MrNiceGuy likes this.

Share This Page