fyrestoof
Member
+14|6010|Essen, Germany
theres an XML feed for bf2 stats from ea right?
(T)eflon(S)hadow
R.I.P. Neda
+456|6843|Grapevine, TX
Click Searchand you will generally find what you are looking for. GL
Titch2349
iz me!
+358|6367|uk

"your search returned no hits"

There is one from EA, which BF2s uses, but I believe only select people (I.E the stats sites such as this, bf2tracker, bf2player etc can use)

However, Chuy releases an API thingy ( http://forums.bf2s.com/viewtopic.php?id=64432 ), which (anyone?) can use.

Last edited by Titch2349 (2008-01-23 23:10:07)

CrazeD
Member
+368|6687|Maine
Here's a PHP script which I found a long time ago on a Google search. It works pretty well, I guess...

Code:

<?php

ini_set("user_agent","GameSpyHTTP/1.0");

$info = "per*,cmb*,twsc,cpcp,cacp,dfcp,kila,heal,rviv,rsup,rpar,tgte,dkas,dsab,cdsc,rank,cmsc,kick,kill,deth,suic,ospm,klpm,klpr,dtpr,bksk,wdsk,bbrs,tcdr,ban,dtpm,lbtl,osaa,vrk,tsql,tsqm,tlwf,mvks,vmks,mvn*,vmr*,fkit,fmap,fveh,fwea,wtm-,wkl-,wdt-,wac-,wkd-,vtm-,vkl-,vdt-,vkd-,vkr-,atm-,awn-,alo-,abr-,ktm-,kkl-,kdt-,kkd-";

$pid = 62850738; // Your PID

$data = file("http://bf2web.gamespy.com/ASP/getplayerinfo.aspx?pid=".$pid."&info=".$info);

$stats = array_combine(explode("\t", $data[3]), explode("\t", $data[4]));

// Usage:

echo 'Nick: '.$stats['nick'].'<br />';
echo 'Global Score: '.$stats['scor'];

// print_r ($stats); // use this to display the contents of the array

?>
EDIT: And here is a link where I found some of that information: http://bf2.fun-o-matic.org/index.php/BF … ering_Data

Last edited by CrazeD (2008-01-24 07:28:19)

Board footer

Privacy Policy - © 2024 Jeff Minard