BoB version 1.2 problem explained

Archival storage to keep things organized and uncluttered. Can't find what you need? Search for old topics here.

Moderators: Tech Team, Global Moderators

Forum rules
Please read the Community Guidelines before posting.

BoB version 1.2 problem explained

Postby Metaphore on Tue Aug 07, 2007 10:06 am

Link to a hopefully universal fix:

http://files.manfy.net/conquerclubbob.user.js

It's a good idea to uninstall whatever previous version you have first.

Apparently there are 2 version of XML floating around. Some maps use the <country> tag and others use the <territory> tag for the same element.

The original script works with <country> while Lobster's fix works with <territory>. What's needed is one that works with both.

The culprit seems to be this line in the original:

var entries = dom.getElementsByTagName('country');

and this in Lobster's:

var entries = dom.getElementsByTagName('territory');

What's needed is this for the original:

var entries = dom.getElementsByTagName('territory');
if (entries.length<1) {
entries = dom.getElementsByTagName('country');
}

And this for Lobster's:

var entries = dom.getElementsByTagName('country');
if (entries.length<1) {
entries = dom.getElementsByTagName('territory');
}

And it should work for all maps.

I'm hesitant to post yet another fix to prevent patch hell. Lobster, please add this to yours if you so chose.

OK, I hesitated... the link is at the top.

All credit to Lobster for finding the problem in the first place.
User avatar
Sergeant 1st Class Metaphore
 
Posts: 18
Joined: Thu Jan 18, 2007 9:08 am
Location: Kharkov

Postby Wild_Tiger on Tue Aug 07, 2007 3:32 pm

Good Job :!:

:D :D
Image
I got beaten by 2 privates and all I got was this lousy feedback!
User avatar
General Wild_Tiger
 
Posts: 808
Joined: Sat Feb 03, 2007 3:39 pm
Location: Netherlands
Medals: 37
Standard Achievement (2) Doubles Achievement (3) Triples Achievement (3) Quadruples Achievement (1) Terminator Achievement (2)
Assassin Achievement (1) Manual Troops Achievement (1) Freestyle Achievement (3) Fog of War Achievement (3) Speed Achievement (2)
Teammate Achievement (2) Random Map Achievement (1) Cross-Map Achievement (3) Tournament Achievement (4) Clan Achievement (5)
Tournament Contribution (1)

Postby Selin on Thu Aug 09, 2007 3:17 pm

thanks for fixing Bob. that helped a lot. =D>

saved search function does not work with "game labels" option. can you fix that too?

.
Brigadier Selin
 
Posts: 1100
Joined: Wed Oct 04, 2006 7:56 am
Location: Istanbul, Turkey
Medals: 15
Standard Achievement (3) Doubles Achievement (2) Triples Achievement (1) Terminator Achievement (1) Speed Achievement (1)
Cross-Map Achievement (3) Ratings Achievement (2) Tournament Contribution (2)

Postby mikeycgto on Thu Aug 09, 2007 3:23 pm

can you elaborate more on the save search game label issue. Someone posted earlier about the problem and I didn't find anything wrong.
Private mikeycgto
 
Posts: 9
Joined: Thu Aug 02, 2007 10:58 am

Postby Selin on Fri Aug 10, 2007 3:41 pm

mikeycgto wrote:can you elaborate more on the save search game label issue. Someone posted earlier about the problem and I didn't find anything wrong.


I'm talking about stocksr' saved search script:

On the game finder menu you had the option to save your frequently used searchs, i.e. you could save a search "active, TOP 250", name it, and you automatically got all active games of tournament TOP 250 in 1 click by choosing that specific saved search.
Now it's partially working; the option to enter a partial match/ or a tournament name in saved searchs don't work. If you don't use partial match/or tournament fields, a saved search with all other options is working, e.g. a saved search with options "waiting, flat rate, standard...." does work.

I'm not sure, if I could explain it correctly. Is it clearer?
Brigadier Selin
 
Posts: 1100
Joined: Wed Oct 04, 2006 7:56 am
Location: Istanbul, Turkey
Medals: 15
Standard Achievement (3) Doubles Achievement (2) Triples Achievement (1) Terminator Achievement (1) Speed Achievement (1)
Cross-Map Achievement (3) Ratings Achievement (2) Tournament Contribution (2)

Postby Incandenza on Tue Aug 14, 2007 2:26 am

Thanks for the fix, bro.
THOTA: dingdingdingdingdingdingBOOM

Te Occidere Possunt Sed Te Edere Non Possunt Nefas Est
User avatar
Colonel Incandenza
 
Posts: 4961
Joined: Thu Oct 19, 2006 5:34 pm
Location: Playing Eschaton with a bucket of old tennis balls
Medals: 44
Standard Achievement (2) Doubles Achievement (3) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (1)
Manual Troops Achievement (1) Nuclear Spoils Achievement (1) Fog of War Achievement (3) Speed Achievement (1) Random Map Achievement (1)
Cross-Map Achievement (3) Ratings Achievement (3) Tournament Achievement (6) General Achievement (3) Clan Achievement (8)
General Contribution (4)


Return to Tool Archives

Who is online

Users browsing this forum: No registered users

Login