Moderators: Global Moderators, Tech Team

xmaveric wrote:Could you please disable clock processing until the 08 & 09 times are fixed? Or add that as an option to the menu?
// clock.innerHTML = hours1+'hrs '+minutes1+'min '+seconds1+'sec';
clock.innerHTML = hours1+'hrs '+minutes1+'min '+seconds1+'sec';

function ClockTimer()
{
var TimeStr = unsafeWindow.gameClock.innerHTML;
var stepClock = document.getElementById("newclock").innerHTML;
var TargetTime = TimeStr.split(/hrs\n|min\n|sec/);
var TargetTime2 = stepClock.split(/hrs\n|min\n|sec/);
var CurrHour = parseInt(TargetTime[0]);
var CurrMinute = parseInt(TargetTime[1]);
var CurrSecond = parseInt(TargetTime[2]);
var stepCurrHour = parseInt(TargetTime2[0]);
var stepCurrMinute = parseInt(TargetTime2[1]);
var stepCurrSecond = parseInt(TargetTime2[2]);
if (!(CurrHour < stepCurrHour) && !(CurrMinute < stepCurrMinute))
{
CurrHour = stepCurrHour;
CurrMinute = stepCurrMinute;
CurrSecond = stepCurrSecond;
}
--CurrSecond;
if(CurrSecond < 0 ){
--CurrMinute;
if( CurrMinute < 0 ){
--CurrHour;
if( CurrHour < 0 ){
CurrHour = 0;
}
CurrMinute = 59;
}
CurrSecond = 59;
}
document.getElementById("newclock").innerHTML = zslash(CurrHour, 2) + 'hrs\n' + zslash(String(CurrMinute), 2) + 'min\n' + zslash(CurrSecond, 2) + 'sec ';
var currentTime = new Date();
var hours = currentTime.getHours();
var minutes = currentTime.getMinutes();
var day = ' @ ';
var ampm = ' ';
minutes = (minutes + CurrMinute);
if (minutes >= 60) {
hours = hours + 1;
minutes = minutes - 60;
}
hours = (hours + CurrHour);
//alert ('h:' + hours);
if (hours >= 24)
{
day = " tomorrow @ ";
hours = hours - 24
}
if (myOptions['24hourClockFormat']=="am/pm") {
ampm = " am";
if (hours >= 12)
{
ampm = " pm";
hours = hours - 12;
}
if (hours == 0) hours = 12;
}
else
{
if (hours < 10)
{
hours = "0" + hours;
}
}
if (minutes < 10)
minutes = "0" + minutes;
var clock
if (myOptions['24hourClockFormat']!="Off") {
clock = "<br />" + day + "<b>" + hours + ":" + minutes + ampm + " " + "</b>"
}
else
{
clock = ""
}
document.getElementById("newclock").innerHTML += ' ' + clock;
}
function zslash(svalue, iwidth)
{
var szero = String(svalue);
var ch = szero.substr(0,1);
while (ch == ' ')
{
szero = szero.substr(1, szero.length);
ch = szero.substr(0,1);
}
ch = szero.substr(szero.length - 1, szero.length);
while (ch == ' ')
{
szero = szero.substr(0, szero.length - 1);
ch = szero.substr(szero.length - 1, szero.length);
}
var i=0;
for (i=0; i < (iwidth - szero.length); i++)
{
szero = '0' + szero;
}
return szero;
}
var clockInterval;
/*---- Start Clock ----*/
var TimeStr = unsafeWindow.gameClock.innerHTML;
unsafeWindow.gameClock.style.display = "none !important";
var newClock = document.createElement('span');
newClock.id="newclock";
unsafeWindow.gameClock.parentNode.insertBefore(newClock, unsafeWindow.gameClock);
newClock.innerHTML = TimeStr;
if (clockInterval != "")
{
window.clearInterval(clockInterval);
clockInterval = "";
}
clockInterval = window.setInterval(ClockTimer, 1000);

yeti_c wrote:Frop wrote:I like how the Map Inspect option was modified, but you're still stuck to manually refreshing the page if you want the 'Map Inspect' text map to (dis)appear.
Apart from that, keep up the great work!
Actually - the latest version does the on off for map inspect on the fly - check the correct topic for better updates...
C.

Frop wrote:yeti_c wrote:Frop wrote:I like how the Map Inspect option was modified, but you're still stuck to manually refreshing the page if you want the 'Map Inspect' text map to (dis)appear.
Apart from that, keep up the great work! :)
Actually - the latest version does the on off for map inspect on the fly - check the correct topic for better updates...
C.
Yeah, with 'modified' I was talking about the on-the-fly stuff. What I meant was that you still have to manually refresh the page if you want the 'Map Inspect' text map to (dis)appear. :)
Frop wrote:yeti_c wrote:Frop wrote:I like how the Map Inspect option was modified, but you're still stuck to manually refreshing the page if you want the 'Map Inspect' text map to (dis)appear.
Apart from that, keep up the great work!
Actually - the latest version does the on off for map inspect on the fly - check the correct topic for better updates...
C.
Yeah, with 'modified' I was talking about the on-the-fly stuff. What I meant was that you still have to manually refresh the page if you want the 'Map Inspect' text map to (dis)appear.

casper wrote:Thanks for the update.
But what are these Map Centering pixel settings for?
I have to set it to -1 left for the armies to line up correctly on all my maps. Kind of annoying.
yeti_c wrote:Frop wrote:yeti_c wrote:Frop wrote:I like how the Map Inspect option was modified, but you're still stuck to manually refreshing the page if you want the 'Map Inspect' text map to (dis)appear.
Apart from that, keep up the great work!
Actually - the latest version does the on off for map inspect on the fly - check the correct topic for better updates...
C.
Yeah, with 'modified' I was talking about the on-the-fly stuff. What I meant was that you still have to manually refresh the page if you want the 'Map Inspect' text map to (dis)appear.
What version of the code are you running?
C.
Aerial Attack wrote:My armies all seem to line up perfectly. I am using the Large Maps setting (in CC's My Settings).
I am using the latest version of BOB (released Thurs Nov.
My guess is that you are either using an older version - possible
OR
You have Small Maps in your My Settings (under Personal Menu in the left navigation area) - more likely.
I guess yeti will have to do an update that checks for map size setting.
Users browsing this forum: No registered users and 1 guest