BF2142 stats server: Error: Snapsnot data not found

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

  1. MrNiceGuy

    MrNiceGuy Founder Staff Member

    Hi,

    if you have been feeding BF2142 stats into the database, it's not defined in the bf2 .py files, which means it doesn't know what to output from the request.

    This system only works with bf2. So if you want to make sure everything works, reset the database, and feed it bf2 information only, then see if everything is okay.

    Regards,
    Mng.
     
  2. Kungfunpanda2

    Kungfunpanda2 New Member

    I know, that's not what i am doing. Here is my last log:

    "
    Conquest gamemode initialized.
    onPrePlayerConnect: chuck:0
    stats.py[522]: Creating new record for player profileId 2
    stats.py[210]: Resetting medals for player: 0(pid: 2)
    medals.py[324]: getting medals from gamespy
    medals.py[325]: Will retrieve medals from GSI...
    medals.py[338]: roundMedals: {}
    medals.py[226]: Added player 0, chuck (2) IP=192.168.0.20 to medal/rank checking
    rank.py[56]: Player 0 had no profile id, can't request rank
    rank.py[59]: Added player 0 to rank checking
    unlocks.py[29]: Player 0 had no profile id, can't request unlocks
    unlocks.py[30]: Added player 0 to unlock checking
    rank.py[32]: Destroyed timer
    stats.py[210]: Resetting medals for player: 0(pid: 2)
    stats.py[64]: Reset orderiterator to 1 based on highest pid kept
    stats.py[210]: Resetting medals for player: 0(pid: 2)
    medals.py[216]: Player id=0 found in sessionPlayerMedalMap
    medals.py[330]: Resetting unkept round-only medals...
    medals.py[338]: roundMedals: {}
    medals.py[229]: Readded player 0 to medal/rank checking
    unlocks.py[29]: Player 0 had no profile id, can't req"

    What happens with the profile id?? Wrong syntax in the python file? Could you take a look at the python files and and give me a solution?

    Does the player = bf2.playerManager.getPlayerByIndex( player_id) variable is missing?
     
  3. Wilson212

    Wilson212 Administrator Staff Member

    is this bf2 or bf2142?
     
  4. Kungfunpanda2

    Kungfunpanda2 New Member

  5. Kungfunpanda2

    Kungfunpanda2 New Member

    And by the way anyone can explain me how the server retrieves ranks from the database to attribuate it to the player? Which file(s) do what?
     
  6. MrNiceGuy

    MrNiceGuy Founder Staff Member

    Hi,

    rank would be rank.py, medals medals.py etc... After round end, the information is sent from server to database, then that information in the database is read by the server, and attributes that information (based on your previous rounds) to the player. (If i remember correctly) :)

    Regards,
    Mng.
     
  7. Kungfunpanda2

    Kungfunpanda2 New Member

    Yes but which files exactly do the link between the database and the server to display ranks? Do you know how to fix that problem of ranks that reset after a restart server?
     
  8. Wilson212

    Wilson212 Administrator Staff Member

    Your stats are fetched from the ASP (getplayerinfo.aspx), if the rank works correctly in BFHQ, then it will work on the server

    However... there is a known bug where if the server changes between round status (PreGame, Playing, EndGame etc etc) when stats are being fetched, The players stats will be reset.
     
    MrNiceGuy likes this.

Share This Page