Conquer Club

GM Script: Watch this game - Version 1.4.4

Archival storage to keep things organized and uncluttered. Can't find what you need? Search for old topics here.

Moderator: Tech Team

Forum rules
Please read the Community Guidelines before posting.

Re: Watch this game - 1.4.2 (2010-12-05)

Postby greenoaks on Tue Aug 02, 2011 11:15 am

almost all games are watched from game finder
almost all games are unwatched from the WTG tab

the last time this happened i unwatched all games. all it did was get rid of the games it was then watching, stuff i'd finished with. i still had to go through thousands of games to re-watch the current stuff.

why do i have to waste another week of my time going through my tournaments to reestablish the list of watched games just so this can happen again next week ](*,) ](*,) ](*,)
User avatar
Sergeant greenoaks
 
Posts: 9977
Joined: Mon Nov 12, 2007 12:47 am

Re: Watch this game - 1.4.2 (2010-12-05)

Postby Dako on Tue Aug 02, 2011 11:42 am

Well if you unwatch all games from menu it just purges the whole list.

If you still have the problem (like you watched tons of games) and then you unwatched can you please send me your watched game setting string? Go to about:config and send me greasemonkey.scriptvals.http://userscripts.org/Conquer Club - Watch This Game.games

Also, if you remember, how many games did you have on your watched tab last time this magical disappearance happened?
Image
User avatar
Colonel Dako
 
Posts: 3987
Joined: Sun Aug 26, 2007 9:07 am
Location: St. Petersburg, Russia

Re: Watch this game - 1.4.2 (2010-12-05)

Postby Pirlo on Tue Aug 02, 2011 12:18 pm

I don't have problems with the script... it's very cool for clan games and constant stalking.... also, when someone asks you to sit for him, this script makes your life easier.

thanks Dako.
User avatar
Captain Pirlo
 
Posts: 1839
Joined: Wed May 19, 2010 3:48 pm
252

Re: Watch this game - 1.4.2 (2010-12-05)

Postby greenoaks on Tue Aug 02, 2011 8:10 pm

i had about 220 games.
User avatar
Sergeant greenoaks
 
Posts: 9977
Joined: Mon Nov 12, 2007 12:47 am

Re: Watch this game - 1.4.2 (2010-12-05)

Postby GreecePwns on Mon Aug 08, 2011 12:06 am

Why, when installing this on Google Chrome, does the extension ask for "your data on all websites?"
Chariot of Fire wrote:As for GreecePwns.....yeah, what? A massive debt. Get a job you slacker.

Viceroy wrote:[The Biblical creation story] was written in a time when there was no way to confirm this fact and is in fact a statement of the facts.
User avatar
Corporal GreecePwns
 
Posts: 2656
Joined: Tue Feb 20, 2007 7:19 pm
Location: Lawn Guy Lint

Re: Watch this game - 1.4.2 (2010-12-05)

Postby sherkaner on Mon Aug 08, 2011 9:59 am

GreecePwns wrote:Why, when installing this on Google Chrome, does the extension ask for "your data on all websites?"

Implementation detail, chrome uses @match to identify on which websites it should run, and greasemonkey uses @include. This means that Chrome assumes it is for all sites if the @match is missing, though it works only for the sites set through @include.
I now use both, might switch to @match only (since greasemonkey can read them too since the last version).
Colonel sherkaner
 
Posts: 1595
Joined: Thu May 03, 2007 3:21 am
Location: Zwolle

Re: Watch this game - 1.4.2 (2010-12-05)

Postby MeanestBossEver on Fri Sep 09, 2011 12:01 pm

I'm getting the endless "Processing watched games" spinner.

Using WTG 1.4.2 w/ Firefox 6.0.2 and Greasemonkey 0.9.10. I am using other CC plugins but I get the same error when they are disabled.

Here are my current applicable preference values:
greasemonkey.scriptvals.http://userscripts.org/Conquer Club - Watch This Game.games;9687050
greasemonkey.scriptvals.http://userscripts.org/Conquer Club - Watch This Game.lastUpdate;1315587563771
greasemonkey.scriptvals.http://userscripts.org/Conquer Club - Watch This Game.options;({profile_link:true, reverse_order:true, waiting_games:false, sort_by:"time"})
greasemonkey.scriptvals.http://userscripts.org/Conquer Club - Watch This Game.updateAvailable;false
You can tell if a cow is suffering from mad cow disease from how they sound:
normal cow wrote:moo.

mad cow wrote:MOO!!

I say MOO!!
Major MeanestBossEver
 
Posts: 111
Joined: Thu May 29, 2008 11:00 pm
Location: Behind You...Right Now

Re: Watch this game - 1.4.2 (2010-12-05)

Postby Dako on Fri Sep 09, 2011 3:18 pm

What do you see when you visit the link http://www.conquerclub.com/api.php?mode ... gn=9687050 ?

I tried to run WTG with your settings on FF 6 but could not reproduce an error. Anything of interest in script error console (ctrl+shift+j)?
Image
User avatar
Colonel Dako
 
Posts: 3987
Joined: Sun Aug 26, 2007 9:07 am
Location: St. Petersburg, Russia

Re: Watch this game - 1.4.2 (2010-12-05)

Postby MeanestBossEver on Fri Sep 09, 2011 3:24 pm

Got something hopefully useful with the script error console:

"Error: Greasemonkey access violation: unsafeWindow cannot call GM_getValue."

Here's the source of that link:

<api>
<page>1 of 1</page>
<games total="1">
<game>
<game_number>9687050</game_number>
<game_state>A</game_state>
<tournament>2011 [Aug] A Fistful of Sixes vs Nemesis - AFOS Home Batch 1</tournament>

<private>Y</private>
<speed_game>N</speed_game>
<map>Hive</map>
<game_type>T</game_type>
<initial_troops>E</initial_troops>
<play_order>S</play_order>

<bonus_cards>1</bonus_cards>
<fortifications>M</fortifications>
<war_fog>Y</war_fog>
<round>2</round>
<time_remaining>21:14:45</time_remaining>
<chat></chat>

<players>
<player state="Waiting">210762</player>
<player state="Waiting">397155</player>
<player state="Waiting">152549</player>
<player state="Ready">313158</player>
<player state="Waiting">426686</player>

<player state="Waiting">79386</player>
</players>
<events />
</game>
</games>
</api>
You can tell if a cow is suffering from mad cow disease from how they sound:
normal cow wrote:moo.

mad cow wrote:MOO!!

I say MOO!!
Major MeanestBossEver
 
Posts: 111
Joined: Thu May 29, 2008 11:00 pm
Location: Behind You...Right Now

Re: Watch this game - 1.4.2 (2010-12-05)

Postby Dako on Fri Sep 09, 2011 3:43 pm

So the link works, that is good. Does it show the line of the error?

Also I run GS 0.9.11 and suggest you update yours just in case. Also my script doesn't use unsafeWindow so it is very strange you see this message. Are you sure it is related to WTG? What scripts do you have enabled?
Image
User avatar
Colonel Dako
 
Posts: 3987
Joined: Sun Aug 26, 2007 9:07 am
Location: St. Petersburg, Russia

Re: Watch this game - 1.4.2 (2010-12-05)

Postby MeanestBossEver on Fri Sep 09, 2011 3:54 pm

Upgrading to 0.9.11 fixed the problem.

Bizarrely, I'm now getting the error message (as a popup alert): "window.initLightbox is not a function" but it doesn't seem to impact the functionality.
You can tell if a cow is suffering from mad cow disease from how they sound:
normal cow wrote:moo.

mad cow wrote:MOO!!

I say MOO!!
Major MeanestBossEver
 
Posts: 111
Joined: Thu May 29, 2008 11:00 pm
Location: Behind You...Right Now

Re: Watch this game - 1.4.2 (2010-12-05)

Postby MeanestBossEver on Fri Sep 09, 2011 4:08 pm

OK -- figured it out. I was looking for conflicts in other GreaseMonkey scripts. It was actually the firebug console -- no idea why.

Even with that disabled, I'm still getting the "window.initLightbox is not a function" but it doesn't seem to impact the functionality so I don't really care.
You can tell if a cow is suffering from mad cow disease from how they sound:
normal cow wrote:moo.

mad cow wrote:MOO!!

I say MOO!!
Major MeanestBossEver
 
Posts: 111
Joined: Thu May 29, 2008 11:00 pm
Location: Behind You...Right Now

Re: Watch this game - 1.4.2 (2010-12-05)

Postby Teflon Kris on Mon Sep 12, 2011 5:19 pm

Whatever was wrong for me previously is now fixed after a re-install :)
User avatar
Sergeant 1st Class Teflon Kris
 
Posts: 4236
Joined: Sun Jul 13, 2008 4:39 pm
Location: Lancashire, United Kingdom

Re: Watch this game - 1.4.2 (2010-12-05)

Postby Dako on Mon Sep 12, 2011 5:50 pm

MeanestBossEver wrote:Upgrading to 0.9.11 fixed the problem.

Bizarrely, I'm now getting the error message (as a popup alert): "window.initLightbox is not a function" but it doesn't seem to impact the functionality.

Ah. admins have renamed it to window.initLightbox. I will change it later - it is the function that starts image viewer when you click in map image. Firebug console is a debugger tool with sensitive error handling - it may easily have blocked the script on some minor warning.

DJ Teflon wrote:Whatever was wrong for me previously is now fixed after a re-install :)

Happy to hear that!
Image
User avatar
Colonel Dako
 
Posts: 3987
Joined: Sun Aug 26, 2007 9:07 am
Location: St. Petersburg, Russia

Re: Watch this game - 1.4.2 (2010-12-05)

Postby greenoaks on Mon Sep 12, 2011 10:15 pm

my WTG takes a long time to load because of the large number of games being watched. i really couldn't care less about most of them as it is only when the game finishes that i need to know about them.

would it be possible to have it load like a Join A Game page does where only the first 50 games show and there are buttons at the bottom of the page to go to page 2, 3, 4 etc.
User avatar
Sergeant greenoaks
 
Posts: 9977
Joined: Mon Nov 12, 2007 12:47 am

Re: Watch this game - 1.4.2 (2010-12-05)

Postby Dako on Tue Sep 13, 2011 8:05 am

greenoaks wrote:my WTG takes a long time to load because of the large number of games being watched. i really couldn't care less about most of them as it is only when the game finishes that i need to know about them.

would it be possible to have it load like a Join A Game page does where only the first 50 games show and there are buttons at the bottom of the page to go to page 2, 3, 4 etc.

That would be a problem because I need to sort them to know which part of 120 games to show you. I plan to optimize the script on this weekend and it should provide reasonable speed up. Stay tuned.
Image
User avatar
Colonel Dako
 
Posts: 3987
Joined: Sun Aug 26, 2007 9:07 am
Location: St. Petersburg, Russia

Re: Watch this game - 1.4.2 (2010-12-05)

Postby greenoaks on Tue Sep 13, 2011 9:45 am

all i really need is the finalised games so anything that speeds up the load time would be great
User avatar
Sergeant greenoaks
 
Posts: 9977
Joined: Mon Nov 12, 2007 12:47 am

Re: Watch this game - 1.4.2 (2010-12-05)

Postby Dako on Sat Sep 17, 2011 11:37 am

Hello everyone. New version has been released with some fixes and new features.

Version 1.4.3
  • Fixed - "watch all player's games" link was not in place
  • Fixed - Now script makes 3 requests to the server instead of dozens. This will greatly speed-up tab loading time. Try it yourself!


Enjoy - Install link
Image
User avatar
Colonel Dako
 
Posts: 3987
Joined: Sun Aug 26, 2007 9:07 am
Location: St. Petersburg, Russia

Re: Watch this game - 1.4.3 (2011-09-17)

Postby Lindax on Sat Sep 17, 2011 12:23 pm

Hi Dako,

Love this script. Unfortunately it shows the wrong player names after I installed the latest update....

Lx
"Winning Solves Everything" - Graeko
User avatar
Major Lindax
Tournament Director
Tournament Director
 
Posts: 10975
Joined: Sun Jan 20, 2008 12:58 pm
Location: Paradise Rediscovered

Re: Watch this game - 1.4.3 (2011-09-17)

Postby Dako on Sat Sep 17, 2011 12:37 pm

Please tell me the names that have swapped and game numbers if you can. Thanks.
Image
User avatar
Colonel Dako
 
Posts: 3987
Joined: Sun Aug 26, 2007 9:07 am
Location: St. Petersburg, Russia

Re: Watch this game - 1.4.3 (2011-09-17)

Postby Lindax on Sat Sep 17, 2011 12:53 pm

Dako wrote:Please tell me the names that have swapped and game numbers if you can. Thanks.


All of them? That's going to take a while to figure out. I'll have to get back to you later today.

Lx
"Winning Solves Everything" - Graeko
User avatar
Major Lindax
Tournament Director
Tournament Director
 
Posts: 10975
Joined: Sun Jan 20, 2008 12:58 pm
Location: Paradise Rediscovered

Re: Watch this game - 1.4.3 (2011-09-17)

Postby Lindax on Sat Sep 17, 2011 1:43 pm

Lindax wrote:
Dako wrote:Please tell me the names that have swapped and game numbers if you can. Thanks.


All of them? That's going to take a while to figure out. I'll have to get back to you later today.

Lx


Here are some, maybe that helps for now. I'll get the rest later (if still needed):

7 pascalleke & dragon dor 9733512
9733513
8 canona85 & benga 9733514
reptile shows for pascalleke, danryan shows for dragon dor, danfrank shows for benga, GallantPellham shows for canona85

----

13 reptile & bfunny27 9733523
9733525
14 downfall & Lindax 9733526
jigger1986 shows for reptile, benga shows for bfunny27, Krissan shows for Lindax, Ryno99 shows for downfall

----

Edit: aha, it only happens if I fill in the tournament name in the window of WTG Menu. If I find the games through game finder and click "Watch Game", they come out correct!

Lx
"Winning Solves Everything" - Graeko
User avatar
Major Lindax
Tournament Director
Tournament Director
 
Posts: 10975
Joined: Sun Jan 20, 2008 12:58 pm
Location: Paradise Rediscovered

Re: Watch this game - 1.4.3 (2011-09-17)

Postby WILLIAMS5232 on Sat Sep 17, 2011 1:51 pm

Lindax wrote:Hi Dako,

Love this script. Unfortunately it shows the wrong player names after I installed the latest update....

Lx


it has affected mine in that way too.

if you like i can give you some game numbers and names.

and thanks, this is a very usefull tool for running tournaments by the way. i probably wouldn't do them without it....

just so you know :-D
Image
User avatar
Major WILLIAMS5232
 
Posts: 1838
Joined: Sun Aug 16, 2009 4:22 pm
Location: houston texas

Re: Watch this game - 1.4.3 (2011-09-17)

Postby Dako on Sat Sep 17, 2011 1:55 pm

Fixed it. Please manually update the script and everything will be ok. Thanks for the report!
Image
User avatar
Colonel Dako
 
Posts: 3987
Joined: Sun Aug 26, 2007 9:07 am
Location: St. Petersburg, Russia

Re: Watch this game - 1.4.3 (2011-09-17)

Postby WILLIAMS5232 on Sat Sep 17, 2011 2:06 pm

Dako wrote:Fixed it. Please manually update the script and everything will be ok. Thanks for the report!


everything looks good now. thanks. =D>
Image
User avatar
Major WILLIAMS5232
 
Posts: 1838
Joined: Sun Aug 16, 2009 4:22 pm
Location: houston texas

PreviousNext

Return to Tool Archives

Who is online

Users browsing this forum: No registered users