Page 7 of 69

Posted: Thu Dec 20, 2007 9:37 am
by yeti_c
xmaveric wrote:Problems seem to be related to the addition of the [add colour codes] to the page... if you click this, with BoB enabled, it will not let you click any of the linkes (refresh, large map, add colour codes). Then if you refresh the page manually, the bob menu disappears.


Ah yes - I fixed the 8 player stuff - but haven't checked compatibility with the colour codes stuff...

For now you'll need to run without that until I get some more time!

C>

Posted: Thu Dec 20, 2007 10:07 am
by ogr8cdd
Ahhh works a treat, and thanks for all the work you do on this

Posted: Thu Dec 20, 2007 11:45 am
by ogr8cdd
yeti_c wrote:
xmaveric wrote:Problems seem to be related to the addition of the [add colour codes] to the page... if you click this, with BoB enabled, it will not let you click any of the linkes (refresh, large map, add colour codes). Then if you refresh the page manually, the bob menu disappears.


Ah yes - I fixed the 8 player stuff - but haven't checked compatibility with the colour codes stuff...

For now you'll need to run without that until I get some more time!

C>


If it helps, it works with one of my conquer man games with Colour codes Game 1391198 3 player Tourney FOG No Cards Adjacent
But not my other Conquer Man Game 1385890
6 player non-tourney Terminator Esc unlimited nonFog

Posted: Thu Dec 20, 2007 12:04 pm
by Stoney229
Frop wrote:I haven't tried 3.0 yet, but just in cause I do run into problems - is there actually an archive of older versions somewhere? Would come in handy if the newest version won't function properly (and I need BOB :P).

That is true. Too bad userrscripts doesn't allow the downloading of former versions as far as I can tell.

Posted: Thu Dec 20, 2007 12:24 pm
by crzyblue
WARNING: the add colour code link DOES NOT work with bob, you will have to disable greasemonkey, leave the game, come back, click remove colour code link, turn greasemonkey back on, then re-enter the game to use bob

Posted: Thu Dec 20, 2007 5:22 pm
by spiesr
There is a stats issue in 4 player games. The stats has has the last four players all on team 3.

Posted: Thu Dec 20, 2007 6:29 pm
by Stoney229
spiesr wrote:There is a stats issue in 4 player games. The stats has has the last four players all on team 3.

I think spiesr is talking about 8 player doubles games. also, stats are not divided into teams for quadruples games.

Posted: Thu Dec 20, 2007 6:48 pm
by RiskTycoon
i was just coming here to see if that had been said....yes the stats for 8 player games are not totaled for each team....it's all lumped together!

Posted: Fri Dec 21, 2007 2:33 pm
by yeti_c
VERSION : 3.0.1

FIXED :

Support for Quadruples & 8 player Doubles.

Support for Colourblind codes.

C.

PS Note - the naming in the data table is not updated on Colourblind click - I could do this if you want me to - if it matters?

Posted: Fri Dec 21, 2007 3:22 pm
by yeti_c
VERSION : 3.0.2

FIXED :

Map Inspect for Teams in Quadruples

C.

Posted: Fri Dec 21, 2007 7:55 pm
by Aerial Attack
If you have BOB (3.02), color codes on, and it's NOT your turn, and you type anything into chat - you have to refresh the page before being able to type anything else. I do not know if you can chat when it IS your turn - will find out.

-- Aerial Attack

Posted: Sat Dec 22, 2007 3:33 am
by yeti_c
Hmmm - seems to work for me...

Can you repro this - and get me the error console log?

And the game number.

Cheers,

C.

Posted: Sat Dec 22, 2007 12:16 pm
by Aerial Attack
Seems to be game specific.

The weird thing is that I have two doodle games going and the one everything works fine. They both have the same settings (except Escalating/Flat) and players (except fireedud/hecter).

Escalating Game #1389268

Flat Rate Game #1389268


EDIT: I just finished my turn in the other game, and the chat window froze. So, maybe it's doodle combined with having a "blank" card. I didn't previously have a blank card on the Flat doodle game.

-- Aerial Attack

Posted: Sun Dec 23, 2007 6:16 am
by yeti_c
I need that error console log...

C.

Posted: Sun Dec 23, 2007 12:04 pm
by Aerial Attack
Sorry, that I didn't think to paste the Error Console log. I think it had something to do with the unassigned or "blank" cards that lack was giving out. BOB probably choked on the empty span.

<span class="card1"></span>

Of course, why did the chat work DURING my turn? card1 could also have been card0 or card2. The games are over now and I can't reproduce the error (lack doesn't give out blank cards any more).

-- Aerial Attack

Posted: Sun Dec 23, 2007 4:56 pm
by yeti_c
Aerial Attack wrote:Sorry, that I didn't think to paste the Error Console log. I think it had something to do with the unassigned or "blank" cards that lack was giving out. BOB probably choked on the empty span.

<span class="card1"></span>

Of course, why did the chat work DURING my turn? card1 could also have been card0 or card2. The games are over now and I can't reproduce the error (lack doesn't give out blank cards any more).

-- Aerial Attack


Hmmm - yeah it would disagree with the lack of country - in fact it would've been the same error for the colour blind - as it was failing to find the country from the array with the RGB appended to the front...

So I reckon now that the blank card bug is fixed - then this is fixed!

C.

Posted: Mon Dec 24, 2007 11:06 am
by fireheart
I'm playing Age of Merchants, 4 person game #1399908. When I try to play I get this message between each step of my turn, including loading the map originally.

Image[/img]

When turn off greasemonkey it works fine. When I turn greesemoneky back on and reload the game I get this message again. It only happens on this map. I'm playing 5 other games and it seems fine on the other maps I'm playing. This started happening a day or so ago. Oh and by the way pressing continue allows the game to load and play the next step, then I get this message again.

Posted: Mon Dec 24, 2007 11:09 am
by hecter
You may have a slow computer, and it can't handle the xml file. Try hitting continue, and if that REALLY messes it up, then don't use greasemonkey on that map. Also, make sure you have the latest version installed.

Posted: Mon Dec 24, 2007 11:22 am
by fireheart
It is not a huge deal on this game because it is a fog of war game, so BOB does not really do me much good except to tell me how many armies I will get deployed next turn.

I'm not running an extremely slow computer, and the games are working well otherwise. It is only greasemonkey that is the problem it is only happening to me on this map. I was wondering if anyone else playing this map was getting the same issue and if they had a fix for it.

I re-downloaded the greasemonkey script just now and got the same results.

Posted: Mon Dec 24, 2007 11:33 am
by xmaveric
Any chance for Battle Royal support? Some things that would be nice for Battle Royale:

-Sort players by alive/dead putting all alive players at the top of the list, making it easy to map inspect them.
-Map inspect seems to only work for the top few players, after that, it is flakey. Mousing over a terretory returns random results.

http://www.conquerclub.com/game.php?game=1000001

Posted: Mon Dec 24, 2007 1:30 pm
by Herakilla
fireheart, go into another map and turn off extended text map then go back, it should work MUCH better

Clock Fix

Posted: Mon Dec 24, 2007 2:29 pm
by mfontolan
yeti_c,

The following code is a "quick" and "not well test" clock fix.
Please let me know about your tests.
PS1: The "ctag" is some marks that I create just for you location on the code;
PS2: There is more to be done...

mfontolan

Lets do it again... :-)

ctag1 - Display Clock Formated (Remaing timing and deadline hour)

Code: Select all

// ctag1

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;
}

function countDown()
{
   var clock = document.getElementById('clock');
   
        --seconds1;
        if(seconds1 < 0 ){
            --minutes1;
            if( minutes1 < 0 ){
                --hours1;
                if( hours1 < 0 ){
                    hours1 = 0;
                    if( minutes1 <= 0 && seconds1 <= 0 ){
                        clearInterval(clockInterval);//No more counting down
                        //No weird negative #s
                        minutes1= 0;
                        seconds1 = 0;
                        return;
                    }
                }
                minutes1 = 59;
            }
            seconds1 = 59;
        }

        var currentTime = new Date();
        var hours = currentTime.getHours();
        var minutes = currentTime.getMinutes();
        var day = ' @ ';
        var ampm = '';

        minutes = (minutes + minutes1);
        if (minutes >= 60) {
                hours = hours + 1;
                minutes = minutes - 60;
            }

        hours = (hours + hours1);
        if (hours >= 24)
            {
                day = "tomorrow @ ";
                hours = hours - 24
            }
        else
        {
                day = "today @ ";
        }
            if (clockFormat == "am/pm") {
                ampm = " am";
                if (hours >= 12)
                {
                    ampm = " pm";
                    hours = hours - 12;
                }
                if (hours == 0) hours = 12;
            }
       
        if (clockFormat !="Off") {
            clock.innerHTML =  zslash(hours1, 2) + 'hrs ' + zslash(minutes1, 2) + 'min ' + zslash(seconds1, 2) + 'sec [' + day + "<b>" + zslash(hours, 2) + ":" + zslash(minutes, 2) + ampm + "</b>]"
        }
        else
        {
            clock.innerHTML = ""
        }
}


ctag2 - Create a var to store clockFormat

Code: Select all

var timeWIDTH = 18;
var clock;
var clockInterval;
// ctag2
var clockFormat;
var hours1;
var minutes1;
var seconds1;


ctag3 - Start Clock

Code: Select all

// ctag3
//    ---- Start Clock ----
    tmp = rightside.innerHTML.indexOf(timeLocStr);//to make sure there is a clock.
    if( tmp > -1 ){
        timeLoc = tmp + timeLocStr.length ;
        tmp = rightside.innerHTML;
        timeStr = tmp.substring(timeLoc,timeLoc + timeWIDTH);
        time = timeStr.split(/\n|hrs\n|min\n|sec/);

        var currentTime = new Date();
        var hours = currentTime.getHours();
        var minutes = currentTime.getMinutes();
        var day = ' @ ';
        var ampm = ' ';
   clockFormat = OPTIONS['24hourClockFormat'];         
         
        if (time[1][0] == '0')
        {
            time[1] = time[1][1];
        }

        hours1 = parseInt(time[1]);
        minutes1 = parseInt(time[2]);
        seconds1 = parseInt(time[3]);

        clockInterval = window.setInterval(countDown,1000);
    }


ctag4 - reinitClock

Code: Select all

// ctag4
function reinitClock()
{
   var response = unsafeWindow.request.responseText.split("&");

        timeStr = response[2];
        time = timeStr.split(/hrs|min|sec/);

        if (time[0][0] == '0')
        {
            time[0] = time[0][1];
        }
        hours1 = parseInt(time[0]);
          minutes1 = parseInt(time[1]);
        seconds1 = parseInt(time[2]);
}


ctag5 - Change Clock Format

Code: Select all

// ctag5
      function toggle24HourClock()
      {
         if (OPTIONS["24hourClockFormat"] == "Off")
         {
            OPTIONS["24hourClockFormat"] = "am/pm";
         }
         else if (OPTIONS["24hourClockFormat"] == "am/pm")
         {
            OPTIONS["24hourClockFormat"] = "24h";
         }
         else
         {
            OPTIONS["24hourClockFormat"] = "Off";
         }
       
         serialize("OPTIONS",  OPTIONS);
         this.innerHTML = "Clock Format: <b> " + OPTIONS["24hourClockFormat"] + '</b>';
         clockFormat = myOptions["24hourClockFormat"];

      }

Posted: Mon Dec 24, 2007 4:08 pm
by fireheart
Herakilla wrote:fireheart, go into another map and turn off extended text map then go back, it should work MUCH better


Thanks for the idea, but it did not change anything.

Posted: Thu Dec 27, 2007 12:04 pm
by yeti_c
Hi Fireheart,

This popup appears when the script is taking some time...

Press continue until the script is fully loaded and you should be OK...

C.

Posted: Thu Dec 27, 2007 12:10 pm
by lord voldemort
im not sure if this is ajax bob or not.
but when im playing speed games and im typing in game chat everytime i type the letter e iit comes up with the warning to end attack etc. is this supposed to happen. cause hell annoying, it cost poo the game