You probably have outdated xml cached in your browser.The1exile wrote:The Pearl harbour map seems to have a bunch of missing bonuses in the xml, probably due to some new code? They work in game, but damned if i can see them.
Moderator: Tech Team
You probably have outdated xml cached in your browser.The1exile wrote:The Pearl harbour map seems to have a bunch of missing bonuses in the xml, probably due to some new code? They work in game, but damned if i can see them.
lackattack wrote:You probably have outdated xml cached in your browser.The1exile wrote:The Pearl harbour map seems to have a bunch of missing bonuses in the xml, probably due to some new code? They work in game, but damned if i can see them.
Ishiro wrote:There are people working on it:
http://www.conquerclub.com/forum/viewtopic.php?t=27417
Its just a pain in the ass, and there are other issues. BOB was not designed to be run multiple times on one page, so things like the Map Inspect don't work properly at all, as well as they seem to interfere with what lack does to update armies. If you have AJAX and BOB on, you can deploy armies, attack, advance and fortify, and the map will never update.
I've personally gone through about 6 versions of BOB now, and none of them have worked. But I'm still working on it.
//-----------------------------------------------------------------------------
// DEFAULT OPTIONS SETTINGS
//-----------------------------------------------------------------------------
// THERE IS NO POINT IN EDITING THESE: CHANGES HERE WILL HAVE NO EFFECT
// There are TWO ways to edit the settings, EASY WAY: Use the new settings menu.
// HARD WAY. Go to about:Config in FireFox and - Search for BOB.OPTIONS.
// Then Edit that value - BE CAREFULL if you get the format wrong the script will crash,
// if you crash it and want to recover, set that option value to exactly the next 4 chars ({})
// this will re load the defaults below.
var DEFAULT_OPTIONS = new Object();
DEFAULT_OPTIONS['jumptomap'] = false;
DEFAULT_OPTIONS['colorblind'] = true;
DEFAULT_OPTIONS['textMapType'] = "Standard";
DEFAULT_OPTIONS['fadeMap'] = 0.0; // 0 = No Fade 1 = Total WhiteOut
DEFAULT_OPTIONS['24hourClockFormat'] = "am/pm";
DEFAULT_OPTIONS['mapInspect'] = true;
DEFAULT_OPTIONS['confirmEnds'] = true;
DEFAULT_OPTIONS['confirmAutoAttack'] = true;
DEFAULT_OPTIONS['confirmDeploy'] = true;
DEFAULT_OPTIONS['statsMode'] = "Extended";
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?
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="/);
Users browsing this forum: No registered users