Smart Server Browser - Better Battlelog Forums #1962

Sitemap
Post edited 6 x times, last by
Topicstarter
(Note: currently only BF3 is supported; will start working on a BF4 version soon)

I wrote a plugin for the Server Browser which disables filter options not valid in combination with the currently selected filters.

Example:
* Back to Karkand maps disabled because Karkand expansion isn't selected.
* Close Quarters maps disabled because they don't support the only selected Game Mode: Conquest Large.
Screenshot:
http://img687.imageshack.us/img687/1404/smartserverbrowser.png


In the future disabling of other filter options which don't make sense would be nice.
If you have other ideas which options to disable when then just post them here.

So far I only tested it in Chrome and Firefox using the theme "Dark Theme by Hille - Mod by Juress".
If you find bugs then please report them here as well.

Plugin URL:
http://oganon.dyndns.org:11080/zkn/bf3/bblog-plugin-smart-server-browser.js

Development version (may contain more bugs than official version):
http://oganon.dyndns.org:11080/zkn/bf3/bblog-plugin-smart-server-browser-dev.js


If you're curious what the current rule set looks like then search for this line:
// *** RULES BEGIN ***

Change Log:

2013-03-29
* added supported game modes for After Math maps (thanks to Brady_The)

2013-03-28
* End Game maps only support these modes: CTF, AirSuperiority, Conquest, ModeRush, SquadRush, TeamDM, SquadDM (thanks to Brady_The for the list)
* added TeamDM16 as supported by all maps (thanks to Wolf68k)

2012-11-26
* disabled these if only Close Quarters is selected: Rush, SquadRush, Conquest, ConquestLarge, ConquestAssault, ConquestAssaultLarge

2012-11-24
* Works with BBlog 3.0
* Armored Kill maps only enabled for these modes: TankSuperiority, Conquest, ConquestLarge, TeamDM, Rush, SquadRush, SquadDM
* Aftermath maps and mode Scavenger only enabled if Aftermath Expansion selected

2012-11-18
* if "Filters" is checked under "Advanced settings", automatically de-selects all of the Presets (normal, hardcore, inf-only)

2012-11-11
* Armored Kill maps disabled if TeamDM16 is selected

2012-09-07
* Armored Kill maps and Tank Superiority mode require expansion

2012-08-25
* icons of disabled maps are now converted to grayscale (doesn't yet work in Firefox)

2012-08-23
* rewrote checking if filters are enabled, now uses a declarative set of rules
* selecting no Game, Size, Mode, or Map means that all are selected
* Close Quarters maps: added rules to require a valid Game Mode

2012-08-20
* changed disabling of filters:
* overlay is now fully transparent (only prevents selecting the filter),
* underlying list item is half transparent (making it look disabled)

2012-08-15
* show a semi transparent overlay on top of disabled filter options (instead of hiding them completely)
* disable game modes 'Team DM Close quarters' and 'Gun Master' when 'Close quarters' is deselected
Topicstarter
(reserved)
Nice plugin indeed! But I see a bug on the screenshot. You've activated 2 kinds of BF3: Vanilla and Close Quarters. But somehow the Close Quarters maps are disabled?
Topicstarter
CptChaosNL wrote:
Nice plugin indeed! But I see a bug on the screenshot. You've activated 2 kinds of BF3: Vanilla and Close Quarters. But somehow the Close Quarters maps are disabled?

Because of this:
Close Quarters maps disabled because they don't support the only selected Game Mode: Conquest Large.
Nice Plugin, i like it ands thats really what i searched.

but:
-> if i have selected "Gun Master" or "Conquest Domination", the normal Maps from B2K and Normal BF3 are not "hidden" / "grey" / "not visible". i have ONLY selected Gunmaster or Conquest Domination.

if i select Conquest Large (no Conquest Assault) all B2K maps are still visible.

Pls dont forget:
Conquest Large, Conquest: All general BF3 Maps and Gulf of Oman
Conquest Assault Large, Conquest Assault: Strike at Karkand, Sharqi Peninsula, Wake Island
Rush, Sqd Rush, Team DM, Sqd DM: All general BF3 Maps, all B2K Maps
Conquest Domination, Gun Master: All Close Quarters Maps

if i select a Map, you could make the gamemodes invisible. so you can see wich gamemode is available on wich map.
Topicstarter
Hi ORFK,

sorry for the delay, I didn't have much spare time lately.
I totally agree with you that what you suggested would be nice to have. I'm just not sure how to fit disabling of modes based on map selection into my current set of rules. I don't want to disable a valid filter by mistake so I left them enabled for now.

Until then you can try out the latest version here:
http://amsrv.dyndns.org/zkn/bf3/bblog-plugin-smart-server-browser-dev.js

I'll update the official version of the plugin once this is confirmed working correctly.

Changes in development version:
* Armored Kill maps and Tank Superiority mode require expansion
* general BF3 maps only support these modes: Conquest, Rush, SquadRush, SquadDM, TeamDM, ConquestLarge
* all Karkand maps support: Rush, SquadRush, TeamDM, SquadDM
* in addition to that:
- Gulf of Oman supports: ConquestLarge, Conquest
- Strike at Karkand, Sharqi Peninsula, and Wake Island support: ConquestAssaultLarge and ConquestAssault

I still need:
- verification that the above is working correctly
- a complete list of modes supported by the Armored Kill maps.
Also, do ConquestAssaultLarge and ConquestAssault require the Karkand expansion?

Edit:
I think I can do disabling modes based on map selection. But I would need a *complete* list of modes supported by each map. Which means -- if everything else is correct -- I only need the modes supported by the Armored Kill maps.
thank you for your work.
i really respect good and helpful plugins like yours!
in a few hours i will be at home and i can check your dev version.
will give you a feedback maybe tomorrow or on sunday.

wish you a nice evening & weekend =)
Topicstarter
Thank you! Looking forward to your comments. Enjoy the weekend!

Edit:
Originally I also wanted to validate the Game Size filters but that doesn't seem to make much sense:
http://symthic.com/forum/index.php?page=Thread&threadID=2610
Odd. For some reason in your screen shot it shows the Armored Kill maps and modes being hidden but for me they stay showing.
http://i.imgur.com/HhoLC.png
Topicstarter
Wolf68k wrote:
Odd. For some reason in your screen shot it shows the Armored Kill maps and modes being hidden but for me they stay showing.
http://i.imgur.com/HhoLC.png

That screenshot is from my development version (for the link see a few posts above). Support for Armored Kill isn't yet in the official version because I still need some feedback if the development version is working correctly.
I didn't think anyone would notice if I updated the screenshot already ^^

Edit:
I edited the first post to include the URL to the development version there as well.
I had to completely remove the first one but it works. Thanks.
Nice, thanks. I got one more idea for this:
http://getbblog.com/viewtopic.php?f=2&t=520"
target="_blank" rel="nofollow

The gist: if "Filters" is checked under "Advanced settings", automatically de-select all of the "Presets" (normal, hardcore, inf-only). I think that would already suffice.
Just noticed a bug.
When Team DM 16 Player is selected the Armored Kill maps are still showing. That is a Close Quarters only
Topicstarter
Wolf68k wrote:
Just noticed a bug.
When Team DM 16 Player is selected the Armored Kill maps are still showing. That is a Close Quarters only

I haven't yet added any rules for Armored Kill because I was unsure what game types and sizes the maps support.

I just checked and TDM16 also showed one match on Seine Crossing. So I wonder which maps exactly do support it?

I didn't add a Game Mode rule for Armored Kill maps because before I only could specify *complete* lists of supported Game Types. I extended stuff so now Armored Kill maps get disabled when TeamDM16 is selected.
Topicstarter
DanMan wrote:
Nice, thanks. I got one more idea for this:
http://getbblog.com/viewtopic.php?f=2&t=520"
target="_blank" rel="nofollow" target="_blank" rel="nofollow

The gist: if "Filters" is checked under "Advanced settings", automatically de-select all of the "Presets" (normal, hardcore, inf-only). I think that would already suffice.


Sorry, I didn't get back to you on this. I don't have much time at the moment. I'll look into it as soon as I have more spare time.
ocknoz wrote:
Wolf68k wrote:
Just noticed a bug.
When Team DM 16 Player is selected the Armored Kill maps are still showing. That is a Close Quarters only

I haven't yet added any rules for Armored Kill because I was unsure what game types and sizes the maps support.

I just checked and TDM16 also showed one match on Seine Crossing. So I wonder which maps exactly do support it?

I didn't add a Game Mode rule for Armored Kill maps because before I only could specify *complete* lists of supported Game Types. I extended stuff so now Armored Kill maps get disabled when TeamDM16 is selected.

Well for sure you can filter out AK when Conquest Domination and Gun Master since those are for sure CQ only.

As for the TDM16 I've seen nothing but CQ maps but then since Battlelog doesn't always list all of the servers, you can refresh and get a completely different list of servers, it's hard to tell.

Speaking as an admin that has access to maplist in Procon, there is TDM Close Quarters listed as the Gametype which seems to be the only ones that correlate to TDM16.

Also I noticed that the 2 Assault modes filters also list the AK maps which is another that AK doesn't do. Assault is so far exclusive to the B2K maps.

AK besides doing Tank Superiority also does; Conquest normal and Large, TDM, Rush, Squad Rush, and SquadDM
Topicstarter
DanMan wrote:
Nice, thanks. I got one more idea for this:
http://getbblog.com/viewtopic.php?f=2&t=520"
target="_blank" rel="nofollow" target="_blank" rel="nofollow

The gist: if "Filters" is checked under "Advanced settings", automatically de-select all of the "Presets" (normal, hardcore, inf-only). I think that would already suffice.


If you're still interested: I tried to implement this in the current development version of the plugin (see first post for the URL). Let me know if this works for you and if it has any unwanted side effects.

Make sure you disable the official version of the plugin first.
I've been using the dev version this whole time (oop?) and it's still showing the AK maps for the Assault, CD and GM filters
Can you please update this to work with v3.0? It's very useful.
Post edited 1 x times, last by
Topicstarter
Wolf68k wrote:
I've been using the dev version this whole time (oop?) and it's still showing the AK maps for the Assault, CD and GM filters


I just changed it to this, let me know your thoughts:
Armored Kill maps only enabled for these modes: TankSuperiority, Conquest, ConquestLarge, TeamDM, Rush, SquadRush, SquadDM

Currently official and development version are identical.

Don't worry about using the development version: Most of the time they are the same. But during the time I work on the plugin the development version will sometimes not work correctly.
Post edited 1 x times, last by
Topicstarter
dapil wrote:
Can you please update this to work with v3.0? It's very useful.


Thank you, I just updated it and added minimal support for Aftermath. See top post for Change Log.

As always I now need the complete list of game modes supported by the new maps.
Thanks!! Do you updated the dev version or the official one?
Works fine on v3. THX!
Topicstarter
dapil wrote:
Thanks!! Do you updated the dev version or the official one?


Both, they are currently identical.
On close quarters, you should disable both rushes, both conquests and both conquest assaults
http://i.imgur.com/uBzSi.jpg
Topicstarter
jack wrote:
On close quarters, you should disable both rushes, both conquests and both conquest assaults
http://i.imgur.com/uBzSi.jpg


Thanks, I updated it.
You could add, that if I select a map, only playable game modes will be white, other modes will be grey.

Oh and I found this (you probably don't need it, but I'm posting it just to be sure):

Conquest Assault: Talah Market
Conquest/Conquest Large: Azadi Palace, Epicenter, Markaz Monolith
Gun Master: Azadi Palace, Epicenter, Markaz Monolith, Talah Market
Rush: Azadi Palace, Epicenter, Markaz Monolith, Talah Market
Scavenger: Azadi Palace, Epicenter, Markaz Monolith, Talah Market
Squad Deathmath: Azadi Palace, Epicenter, Markaz Monolith, Talah Market
Squad Rush: Azadi Palace, Epicenter, Markaz Monolith, Talah Market
TDM Close Quarters (TDM 16 Players): Azadi Palace, Epicenter, Markaz Monolith, Talah Market
Team Deathmath: Azadi Palace, Epicenter, Markaz Monolith, Talah Market
Post edited 5 x times, last by
I really like this plugin. :-) Here are the information for the last DLC, Endgame:

File Name:
Operation Riverside
Map Name:
XP5_001
Game modes:
Capture the Flag, Air Superiority, Conquest, Rush, Squad Rush, Team Deathmatch, Squad Deathmatch

File Name:
Nebandan Flats
Map Name:
XP5_002
Game modes:
Capture the Flag, Air Superiority, Conquest, Rush, Squad Rush, Team Deathmatch, Squad Deathmatch

File Name:
Kiasar Railroad
Map Name:
XP5_003
Game modes:
Capture the Flag, Air Superiority, Conquest, Rush, Squad Rush, Team Deathmatch, Squad Deathmatch

File Name:
Sabalan Pipeline
Map Name:
XP5_004
Game modes:
Capture the Flag, Air Superiority, Conquest, Rush, Squad Rush, Team Deathmatch, Squad Deathmatch

Source:
http://blogs.battlefield.com/2013/02/end-game-maps-overview/
All maps now support TDM16 aka TDM Close Quarters
All Aftermath maps support Gun Master

It's been so long since he's updated the plug I'm starting to think he gave up on it.
I don't know much about JavaScript, however I was able to add the End Game info to the plugin. The problem is the way he has it written to disable Close Quarter modes for the non-Close Quarter expansions.
For example when you select any other expansion pack it automatically disables TDM16 and GM. Yet Aftermath came out supporting GM, and as I said before all of the maps now support TDM16.

And because End Game isn't part of the script when you select EG it for some reason disables all modes but for SDM, TDM, CTF and AS. So you have to trick the plugin but first selecting Conquest (or whatever mode you want to play) and then select End Game.

I also don't have a way to test what little I do have to see if I fixed anything to any degree.
Topicstarter
Brady_The wrote:
I really like this plugin. :-) Here are the information for the last DLC, Endgame

Thanks for the list, this was exactly what I needed.
Post edited 2 x times, last by
Topicstarter
Wolf68k wrote:
All maps now support TDM16 aka TDM Close Quarters
All Aftermath maps support Gun Master

I added TDM16 to all maps. However, for Aftermath maps to enable/disable correctly, I would need a
complete
list of modes supported by Aftermath maps. Something similar to this list:
http://getbblog.com/en/board/post/87628


Wolf68k wrote:

It's been so long since he's updated the plug I'm starting to think he gave up on it.

Sorry, been really busy lately. And since I don't get notifications when someone posts in this thread I forgot to check back here.
Edit: I just noticed the "Watch Topic" button :>

Please take a look at the latest version and let me know if it needs any corrections.
Post edited 1 x times, last by
ocknoz wrote:
Wolf68k wrote:
All maps now support TDM16 aka TDM Close Quarters
All Aftermath maps support Gun Master

Please take a look at the latest version and let me know if it needs any corrections.

Awesome!

Info for Aftermath:

File Name:
Markaz Monolith
Map Name:
XP4_FD
Game modes:
Conquest Large, Conquest Small, Rush, Squad Rush, Squad Deathmatch, TDM, TDM Close Quarters, Gun Master, Scavenger

File Name:
Azadi Palace
Map Name:
XP4_Parl
Game modes:
Conquest Large, Conquest Small, Rush, Squad Rush, Squad Deathmatch, TDM, TDM Close Quarters, Gun Master, Scavenger

File Name:
Epicenter
Map Name:
XP4_Quake
Game modes:
Conquest Large, Conquest Small, Rush, Squad Rush, Squad Deathmatch, TDM, TDM Close Quarters, Gun Master, Scavenger

File Name:
Talah Market
Map Name:
XP4_Rubble
Game modes:
Assault64, Rush, Squad Rush, Squad Deathmatch, TDM, TDM Close Quarters, Gun Master, Scavenger

Source: Procon Maplist
Topicstarter
Brady_The wrote:
Info for Aftermath

Done, thanks a lot!
Topicstarter
updated plugin URL
In BL for BF4 it looks like the Custom Region entry doesn't get saved.

If I move to another page and come back the entry setting is lost and I have to set it again from the scratch.
Topicstarter
Cr4z33 wrote:
In BL for BF4 it looks like the Custom Region entry doesn't get saved.

If I move to another page and come back the entry setting is lost and I have to set it again from the scratch.


Are you sure the issue you describe is related to this plugin? Because currently only BF3 is supported, this plugin shouldn't touch the BF4 pages.

I'ill start working on a BF4 version a soon as I have more spare time.
Cr4z33 wrote:
In BL for BF4 it looks like the Custom Region entry doesn't get saved.

If I move to another page and come back the entry setting is lost and I have to set it again from the scratch.

This is a Battlelog issue.
ocknoz wrote:
Are you sure the issue you describe is related to this plugin? Because currently only BF3 is supported, this plugin shouldn't touch the BF4 pages.

I'ill start working on a BF4 version a soon as I have more spare time.


Brady_The wrote:
This is a Battlelog issue.

Oh alright then.