Moderator: 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.
casper wrote:yep i use large maps. any idea yeti? what is that feature for in the first place?
Frop wrote: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.
Firefox 2.0.0.9, Greasemonkey 0.7.20070607.0, script version 2.13. To avoid issues I always uninstall the previous version of the script including all associated preferences.
I took a number of screenshots, hopefully I can illustrate the situation. Prerequisite is to browse a game with Map Inspect turned off.
1) Off
Now when I turn Map Inspect on, you can see that it works when I hover over a country - yet there is no text map.
2) On, no refresh
However, when I manually refresh the page the text map shows up (site option 'refresh map' does not have the same effect).
3) On, refreshed
When I turn Map Inspect off again the text map remains on the screen and doesn't disappear until I manually refresh the page.
4) Off, no refresh
yeti_c wrote:casper wrote:the overlaid numbers are there to replace the existing numbers that get faded out when you change the map fade options...
C.
Marshall Law wrote:yeti_c wrote:the overlaid numbers are there to replace the existing numbers that get faded out when you change the map fade options...
C.
It seems to go back and forth for me. Sometimes it's right on and other times it's not. I haven't looked into the code (I am a bit rusty) but i dont understand why it has to be this way. In the older versions of BOB was there an double overlay approach like this one? Are the original numbers locked into the map image? Thanks, yeti.
Lobster Crush wrote:good job on this yeti...but bob's been wacky for me since about version 2.09 or so.
see image below...the army counts are duplicated again below the map, and map inspect doesn't work at all.
also, there's no menu for bob on the left.
i've tried clearing my cache, etc., but with no luck so far.
the only thing i haven't done is opened up the script to manually tweak the settings, to see if it's one setting in particular that's causing the bug.
if i discover something, i'll post it here.
Users browsing this forum: No registered users