Moderator: Tech Team
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...
var armiesArr = map.innerHTML.split(/armies=|,|-|" alt="/);
var armiesArr = map.innerHTML.split(/armies=|,|-|" alt="/);
var armiesArr = map.innerHTML.replace(/D-Day/g,"DDay").split(/armies=|,|-|" alt="/);
armiesArr[0] = armiesArr[0].replace(/DDay/g,"D-Day");
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.
var armiesArr = map.innerHTML.split(/armies=|,|-|" alt="/);
var armiesArr = map.innerHTML.replace(/-(\d)/g,"~$1").split(/armies=|,|~|" alt="/);
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
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?
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
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.
Users browsing this forum: No registered users