Page 26 of 42

Re: BOB Bugs

Posted: Sun Nov 09, 2008 12:32 pm
by cspare
e_i_pi wrote:In the 'Aggression' and 'Reinforcements' sections, all the numbers are showing up as zero. Has this been reported before, or is it just me?

The Aggression and Reinforcements sections are actually from a different plugin than BOB, they are from ConquerStats. The problem might be related to a problem in BOB though:

(Technical explanation:)
BOB doesn't implement the refreshGMScript function correctly. It replaces the unsafeWindow's function with a new one, which removes the implementation ConquerStats uses. This doesn't cause any problems as long as the ConquerStats code is executed before BOB's (e.g. if ConquerStats is installed/updated after BOB was installed/updated). But BOB was recently updated, and by that introduced the problem.
To fix this BOB should call the original refreshGMScript's code after BOB's refreshGMScript is completed:

Code: Select all

var originalRefreshGMScript;
originalRefreshGMScript = unsafeWindow.refreshGMScript;
unsafeWindow.refreshGMScript = function()
{
   // Do Stuff
   originalRefreshGMScript();
}



A workaround for users is to change the order of the scripts as they appear in the Greasemonkey window. You can drag&drop the scripts to a new spot in the list. Make sure BOB script is placed above ConquerStats. Another way would be to reinstall ConquerStats.

Re: BOB Bugs

Posted: Sun Nov 09, 2008 12:36 pm
by Frop
cspare wrote:
e_i_pi wrote:In the 'Aggression' and 'Reinforcements' sections, all the numbers are showing up as zero. Has this been reported before, or is it just me?

The Aggression and Reinforcements sections are actually from a different plugin than BOB, they are from ConquerStats. The problem might be related to a problem in BOB though:

(Technical explanation:)
BOB doesn't implement the refreshGMScript function correctly. It replaces the unsafeWindow's function with a new one, which removes the implementation ConquerStats uses. This doesn't cause any problems as long as the ConquerStats code is executed before BOB's (e.g. if ConquerStats is installed/updated after BOB was installed/updated). But BOB was recently updated, and by that introduced the problem.
To fix this you should call the original refreshGMScript's code after BOB's code is completed:

Code: Select all

var originalRefreshGMScript;
originalRefreshGMScript = unsafeWindow.refreshGMScript;
unsafeWindow.refreshGMScript = function()
{
   // Do Stuff
   originalRefreshGMScript();
}

Isn't it somewhat easier for the average user to change the GM loading sequence at Manage User Scripts... so that ConquerStats is loaded before BOB?

Right mouse on Image -> Manage User Scripts... -> Drag/drop the scripts in the left window to change the loading sequence. Make sure Conquerstats precedes Conquer Club - BOB in the list.

Re: BOB Bugs

Posted: Sun Nov 09, 2008 12:39 pm
by cspare
Frop wrote:Isn't it somewhat easier for the average user to change the GM loading sequence at Manage User Scripts... so that ConquerStats is loaded before BOB?

Hehe, beat you to it;) I had updated my post already ^^
Anyways your explanation is lot better ^^
ConquerStats should be below BOB in the list though, not on top. So in effect:
Right mouse on Image -> Manage User Scripts... -> Drag/drop the scripts in the left window to change the loading sequence. Make sure Conquer Club - BOB precedes Conquerstats in the list.

Country Totals

Posted: Sun Nov 09, 2008 9:28 pm
by ben.carbery
Country totals are wrong in World 2.1, I haven't checked other maps.

I count 115 countries in the XML. However bob has two conflicting numbers. 113 under 'totals', but if you add up the numbers in brackets (fog of war) it adds up to only 112.

Re: Country Totals

Posted: Mon Nov 10, 2008 4:28 am
by yeti_c
ben.carbery wrote:Country totals are wrong in World 2.1, I haven't checked other maps.

I count 115 countries in the XML. However bob has two conflicting numbers. 113 under 'totals', but if you add up the numbers in brackets (fog of war) it adds up to only 112.


There are 113 zones in World 2.1 - And the CALC column doesn't have a value in the totals field - so I can only assume that there was 1 zone left neutral.

C.

Re: BOB Bugs

Posted: Mon Nov 10, 2008 4:52 am
by e_i_pi
Fixed, yeah it was ConquerStats, it needed an update. Thanks guys :D

Re: BOB Bugs

Posted: Wed Nov 12, 2008 4:37 pm
by lokisgal
i have a mac os 10.4.11

it wont seem to let me download the new bob for some reason

was auto updated to the new firefox - when i try an update bob I just see a flash of the box which usually comes up and asks me if i want to down load then nothing

any ideas??

Re: BOB Bugs

Posted: Thu Nov 13, 2008 1:37 am
by yeti_c
lokisgal wrote:i have a mac os 10.4.11

it wont seem to let me download the new bob for some reason

was auto updated to the new firefox - when i try an update bob I just see a flash of the box which usually comes up and asks me if i want to down load then nothing

any ideas??


Do you still have Greasemonkey installed?

C.

Re: BOB Bugs

Posted: Thu Nov 13, 2008 8:33 am
by fishydance
I'm having trouble with scripts since the Firefox update in the night. No new scripts will install, and existing ones are failing.

Re: BOB Bugs

Posted: Thu Nov 13, 2008 8:40 am
by yeti_c
I've not had a Firefox update - what version of FF are you both running?

C.

Re: BOB Bugs

Posted: Thu Nov 13, 2008 8:52 am
by fishydance
yeti_c wrote:I've not had a Firefox update - what version of FF are you both running?

C.


I'm using the Windows version 3.0.4. I decided to reinstall it, and that fixed the problem.

Re: BOB Bugs

Posted: Thu Nov 13, 2008 8:58 am
by yeti_c
fishydance wrote:
yeti_c wrote:I've not had a Firefox update - what version of FF are you both running?

C.


I'm using the Windows version 3.0.4. I decided to reinstall it, and that fixed the problem.


I'm on 3.0.3 at the moment and haven't been prompted to upgrade...

Seems that may be the problem then.

Bizarre.

C.

Re: BOB Bugs

Posted: Thu Nov 13, 2008 9:08 am
by fishydance
yeti_c wrote:I'm on 3.0.3 at the moment and haven't been prompted to upgrade...

Seems that may be the problem then.

Bizarre.

C.


Yeah it is bizarre. If anyone else runs into this problem, I'd reinstall Firefox. I didn't even do an uninstall of Firefox first, as I wanted to preserve my scripts if I could. Worked just fine.

Re: BOB Bugs

Posted: Thu Nov 13, 2008 9:18 am
by yeti_c
fishydance wrote:
yeti_c wrote:I'm on 3.0.3 at the moment and haven't been prompted to upgrade...

Seems that may be the problem then.

Bizarre.

C.


Yeah it is bizarre. If anyone else runs into this problem, I'd reinstall Firefox. I didn't even do an uninstall of Firefox first, as I wanted to preserve my scripts if I could. Worked just fine.


So just an install over the top then?

Cool.

C.

Re: BOB Bugs

Posted: Thu Nov 13, 2008 11:51 am
by fishydance
yeti_c wrote:So just an install over the top then?

Cool.

C.


Yes - right over the top worked very nicely and solved the problem without having to lose all the scripts that were there. I suspect that something in that update was corrupted and caused the original problem.

Re: BOB Bugs

Posted: Thu Nov 13, 2008 1:44 pm
by yeti_c
fishydance wrote:
yeti_c wrote:So just an install over the top then?

Cool.

C.


Yes - right over the top worked very nicely and solved the problem without having to lose all the scripts that were there. I suspect that something in that update was corrupted and caused the original problem.


Good stuff - I've just been upgraded - but haven't taken a turn yet... will post my findings - hopefully Mozilla fixed it in the interim!

C.

Re: BOB Bugs

Posted: Thu Nov 13, 2008 9:54 pm
by lokisgal
yeti_c wrote:
lokisgal wrote:i have a mac os 10.4.11

it wont seem to let me download the new bob for some reason

was auto updated to the new firefox - when i try an update bob I just see a flash of the box which usually comes up and asks me if i want to down load then nothing

any ideas??


Do you still have Greasemonkey installed?

C.



yes I still have Greasemonkey - the last version of bob is working fine - just cant seem to get the new one to download

Re: BOB Bugs

Posted: Fri Nov 14, 2008 4:03 am
by yeti_c
lokisgal wrote:
yeti_c wrote:
lokisgal wrote:i have a mac os 10.4.11

it wont seem to let me download the new bob for some reason

was auto updated to the new firefox - when i try an update bob I just see a flash of the box which usually comes up and asks me if i want to down load then nothing

any ideas??


Do you still have Greasemonkey installed?

C.



yes I still have Greasemonkey - the last version of bob is working fine - just cant seem to get the new one to download


OK - a similar user had this same problem - can you reinstall Firefox and see if that solves it?

C.

Re: BOB Bugs

Posted: Fri Nov 14, 2008 4:03 am
by yeti_c
yeti_c wrote:
fishydance wrote:
yeti_c wrote:So just an install over the top then?

Cool.

C.


Yes - right over the top worked very nicely and solved the problem without having to lose all the scripts that were there. I suspect that something in that update was corrupted and caused the original problem.


Good stuff - I've just been upgraded - but haven't taken a turn yet... will post my findings - hopefully Mozilla fixed it in the interim!

C.


Well BOB still works at the moment - but I haven't tried to upgrade.

C.

Re: BOB Bugs

Posted: Fri Nov 14, 2008 9:00 am
by yeti_c
Check Blues armies out...

Game 3168896

It seems that if one player is killed then their partner deadbeats - the FOW analyzer gives the armies to the dead played instead of no-one.

C.

Re: BOB Bugs

Posted: Fri Nov 14, 2008 12:25 pm
by tabsnake
tabsnake wrote:on the Statistics section all the information is highlighted in each individual persons color and makes it very difficult to read. So for example the red person has the hole line highlighted in red, green is highlighted in green, and so on. How do I get this to turn off so just the text is the persons color and the line is not highligted in the persons color? Please let me know.

thank you



Can anybody please help me with this.

Thank You

Re: BOB Bugs

Posted: Fri Nov 14, 2008 1:32 pm
by yeti_c
tabsnake wrote:
tabsnake wrote:on the Statistics section all the information is highlighted in each individual persons color and makes it very difficult to read. So for example the red person has the hole line highlighted in red, green is highlighted in green, and so on. How do I get this to turn off so just the text is the persons color and the line is not highligted in the persons color? Please let me know.

thank you



Can anybody please help me with this.

Thank You


I tried before - you appear to have more than one copy of BOB or conflicting scripts installed.

C.

Re: BOB Bugs

Posted: Wed Nov 19, 2008 11:44 am
by tabsnake
yeti_c wrote:
tabsnake wrote:
tabsnake wrote:on the Statistics section all the information is highlighted in each individual persons color and makes it very difficult to read. So for example the red person has the hole line highlighted in red, green is highlighted in green, and so on. How do I get this to turn off so just the text is the persons color and the line is not highligted in the persons color? Please let me know.

thank you



Can anybody please help me with this.

Thank You


I tried before - you appear to have more than one copy of BOB or conflicting scripts installed.

C.


That was it!!! Thank You!

Re: BOB Bugs

Posted: Sun Nov 23, 2008 1:23 am
by jkppkj
This is more of a scripts in general bug from a newbie to this whole Greasemonkey world

When I run BOB, conquerstats, dice analyzer, or clickable maps in any combo that I've tried so far the map will stop auto-refreshing in speed games and I won't be able to click any of the buttons (Attack, Reinforce, etc.) on the page.

Running FF3 in Vista (if that makes a difference)

Re: BOB Bugs

Posted: Sun Nov 23, 2008 3:52 am
by yeti_c
jkppkj wrote:This is more of a scripts in general bug from a newbie to this whole Greasemonkey world

When I run BOB, conquerstats, dice analyzer, or clickable maps in any combo that I've tried so far the map will stop auto-refreshing in speed games and I won't be able to click any of the buttons (Attack, Reinforce, etc.) on the page.

Running FF3 in Vista (if that makes a difference)


Next time it happens - can you goto "Tools -> Error Console" Click the "Errors" tab - and then post anything in there in here.

C.