UnOfficial BF2statistics Release Thread

Discussion in 'BF2Statistics discussion' started by MrNiceGuy, Feb 7, 2012.

Thread Status:
Not open for further replies.
  1. Wilson212

    Wilson212 Administrator Staff Member

    Hey guys, I decided to make a thread dedicated to all release versions of the *Unofficial* bf2statistics updates. I will keep this thread updated with the newest release version links

    Latest Version: 1.4.7
    Download: Bf2_stats_1.4.7

    Included with each download package:

    • ASP web interface (Server Admin Page)
    • Bf2sclone web interface (Stats Viewing)
    • Updated server files

    Notes:

    1.4.7 Has been tested extensively on a server containing the following versions: PHP v5.3.10, MySQL: 5.5.20, Apache: 2.2.21. Im pretty sure i have most bugs worked out, but please let me know if you find anymore :)
     
  2. MrNiceGuy

    MrNiceGuy Founder Staff Member

    Thats great wilson! What are the changes from previous version? :)

    *Edit*
    You've got moderator status! [​IMG]
    [/html]
     
  3. Wilson212

    Wilson212 Administrator Staff Member

    Mostly code cleanup... There was also an missing "$" in the serchforplayers.aspx, which caused it to always print "Invalid Syntax". I also fixed alot of notice errors in the ASP on php version 5.3.10 (a few variables where not defined before being used). BF2sclone is now complete, everything works as it should and i added number formatting for kills / deaths / scores etc (8976 is now 8,976).
     
  4. MrNiceGuy

    MrNiceGuy Founder Staff Member

    Thats great work you are doing here!

    Thank you for keeping this mod alive! :D
    [/html]
     
  5. SharK

    SharK Member

    Home pages problems link
    Download: Bf2_stats_1.4.7
     
  6. MrNiceGuy

    MrNiceGuy Founder Staff Member

     
  7. SharK

    SharK Member

  8. Wilson212

    Wilson212 Administrator Staff Member

    Nice catch on that error ;)
     
  9. MrNiceGuy

    MrNiceGuy Founder Staff Member

    Have no idea what happened there, the file is in the download section anyways...
    [/html]
     
  10. SharK

    SharK Member

    Fixed for Linux
    before
    _admin_event.log
    2012-02-19 21:49:08 : > Checking SNAPSHOT Storage Path...
    2012-02-19 21:49:08 : - SNAPSHOT Path Writable: Fail
    2012-02-19 21:49:08 : > Checking SNAPSHOT Archive Storage Path...
    2012-02-19 21:49:08 : - SNAPSHOT Archive Path Writable: Fail
    2012-02-19 21:49:08 : > Checking Backup Storage Path...
    2012-02-19 21:49:08 : - Backup Path Writable: Fail
    _config.php
    Code:
    $stats_logs = 'logs/';
    $stats_logs_store = 'logs/_processed/';
    $admin_backup_path = '/var/www/ASP/_backups/';
    after
    _admin_event.log
    2012-02-20 06:39:51 : > Checking SNAPSHOT Storage Path...
    2012-02-20 06:39:51 : - SNAPSHOT Path Writable: Pass
    2012-02-20 06:39:51 : > Checking SNAPSHOT Archive Storage Path...
    2012-02-20 06:39:51 : - SNAPSHOT Archive Path Writable: Pass
    2012-02-20 06:39:51 : > Checking Backup Storage Path...
    2012-02-20 06:39:51 : - Backup Path Writable: Pass
    _config.php
    Code:
    $stats_logs = 'logs';
    $stats_logs_store = 'logs/_processed';
    $admin_backup_path = '/var/www/ASP/_backups';
     
  11. SharK

    SharK Member

    problem is as follows:
    if you edit _config.php
    with
    Code:
    $stats_logs = 'logs/';
    $stats_logs_store = 'logs/_processed/';
    $admin_backup_path = '/var/www/ASP/_backups/';
    on
    Code:
    $stats_logs = 'logs';
    $stats_logs_store = 'logs/_processed';
    $admin_backup_path = '/var/www/ASP/_backups';
    it does not give the opportunity to restore the database, just do not see the backups, and http://localhost/ASP/index.php?task=editconfig save the settings!
     
  12. Wilson212

    Wilson212 Administrator Staff Member

    I will have these issues hopefully fixed in the new ASP ive been working on... Here is a few screenshots
     
     
      [​IMG] [​IMG] [​IMG]
    [/html]
     
  13. MrNiceGuy

    MrNiceGuy Founder Staff Member

    I edited your post [​IMG] That looks insane! You have done an amazing job! [​IMG]
    [/html]
     
  14. Wilson212

    Wilson212 Administrator Staff Member

    Looking for some testers on the New ASP :D

    You can download here: https://github.com/wilson212/NewAsp

    Just click the "Zip button like in the image below:

    [​IMG]

    Everything under the "System" tab is done including the install / upgrade! "server Info" & "Map Info" also work under the "Server Admin" navigation pane.

    Please report any errors you find or just leave a compliment if you wish :D

    NOTE: This system works just fine for receiving stats from your private servers... However, since it is v1.5.0, It will make some changes to your "_version" and "servers" database tables.. So it is strongly advised you back those 2 tables up... It is easy to revert back to 1.4.5, but i would still recommend using an sql file for backup
     
  15. tom282f3

    tom282f3 New Member

    Guys plz help me, i encountered a problem.
    I created "bf2stats" DB under phpmyAdmin but when I tried to install it with Database entered "bf2stats", it says "Database Error: Unknown database 'bf2stats'" C'mon can someone help me? I am getting crazed by it.
     
  16. SharK

    SharK Member

    ASP v1.5.0 On Linux does not work =(
     
  17. Wilson212

    Wilson212 Administrator Staff Member

    Can you show some of the errors you are having so i can fix them :)
     
  18. SharK

    SharK Member

    1. not accept your password after you change the config (when using the default works!) - ...
    2. does not write logs - FIX
    3. setting the table reports 5min weighs 13 clock - FIX
    "System Installation

    Installing System... This Process can take up to 5 minutes to complete on slower servers.

    DO NOT close or refresh this window."
     
  19. SharK

    SharK Member

    Fix for linux:
    entry in the logs:
    Code:
    chmod -R 777 /www/ASP/System/logs
    or
    Code:
    chown www-data -Rv /www/ASP/System/logs
    php_error.log
    [17-Apr-2012 12:39:30] PHP Warning: copy(/www/ASP/system/config/config.php.bak) [function.copy]: failed to open stream: Permission denied in /www/ASP/system/core/Config.php on line 161:
    Code:
    chmod -R 777 /www/ASP/System/config
    and
    Code:
    chown www-data -Rv /www/ASP/System/config
    stats_debug.log
    2012-04-17 13:00:50 -- WARNING: SNAPSHOT Log File Does Exists! Unable to move to storage path (/www/ASP/system/snapshots/incomplete/TST15617438674f8d6982a9729-test_map_20060903_0629.txt)
    2012-04-17 13:00:50 -- INFO: SNAPSHOT Data File Processed: TST15617438674f8d6982a9729-test_map_20060903_0629.txt:
    Code:
    chmod -R 777 /www/ASP/System/snapshots
    and
    Code:
    chown www-data -Rv /www/ASP/System/snapshots
     
  20. SharK

    SharK Member

    logs:
    php_error.log
    Code:
    [17-Apr-2012 13:19:17] PHP Notice:  ob_flush() [[URL="ref.outcontrol"]ref.outcontrol[/URL]]: failed to flush buffer. No buffer to flush. in /www/ASP/bf2statistics.php on line 126
    stats_debug.log
    Code:
    2012-04-17 13:19:17 -- NOTICE: SNAPSHOT Data Complete (test_map:20060903_0629)
    2012-04-17 13:19:17 -- NOTICE: SNAPSHOT Data Logged (/www/ASP/system/snapshots/incomplete/TST8088910214f8d6dd5526ed-test_map_20060903_0629.txt)
    2012-04-17 13:19:17 -- NOTICE: Database version expected: 1.5.0, Found: 1.5.0
    2012-04-17 13:19:17 -- NOTICE: Begin Processing (test_map)...
    2012-04-17 13:19:17 -- NOTICE:  - Predefined Custom Map (999)...
    2012-04-17 13:19:17 -- NOTICE: Found 1 Player(s)...
    2012-04-17 13:19:17 -- NOTICE: Processing Player (999)
    2012-04-17 13:19:17 -- NOTICE: Adding NEW Player (999)
    2012-04-17 13:19:17 -- NOTICE: Processing Army Data (999)
    2012-04-17 13:19:17 -- NOTICE: Processing Kill Data (999)
    2012-04-17 13:19:17 -- NOTICE: Processing Vehicle Data (999)
    2012-04-17 13:19:17 -- NOTICE: Processing Kit Data (999)
    2012-04-17 13:19:17 -- NOTICE: Processing Weapon Data (999)
    2012-04-17 13:19:17 -- NOTICE: Processing Map Data (999)
    2012-04-17 13:19:17 -- NOTICE: Processing Award Data (999)
    2012-04-17 13:19:17 -- NOTICE: End Loop 0
    2012-04-17 13:19:17 -- NOTICE: Processing Game Server: 88.151.184.21
    2012-04-17 13:19:17 -- NOTICE: Processing Map Info Data (test_map:999)
    2012-04-17 13:19:17 -- NOTICE: Processing Round History Data
    2012-04-17 13:19:17 -- NOTICE: Processing SMOC and General Ranks
    2012-04-17 13:19:17 -- NOTICE: SNAPSHOT Data File Moved! (/www/ASP/system/snapshots/incomplete/TST8088910214f8d6dd5526ed-test_map_20060903_0629.txt -> /www/ASP/system/snapshots/processed/TST8088910214f8d6dd5526ed-test_map_20060903_0629.txt)
    2012-04-17 13:19:17 -- INFO: SNAPSHOT Data File Processed: TST8088910214f8d6dd5526ed-test_map_20060903_0629.txt
    Test System
    > Checking Config File...
    - Config File Writable: Fail
    > Checking Log Files...
    - Error Log File Writable: Pass
    - Admin Log File Writable: Pass
    > Checking Database Config...
    - Database host (localhost) access: Pass
    - Database (allbf2stats) exists: Pass
    - Database version (1.5.0): Pass
    > Checking SNAPSHOT Storage Path...
    - SNAPSHOT Path Writable: Pass
    > Checking SNAPSHOT Archive Storage Path...
    - SNAPSHOT Archive Path Writable: Pass
    > Checking Backup Storage Path...
    - Backup Path Writable: Fail
    > Checking Remote URL Functions...
    - Remote URL Function Exist ('FOPEN'): Pass
    > Checking BF2Statistics Processing...
    - BF2Statistics Processing Check: Pass
    > Checking Gamespy (.aspx) File Basic Response...
    - Gamespy (.aspx) Basic Response: Pass
    > Checking Gamespy (.aspx) File Advanced Responses...
    - Gamespy (.aspx) Advanced (1) Response: Pass
    - Gamespy (.aspx) Advanced (2) Response: Pass
    - Gamespy (.aspx) Advanced (3) Response: Pass
    -> Remove Test Player Data: Pass
    -> Server Info (TST8088910214f8d6dd5526ed) removed from Table (servers): Pass
    -> Map Info (999) removed from Table (mapinfo): Pass
    -> Map Info (999) removed from Table (round_history): Pass
     
Thread Status:
Not open for further replies.

Share This Page