Moderator: Tech Team
I think this is because of the dash in the name of the map.Coleman wrote: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.Coleman wrote:Nevermind, figured it out, the title doesn't match the site name.Coleman wrote:Does anyone know why BOB is not working for D-Day?
I wonder if BOB doesn't like the : in the file...
Code: Select all
var armiesArr = map.innerHTML.split(/armies=|,|-|" alt="/);Code: Select all
var armiesArr = map.innerHTML.split(/armies=|,|-|" alt="/);Code: Select all
var armiesArr = map.innerHTML.replace(/D-Day/g,"DDay").split(/armies=|,|-|" alt="/);
armiesArr[0] = armiesArr[0].replace(/DDay/g,"D-Day");here's a potential general fix:hambone wrote: I think this is because of the dash in the name of the map.
The problem is this line (about line 1060):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.Code: Select all
var armiesArr = map.innerHTML.split(/armies=|,|-|" alt="/);
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:to:Code: Select all
var armiesArr = map.innerHTML.split(/armies=|,|-|" alt="/);--- use at your own risk... etc, etc.Code: Select all
var armiesArr = map.innerHTML.replace(/D-Day/g,"DDay").split(/armies=|,|-|" alt="/); armiesArr[0] = armiesArr[0].replace(/DDay/g,"D-Day");
Code: Select all
var armiesArr = map.innerHTML.split(/armies=|,|-|" alt="/);Code: Select all
var armiesArr = map.innerHTML.replace(/-(\d)/g,"~$1").split(/armies=|,|~|" alt="/);see http://wiki.greasespot.net/Scripts_directoryRjBeals 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?
To keep this on the latest page for a while.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

Please report AJAX bob problems - in the AJAX Bob thread...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.
