thankyou
Donate to the B3 fund!

"even a small donation helps!"
Donate with PayPal!

Full documentation and information about XLRstats version 2 can be found at this subsection of our site.

Our upcoming XLRstats version 3 (League Edition) is currently being developed. You can have a glimpse on our main XLRstats website: www.xlrstats.com


Author Topic: XLRSTATS for BF3  (Read 26436 times)

Offline Sars

  • Full Member
  • ***
  • Posts: 72
XLRSTATS for BF3
« on: October 28, 2011, 11:07:17 PM »
With help from Platanos over at Austrian Combat Force i have got XLRSTATS on its way to working with BF3.

Attached you will find the template we are using and sig backgrounds. I have tweeked it a little with the following:
  • Edited background image and cleaned it up
  • Made background static so it doesnt scroll
  • Made Battlefield Logo a png attached to xlrstats logo
  • and decreased size of background img to lower bandwidth required and page load time
Demo is here http://thehair.kicks-ass.org

Here is the bf3.php that needs to go in your config folder
Code: [Select]
<?php
/***************************************************************************
 * Xlrstats Webmodule
 * Webfront for XLRstats for B3 (www.bigbrotherbot.com)
 * (c) 2004-2010 www.xlr8or.com (mailto:[email protected])
 ***************************************************************************/

/***************************************************************************
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Library General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 *
 *  http://www.gnu.org/copyleft/gpl.html
 ***************************************************************************/

//*********************
// These are the standard BF3 settings
//*********************

// Teamnames and colors
$team1 = "US"; // red team
$team2 = "RUS"; // blue team
$spectators = "Spectators";


//*********************
// Weapons names
//*********************

//Assault
$w['M16A4'] = "M16A4 Assault Rifle";
$w['Weapons/AK74M/AK74'] = "AK-74M Assault Rifle";
$w['Weapons/M416/M416'] = "M416 Assault Rifle";
$w['F2000'] = "FN2000 Assault Rifle";
$w['AEK-971'] = "AEK-971 Assault Rifle";
$w['AN-94 Abakan'] = "AN-94 Abakan Assault Rifle";
$w['AS VAL'] = "AS VAL Assault Rifle";
$w['Weapons/G3A3/G3A3'] = "G3 Assault Rifle";
$w['Weapons/KH2002/KH2002'] = "Khaybar KH-2002 Assault Rifle";
//$w[''] = "Steyr Aug Assault Rifle";


//Engineer (SMGs and Carbines)
$w['Weapons/UMP45/UMP45'] = "UMP-45 Sub Machine Gun";
$w['AKS-74u'] = "AKS 74U Sub Machine Gun";
$w['M4A1'] = "M4A1 Carbine Rifle";
$w['Weapons/SCAR-H/SCAR-H'] = "SCAR-H Carbine Rifle";
$w['Weapons/G36C/G36C'] = "G36C Carbine Rifle";
$w['SG 553 LB'] = "SG553 Carbine Rifle";
$w['weapons/p90/p90'] = "P90 Sub Machine Gun";
$w['MP7'] = "MP7 Sub Machine Gun";
$w['PP-2000'] = "PP-2000 Sub Machine Gun";
$w['MagpulPDR'] = "PDW-R Sub Machine Gun";
$w['Weapons/A91/A91'] = "A-91 Sub Carbine Rifle";

//Medic
$w['M27IAR'] = "M27 Machine Gun";
$w['RPK-74M'] = "RPK Machine Gun";
$w['M249'] = "M249 Machine Gun";
$w['M240'] = "M240 Machine Gun";
$w['M60'] = "M60 Machine Gun";
$w['Pecheneg'] = "PKP Pecheneg Machine Gun";
$w['Type88'] = "Type 88 Machine Gun";
//$w[''] = "MG36 Machine Gun";

//Recon
$w['Mk11'] = "MK11 Sniper Rifle";
$w['SVD'] = "SVD Semi Automatic Sniper Rifle";
$w['M40A5'] = "M40A5 Sniper Rifle";
$w['SV98'] = "SV98 Bolt Action Sniper Rifle";
$w['Model98B'] = "M98B Bolt Action Sniper Rifle";
$w['M39'] = "M39 Semi Automatic Sniper Rifle";
$w['SKS'] = "SKS Semi Automatic Sniper Rifle";
//$w[''] = "M82 Semi Automatic Sniper Rifle";
//$w[''] = "Type 88 Semi Automatic Sniper Rifle";

//Shotguns
$w['870MCS'] = "Remington 870 Shotgun";
$w['Siaga20k'] = "Saiga 12 Semi Automatic Shotgun";
$w['USAS-12'] = "USAS 12 Semi Automatic Shotgun";
$w['DAO-12'] = "DAO 12 Semi Automatic Shotgun";
$w['M1014'] = "M1014 Semi Automatic Shotgun";
//$w[''] = "SPAS-12 Pump Action Shutgun";

//Sidearms
$w['M9'] = "Beretta M9 Semi Automatic Pistol";
$w['Weapons/MP443/MP443'] = "MP-443 Grach Semi Automatic Pistol";
$w['M93R'] = "Beretta Model 93R Pistol";
$w['M1911'] = "M1911 Pistol";
$w['Glock18'] = "Glock 18 Fully Automatic Pistol";
$w['Weapons/MP412Rex/MP412REX'] = "MP412 REX .357 Magnum Pistol";
$w['Taurus .44'] = ".44 Magnum Pistol";

//Rocket Launchers
$w['RPG-7'] = "RPG-7 ROcket Launcher";
$w['SMAW'] = "SMAW Rocket Launcher";
$w['FGM-148'] = "Javelin Anti Tank Missile Launcher";
$w['FIM92'] = "FIM-92 Stinger Anti Air Missile Launcher";
$w['Weapons/Sa18IGLA/Sa18IGLA'] = "SA-18 IGLA Anti Air Missile Launcher";
//$w[''] = "AT4 Light Anti Tank Rocket Launcher";

//Equipment
$w['Weapons/Gadgets/C4/C4'] = "C4 explosives";
$w['Weapons/Gadgets/Claymore/Claymor'] = "Claymore mine";
$w['M15 AT Mine'] = "AT mine";
$w['Repair Tool'] = "Repair Tool";
$w['Medkit'] = "Defibrillator";
$w['M26Mass'] = "M26 MASS";
$w['M320'] = "M320 Grenade Launcher";
$w['Weapons/Knife/Knife'] = "Knife";
$w['M67'] = "M67 Hand Grenade";
//$w[''] = "M18 Smoke Grenade";
//$w[''] = "M224 Mortar";
//$w[''] = "EOD Bot";

//*********************
// Vehicle names
//*********************

//Tanks
//$w[''] = "M1 Abrams Tank";
//$w[''] = "T-90 Tank";

//APCs
//$w[''] = "LAV-25 APC";
//$w[''] = "BMP-2 APC";
//$w[''] = "9K22 Tunguska Mobile AA";
//$w[''] = "LAV-AD Air Defense Vehicle";

//Helicopters
//$w[''] = "AH-1 Super Cobra Attack Helicopter";
//$w[''] = "Mi-28 Attack Helicopter";
//$w[''] = "UH-1Y Super Huey";
//$w[''] = "KA-60 Chopper";
//$w[''] = "AH-6J Little Bird Recon Helicopter";
//$w[''] = "Z-11 Recon Helicopter";

//Jets
//$w[''] = "F/A 18 Super Hornet Jet";
//$w[''] = "A10 Thunderbolt Jet";
//$w[''] = "Sukhoi Su-35 Jet";
//$w[''] = "Sukhoi Su-39 Jet";

//Transport Vehicles
//$w[''] = "Humvee";
//$w[''] = "Vodnik";
//$w[''] = "Growler ITV";
//$w[''] = "VDV Buggy";
//$w[''] = "RHIB Boat";
//$w[''] = "AAV-7A1 / Amphibious Assault Vehicle";

//*********************
// Other Weapon Names
//*********************
$w['Death'] = "Vehicle/Mortar Kill"; //?
$w['SoldierCollision'] = "Soldier Collision";
$w['Suicide'] = "Suicide";
$w['Melee'] = "Melee";
$w['RoadKill'] = "Road Kill";
$w['DamageArea'] = "Damage Area"; //?
$w[' '] = $text["notidentify"];


//*********************
// Map names
//*********************
//Stock
$m['MP_001'] = "Grand Bazaar";
$m['MP_003'] = "Teheran Highway";
$m['MP_007'] = "Caspian Border";
$m['MP_011'] = "Seine Crossing";
$m['MP_012'] = "Operation Firestorm";
$m['MP_013'] = "Damavand Peak";
$m['MP_017'] = "Noshahar Canals";
$m['MP_018'] = "Kharg Island";
$m['MP_Subway'] = "Operation Metro";

$m['None'] = "-Unknown-";

//*********************
// Event names
//*********************
$e[''] = "";

//*********************
// Bodypart names
//*********************
$b['None'] = $text["noneurt"];
$b['body'] = $text["notidentify"];
$b['head'] = $text["head"];

?>

There is lot of weapons and stuff still missing from that. I need help on correcting it, if anyone can help me that would be amazing!

The Missing List
  • Steyr Aug
  • M82
  • Type88 Sniper
  • MG36
  • SPAS012
  • PDW-R
  • FIM-92 Stinger
  • AT4
  • EOD Bot (Not sure if you can kill someone with this)
  • M18 Smoke Grenade (Not sure if you can kill someone with this)



[attachment deleted by maintenance]
« Last Edit: November 10, 2011, 08:32:21 PM by Sars »



Offline BetterDeadThanZed

  • Beta Testers
  • Hero Member
  • *
  • Posts: 681
    • Killin Zeds
Re: XLRSTATS Config
« Reply #1 on: October 29, 2011, 02:41:32 AM »
Very nice. Keep up the good work. I'll subscribe to this thread to follow the progress.

Offline Sars

  • Full Member
  • ***
  • Posts: 72
Re: XLRSTATS Config
« Reply #2 on: October 29, 2011, 05:45:40 AM »
Added 5 more weapons in original post, here they are also if you want to just add them yourself.
Code: [Select]
$w['Type88'] = "Type88";
$w['Weapons/Sa18IGLA/Sa18IGLA'] = "Sa18IGLA";
$w['MP7'] = "MP7";
$w['Weapons/Knife/Knife'] = "Knife";
$w['M27IAR'] = "M27IAR";
2nd update
Code: [Select]
$w['Repair Tool'] = "Repair Tool";
$w['M40A5'] = "M40A5";
$w['PP-2000'] = "PP-2000";
$w['Weapons/M416/M416'] = "M416";
3rd update
Code: [Select]
$w['Weapons/MagpulPDR/MagpulPDR'] = "MagpulPDR";
$w['M39'] = "M39";
$w['DAO-12'] = "DAO-12";
$w['Taurus .44'] = "Taurus .44";
$w['M240'] = "M240";
$w['Pecheneg'] = "Pecheneg";
4th update
Code: [Select]
$w['M27IAR'] = "M27IAR";
$w['M249'] = "M249";
$w['Type88'] = "Type88";
$w['Medkit'] = "Medkit";
$w['M60'] = "M60";
$w['DamageArea'] = "DamageArea";
$w['M40A5'] = "M40A5";
$w['M26Mass'] = "M26Mass";
$w['SG 553 LB'] = "SG 553 LB";
$w['F2000'] = "F2000";
Update 5
Code: [Select]
$w['Weapons/G3A3/G3A3'] = "G3A3";
Update 6
Code: [Select]
$w['M39R'] = "M39R";
Update 7
Code: [Select]
$w['M1014'] = "M1014 Semi Automatic Shotgun";
$w['Model98B'] = "M98B Bolt Action Sniper Rifle";
Update 8
Code: [Select]
$w['weapons/p90/p90'] = "P90 Sub Machine Gun";
$w['AS VAL'] = "AS VAL Assault Rifle";
Update 9
Code: [Select]
$w['Siaga20k'] = "Saiga 12 Semi Automatic Shotgun";
Update 10
Code: [Select]
$w['USAS-12'] = "USAS 12 Semi Automatic Shotgun";
$w['Type88'] = "Type 88 Machine Gun";

Removed
//$w[''] = "Type 88 Semi Automatic Sniper Rifle";
« Last Edit: November 10, 2011, 08:33:59 PM by Sars »



Offline Mariodu62

  • Sr. Member
  • ****
  • Posts: 466
Re: XLRSTATS Config
« Reply #3 on: October 29, 2011, 10:12:39 AM »
$w['Weapons/M416/M416'] = "M416";

I don't have anymore in my base

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: XLRSTATS Config
« Reply #4 on: October 29, 2011, 03:23:30 PM »
here is a first list

some weapons name look weird like "Weapons/AK74M/AK74". My guess is that DICE will fix those name in a later update.

Offline Sona

  • Full Member
  • ***
  • Posts: 64
  • www.ooc-clan.com
    • Out Of Control Multigaming Clan
Re: XLRSTATS Config
« Reply #5 on: October 29, 2011, 08:07:22 PM »
heya :) was wondering if someone could help with this prob

at this site (your site)
http://thehair.kicks-ass.org
the stats works almost 100% (on first sight)

now this is our statspage...
http://www.ooc-clan.com/index.php/site-map/battlefield-3/public-2-16-slot
It seems it won't save top kills and maps etc etc etc...

might be easyer through chat, so if ya want to help, add me to one of these :)
my steam is: Sonake84
Origin: Hokus-Pwnkus
Msn: [email protected]

ty :)

( Im allready working on the maps/weapons images/info same way i did it for COD7 as soon its finished i'll post the package here :) )


Offline Sars

  • Full Member
  • ***
  • Posts: 72
Re: XLRSTATS Config
« Reply #6 on: October 30, 2011, 07:19:57 PM »
Updated the weapon list from Sona and Cougette's lists and what i have as of now.



Offline MordyT

  • Support Hero
  • Hero Member
  • *
  • Posts: 3644
  • Over $300 Donated to B3!
    • MordyT
Re: XLRSTATS Config
« Reply #7 on: October 30, 2011, 09:02:33 PM »
Quick question: In BFBC2, you have a global stats tab that links to bfbc2.com. Can we add that to BF3 and link to BF3stats.com?
Help will be given to those with a b3.log

If drop off the map it is due to RL becoming busy :)

System: Python 2.7.3 - Deb 7 - B3 Source Code - 128MB RAM box (rented at $5 a year) - remote MySQL - Remote Web Services

Offline Sars

  • Full Member
  • ***
  • Posts: 72
Re: XLRSTATS Config
« Reply #8 on: October 30, 2011, 10:19:12 PM »
Sure i dont see why not but can you give a screen shot of where it is located, and where it is on xlrstats. thanks



Offline cyanide

  • Full Member
  • ***
  • Posts: 119
    • VivaHosting
Re: XLRSTATS Config
« Reply #9 on: October 30, 2011, 10:24:17 PM »
i've had a look and i think it's in the following file func-bfbc2global.php
Regards,

Cprl.Rst


Offline Sars

  • Full Member
  • ***
  • Posts: 72
Re: XLRSTATS Config
« Reply #10 on: October 31, 2011, 02:42:03 AM »
Quote from: BF3Stats.com Annoucement 2011-10-27:
BF3 Stats isn't finished yet and still work in progress. Therefore only a small bunch of features are included for instance graphic system and a small player overview. Within the next few days we will add the API, vehicles + infantery statistics and leaderboard.
so we cant query to do the tabs, yet but i believe i have done all the ground work to set it up.

PLEASE SOMEONE DOUBLE CHECK IT, I DONT KNOW WHAT IM DOING :DDDDD MANY THANKS
 here is the func-bf3global.php

http://pastebin.com/80M7Tpk2

Just need to fix the API link in there eventually.


And you just need to
add this
Code: [Select]
if($game == "bf3")
  include("func-bf3global.php");
After this
Code: [Select]
if($game == "bfbc2")
  include("func-bfbc2global.php");
to your index.php in xlrstats folder



Offline MordyT

  • Support Hero
  • Hero Member
  • *
  • Posts: 3644
  • Over $300 Donated to B3!
    • MordyT
Re: XLRSTATS Config
« Reply #11 on: October 31, 2011, 02:17:13 PM »
Awesome work. I await the release of the API and the updated config.
Help will be given to those with a b3.log

If drop off the map it is due to RL becoming busy :)

System: Python 2.7.3 - Deb 7 - B3 Source Code - 128MB RAM box (rented at $5 a year) - remote MySQL - Remote Web Services

Offline Sars

  • Full Member
  • ***
  • Posts: 72
Re: XLRSTATS Config
« Reply #12 on: October 31, 2011, 04:02:05 PM »
Updated the original config, organized it into groups and listed the weapons i think i am missing...

I noticed that Death is a designation for anything .. like a Vehicle kill or mortar so i have put that in the new config.
« Last Edit: October 31, 2011, 09:55:13 PM by Sars »



Offline Sars

  • Full Member
  • ***
  • Posts: 72
Re: XLRSTATS Config
« Reply #13 on: November 01, 2011, 08:16:28 PM »
Added a pistol
the M39R



Offline Freelander

  • XLRstats dev.
  • Dev. Team
  • Hero Member
  • *
  • Posts: 1000
Re: XLRSTATS Config
« Reply #14 on: November 02, 2011, 02:29:08 PM »
Hey sars! nice work and thanks for your contributions. I have also pushed to my repo a preliminary version of bf3 support. Game was also added in the web installer phase. I'll need the full list of weapons in order to add some more awards.

Here's where you can download the latest development version -> https://github.com/Freelander/xlrstats-web-v2

@sars, please feel free to fork my github branch and I'll be happy to include your work in the official package.

 


Rate this page +1 at Google Search