Page 4 of 4

Posted: Tue Sep 19, 2006 10:01 pm
by Tr0y
Yea, sorry kbchilla. :?
I'm going to update when I can.

I want to talk to lack and figure out when the log update will be released.

Posted: Wed Sep 20, 2006 2:37 am
by mingotta
I'd die for an update too!

*** GreaseMonkey -- Patch For Recent Site Updates ***

Posted: Wed Sep 20, 2006 2:56 am
by bmw
Just posted this in a different thread; probably more useful here.

---

PREFACE: Before you try anything in this post, you should make sure Tr0y hasn't made an updated script available first. That would make much more sense to use.

---

I too can't live without Tr0y's excellent script, so I went to see what needed changed to get it working. I'm way overdue for sleep, but I was desperate. ;-)

Since I don't want to step on Tr0y's toes, I'm not posting a fully-updated script, but rather minor instructions for patching. Use at your own risk, and hopefully this will be useful to Tr0y as well. (Tr0y: see note at bottom.)

- This assumes you already have GreaseMonkey and Tr0y's script installed.
- In FireFox, go to Tools > Manage User Scripts...
- Click on the script named "Conquer Club"
- Click "Edit"; this should open the script in a text editor. Tread carefully.

- Find a line that says:

Code: Select all

tmp = tmp.split(/class="player[^d]">|<\/a>/m);

Change the single letter "a" near the end of the line to "span" instead (without the quotes).

- A couple of lines down you'll find a line that starts with:

Code: Select all

for( i = 1; i < tmp.length; i+=2 )

Change the numeral 1 near the front of the line to a 2 instead.

- SAVE THE TEXT FILE in-place.

- Go back to FireFox, hit reload, all should be well.

Disclaimer: I did this under OS X with my favorite text editor; your mileage may vary under Windows.

---

Tr0y: it's just mismatching in the username-parsing code, creating Player objects with dict keys that don't match user names, so the log parsing aborts when it tries to set an attribute on a Player object that doesn't exist.

Posted: Wed Sep 20, 2006 2:58 am
by AK_iceman
mingotta wrote:I'd die for an update too!

I would be willing to live with that. :lol:

Posted: Wed Sep 20, 2006 3:15 am
by gavin_sidhu
Are you giong to incorporate Rob Roys game sorter? if you are can you get it off the chat page plz.

Posted: Wed Sep 20, 2006 4:37 am
by zip_disk
bmw's fix seems to have partially fixed the problem for me. :D Rob Roy's game sorter seems to work too. Don't know if the dice analyzer works now but we'll see.

Posted: Wed Sep 20, 2006 4:42 am
by Tr0y

Posted: Wed Sep 20, 2006 4:49 am
by zip_disk
Ahh, that's good. I took a closer look at the games and it seems that while bmw's fix works for new games, when players get eliminated the script stop working again.

Posted: Wed Sep 20, 2006 4:55 am
by gavin_sidhu
zip_disk wrote:bmw's fix seems to have partially fixed the problem for me. :D Rob Roy's game sorter seems to work too. Don't know if the dice analyzer works now but we'll see.
The game sorter works but it appears on the Live Chat page which is kinda annoying.

Posted: Wed Sep 20, 2006 6:41 am
by Tr0y
You can fix that by managing your scripts and
adding http://*conquerclub.com/player.php?mode=gabbly to your exclusions.