$.ajax({
headers: {
'X-AjaxNavigation': 1
},
url: 'http://battlelog.battlefield.com/bf4/servers/show/pc/6a47de60-0874-4d98-83e3-de8d1d2fe2f1/BiG-HC-RANKED-24-7-RUSH/',
success:function( r ) {
// map information in r.context.server.maps
var mapObj = r.context.server.maps,
nextMap = mapObj.maps[ mapObj.nextMapIndex ].map;
alert( 'Next map is ' + nextMap );
}
});
BBLog.handle("json.from.battlelog", {url : '/bf4/servers/show/pc/6a47de60-0874-4d98-83e3-de8d1d2fe2f1/BiG-HC-RANKED-24-7-RUSH/', callback : function(data){// code here});
BrainFooLong wrote:* Use BBLog handler to get JSON from battlelog
BBLog.handle("json.from.battlelog", {url : '/bf4/servers/show/pc/6a47de60-0874-4d98-83e3-de8d1d2fe2f1/BiG-HC-RANKED-24-7-RUSH/', callback : function(data){// code here});
BrainFooLong wrote:* Search in console.log(S.translations) if you find some translations that fit your need, eg: WARSAW_ID_RP_LEVELNAME_MULTIPLAYER.
WARSAW_ID_M_SP_LEVELNAME_AIRFIELD => SINGAPORE
WARSAW_ID_M_SP_LEVELNAME_DAM => TASHGAR
WARSAW_ID_M_SP_LEVELNAME_NAVAL => SOUTH CHINA SEA
WARSAW_ID_M_SP_LEVELNAME_PRISON => KUNLUN MOUNTAINS
WARSAW_ID_M_SP_LEVELNAME_PROLOGUE => BAKU
WARSAW_ID_M_SP_LEVELNAME_SHANGHAI => SHANGHAI
WARSAW_ID_M_SP_LEVELNAME_SUEZ => SUEZ
WARSAW_ID_RP_LEVELNAME_MULTIPLAYER_ABANDONED => Zavod 311
WARSAW_ID_RP_LEVELNAME_MULTIPLAYER_DAMAGE => Lancang Dam
WARSAW_ID_RP_LEVELNAME_MULTIPLAYER_DISH => Rogue Transmission
WARSAW_ID_RP_LEVELNAME_MULTIPLAYER_FLOODED => Flood Zone
WARSAW_ID_RP_LEVELNAME_MULTIPLAYER_JOURNEY => Golmud Railway
WARSAW_ID_RP_LEVELNAME_MULTIPLAYER_NAVAL => Paracel Storm
WARSAW_ID_RP_LEVELNAME_MULTIPLAYER_PRISON => Operation Locker
WARSAW_ID_RP_LEVELNAME_MULTIPLAYER_RESORT => Hainan Resort
WARSAW_ID_RP_LEVELNAME_MULTIPLAYER_SIEGE => Siege of Shanghai
WARSAW_ID_RP_LEVELNAME_MULTIPLAYER_TREMORS => Dawnbreaker
WARSAW_ID_RP_XP0_LEVELNAME_MULTIPLAYER_CASPIAN => Caspian Border 2014
WARSAW_ID_RP_XP0_LEVELNAME_MULTIPLAYER_FIRESTORM => Firestorm 2014
WARSAW_ID_RP_XP0_LEVELNAME_MULTIPLAYER_METRO => Operation Metro 2014
WARSAW_ID_RP_XP0_LEVELNAME_MULTIPLAYER_OMAN => Gulf of Oman 2014
WARSAW_ID_RP_XP2_LEVEL_LEVELNAME_XP2_001 => Lost Islands
WARSAW_ID_RP_XP2_LEVEL_LEVELNAME_XP2_002 => Nansha Strike
WARSAW_ID_RP_XP2_LEVEL_LEVELNAME_XP2_003 => Wave Breaker
WARSAW_ID_RP_XP2_LEVEL_LEVELNAME_XP2_004 => Operation Mortar
WARSAW_ID_XP1_LEVEL_LEVELNAME_XP1_001 => SILK ROAD
WARSAW_ID_XP1_LEVEL_LEVELNAME_XP1_002 => ALTAI RANGE
WARSAW_ID_XP1_LEVEL_LEVELNAME_XP1_003 => GUILIN PEAKS
WARSAW_ID_XP1_LEVEL_LEVELNAME_XP1_004 => DRAGON PASS
BF3_ID_RP_LEVELNAME_MULTIPLAYER_CANALS => Noshahr Canals
BF3_ID_RP_LEVELNAME_MULTIPLAYER_EARTHQUAKE => Epicenter
BF3_ID_RP_LEVELNAME_MULTIPLAYER_FINANCIAL => Markaz Monolith
BF3_ID_RP_LEVELNAME_MULTIPLAYER_PARLIAMENT => Azadi Palace
BF3_ID_RP_LEVELNAME_MULTIPLAYER_RUBBLE => Talah Market
BF3_ID_RP_LEVELNAME_MULTIPLAYER_XP5_001 => Operation Riverside
BF3_ID_RP_LEVELNAME_MULTIPLAYER_XP5_002 => Nebandan Flats
BF3_ID_RP_LEVELNAME_MULTIPLAYER_XP5_003 => Kiasar Railroad
BF3_ID_RP_LEVELNAME_MULTIPLAYER_XP5_004 => Sabalan Pipeline
console.log( gamedatawarsaw.function_warsawgameserver().maps[ 2 ] );
->
Object
{
gameExpansion: 0
gameModes: Array[8]
id: "MP_Prison"
label: "Operation Locker"
platforms: Array[5]
}
BrainFooLong wrote:* Player list - Is requested by the installed webplugin in a special way - As far as i know there some plugins here that already fetch the server playerlists, check out the plugins
What's the difference?
Gives me the following data:
PlayerList