BOB 5.3.0

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
sherkaner
Posts: 1595
Joined: Thu May 03, 2007 3:21 am
Gender: Male
Location: Zwolle

BOB 5.3.0

Post by sherkaner »

What is BOB
Temp download link. Http://Zack.st/Userscripts
Chrome users must open the Bob link in a new tab to install

BOB is a script that adds some functionality to this site, especially to the game-pages. Most of that functionality can be altered or turned on/off by the menu at the left of the screen.

2 of the most used added functionalities are the statistics table and the Map Inspect.
The statistics-table is created from the logs, it shows for example how many armies someone received last time they started a turn. It also calculates how many territories everyone has in a fog-game.
The map inspect-feature makes it possible to highlight some territories on the screen, for example to check which territories could give you a bonus. Highlighting is done by hovering over certain elements:
players/teams in the statistics-table or on the right: highlight all territories of this player/team.
card: highlight territory belonging to this card.
Bonus/'continent' in the statistics-table or on the right (if enabled): Highlight all territories belonging to this bonus (if you need 5 out of 9, it will highlight all 9 territories).
Territories on the map: Highlight (with a certain convention) the territories that border this territory.
6 different options atm: Border (2-way attack), attack-only, defend-only, bombard, bombarded by, mutual bombard

How to install
BOB works for both Chrome and Firefox by default, but firefox needs greasemonkey installed.
See this thread for the whole installation-guide for firefox.
If you have Greasemonkey installed already, or you're using chrome, just click the following link, it will try to install immediately: GET BOB
Http://Zack.st/Userscripts (find Bob)

Problems
If the BOB-script doesn't work properly directly after an update (I've seen it show 2 bob-menu's on the left), try to pres 'ctrl-f5' once or twice. This should reload the page without using the cache (and thereby refreshing it). If that doesn't solve it, or you have another kind of problem, please put it in this thread (and try to put some details in it, maybe a certain map, a particular action).

Improvements
If you can think of any improvements that can be made, please share them by posting in this thread. I'll try to keep my TODO-list below updated.
Changes in version 5.3.0:
Fixed small bug when text map was enabled.


Changes in version 5.2.9:
Config script location was sometimes still wrong on game pages, identifying it a bit different now.

Changes in version 5.2.7/ 5.2.8:
Updated colors to be loaded in the script till 12 players + colour codes,
Poly-games are now seen as proper team games,
Flat-rate spoils estimate should be correct again now,
If a bonus is done through the collections feature, bonusses should show up correctly again.
Updated jquery to 2.0.3


[spoiler= older versions]
Changes in version 5.2.4-5.2.6:
Correctly reading the game's script again (failed because of ads).

Changes in version 5.2.3:
fog is recognized correctly again.
Changed zindex of dice rolls, so the army troops are not hovering above that when in HUD-mode.
Changes in version 5.2.1/5.2.2:
Snapshots in chat are now in a different format, which allows more information to be stored (thanks for the contribution, joriki)
Fixed a bug in standard stats (by rewriting most of it).
Fixed the detection of cashing a set (name change by the site, thanks again joriki).

Changes in version 5.1.9/5.2.0:
Reverted the not-automatically posting snapshots.
Inspecting the first item now correctly highlights that item.
Some more technical changes.

Changes in version 5.1.7/5.1.8:
bugfix: fixed the NaN that occured because of the speed game change.
Troops received/to receive now totals for teams too
Adjusted message when forting + confirmation on
Stopped support of firefox before 3.5
Some internal changes (jQuery 1.7.1 doesn't need adjustments any more)

Changes in version 5.1.6:
bugfix: fixed the NaN that occured because of the round limit change.
adjusted the hide menu functionality again

Changes in version 5.1.5:
bugfix: made it more tolerant to name changes
adjusted the hide menu functionality to work better
Updated to jQuery 1.5



Changes in version 5.1.3:
Created a 'image only' mapinspect variant, so the map inspect-thingy doesn't take any (variable) space when hovering over the map.
Adjusted to new option-structure on game page.
Updated to jQuery 1.4.4


Changes in version 5.1.2:
Fixed so it shows up as a snapshot right away.
Fixed colour codes behaviour.


Changes in version 5.1.0:
Added the snapshot to chat feature.
Adapted something to an upcoming site change.


Changes in version 5.0.6:
Objectives overview should be back to normal now.
'show all games together' should work properly for admins/mods.
Calculation of starting territories for 2 players has been updated to be closer to the truth.
The doubling of elimination summary when pressing full log was fixed.



Changes in version 5.0.5:
Fixed some bugs.


Changes in version 5.0.4:
Fixed some bugs.
Altered snapshots display so it displays the colour codes if you have them on at the moment you check the snapshot.


Changes in version 5.0.1/2/3:
Fixed some bugs.


Changes in version 5.0.0:
Adapted to site-changes, script (almost) works in chrome now, moved objectives to another place.


Changes in version 4.10.7:
updated the update-mechanism some more


Changes in version 4.10.6:
Preparing for a switch to allow chrome, updated the update-mechanism


Changes in version 4.10.5:
small bugfixes etc.


Changes in version 4.10.4:
Updated the update mechanism, so all information comes from userscripts now.
When xml can't be fetched: display an error, continue loading.
Text map: there are now breaking spaces between names.
showDiv isn't created when not needed now.


Changes in version 4.10.2/3:
Fixed a (major) bug where on closing the page (by going to another page mainly) the computer would stop.. Especially if you were playing with Text Map off.
(3 since I tried to prevent something with snapshots, and forgot to test it..)


Changes in version 4.10.2/3:
Fixed a (major) bug where on closing the page (by going to another page mainly) the computer would stop.. Especially if you were playing with Text Map off.
(3 since I tried to prevent something with snapshots, and forgot to test it..)


Changes in version 4.10.1:
A thing that was removed every move before the update didn't get removed every move after the update, so BOB doesn't have to put it on there every move any more (this caused the unresponsive script errors).
Put the images back in (host isn't reliable enough).
Fixed the map fade issue.


Changes in version 4.10.0:
Adapted BOB to the new altered layout of the site.
Now fetching jquery/the images from a specific link (only at install).


Changes in version 4.9.8:
Adapted BOB to the new altered layout of the site.
Created an option which makes it possible to revert back to the old layout (though turning the side stats option on doesn't work, if you refresh when it's on it will show up again though).


Changes in version 4.9.7:
Adapted BOB to the new layout of the site.


Changes in version 4.9.5/6:
I guess I made quite some bugs in 4.9.1, this should be the final bugfix. I do request snapshots differently now, if you make a heavy use of snapshots and have games where you deleted snapshots and which is older than 2 months, there could potentially be a problem.


Changes in version 4.9.3/4:
Removed 2 other bugs, and altered the way the map fade works, which should eliminate the need for moving the map to the left/top. So I removed those too. This should also remove the jumpy movement when using Clickable maps with BOB (I'm even getting used to the combination..).


Changes in version 4.9.2:
Removed 3 bugs..


Changes in version 4.9.1:
Added an option to whiten the circles on the maps (useful if they don't exist).
Added an option to put the chat on top of the screen. (Idea: viewtopic.php?f=4&t=101027&p=2295109#p2295109 )
Added an option that adds a link to the profile, which lets you find the games you've played with him more quickly (Idea: Queen_Herpes, viewtopic.php?f=4&t=100952 default = 'On' btw.).
There is a map-specific text map setting now.
In extended stats mode, hovering over a player's last bonus will popup the breakdown of that bonus (same as troops due).
The stats have an extra option to hide the eliminated players.
Default settings were slightly updated again.
Storing settings (especially snapshots) shouldn't give problems any more.
Indication of player's amount of territories on Vancouver and Castle Lands at the start should be correct now (was incorrect when set to fog).
Other small tweaks.


Changes in version 4.8.4:
Removed 2 or 3 bugs.
Default settings were slightly updated (only has an impact for new BOB-users).
(increased the version number again because map fade was a bit broken).


Changes in version 4.8.2:
Found out beta-testing doesn't work very well.. map-top and map-left are now global again, and should be correct (at 0) for everyone.
I also fixed an error that was introduced in the last version: map inspect should now work correctly again for defensive borders.


Changes in version 4.8.1:
  • Bob tends to fetch the XML of the map for every time you visit a page, caching is off. I want to test it with caching again now.
  • Changed the way snapshots are removed, and created an option for removing all snapshots of finished games. (Since the last way of removing snapshots wasn't perfect, the numbers of removed snapshots can be quite high).
  • Created an option (in 'map options') to turn full log fetching off, the 30-second timeouts in stalemates can be prevented by turning that off. You won't get all information though (Last Bonus could be 0 in some cases). This setting is game-specific.
  • created a default value for the min hud width, so you don't have to adjust it for each map.(not totally happy with the behaviour though)
  • altered Auto-Bob, so BOB stays off if set to off (if you moved somewhat, it would turn on again)
  • Tried to undo the off-by-one error some people get with the numbers of the map (couldn't test though).
  • Adjusted the BOB logic for a safe territory. A territory is considered safe if no (possible) enemy can attack it, so neutrals don't count.


Changes in version 4.7.9:
went back to http://www.conquerclub.com/maps (in stead of maps.conquerclub.com) to fetch the XML of the maps.
Menu: snapshots now slides too, has slightly different behaviour, analyze snapshot works again.
Forcing the charset of the XML now (not necessary any more, but I had no clue when implementing that).
Min HUD width now has 1200 as extra option.
If the numbers (on the map) are not shown (which happens on occasion), you are asked whether you want to refresh the page.


Changes in version 4.7.8:
If the xml can't be resolved correctly, it gives a warning now and things like the map inspect won't work.
Menu: made submenu's slide up/down (except snapshots for now).
Inspect should work again for all characters in territory names (there was still an exception in NYC, '/'-character. Excluded them all now).
Opacity isn't affecting numbers any more (introduced in 4.7.7 btw.).


Changes in version 4.7.7:
Bug fix: The clock wasn't the main cause of the popup after all, refactored the event handling a bit.
(jQuery throws away all registered event listeners when exiting a page.. We made alot of them, since every partial refresh of the page makes the whole map inspect etc. Not using jQuery for event attaching any more at that point).


Changes in version 4.7.6:
Bug fixes: updating the clock was resource-intensive somehow, which caused an annoying popup when switching to another page sometimes. Not using jquery for that part any more..
Territories with parentheses in them were causing some failures, should be fixed now.


Changes in version 4.7.5:
Bug fixes: chat and the dropdown on 'join a game' should work properly now.
territories with a ' in them were causing some failures, should be fixed now.


Changes in version 4.7.4:
Letting territories blink should be faster now (was slow on maps like Conquer Man).
The clock countdown should be slightly more accurate,it skips more seconds when needed now.
Killed error message if switching to another page early.
Stopped the stalling of the script if xml and site disagree about a name of a territory (Oceania-bug).
Slight speedup (full log-fetching is still the huge portion). Possible improved memory usage. Maybe a bit harder on the processor though.
Fetching static images from the new location.
Link points to this thread now.
Removed redemption values for escalating games, since the page itself shows them now.

Code:
Add JQuery, and put it to good use.
Clean up the code, shrink the code a bit., and improve some of the mechanics in the code.
For the curious developers: logging is shown to the firebug-console now.


Changes in version 4.7.3:
Fixed the log parsing that was broken after some standard words in the logs changed.
Changed possibility to update the script to me.

code: proper indenting
[/spoiler]
Older versions : see yeti_c's old thread
show
Last edited by sherkaner on Wed Oct 30, 2013 10:36 am, edited 45 times in total.
sherkaner
Posts: 1595
Joined: Thu May 03, 2007 3:21 am
Gender: Male
Location: Zwolle

Re: BOB 5.1.9

Post by sherkaner »

got rid of the old posts, 84 pages was a bit too much.
User avatar
Chewie1
Posts: 1203
Joined: Mon Nov 23, 2009 5:03 pm
Gender: Male
Location: Wiltshire

Re: BOB 5.1.9

Post by Chewie1 »

Hi

Just clicked on ' upgrade available' on my BOB menu.
After it was installed, when I now take a turn and click on side stats on the right handside of map instead of the players stats dropping down it takes me to the top of page and then when I scroll back down it has made all the players names dissapear from the right handside.
The only way to see stats is to look underneath the map.
Any idea how I could fix this?

Thanks
Image
sherkaner
Posts: 1595
Joined: Thu May 03, 2007 3:21 am
Gender: Male
Location: Zwolle

Re: BOB 5.1.9

Post by sherkaner »

Hmm, I see what you mean. Unintended consequence of a change, gonna have to think about how to solve that one.
User avatar
LLLUUUKKKEEE
Posts: 791
Joined: Wed Dec 27, 2006 12:07 am
Gender: Male
Location: Trying to stay out of Join a Tournament forum

Re: BOB 5.1.9

Post by LLLUUUKKKEEE »

you should probably fix the link in the BoB menu to this forum now too!
It's your turn...................................
User avatar
Chewie1
Posts: 1203
Joined: Mon Nov 23, 2009 5:03 pm
Gender: Male
Location: Wiltshire

Re: BOB 5.1.9

Post by Chewie1 »

sherkaner wrote:Hmm, I see what you mean. Unintended consequence of a change, gonna have to think about how to solve that one.


Phew glad its not just me then.
Image
User avatar
Swifte
Posts: 2474
Joined: Wed Nov 14, 2007 12:05 pm
Gender: Male
Location: usually Mahgreb

Re: BOB 5.1.9

Post by Swifte »

When I hover over the name of my spoils, they are no longer highlighted on the map. Is anyone else having that problem since upgrading?
GeneralRisk
Posts: 762
Joined: Sun Jul 04, 2010 3:58 pm
Location: Neu-Schwabenland

Re: BOB 5.1.9

Post by GeneralRisk »

I have had my update flashing for a long time now and I resisted the urge to upgrade and my old BOB works like it always did.....just fine
sniffie
Posts: 1715
Joined: Sat Feb 03, 2007 3:29 pm
Gender: Male

Re: BOB 5.1.9

Post by sniffie »

Swifte wrote:When I hover over the name of my spoils, they are no longer highlighted on the map. Is anyone else having that problem since upgrading?


I have te same problem, now I notice how much I always depended on BOB.

sniffie
User avatar
SirSebstar
Posts: 6969
Joined: Fri Oct 27, 2006 7:51 am
Location: SirSebstar is BACK. Highscore: Colonel Score: 2919 21/03/2011

Re: BOB 5.1.9

Post by SirSebstar »

sniffie wrote:
Swifte wrote:When I hover over the name of my spoils, they are no longer highlighted on the map. Is anyone else having that problem since upgrading?


I have te same problem, now I notice how much I always depended on BOB.

sniffie

me 3.
i upgraded firefox though to 9.0.1
Image
User avatar
Chewie1
Posts: 1203
Joined: Mon Nov 23, 2009 5:03 pm
Gender: Male
Location: Wiltshire

Re: BOB 5.1.9

Post by Chewie1 »

sherkaner wrote:Hmm, I see what you mean. Unintended consequence of a change, gonna have to think about how to solve that one.



Fixed with the latest upgrade. Thankyou.

Image
Image
User avatar
Victor Sullivan
Posts: 6010
Joined: Mon Feb 08, 2010 8:17 pm
Gender: Male
Location: Columbus, OH
Contact:

Re: BOB 5.2.0

Post by Victor Sullivan »

Okay, I recently switched to Firefox for my default browser and I downloaded Greasemonkey and some scripts...

BOB is frackin' amazing. Blows my mind. Well done, sherkaner (and yeti_c)! And thanks for maintaining it, sherk :)

-Sully
[player]Beckytheblondie[/player]: "Don't give us the dispatch, give us a mustache ride."

Scaling back on my CC involvement...
User avatar
Frop
Posts: 1201
Joined: Thu May 10, 2007 3:02 pm

Re: BOB 5.2.0

Post by Frop »

There's something going on with the territory count since 5.2.0 (for example Game 10198534). It's showing the correct number of regions directly followed by a (seemingly) random number - 258, 227, 2212 and 208.
sherkaner
Posts: 1595
Joined: Thu May 03, 2007 3:21 am
Gender: Male
Location: Zwolle

Re: BOB 5.2.0

Post by sherkaner »

Frop wrote:There's something going on with the territory count since 5.2.0 (for example Game 10198534). It's showing the correct number of regions directly followed by a (seemingly) random number - 258, 227, 2212 and 208.


To be more precise, it happened in version 5.1.7 or 5.1.9 for the first time, and happens for standard (not extended) stats, the total bonus for teams is put directly behind the amount of territories.
User avatar
ChronicPound
Posts: 4
Joined: Wed Mar 04, 2009 9:30 am

Re: BOB 5.2.0

Post by ChronicPound »

My screenshot hyperlinks in the chat window no longer work. They don't revert to the screenshot, but merely keep the map as currently is. Is anyone else noticing the same thing?
User avatar
ender516
Posts: 4455
Joined: Wed Dec 17, 2008 6:07 pm
Gender: Male
Location: Waterloo, Ontario

Re: BOB 5.2.0

Post by ender516 »

There have been reports of problems such as this, but I thought that they had been fixed in the latest version of BOB: 5.2.0. Make sure that BOB, Greasemonkey and your browser are all up to date.
User avatar
Slaylark
Posts: 176
Joined: Tue Mar 03, 2009 11:09 pm
Gender: Male
Location: New York

Re: BOB 5.2.0

Post by Slaylark »

ever since i upgraded to bob 5.2.0, my clickable map options are not present on the left hand column anyomore and now my clickcalbe respond like they would if i was playing on windows internet exploror. i hate that right click left click mix up in th IE. i loved the way it worked with firefox . any idea on how this happened? i have newest clickables downloaded as well. but it still isnt appearing in the left hand side.. thoughts?
sherkaner
Posts: 1595
Joined: Thu May 03, 2007 3:21 am
Gender: Male
Location: Zwolle

Re: BOB 5.2.0

Post by sherkaner »

Hmm, you're talking about the site's clickable maps and greasemonkey script clickable maps.
Can't tell from here, do any errors show up when you load a game page?
(ctrl-shift-j, clear before going to a page, and check whether there are errors. Warnings are not relevant.)
User avatar
Slaylark
Posts: 176
Joined: Tue Mar 03, 2009 11:09 pm
Gender: Male
Location: New York

Re: BOB 5.2.0

Post by Slaylark »

sherkaner wrote:Hmm, you're talking about the site's clickable maps and greasemonkey script clickable maps.
Can't tell from here, do any errors show up when you load a game page?
(ctrl-shift-j, clear before going to a page, and check whether there are errors. Warnings are not relevant.)



ty for the input tried that clear option, and for what ever reason it is back in the left hand column, ty :)
dakky21
Posts: 2339
Joined: Mon Feb 11, 2008 3:27 am
Gender: Male
Location: Rijeka, Croatia

Re: BOB 5.2.0

Post by dakky21 »

I still can't load screenshot from chat. Clicking on the link does nothing. No other scripts are installed.
FF 3.6.25
BOB 5.2.0
Greasemonkey 0.9.13
User avatar
ender516
Posts: 4455
Joined: Wed Dec 17, 2008 6:07 pm
Gender: Male
Location: Waterloo, Ontario

Re: BOB 5.2.0

Post by ender516 »

You may have to bite the bullet and upgrade to a much later version of Firefox. Granted, there were issues with scripts under FF 4 or 5 (I forget), but up here at FF 9.0.1, things are fine. You may find FF performance in general improved as well.
sherkaner
Posts: 1595
Joined: Thu May 03, 2007 3:21 am
Gender: Male
Location: Zwolle

Re: BOB 5.2.0

Post by sherkaner »

also, there is a possibility that snapshot wasn't taken properly (because of the bug), and that could be why the link doesn't work.
Dako
Posts: 3987
Joined: Sun Aug 26, 2007 9:07 am
Gender: Male
Location: St. Petersburg, Russia
Contact:

Re: BOB 5.2.0

Post by Dako »

Found a funny bug.

If you cash a set of spoils and get +2 on some region, BOB will count it into "Last bonus" column because the wording is the same for auto-deploy regions (like castes in AoR) and for the +2 bonus from the set ^^.

And another one.
Get a game with some eliminated players. Click on "Hide eliminated players" in the extended stats table. Then click on refresh. Check that "Hide eliminated players" turned to "show eliminated players" and no longer works.
Image
User avatar
Leverpuller
Posts: 515
Joined: Tue Feb 08, 2011 7:08 am
Gender: Male

Re: BOB 5.2.0

Post by Leverpuller »

Need your help. I recently converted to Firefox and installed Bob. However, two things happened. My user menus on the left disappeared. And the timers all showed Na:aN. When I disabled greasemonkey, everything went back to normal.
I then asked tech support what to do and they advised me to uninstall and reinstall Bob. Problem is, I can't seem to uninstall Bob now. When I click on the monkey icon on the top right, there is no such option available to me. Can u please help?
User avatar
ender516
Posts: 4455
Joined: Wed Dec 17, 2008 6:07 pm
Gender: Male
Location: Waterloo, Ontario

Re: BOB 5.2.0

Post by ender516 »

Leverpuller wrote:Need your help. I recently converted to Firefox and installed Bob. However, two things happened. My user menus on the left disappeared. And the timers all showed Na:aN. When I disabled greasemonkey, everything went back to normal.
I then asked tech support what to do and they advised me to uninstall and reinstall Bob. Problem is, I can't seem to uninstall Bob now. When I click on the monkey icon on the top right, there is no such option available to me. Can u please help?

Since you are a recent convert to Firefox, I will presume you have the latest version. (I'm running using the release update channel, which is up to date at 9.0.1.) Click the down arrow next to the monkey icon, and the menu that appears should have a "Manage User Scripts..." item, which, when selected, will take you to the Add-ons Manager for Firefox. Each script you are using should have its own entry there, with Options, Disable and Remove buttons. Remove BOB. The symptoms you describe with BOB suggest that you have the wrong version installed. Follow the instructions in the Conquer Club User Guides to get things the way they are supposed to be. If you still have trouble, let us know, in case the Guides have gotten out of date. (This isn't likely, as they are quite recent, and I think well laid out for staying up to date, but things happen.)
Post Reply

Return to “Tool Archives”