No ranks ingame

Discussion in 'BF2Statistics discussion' started by superbig, Aug 6, 2008.

  1. superbig

    superbig New Member

    Hey,

    I have the dns spoof fixed but now another problem.
    There are no ranks ingame ...
    I have edited in phpmyadmin the score en i have validated the ranks so i get a higher rank (sergeant).

    Now i go back ingame but i start with private again.

    Now i look in the log (python/bf2/logs/) en there stands:
    stats request failed for player 0 :

    If i ping bf2web.gamespy.com i come out on my own server (127.0.0.1) where also the SQL database is installed.

    Who nows how i can fix the problem?

    Thx in advance!
     
  2. superbig

    superbig New Member

    My OS is linux
    CentOS 5.1
     
  3. superbig

    superbig New Member

    who can help me?
     
  4. Thinner

    Thinner New Member

    Hi,

    1. Make sure your /ASP directory is in the root of your webserver. Since you are using a linux-OS make sure the name of the dir is in uppercase (ASP).

    2. If you are able to open a webbrowser on your server open 127.0.0.1/ASP/getrankinfo.aspx otherwise try your-gameserver-ip/getrankinfo.aspx. You should get an "Invalid syntax!" message, if not check 1.
     
  5. superbig

    superbig New Member

    I got it with a domain now:
    rsw-clan.nl/ASP (This domain is on my server!)

    This is a copy of the log:
    Code:
    Stats request failed for player  2 :  
    Medal request failed for player  8 :  Stats request failed for player  18 :  
    Medal request failed for player  9 :  Stats request failed for player  13 :  
    Stats request failed for player  7 :  
    Stats request failed for player  1 :  
    Stats request failed for player  unknown :  
    Stats request failed for player  0 :  
    Medal request failed for player  0 :  Stats request failed for player  15 :  
    Medal request failed for player  13 :  Medal request failed for player  7 :  Stats request failed for player  5 :  
    Medal request failed for player  14 :  Stats request failed for player  9 :  
    Medal request failed for player  unknown :  Medal request failed for player  11 :  Medal request failed for player  18 :  Stats request failed for player  16 :  
    Medal request failed for player  15 :  Stats request failed for player  8 :  
    Medal request failed for player  5 :  Stats request failed for player  11 :  
    Medal request failed for player  2 :  Stats request failed for player  14 :  
    Medal request failed for player  16 :  Medal request failed for player  1 :  Removed player index 7 from player cache
    
    my config:
    Code:
    # ------------------------------------------------------------------------------
    # BF2Statistics 1.4 - Config File
    # ------------------------------------------------------------------------------
    # Conventions:
    #    0 -> Disable
    #    1 -> Enable
    # ------------------------------------------------------------------------------
    
    # ------------------------------------------------------------------------------
    # Debug Logging
    # ------------------------------------------------------------------------------
    debug_enable = 16
    debug_log_path = 'python/bf2/logs'              # Relative from BF2 base folder
    debug_fraglog_enable = 0                                # Detailed 'Fragalyzer' Logs
    
    # ------------------------------------------------------------------------------
    # Backend Web Server
    # ------------------------------------------------------------------------------
    http_backend_addr = 'rsw-clan.nl'
    http_backend_port = 80
    http_backend_asp = '/ASP/bf2statistics.php'
    
    # ------------------------------------------------------------------------------
    # Snapshot Manager
    # ------------------------------------------------------------------------------
    snapshot_prefix = 'BF2'         # Prefix Snapshots with this tag
    
    # ------------------------------------------------------------------------------
    # Medals Processing
    # ------------------------------------------------------------------------------
    medals_custom_data = ''         # Suffix for your custom medals file(s)
    
    # ------------------------------------------------------------------------------
    # Player Manager
    # ------------------------------------------------------------------------------
    pm_backend_pid_manager = 1
    pm_local_pid_txt_file = 'python/bf2/pid.txt'    # Relative from BF2 base folder
    pm_ai_player_addr = '127.0.0.1'         # Not recommended to change
    
    
    # ------------------------------------------------------------------------------
    # Clan Manager
    # ------------------------------------------------------------------------------
    enableClanManager = 0   # Use the Clan Manager to control Access to your server!
    serverMode = 0
    # Mode 1: Clan ONLY (Must be on Clan List to Join Server)
    # Mode 2: Priority Proving Grounds (Clan Members AND those players that meet
    #       the minimum requirements.Clan Members get priority)
    # Mode 3: Proving Grounds (Clan Members AND those players that meet the
    #       minimum requirements)
    # Mode 4: Experts ONLY (Only players that meet the minimum requirements)
    # Mode 0: Public (Free-for-All. No Restrictions!)
    
    # Clan Manager Criteria
    criteria_data = (
    ('clantag', ''),        # Clan Tag (Matches First Part of Player Name, used for Whitelist)
    ('score',       0),             # Minimum Global Score
    ('rank',        0),             # Minimum Global Rank
    ('time',        0),             # Minimum Global Time Played
    ('kdratio',     0),             # Minimum Global Kill/Death Ratio
    ('country',     ''),    # Registered Country of Origin Code (Seperate multiple by comma ',')
    ('banned',      10),    # Maximum banned count! PermBan is ALWAY BlackListed
    )
    
    # ------------------------------------------------------------------------------
    # Backup Central Community Web Server (OPTIONAL)
    # ------------------------------------------------------------------------------
    http_central_enable = 0                         # Use settings above (0, 1, 2)
    http_central_addr = 'cbd.xxx.aaa'       #Address Central STATS Server
    http_central_port = 80
    http_central_asp = '/ASP/bf2statistics.php'
    
    # Note: this cabalility is for linking stats data to a centrally maintained STATS #
    #   server.  This could be useful for those who are running a LAN or Tournament   #
    #   (with local STATS), but wish to have this data credited to their normal STATS #
    #   DB. There are three (3) options for the central DB update:                    #
    #     0: Disabled - 'nuff said!                                                   #
    #     1: Sync  - This simply copies the SNAPSHOT as-is to the central DB          #
    #     2: Minimal - Record everything, except Rank & Award data (typically use     #
    #                               for LANs or Tournaments where local db starts blank)              #
    
    # ------------------------------------------------------------------------------
    # END CONFIGURATION
    # ------------------------------------------------------------------------------
    
    I have a mistake in it?
     
  6. superbig

    superbig New Member

    Databse = ok
    --> http://rsw-clan.nl/bf2stats2/
     
  7. Thinner

    Thinner New Member

    Please double check your redirect.
    There are hardcoded calls to "http://bf2web.gamespy.com/ASP/..." in the server executable, but the python-code will use http_backend_addr. On linux you could simply add the redirect-line in /etc/hosts

    for error-msg "Stats request failed for player" look at medals.py, def onStatsResponse(...), this is one the internal events using the hardcoded way to bf2web.gamespy.com

    Please also check your webservers log-files for any error-messages.
     

Share This Page