# Official BF Editor Forums: Private Ranking System - Official BF Editor Forums

Page 1 of 1

## Private Ranking System How to: Create a private ranking system (coop and cq supported)

### #1wurzelsepp

• Member
• Group: Members
• Posts: 66
• Joined: 16-March 07

Posted 19 May 2008 - 11:58 AM

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

HAVE FUN!
IT ONLY WORKS WITH A LEGAL VERSION OF BATTLEFIELD 2!

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 )----
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::
http://rapidshare.de...ingsys.zip.html

for the database:

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

-online:
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.

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):

Then start the Apache and MySql service:

Open your explorer (I use firefox, internet explorer works too, of course).
Type "127.0.0.1" or "localhost" in the address bar (without "")
This screen will come up:

Click on phpmyAdmin, which you can find under the tool bar at the left side.

Type in "bf2stats" into the "create new database" field (left to collation) and create the database by clicking onto the "create" button :

Now click on server:localhost, which is at the top of the page:

You should now be at the main site.
Click on "privileges" and "add new user", this screen will come up:

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
(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\ )...

you see the two boxes, here you type in following informations:

Click on "install DB", which can be found on the left bar:

type in following informations:
server: localhost
database: bf2stats

Mark the confirm process box and click on process.

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:

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:

I always got 10 errors.

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

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

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.

' ========================================================================
'strLookupAddr   = "privatestats.gamespy.host"		' Host Name
' ========================================================================

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.

' ========================================================================
' String Lookup Variables
' ========================================================================
'strLookupAddr   = "privatestats.gamespy.host"		' Host Name
' ========================================================================

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

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

Note:
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:

http://battlefieldsi...?showtopic=3768

---------------------------------------------------------------------------------------------------------------

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)
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
f.e.:
assault:
basic: 10 kills i. a. r
veteran: 1h played and 20 kills i. a. r
expert: 4h played and 40 kills i. a.
install:
make a copy of your old file located in:
........Bf2Server\pyhton\bf2\stats\...
and then replace the new with the old files!!

Good luck :bigthumb:

wurzelsepp

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

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.
0

### #2Tyler1144

• Newbie
• Group: Members
• Posts: 14
• Joined: 07-June 08

Posted 28 February 2010 - 04:31 PM

OMG THANK YOU

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

This post has been edited by Tyler1144: 28 February 2010 - 04:32 PM

0

### #3TNE26

• Group: Members
• Posts: 920
• Joined: 01-April 08
• 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

This post has been edited by TNE26: 01 March 2010 - 10:00 AM

Kind regards, Thomas

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)
0

### #4Dzawa

• Newbie
• Group: Members
• Posts: 3
• Joined: 03-September 12

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

Page 1 of 1