BOB version 1.2 [was CC Greasemonkey script - unofficial]

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.

What should the name of this script be?

Poll ended at Fri May 18, 2007 5:51 am

Bob
11
28%
TSAR
7
18%
TSAR BOMBA
6
15%
B.O.M.B.
5
13%
Trojan
1
3%
Trojan Horse
9
23%
 
Total votes: 39

jedi-knight83
Posts: 8
Joined: Fri Sep 28, 2007 6:27 pm

Post by jedi-knight83 »

and makes the game play VERY SLOW... is this normal?
hambone
Posts: 37
Joined: Thu Feb 08, 2007 10:17 am

Issues with D-Day map

Post by hambone »

Coleman wrote:
Coleman wrote:
Coleman wrote:Does anyone know why BOB is not working for D-Day?
Nevermind, figured it out, the title doesn't match the site name.
Nevermind again, that isn't it, and I feel dumb for thinking it was as Circus Maximus doesn't match the title (Circvs Maximvs) and BOB works fine.

I wonder if BOB doesn't like the : in the file...
I think this is because of the dash in the name of the map.

The problem is this line (about line 1060):

Code: Select all

var armiesArr = map.innerHTML.split(/armies=|,|-|" alt="/);
It's trying to split the data long 4 things: "armies=", a comma, a dash, and " alt=". Since the map name has a dash in it, it adds an additional, unexpected element to the array.

I've fixed it with the following hack that only works for the D-Day map. There will have to be another solution for maps in general.

change:

Code: Select all

var armiesArr = map.innerHTML.split(/armies=|,|-|" alt="/);
to:

Code: Select all

var armiesArr = map.innerHTML.replace(/D-Day/g,"DDay").split(/armies=|,|-|" alt="/);
armiesArr[0] = armiesArr[0].replace(/DDay/g,"D-Day");
--- use at your own risk... etc, etc.
hambone
Posts: 37
Joined: Thu Feb 08, 2007 10:17 am

Re: Issues with D-Day map

Post by hambone »

hambone wrote: I think this is because of the dash in the name of the map.

The problem is this line (about line 1060):

Code: Select all

var armiesArr = map.innerHTML.split(/armies=|,|-|" alt="/);
It's trying to split the data long 4 things: "armies=", a comma, a dash, and " alt=". Since the map name has a dash in it, it adds an additional, unexpected element to the array.

I've fixed it with the following hack that only works for the D-Day map. There will have to be another solution for maps in general.

change:

Code: Select all

var armiesArr = map.innerHTML.split(/armies=|,|-|" alt="/);
to:

Code: Select all

var armiesArr = map.innerHTML.replace(/D-Day/g,"DDay").split(/armies=|,|-|" alt="/);
armiesArr[0] = armiesArr[0].replace(/DDay/g,"D-Day");
--- use at your own risk... etc, etc.
here's a potential general fix:
change:

Code: Select all

var armiesArr = map.innerHTML.split(/armies=|,|-|" alt="/);
to:

Code: Select all

var armiesArr = map.innerHTML.replace(/-(\d)/g,"~$1").split(/armies=|,|~|" alt="/);
User avatar
RjBeals
Posts: 2506
Joined: Mon Nov 20, 2006 5:17 pm
Location: South Carolina, USA
Contact:

Post by RjBeals »

^ Has this been tested?
hambone
Posts: 37
Joined: Thu Feb 08, 2007 10:17 am

Post by hambone »

RjBeals wrote:^ Has this been tested?
it works for me... someone else please give this a try and report back...
delorean
Posts: 8
Joined: Fri Jan 26, 2007 6:41 pm

Post by delorean »

hambone wrote:
RjBeals wrote:^ Has this been tested?
it works for me... someone else please give this a try and report back...
tested, working.
User avatar
homes32
Posts: 86
Joined: Wed Jan 31, 2007 4:05 pm
Location: under your bed

Post by homes32 »

works like a charm. thanks guys!
jedi-knight83
Posts: 8
Joined: Fri Sep 28, 2007 6:27 pm

Post by jedi-knight83 »

Hi

when i have BOB activated and the ajax thing turned off on my settings ... my games dont auto refresh... which is a bit annoying. Also.. when im in my go and make a move the screen refreshes take much longer than when bob is off and the ajax setting is normal.

any ideas or is this normal?
User avatar
Ishiro
Posts: 324
Joined: Mon Jul 17, 2006 5:53 pm
Gender: Male
Location: Under the Rainbow
Contact:

Post by Ishiro »

The auto refresh is part of AJAX, so if you have AJAX off, it does not auto refresh.

And with AJAX off in order to use Greasemonkey, the whole page reloads with every action. Using AJAX is what allows the page to load pieces and parts instead of the whole thing.

So, basically everything is working correctly for you.
Image
jedi-knight83
Posts: 8
Joined: Fri Sep 28, 2007 6:27 pm

Post by jedi-knight83 »

so if it doesnt auto refresh.. i just have to keep hitting f5 myself to know when its my go next and to see whats going on with game play
User avatar
RjBeals
Posts: 2506
Joined: Mon Nov 20, 2006 5:17 pm
Location: South Carolina, USA
Contact:

Post by RjBeals »

The Edit button on my manage scripts doesn't seem to open anything. Where is the script located on my drive so I can manually update?
User avatar
RobinJ
Posts: 1901
Joined: Mon Aug 21, 2006 1:56 pm
Location: Northern Ireland

Post by RobinJ »

I can't believe it - the computer actually did what I wanted it to do! :D
nmhunate wrote:Speak English... It is the language that God wrote the bible in.
Highest Score: 2437
Highest Place: 84
PerkinsRooster
Posts: 90
Joined: Wed Feb 21, 2007 11:05 pm
Gender: Male
Location: Canada

Post by PerkinsRooster »

jedi-knight83 wrote:so if it doesnt auto refresh.. i just have to keep hitting f5 myself to know when its my go next and to see whats going on with game play

yes
Let's golf.
hambone
Posts: 37
Joined: Thu Feb 08, 2007 10:17 am

Post by hambone »

RjBeals wrote:The Edit button on my manage scripts doesn't seem to open anything. Where is the script located on my drive so I can manually update?
see http://wiki.greasespot.net/Scripts_directory

The filename itself is conquerclub.user.js.
User avatar
Coleman
Posts: 5402
Joined: Tue Jan 02, 2007 10:36 pm
Gender: Male
Location: Midwest

Post by Coleman »

I've decided to host the patched script so D-Day will work.

Get it here: http://members.cox.net/gyrigo/CC/conquerclubbob.user.js
Warning: You may be reading a really old topic.
t.e.c
Posts: 298
Joined: Sat Dec 09, 2006 10:55 am
Location: aichi, japan

Post by t.e.c »

thanks coleman, much appreciated :D
User avatar
Coleman
Posts: 5402
Joined: Tue Jan 02, 2007 10:36 pm
Gender: Male
Location: Midwest

Post by Coleman »

Coleman wrote:I've decided to host the patched script so D-Day will work.

Get it here: http://members.cox.net/gyrigo/CC/conquerclubbob.user.js
To keep this on the latest page for a while. :wink:
Warning: You may be reading a really old topic.
User avatar
Stoney229
Posts: 303
Joined: Fri Mar 03, 2006 10:46 am
Contact:

Post by Stoney229 »

my clock is no longer being animated. I've tried to toggle throught th clock options and nothing changes.
Score: 1739
Games: 88 Completed, 52 (59%) Won
#1302/21963
User avatar
David_Wain
Posts: 1092
Joined: Wed Jul 26, 2006 11:10 am

Post by David_Wain »

Cheers... much appreciated.
User avatar
kclborat
Posts: 367
Joined: Sun Nov 05, 2006 11:40 pm
Location: Washington

Post by kclborat »

I've looked around, but couldnt find how to install this. Help, anyone?
User avatar
0ojakeo0
Posts: 6150
Joined: Sun May 13, 2007 9:49 am
Location: ON THE ROAD TO SAN ANTONIO!!!!

Post by 0ojakeo0 »

You have to have firefox and greasemonkey downloaded first. Link on the 1st post i think. Then install this i think.
lodyev
Posts: 34
Joined: Sun Dec 10, 2006 6:06 pm

Post by lodyev »

where's the latest update of this located?
User avatar
The1exile
Posts: 7140
Joined: Tue Aug 15, 2006 7:01 pm
Location: Devastation
Contact:

Post by The1exile »

lodyev wrote:where's the latest update of this located?
see colemans post up on this page.
Image
User avatar
hecter
Posts: 14632
Joined: Tue Jan 09, 2007 6:27 pm
Gender: Female
Location: Tying somebody up on the third floor
Contact:

Post by hecter »

It kept saying "Terminator Points Summary" in the game log... Sometimes three times before I made a move...

Another problem...

Whenever I refresh, the person who's missed a turn adds one to his missed turns... So it can only be round two, the person has missed 1 turn, but it says he's missed 7.
In heaven... Everything is fine, in heaven... Everything is fine, in heaven... Everything is fine... You got your things, and I've got mine.
Image
User avatar
yeti_c
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am
Gender: Male

Post by yeti_c »

hecter wrote:It kept saying "Terminator Points Summary" in the game log... Sometimes three times before I made a move...

Another problem...

Whenever I refresh, the person who's missed a turn adds one to his missed turns... So it can only be round two, the person has missed 1 turn, but it says he's missed 7.
Please report AJAX bob problems - in the AJAX Bob thread...

I know about both of these... It's to do with the new log processing code that's not finalised.

C.
Image
Highest score : 2297
Locked

Return to “Tool Archives”