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.
[/spoiler]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
Older versions : see yeti_c's old thread


