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.
User avatar
greenoaks
Posts: 9977
Joined: Mon Nov 12, 2007 12:47 am

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

Post by greenoaks »

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 ](*,) ](*,) ](*,)
Dako
Posts: 3987
Joined: Sun Aug 26, 2007 9:07 am
Gender: Male
Location: St. Petersburg, Russia
Contact:

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

Post by Dako »

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
Pirlo
Posts: 1856
Joined: Wed May 19, 2010 3:48 pm
Gender: Male

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

Post by Pirlo »

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
greenoaks
Posts: 9977
Joined: Mon Nov 12, 2007 12:47 am

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

Post by greenoaks »

i had about 220 games.
User avatar
GreecePwns
Posts: 2656
Joined: Tue Feb 20, 2007 7:19 pm
Gender: Male
Location: Lawn Guy Lint

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

Post by GreecePwns »

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.
sherkaner
Posts: 1595
Joined: Thu May 03, 2007 3:21 am
Gender: Male
Location: Zwolle

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

Post by sherkaner »

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).
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)

Post by MeanestBossEver »

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!!
Dako
Posts: 3987
Joined: Sun Aug 26, 2007 9:07 am
Gender: Male
Location: St. Petersburg, Russia
Contact:

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

Post by Dako »

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
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)

Post by MeanestBossEver »

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!!
Dako
Posts: 3987
Joined: Sun Aug 26, 2007 9:07 am
Gender: Male
Location: St. Petersburg, Russia
Contact:

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

Post by Dako »

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
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)

Post by MeanestBossEver »

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!!
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)

Post by MeanestBossEver »

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!!
User avatar
Teflon Kris
Posts: 4236
Joined: Sun Jul 13, 2008 4:39 pm
Gender: Male
Location: Lancashire, United Kingdom

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

Post by Teflon Kris »

Whatever was wrong for me previously is now fixed after a re-install :)
Dako
Posts: 3987
Joined: Sun Aug 26, 2007 9:07 am
Gender: Male
Location: St. Petersburg, Russia
Contact:

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

Post by Dako »

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
greenoaks
Posts: 9977
Joined: Mon Nov 12, 2007 12:47 am

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

Post by greenoaks »

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.
Dako
Posts: 3987
Joined: Sun Aug 26, 2007 9:07 am
Gender: Male
Location: St. Petersburg, Russia
Contact:

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

Post by Dako »

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
greenoaks
Posts: 9977
Joined: Mon Nov 12, 2007 12:47 am

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

Post by greenoaks »

all i really need is the finalised games so anything that speeds up the load time would be great
Dako
Posts: 3987
Joined: Sun Aug 26, 2007 9:07 am
Gender: Male
Location: St. Petersburg, Russia
Contact:

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

Post by Dako »

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
Lindax
Tournament Director
Tournament Director
Posts: 11216
Joined: Sun Jan 20, 2008 12:58 pm
Location: Paradise Rediscovered

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

Post by Lindax »

Hi Dako,

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

Lx
"Winning Solves Everything" - Graeko
Dako
Posts: 3987
Joined: Sun Aug 26, 2007 9:07 am
Gender: Male
Location: St. Petersburg, Russia
Contact:

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

Post by Dako »

Please tell me the names that have swapped and game numbers if you can. Thanks.
Image
User avatar
Lindax
Tournament Director
Tournament Director
Posts: 11216
Joined: Sun Jan 20, 2008 12:58 pm
Location: Paradise Rediscovered

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

Post by Lindax »

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
Lindax
Tournament Director
Tournament Director
Posts: 11216
Joined: Sun Jan 20, 2008 12:58 pm
Location: Paradise Rediscovered

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

Post by Lindax »

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
WILLIAMS5232
Posts: 2232
Joined: Sun Aug 16, 2009 4:22 pm
Gender: Male
Location: Biloxi, Ms

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

Post by WILLIAMS5232 »

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
Dako
Posts: 3987
Joined: Sun Aug 26, 2007 9:07 am
Gender: Male
Location: St. Petersburg, Russia
Contact:

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

Post by Dako »

Fixed it. Please manually update the script and everything will be ok. Thanks for the report!
Image
User avatar
WILLIAMS5232
Posts: 2232
Joined: Sun Aug 16, 2009 4:22 pm
Gender: Male
Location: Biloxi, Ms

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

Post by WILLIAMS5232 »

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
Post Reply

Return to “Tool Archives”