1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Any help would be appreciated.....

Discussion in 'BF2Statistics discussion' started by marty6, Mar 12, 2006.

  1. marty6

    marty6 Member

    Hi,

    Starting over for the third time. I hope that somebody who is willing to help, especially with the Apache configuration. That would be nice.

    This is what I have so far:

    Computer #1
    1. OS Windows xp w/sp2...connected to internet via cable modem
    2. Bf2 patched to 1.12 w/mods.
    3. Using bf2statistics client 2.4 to connect to database
    Database IP set to 192.168.0.2
    Game Server Ip set to 192.168.0.2: 16567
    4. Host file on Computer 1 set to:
    192.168.0.2 bf2web.gamespy.com

    Computer two (Server):
    Running: XAMPP 1.4.16, APACHE Web Server, MySQL server, and Dedicated Game Server

    1. OS windows xp w/sp2 ....connected to computer 1 via lan
    2. Xampp 1.4.16 freshly installed
    3. Apache added the following lines:
    AddType Application/x-httpd-php .aspx
    order allow,deny
    Allow from all
    4. BF2 version 1.12 w/modsinstalled running dedicated server...attemping to run dedicated server set for sp1 mode for coop play w/ bots. (this does work....using wcc coop mod)
    5. Placed the ASP folder in the H:\xa\xampp\htdocs\ASP
    6. Host file states only
    192.168.0.2 bf2web.gamespy.com
    127.0.0.1 localhost
    7. Modified PlayerManager.py to point to 'H:/ea games/battlefield 2/mods/bf2/pid.txt
    8. Modified the snapshot.py to the following:
    Host = '127.0.0.1' # server ip
    Port = 80
    Path = '/ASP/bf2statistics.php' #server path to script
    Prefix = 'BF2lOGS' # log file prefix

    9. Deleted the whole 'BF2' database in mysql and started over.
    10. Recreated the 'bf2' db using phpmyadmin. copied and pasted the sql file in the sql window of the 'bf2' data base.
    11. Bf2 database has 'user' for the dbuser w/ full priveleges and the password is 'pass'
    11. edited config.php to the following:

    $dbhost = 'localhost'; //database host name
    $dbname = 'bf2'; //database name
    $dbuser = 'user'; //database user name
    $dbpass = 'pass'; //database password

    Problems and Errors continue.....
    1. bf2 database not collecting any information from game server.
    2. ASPX files returning the same error....invalid syntax



    Is my setup correct? And, according to the pdf file and other postings on this site, this should work, right? If I'm missing something, would someone please respond? I don't mind going through this process step by step with the help of others here.

    Thanks,

    marty6

    UPDATE 1 : After reading in obscure places on this forum, I did find something interesting for those who have problems with the server collecting information from the game. One must add in the config.php "./" to "logs" thus getting "./logs".

    UPDATE 2 : BF2statistics db now collecting data! However; the bfhq in the game does not update.

    UPDATE 3: BFHQ ingame still does not update. I did install curl for php and edited the php.ini file in apache in order to get it to work. Now I have the bfstatistics web pages working on my server. Go figure that I'm able to get that to work !shy Also, when I checked the bf2statistics database, my pid does not show up eventhough I have it in the pid text? I am able to pull up my own stats on my webserver, but does not show in the database? Odd....
     
  2. marty6

    marty6 Member

    MrNiceGuy,

    Got a question for you. My Client machine's host file has this in it:
    192.168.0.2 bf2web.gamespy.com. The server machine's host file has the following in it: 127.0.0.1 localhost and 192.168.0.2 bf2web.gamespy.com.

    In a posting from RDEM : http://www.bf2statistics.com/e107_plugins/forum/forum_viewtopic.php?1128.0#post_1141

    you stated : "did you redirect the gameserver to your webserver? "

    Should my server machine's host file read the following?
    127.0.0.1 localhost
    127.0.0.1 bf2web.gamespy.com

    or

    192.168.0.2 localhost
    192.168.0.2 bf2web.gamespy.com


    And my client's host file should read......
    either 127.0.0.1 bf2web.gamespy.com
    or
    192.168.0.2 bf2web.gamespy.com

    I'm not too sure on this one.... !shy
     
  3. hurr1k4ne

    hurr1k4ne Member

    this is the same on the server...

    your client must point to the Server... so 192.168.0.2
     
  4. marty6

    marty6 Member

    hurr1k4ne,

    Yes, it is now pointing to the server....I had a problem with the client's host file. It would not keep the changes. Now it does. Problem solved!

    Thanks,

    marty6