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

Only first rank working

Discussion in 'BF2Statistics discussion' started by Goose, Oct 27, 2007.

  1. Goose

    Goose New Member

    Hi,

    seems that I have anew problem with our server.

    Only the first rank will be given not further rank. But specially for me I am over 200 point
    above the second rank but I am still have the first one.

    We also seen that some players loosing his first rank when they leave the
    server for an hour etc.

    Hope that some of you can help me.

    Thanks in advance
    br
    Goose
     
  2. Seraphiel

    Seraphiel New Member

    Had the same problem, ranks had to be gotten in one round, was told to enable rank checking in the DB, but then the ranks got reset to private every time x.x..
     
  3. Goose

    Goose New Member

    How did you solved this problem?
     
  4. Seraphiel

    Seraphiel New Member

    I havn't yet.. ^^; , I'll let you know if I do, though.
     
  5. Goose

    Goose New Member

    Seems that I have maybe found the rootcause for this problem.

    when I ping "bf2web.gamespy.com" I get the local IP only.
    When I start the server with the *.vbs file it shows me 207.38.10.110...

    I tried to edit the host according to my local adress etc with no success.
    Everytime when I start the bf2statisics vbs file I get a different IP.

    By the way thats my vbs content:

    Const FOR_READING = 1
    Const FOR_WRITING = 2

    Set objFS = WScript.CreateObject("Scripting.FileSystemObject")
    Set objShell = WScript.CreateObject("Wscript.Shell")
    Set objWMISrv = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\.\root\cimv2")
    strHostsFile = objShell.ExpandEnvironmentStrings("%SystemRoot%") & "\system32\drivers\etc\hosts"

    strMatchContent = "BF2web.gamespy.com"

    ' ========================================================================
    ' String Lookup Variables
    ' ========================================================================
    ' EDIT: This Line includes your game server host name/IP address.
    'strLookupAddr = "privatestats.gamespy.host" ' Host Name
    strLookupAddr = "192.168.178.47" ' IP Address
    ' ========================================================================
    strBF2exe = "bf2_w32ded.exe" ' Executable used to launch BF2
    ' ========================================================================

    ' ========================================================================
    etc.

    Hope that someone can help me...

    br
    Goose
     
  6. Seraphiel

    Seraphiel New Member

    Might be some port that's blocked or so (80?) that does so you can't fetch the correct data, even if the DB got it, I had the same problem like I said, well, others on my server did, but not myself as I was on the server comp.

    After poking around with opening ports for webserver etc it works all good now, I might be wrong, but I think I saw somewhere that it's port 80 you should open in firewall/routor for that problem.

    Hope it helps.
     
  7. Goose

    Goose New Member

    Hi Seraphiel,

    I´ve checked tha port 80 and also tried without any firewall/ports etc. - noc chance.

    But when I ping "bf2web.gamespy.com" I get the local IP only (no server started)

    When I start the server with the *.vbs file it shows me the IP 207.38.10.110.

    That seems to be one problem, but how to solve?

    br
    Goose
     
  8. Seraphiel

    Seraphiel New Member

    Use Treewalk http://ntcanuck.com/

    After installing it make two files in 'C:\WINDOWS\system32\dns\etc'

    one named "filter.conf" and one named "null.zone.file"

    Open them with notepad or other text program.

    In filter.conf enter :

    zone "bf2web.gamespy.com" { type master; notify no; file "null.zone.file"; };

    and in null.zone.file enter :

    $TTL 36000
    @ IN SOA localhost. root.localhost. (
    0 ; serial
    0 ; refresh
    0 ; retry
    0 ; expiry
    0 ) ; minimum

    IN NS localhost.
    @ NS localhost.
    A XXX.XXX.XXX.XXX
    * IN A 0.0.0.0

    1 IN PTR localhost.


    $TTL 36000
    @ IN SOA localhost. bf2web.gamespy.com (
    0 ; serial
    0 ; refresh
    0 ; retry
    0 ; expiry
    0 ) ; minimum

    IN NS localhost.
    @ NS localhost.
    A XXX.XXX.XXX.XXX
    * IN A 0.0.0.0

    1 IN PTR localhost.



    (Change the XXX.XXX.XXX.XXX to your IP on both places.)

    After that flush DNS (start -> all programs -> treewalk-> tools -> Flush DNS)
    And then start it (start -> all programs -> treewalk -> service -> Start DNS service)

    That *should* redirect bf2web.gamespy.com to your IP.
    Good luck. =]
     
  9. musikmann

    musikmann New Member

    Seraphiel is totally right. If you fix DNS it should all work.
     
  10. Seraphiel

    Seraphiel New Member

    Learned atleast a bit from having so much problems myself, hehe. =]
     
  11. musikmann

    musikmann New Member

    To put a finer point on it... Your game server isn't checking the webserver for stats. Stats work until you stop the server, then they disappear and dont log on the web server or in the DB.
     
  12. hispeed

    hispeed New Member

    this is over myhead, like a lot of other topics, lol.

    The good news is I usually know enough to be able to make stuff work sooner or later.

    Ok my initial question is this: are you talking about using treewalk on the gamer server computer or my hom computer?

    sorry if I dumb, but guess what? i AM.
     
  13. musikmann

    musikmann New Member

    treewalk needs to be setup up so that your game server uses it. doesn't have to be on the game server itself but if ur renting one...thats the place.