Conquer Club

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.

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

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

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

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


Return to Tool Archives

Who is online

Users browsing this forum: No registered users