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.

Moderator: Tech Team

Forum rules
Please read the Community Guidelines before posting.
Post Reply
User avatar
Metaphore
Posts: 18
Joined: Thu Jan 18, 2007 9:08 am
Location: Kharkov

BoB version 1.2 problem explained

Post by Metaphore »

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.
Wild_Tiger
Posts: 809
Joined: Sat Feb 03, 2007 3:39 pm
Gender: Male
Location: Netherlands

Post by Wild_Tiger »

Good Job :!:

:D :D
Image
I got beaten by 2 privates and all I got was this lousy feedback!
Selin
Posts: 1100
Joined: Wed Oct 04, 2006 7:56 am
Location: Istanbul, Turkey

Post by Selin »

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

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

.
mikeycgto
Posts: 9
Joined: Thu Aug 02, 2007 10:58 am

Post by mikeycgto »

can you elaborate more on the save search game label issue. Someone posted earlier about the problem and I didn't find anything wrong.
Selin
Posts: 1100
Joined: Wed Oct 04, 2006 7:56 am
Location: Istanbul, Turkey

Post by Selin »

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?
User avatar
Incandenza
Posts: 4949
Joined: Thu Oct 19, 2006 5:34 pm
Gender: Male
Location: Playing Eschaton with a bucket of old tennis balls

Post by Incandenza »

Thanks for the fix, bro.
THOTA: dingdingdingdingdingdingBOOM

Te Occidere Possunt Sed Te Edere Non Possunt Nefas Est
Post Reply

Return to “Tool Archives”