Jump to content


Private Ranking System

  • Please log in to reply
3 replies to this topic

#1 wurzelsepp



  • Members
  • PipPip
  • 66 posts

Posted 19 May 2008 - 11:58 AM

hey, there. this a content from my post in the bfsp forums


It's just a tutorial how to create and use it. The system was created by the bf2statistics guys (link and credits below!):

---- (start of my post, I didnt want to make it with quote tags, cause it looked ugly :P)----
Well, here is the promised Battlefield 2 COOP/INTERNET RANKING tutorial, step-by-step:

First of all, read all steps before you install the stats system. This is just a tutorial, the bf2statistics.com guys created this system.

1. Introduction, needed stuff and requirements
2. Create the database
3. Install the system on the database
4. Run the ranked system 4.1 without a mod (bf2 vanilla)
4.2 with a mod (xpak, pr, poe... etcetera)
5. Change levels, serversettings and gamemods
6. FAQ

1. What stuff do I need to run and what requirements do I need?

You can run the private ranked system on your pc or on an extra pc.
The best way is to run it on another system, because the dedicated server eats much power of your working memory.
Your extra system should have at least 256mb ram, when you run the client and server on one system, you need at least 2 gb ram maybe more...You need to have FULL ACCESS TO YOUR FTP SERVER!!!

You need following programs and files for your ranking system:

for the client:
- Battlefield 2 ver. 1.41 (link, only needed when your bf2 isn't updated to 1.41)
- BF2PrivateStats(Client) (+SetACL) file (included in the bf2privaterankingsys.zip)

for the server:
- Battlefield 2 dedicated server 1.41 (link)
- python files ((included in the bf2privaterankingsys.zip)
- BF2PrivateStats(Server) (+SetACL) file (included in the bf2privaterankingsys.zip)
- ASP folder (included in the bf2privaterankingsys.zip)

bf2privaterankingsys.zip file::
Downloadmirrow 1 @ filefront.com http://files.filefro...;/fileinfo.html
Downloadmirrow 2 @ rapidshare.com

for the database:
- xampp (link)

You can join the server, when you start a lan server in the offline mode, too.
There are several advantages and disadvantages concerning the online and offline mode:

- offline:
you do not need an internet connection!
you can use the webserver (running offline) to watch your stats
ingame rank works

you need an internet connecion!
you can use the webserver (running offline or online) to watch your stats
ingame rank works
you can watch your stats in the BFHQ

2. Create the database

The database can be on an external server... you do not have to create the database on the pc, you want to have the bf2 dedicated server to run.

Install xampp (link above).
Run xampp so this screen will come up (if not start xampp, by clicking on the system tray "x" symbol, which should be next to your clock):
Posted Image
Then start the Apache and MySql service:
Posted Image
Open your explorer (I use firefox, internet explorer works too, of course).
Type "" or "localhost" in the address bar (without "")
This screen will come up:
Posted Image

Click on phpmyAdmin, which you can find under the tool bar at the left side.
Posted Image
Type in "bf2stats" into the "create new database" field (left to collation) and create the database by clicking onto the "create" button :P :
Posted Image
Now click on server:localhost, which is at the top of the page:
Posted Image
You should now be at the main site.
Click on "privileges" and "add new user", this screen will come up:
Posted Image
Now type in following dates:
user name: "bf2statslogger" <-------- note: here you can also use another username and password, but remember it, for the further steps
password: "bf2"
(without "")
then click on "check all" and finally on the "ok" button:
-> close all windows

3. Install the system on the database

Now you've to install the system on the database.
First of all copy the "python" folder which is included in the .zip file to your gameservers folder ( ...EA GAMES\Battlfield 2 Server\) and overwrite the old one.
Then copy the "asp" folder to your htdocs folder (in this case it should be: ....xampp\htdocs\ )...

Again, open your explorer and type in the addressbar
Posted Image
you see the two boxes, here you type in following informations:
username: admin
password: password
Posted Image
Click on "install DB", which can be found on the left bar:
Posted Image
type in following informations:
server: localhost
database: bf2stats
username: bf2statslogger
password: bf2

Mark the confirm process box and click on process.

Posted Image

If you have more errors here, you should re-do all steps accurately!

Now click on "upgrade DB", which can be found in the right bar:
Posted Image

Check the informations of the upgrade database form and correct it if necessary (should be the same infos as you typied in above!), click on process....
Ignore the errors, the screen should look like this one:

Posted Image

I always got 10 errors.

Click again on "install DB" and after that on "test config":

Posted Image

The screen should look like the one above!, I got one or two warn at checking database, but that didnt affect my ranking system.

Close your browser.

4. Run the ranked system
4.1 without a mod (bf2 vanilla)

I suggest you firstly to run the system without a mod (bf2 vanilla) and then try to use it with a mod.

Run the ranked system without a mod (bf2 vanilla):
Steps for server-side:
Copy the BF2PrivateStats(Server) and setacl to your Battlefield 2 server directory (...EA GAMES\Battlefield 2 Server\).
Copy the BF2 private ranking server.exe shortcut to your desktop.
Make shure that the right path is specified (right click on your shorcut and click on properties):
"C:\Programme\EA Games\Battlefield 2 Server\BF2PrivateStats(Server).vbs" is the standard shortcut path.
Go to your ...EA GAMES\Battlefield 2 Server\ folder and open your BF2PrivateStats(Server).vbs with the texteditor or notepad:

Edit the ip address to the address of the database! Not needed when you run a localserver and the database and gameserver are on the same system.

' ========================================================================
' EDIT: This Line includes your game server host name/IP address.
'strLookupAddr   = "privatestats.gamespy.host"		' Host Name
strLookupAddr   = "[b][/b]"		' IP Address
' ========================================================================

Steps for client-side:
Copy the BF2PrivateStats(Client) and the setACL to your Battlefield 2 directory (...EA GAMES\Battlefield 2).
Copy the BF2 Offline Ranked.exe shortcut to your desktop.
Here again check the right game directory path of the shortcut.
Go to your ...EA GAMES\Battlefield 2\ folder and open your BF2PrivateStats(Client).vbs with the texteditor or notepad:

' ========================================================================
' String Lookup Variables
' ========================================================================
' EDIT: This Line includes your game server host name/IP address.
'strLookupAddr   = "privatestats.gamespy.host"		' Host Name
strLookupAddr   = "[b][/b]"		' IP Address
' ========================================================================

Edit the IP address to the Ip address of the database!

Run the BF2 private ranking server.exe shortcut to start the server and start the game on the client side with the bf2 offline ranked.exe shortcut.

Join the server, which should be displayed in the "join local" menu (when all server settings are on standard settings, the server should run the Strike at Karkand conquer 16 map, how to change the map and gamemod go to point 5!)

4.2 with a mod

Do the same steps like you did in the step 4.1!

I use the AIX mod for example:

Make a copy of your Bf2 Offline Ranked.exe shortcut (which should be at your desktop) and paste it on the same position, the desktop.
Rename "copy of bf2 offline ranked.exe" to "AIX OFFLINE RANKED".

Right click on "AIX OFFLINE RANKED" and open the properties of the shortcut.

Use the "+modPath mods" to run mods...

Here you need following modPath:

"C:\Programme\EA Games\Battlefield 2\BF2PrivateStats(Client).vbs" +modPath mods/AIX +menu 1 +fullscreen 1

DO THE SAME STEP WITH THE BF2 Server.exe shortcut ("C:\Programme\EA Games\Battlefield 2 Server\BF2PrivateStats(Server).vbs" +modPath mods/AIX)

5. Change levels, serversettings and gamemods

Goto your ....Bf2 Server/mods folder.
Choose your mod and open the settings folder of your mod.

Change serversettings:

In the serversettings.con you can change the usual stuff like FF, rounds per map etc... more informations can be found in the ServerSettingsDesc.xls, which should be in the mods\mod_name\Settings folder (you can read this file type with exel)...

Change levels and gamemods:

example for conquer strikeatkarkand mapsize 32:
mapList.append strike_at_karkand gpm_cq 32

example for coop strikeatkarkand mapsize 16:
mapList.append strike_at_karkand gpm_coop 16

The Battlefield 2 vanilla mod only supports coop maps with size 16 (except Wake_Island_2007)

Use BF2SP64 for all vanilla maps with complete coop support (all map size support coop support)

6. FAQ

My rank system works, but I always get a crash, when I want to log me into an online account (no crash when system and server are running!)?

- Go to: C:\windows\system32\drivers\etc and open the hosts.isc with the texteditor.
-> delelte the bf2web.gamespy.com line
Online account should work now (and private rank system works,too!!!)...

The rank system works ingame, but the system didnt save the stats ingame and on the webserver.

- You must re-direct your bf2 (client) with the server. Type in the right server address to BF2PrivateStats(Client).vbs.

How can I change the numbers of bots and more other useful answers can be found here:



In the extrastuff folder of your bf2privaterankingsys.zip you can find two folders:

1.) Webserver:
You can watch your stats with the bf2 web statistics. Simply copy the bf2statistics folder (....bf2privaterankingsystem\extrastuff\webserver)
Into your htdocs folder of your server (....xampp\htdocs\).
Then open your webbrowser and type in following adress: (for type in the ip adress of your server)
Now the bf2statistics web site should be displayed.

2.) modded phyton files
I also added a modded phyton file, it's useful for lan parties, because you got medals and badges very faster than when you play a normal bf2 online.
Here is the changelog:
- easier to get veteran and expert badges
basic: 10 kills i. a. r
veteran: 1h played and 20 kills i. a. r
expert: 4h played and 40 kills i. a.
make a copy of your old file located in:
and then replace the new with the old files!!

Good luck :bigthumb:


Big thx to the bf2statistics guys, who created this system:

Mr NiceGuy-The Shadow-Chump-Nyl0n-Wolverine

You can get support here in this thread or in the bf2statistics.com forums.Please try to avoid sending me tons of PM's, I'm not often around here. Many user here may know the answers, too. Use this thread for it. ty.

admins and moderators: please feel free to edit the post with new faq questions etc.

#2 Tyler1144



  • Members
  • Pip
  • 14 posts

Posted 28 February 2010 - 04:31 PM


I have been looking all over the internet for weeks now!! YAY

Edited by Tyler1144, 28 February 2010 - 04:32 PM.

#3 TNE26


    Advanced Member

  • Members
  • PipPipPip
  • 920 posts
  • Gender:Male
  • Location:Hillerød, Northern Zealand, Denmark
  • Interests:Battlefield 2, Mapping, Steelpans (playing in Denmarks best), computer, webdesign, tv, friends, family, everything with wires, computer rebuilding/assembling, and a lot more fun!

Posted 01 March 2010 - 09:55 AM

Please note that the updated version of this thread is here: http://www.battlefie...st=0#entry84384 (which probably also is where you'll find the most support for it)

Btw.. links to BFSP in above post doesn't work. Convert them to the new site here: http://www.battlefie...=phplinkconvert

Edited by TNE26, 01 March 2010 - 10:00 AM.

Kind regards, Thomas
Posted Image
Northern Zealand Navy S.E.A.L's | Clan leader
BF2 stats: http://bf2.tne.dk/ and for detailed, click the link at the top)
Posted Image

#4 Dzawa



  • Members
  • Pip
  • 3 posts

Posted 05 September 2012 - 04:03 AM

i want to ask ... my bf2 when i test system

> Checking BF2Statistics Processing...
- BF2Statistics Processing Check: Fail
> Checking Gamespy (.aspx) File Basic Response...
- Gamespy (.aspx) Basic Response: Fail
> Checking Gamespy (.aspx) File Advanced Responses...
- Gamespy (.aspx) Advanced (1) Response: Fail
- Gamespy (.aspx) Advanced (2) Response: Fail
- Gamespy (.aspx) Advanced (3) Response: Fail

help me

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users