first i would like to thank everyone at this forum for help as well as the creators of the stat system.

this is my very first tutorial,so please bare with me. i did all this on windows 7 ultimate x64, so i would think it is backwards compatable as well i am using bf2 1.5 patched. we will cover using the plain unmodded version of BF2.

1: unzip XAMPP and place it in your C:\ drive so it looks like this C:\xammp. install it by running the setup_xampp.bat,carefully follow the prompts not to mess up installation. make sure you are giving permissons and firewall settings for it as it installs! after its done,run xampp-control,in this GUI youre going to first start Apache and wait for it to say running,then start MySql.

now click the admin button by Apache, your internet browser should pop up,if not type 127.0.0.1 or localhost into your http bar of your browser,(tested on firefox currently) here is where im going to steal abit of what wurzelsepp gives in his tutorial to save time and make this easier.

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" buttonNow 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 userNow type in following dates:user name: "bf2statslogger" <-------- note: here you can also use another username and password, but remember it, for the further stepspassword: "bf2"(without "")then click on "check all" and finally on the "ok" button: -> close all windows

note: i would strongly recomend going to his tutorial and seeing the pics he posted in his guide.

2: install battlefield 2 dedicated server 1.5 it should created a new folder in C:/program files/EA Gamescopy the python folder from the bf2privaterankingsys.zip over to the dedicated server, overwrite the old ones!Then copy the "asp" folder from the zip over to c:/xampp/htdocs folder (make sure XAMPP is not running at this point or it will not load the files you are moving)the start XAMPP control again, start Apache then MySql,Again, open your explorer and type in the addressbar 127.0.0.1/asp.you see the two boxes, here you type in following informations:username: adminpassword: passwordtype in following informations:server: localhostdatabase: bf2stats username: bf2statsloggerpassword: bf2

Mark the confirm process box and click on process.dont worry about the errors,if they are the same as his,then its all good!

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

3: we need to create a redirect for the stats now, open up notepad and type this in to it

127.0.0.1 BF2web.gamespy.comsave the file as hosts.ics then place it intoC:\windows\system32\drivers\etc

4: copy the rest of the contents from bf2privaterankingsys.zip and dump them into your dedicated server folder. make sure XAMPP control is now running Apache and MySql. we are almost there! hang on just a little bit longer!go to Battlefield 2 Server/mods/bf2/settings and open up seversettings.con with notepad and apply these settings and save

SAVE IT! now go and start the normal dedicated launcher in the server folder,try not messing with the settings that are defualted,go to maps and select bf2 from the drop down and pick what maps you want and hit start!

now start up your bf2 game go to local and find your server,join, invite and enjoy!.... stats will be saved to your PC that you are running XAMPP on. your friends who join will also have their stats savef on your PC as well.

i hope this helps and i may edit this later on when i have more time to make it more clear,but this is just to get us all thru for the time being. thanks again everyone!

this also works on eve of destuction and AIX 2.0 as i just tested both of them now, and your stats,ranks, and unlocks carry over to all the mods and vanilla bf2! all you need is your mod server files and put them in to your dedicaded server folder under mods, then start your launcher,go to maplist,select you mod, and choose what maps you want to host and start your server.

this also works on eve of destuction and AIX 2.0 as i just tested both of them now, and your stats,ranks, and unlocks carry over to all the mods and vanilla bf2!

You will recognize - if you play longer - that the stats are not tracked properly for other mods then bf2 and xpack.You are missing the correct declaration of the objects (armies, kits, weapons, vehicles, etc) in python/bf2/stats/constants.py and the modification of the ASP (e.g. bf2statistics.php and database) to fully work with AIX2 for example.

this also works on eve of destuction and AIX 2.0 as i just tested both of them now, and your stats,ranks, and unlocks carry over to all the mods and vanilla bf2!

You will recognize - if you play longer - that the stats are not tracked properly for other mods then bf2 and xpack.You are missing the correct declaration of the objects (armies, kits, weapons, vehicles, etc) in python/bf2/stats/constants.py and the modification of the ASP (e.g. bf2statistics.php and database) to fully work with AIX2 for example.

yes, i think your right. im by no means an expert on this, i am just an entry level modder, i took weeks (almost months) of research on everything bf2 and AIX i could come up with by myself and compress it into what i have shown here,its not the greatest looking thing in the world i know,but it does work on a basic enough level that someone else maybe be able to clean it up and get it to work properly. obviously with other mods like eve of destruction i am coming across unlock problems, because they dont have a sniper class,a unlock used in bf2 for sniper class,cant carry over to eve of desturction, im sure if you could find the python file and some heavy changes renaming the missing class back to sniper it may work??? but i dont know.

also i should point out, the MP side of this isnt excatly worked out yet.... yes,i have tracked stats from people who have joined my server so far,but i think they told me BFHQ isnt showing their stats or unlocks, even tho in game they are reciving medals and ranks. im perrty sure that has to do with redirecting their PC from gamespy, to my server. was thinking of having clients that wish to join use BF2SPCC MP to join, i just dont know what to tell them to input for ASP and game server IP at the moment, i know this maybe common sence for others,but i dont know this yet.

QUOTE (Virus_ac @ Nov 9 2010, 04:15 AM)

Great job outlawbiker, I did not download the BF2 1.5 dedicated server originally =S (Embarrassed) Doing it now. >HATES WIRELESS

your welcome, i just wish some one else had beat me to the punch on this. your more intrested in the SP side of this and curently with my info here this will work out well for you in bf2 so far from what i have tested. i created this because i had friends and family that wanted to make stats and earn unlocks on a privated tracked system of our own. let me know how this works out for you!

.... yes,i have tracked stats from people who have joined my server so far,but i think they told me BFHQ isnt showing their stats or unlocks, even tho in game they are reciving medals and ranks. im perrty sure that has to do with redirecting their PC from gamespy, to my server. was thinking of having clients that wish to join use BF2SPCC MP to join, i just dont know what to tell them to input for ASP and game server IP at the moment, i know this maybe common sence for others,but i dont know this yet.

I think that this is a common problem. I remember that on some servers, that had stats and ranks, they also advertised a webpage, where you could go and see your stats from their server.

also i should point out, the MP side of this isnt excatly worked out yet.... yes,i have tracked stats from people who have joined my server so far,but i think they told me BFHQ isnt showing their stats or unlocks, even tho in game they are reciving medals and ranks. im perrty sure that has to do with redirecting their PC from gamespy, to my server. was thinking of having clients that wish to join use BF2SPCC MP to join, i just dont know what to tell them to input for ASP and game server IP at the moment, i know this maybe common sence for others,but i dont know this yet.

ASP-Adress is your external/public ip (wan-ip, worldareanetwork-ip, e.g. 62.117.89.25), port 80 has to be forwarded from your router to the internal/local ip (e.g. 192.168.0.10) of your server. Clients have to redirect bf2web.gamespy.com to your external/public ip (e.g. 62.117.89.25). Then they are able to view stats in BF2HQ and to properly retrieve and unlock unlocks.

also i should point out, the MP side of this isnt excatly worked out yet.... yes,i have tracked stats from people who have joined my server so far,but i think they told me BFHQ isnt showing their stats or unlocks, even tho in game they are reciving medals and ranks. im perrty sure that has to do with redirecting their PC from gamespy, to my server. was thinking of having clients that wish to join use BF2SPCC MP to join, i just dont know what to tell them to input for ASP and game server IP at the moment, i know this maybe common sence for others,but i dont know this yet.

ASP-Adress is your external/public ip (wan-ip, worldareanetwork-ip, e.g. 62.117.89.25), port 80 has to be forwarded from your router to the internal/local ip (e.g. 192.168.0.10) of your server. Clients have to redirect bf2web.gamespy.com to your external/public ip (e.g. 62.117.89.25). Then they are able to view stats in BF2HQ and to properly retrieve and unlock unlocks.

ok, i cant figgure out how to get my family to redirect to my server, i had them try and use BF2SPCC MP tab and add host, as recomended by Ti_GER. how ever both people are getting an error when trying to use BF2SPCC now... i couldnt explain what the error is cause they didnt not send it to me. is there another way to have the clients redirect? maybe by having them moddify the hosts.ics file? or something else im missing? once again any help is appreciated. maybe a small tutorial here about geting clients to redirect to an example server like my own so they can retrive info and unlocks in BFHQ?

ok, i cant figgure out how to get my family to redirect to my server, i had them try and use BF2SPCC MP tab and add host, as recomended by Ti_GER. how ever both people are getting an error when trying to use BF2SPCC now... i couldnt explain what the error is cause they didnt not send it to me. is there another way to have the clients redirect? maybe by having them moddify the hosts.ics file? or something else im missing? once again any help is appreciated. maybe a small tutorial here about geting clients to redirect to an example server like my own so they can retrive info and unlocks in BFHQ?

All in the above link to the post @ aixtended.com\forums . I attached a pdf to download which explains ways to apply a working redirect for different operating systems.

we have tried to create the hosts file for 2 people now and when they ping it 4 packets are send but none recived , im using my IP adress 69.xxx.xxx.xxx . no one wants to try the treewalk method, however if there is anyone here that would be willing to please let me know and we can schudle a time that works for both of us to see if we can get this to work

we have tried to create the hosts file for 2 people now and when they ping it 4 packets are send but none recived , im using my IP adress 69.xxx.xxx.xxx . no one wants to try the treewalk method, however if there is anyone here that would be willing to please let me know and we can schudle a time that works for both of us to see if we can get this to work

The request is probably blocked by the firewall of your server or your router.Are you directly connected to the internet or are you using some sort of routing device?

i do have a linksys WRT610n router,my PC is at 192.168.1.100 if that helps, i have port forwarded ports 80 and 16567 on it. i have used a port checking tool and it says they are open and working fine. i use the dedicated server launcher, my 2 friends have to type in my IP address to connect tho because the server doesnt show up in the list. once they are in game everything works except unlocks and BFHQ for them, for me it works fine.

its not that im giving up on this, its my friends right now that are getting fustrated and loosing attention towards getting this to work. im trying to keep encouraging them to stay involved with this, but they feel like its to much work to do on their side to connect properly to my server. in all reality i keep reminding them of how much more work i have had to do just to get this up and running on my side. hopefully we can find a fix for this before everyone looses intrest.