Conquer Club

GM Script: Watch this game - Version 1.4.4

The home of third-party tools and utilities that can enhance your Conquer Club experience.

Moderator: Tech Team

Forum rules
Please read the Community Guidelines before posting.

Re: Watch this game - 1.3.2

Postby amazzony on Wed Apr 21, 2010 2:24 am

Dako wrote:
amazzony wrote:Sorry if it has been asked before but after I installed new version all my watched games went unwatched so I have 0 watched now (had like a... bunch before :P). Is it supposed to happen or did I screw up something?

Cool plugin, btw! Love it when running tournaments!

Ummm, no, nothing should have been lost.

Try this to recover them - go to about:config and filter by "watch" keyword. I think I capitalized the name of the script - it might have reset the value of the games. See if you have different values for "games" property. You can copy and paste old value into new value. Hope that helps.


Thanks for it but I think it'll be just easier to look up the games and start watching them again :D

Night Strike wrote:EDIT: The ability to watch games that are still recruiting players, especially for tournaments, would be beneficial.


You can watch them (at least with previous version you could).
"Thou shalt accept thy dice rolls as the will of the Gods" (Church of Gaming)
"amazzony is a beast" (Woodruff)
User avatar
Lieutenant amazzony
 
Posts: 10406
Joined: Tue Nov 14, 2006 12:58 pm

Re: Watch this game - 1.3.2

Postby Dako on Wed Apr 21, 2010 2:37 am

Night Strike wrote:The ability to watch games that are still recruiting players, especially for tournaments, would be beneficial.

amazzony wrote:You can watch them (at least with previous version you could).


You can watch them manually, but they are not being added when you use the input field. CC has weird API that doesn't return empty slots for the game - once that is fixed I will add an option to choose whether to add waiting games or not.
Image
User avatar
Colonel Dako
 
Posts: 3987
Joined: Sun Aug 26, 2007 9:07 am
Location: St. Petersburg, Russia

Re: Watch this game - 1.3.2

Postby amazzony on Wed Apr 21, 2010 2:46 am

Dako wrote:
Night Strike wrote:The ability to watch games that are still recruiting players, especially for tournaments, would be beneficial.

amazzony wrote:You can watch them (at least with previous version you could).


You can watch them manually, but they are not being added when you use the input field. CC has weird API that doesn't return empty slots for the game - once that is fixed I will add an option to choose whether to add waiting games or not.


Aah, makes sense, I'm one step behind understanding this tool :oops:
"Thou shalt accept thy dice rolls as the will of the Gods" (Church of Gaming)
"amazzony is a beast" (Woodruff)
User avatar
Lieutenant amazzony
 
Posts: 10406
Joined: Tue Nov 14, 2006 12:58 pm

Re: Watch this game - 1.3.2

Postby Dako on Wed Apr 21, 2010 8:30 am

This week is definitely easy at work for me :-).

New version is out with some small fixes
Link - http://userscripts.org/scripts/show/58929

Version 1.3.3:
  • Added - option to watch waiting games
  • Fixed - script was not loading tab when you were watching game that has recently expired
  • Fixed - script was not loading tab when there were no games being watched
Image
User avatar
Colonel Dako
 
Posts: 3987
Joined: Sun Aug 26, 2007 9:07 am
Location: St. Petersburg, Russia

Re: Watch this game - 1.3.3

Postby amazzony on Thu Apr 22, 2010 11:25 am

I have a weird problem which is basically that the page where I see all the watched games, in 3 games - instead of wrexam I can see mjs94 in the game. I've added screenshots of one of the games to make it more understandable.

Click image to enlarge.
image


Click image to enlarge.
image
"Thou shalt accept thy dice rolls as the will of the Gods" (Church of Gaming)
"amazzony is a beast" (Woodruff)
User avatar
Lieutenant amazzony
 
Posts: 10406
Joined: Tue Nov 14, 2006 12:58 pm

Re: Watch this game - 1.3.3

Postby Dako on Thu Apr 22, 2010 1:26 pm

amazzony wrote:I have a weird problem which is basically that the page where I see all the watched games, in 3 games - instead of wrexam I can see mjs94 in the game. I've added screenshots of one of the games to make it more understandable.

Well, I cannot reproduce this bug but I can understand why it might happen (but it seems impossible to me anyway).

Their user id #'s are 42690 and 4269. Maybe, maybe, CC API somehow messed the request and returned the wrong user.

Can you please specify the version of: operating system, browser, Greasemonkey, WTG script? I will try to find the same settings and look at these games.

Refreshing the browser and restarting didn't help, did it?

EDIT: I understood how that happened (while I was taking shower, lol) - I will fix it tomorrow or on Saturday. It's a rare to spot bug - thanks for posting it!
Image
User avatar
Colonel Dako
 
Posts: 3987
Joined: Sun Aug 26, 2007 9:07 am
Location: St. Petersburg, Russia

Re: Watch this game - 1.3.3

Postby Dako on Fri Apr 23, 2010 6:58 am

I have a weird problem which is basically that the page where I see all the watched games, in 3 games - instead of wrexam I can see mjs94 in the game. I've added screenshots of one of the games to make it more understandable.

Try to install the new version - it should be fixed now.

http://userscripts.org/scripts/show/58929
Image
User avatar
Colonel Dako
 
Posts: 3987
Joined: Sun Aug 26, 2007 9:07 am
Location: St. Petersburg, Russia

Re: Watch this game - 1.3.3

Postby amazzony on Sun Apr 25, 2010 11:45 am

Sorry about not getting back before, didn't have time. Anyways, seems fixed now, thanks! =D>
"Thou shalt accept thy dice rolls as the will of the Gods" (Church of Gaming)
"amazzony is a beast" (Woodruff)
User avatar
Lieutenant amazzony
 
Posts: 10406
Joined: Tue Nov 14, 2006 12:58 pm

Re: Watch this game - 1.3.3

Postby Ace Rimmer on Mon Apr 26, 2010 11:25 am

I haven't seen it mentioned, but freemiums show up as premium in watched games. I think you can fix that though, since it works in Game Link.

Jake
User avatar
Lieutenant Ace Rimmer
 
Posts: 1911
Joined: Mon Dec 01, 2008 1:22 pm

Re: Watch this game - 1.3.3

Postby Foxglove on Mon Apr 26, 2010 11:29 am

jakewilliams wrote:I haven't seen it mentioned, but freemiums show up as premium in watched games. I think you can fix that though, since it works in Game Link.

Jake


It works properly in Game Link because I don't use the API calls - I just suck the info I need out of the pages, vampire like. Dako most correctly switched his code to use the CC API, but I believe it doesn't return all of the necessary information.
User avatar
Brigadier Foxglove
 
Posts: 1308
Joined: Sun Dec 16, 2007 1:05 pm

Re: Watch this game - 1.3.3

Postby Dako on Mon Apr 26, 2010 2:09 pm

Foxglove wrote:
jakewilliams wrote:I haven't seen it mentioned, but freemiums show up as premium in watched games. I think you can fix that though, since it works in Game Link.

Jake


It works properly in Game Link because I don't use the API calls - I just suck the info I need out of the pages, vampire like. Dako most correctly switched his code to use the CC API, but I believe it doesn't return all of the necessary information.

What she said. Known issue - waiting for lack to fix CC API.
Image
User avatar
Colonel Dako
 
Posts: 3987
Joined: Sun Aug 26, 2007 9:07 am
Location: St. Petersburg, Russia

Re: Watch this game - 1.3.3

Postby lordnex on Thu Apr 29, 2010 12:27 pm

Dako, can you pleeease make "Are you sure?" dialog on the "Unwatch all games" feature... it's so frustrating when clicked by mistake :(


otherwise.. great script. brilliant idea.. so needed :)
Image
User avatar
Major lordnex
 
Posts: 167
Joined: Sun Dec 14, 2008 10:21 am
Location: Belgrade, Serbia

Re: Watch this game - 1.3.3

Postby Night Strike on Wed May 05, 2010 10:19 pm

It would be beneficial if the games were ordered by number or even by a custom order.
Image
User avatar
Major Night Strike
 
Posts: 8512
Joined: Wed Apr 18, 2007 2:52 pm

Re: Watch this game - 1.3.3

Postby Dako on Thu May 06, 2010 6:42 am

lordnex wrote:Dako, can you pleeease make "Are you sure?" dialog on the "Unwatch all games" feature... it's so frustrating when clicked by mistake :(


otherwise.. great script. brilliant idea.. so needed :)


Sure, no problems, will do in next release.

Night Strike wrote:It would be beneficial if the games were ordered by number or even by a custom order.

They are ordered by the "Remaining time" either ascending or descending (depends on your option in the script menu).
Image
User avatar
Colonel Dako
 
Posts: 3987
Joined: Sun Aug 26, 2007 9:07 am
Location: St. Petersburg, Russia

Re: Watch this game - 1.3.3

Postby Chuuuuck on Mon May 17, 2010 2:22 pm

I almost feel like I am just being needy for asking. But is it possible to make it where you can click on "watch game" from just a game link and not ever actually going to the game.

I am sure you use it a lot like I do where we watch clan games. So it would be nice to just go down a forum post where all of the games are and be able to click watch game from the links without going into each individual game. I would think (but certainly do not know) this could be accomplished with the Game link add-on in some way. Thanks again Dako.
Captain Chuuuuck
 
Posts: 1298
Joined: Thu May 31, 2007 11:09 am

Re: Watch this game - 1.3.3

Postby Dako on Mon May 17, 2010 2:28 pm

Yeah, I got you - add "watch" snippet to each [game] tag. This should not be hard and I will try to do it in the next update.

Thanks for nice suggestion!
Image
User avatar
Colonel Dako
 
Posts: 3987
Joined: Sun Aug 26, 2007 9:07 am
Location: St. Petersburg, Russia

Re: Watch this game - 1.3.3

Postby Sir. Ricco on Fri May 28, 2010 11:07 am

This is a possible bug. Its not a big deal, I just wanted to mention it.

I am watching games using the USA West, USA Southwest, USA Southeast, USA Rockies, USA New England, USA Great Lakes, & USA. When I go to the watch game tab, they all show up as the USA map.
Image
Image
Image
User avatar
Captain Sir. Ricco
 
Posts: 4555
Joined: Tue Oct 02, 2007 2:33 pm
Location: Making kingdoms burn and bloodshed start.

Re: Watch this game - 1.3.3

Postby Denise on Fri May 28, 2010 11:56 am

Love the script, Dako. Especially for account sitting. Thanks! :)
Major Denise
 
Posts: 1305
Joined: Fri Oct 09, 2009 3:43 am

Re: Watch this game - 1.3.3

Postby Dako on Fri May 28, 2010 3:17 pm

Sir. Ricco wrote:This is a possible bug. Its not a big deal, I just wanted to mention it.

I am watching games using the USA West, USA Southwest, USA Southeast, USA Rockies, USA New England, USA Great Lakes, & USA. When I go to the watch game tab, they all show up as the USA map.

Oh shit :p. Will fix it in the new version.

Denise wrote:Love the script, Dako. Especially for account sitting. Thanks! :)

Thanks, always nice 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.3.3

Postby jricart on Thu Jun 10, 2010 12:35 pm

Hey, nice script.

It is possible to make the Box where you put the Game Number a bit smaller in width? I think its about 150px right now and it will be better if you can change it to 115px.

It is possible for the user to change that?

Thx.
User avatar
Captain jricart
 
Posts: 2930
Joined: Fri Jan 09, 2009 6:52 pm

Re: Watch this game - 1.3.3

Postby Dako on Fri Jun 11, 2010 3:24 am

jricart wrote:Hey, nice script.

It is possible to make the Box where you put the Game Number a bit smaller in width? I think its about 150px right now and it will be better if you can change it to 115px.

It is possible for the user to change that?

Thx.

You can change the script on your PC yourself, but what is the problem with the width of the box? Does it look bad on your PC? Can you post a screenshot please.

It is 145px right now.
Image
User avatar
Colonel Dako
 
Posts: 3987
Joined: Sun Aug 26, 2007 9:07 am
Location: St. Petersburg, Russia

Re: Watch this game - 1.3.3

Postby jricart on Fri Jun 11, 2010 11:47 am

It doesnt look that bad, but if I can fix it, great. Its on my Mac.

Image

Where it is in the script? Where can I find it so I can change it!

Thanks.
User avatar
Captain jricart
 
Posts: 2930
Joined: Fri Jan 09, 2009 6:52 pm

Re: Watch this game - 1.3.3

Postby Dako on Sat Jun 12, 2010 6:18 am

Line 1087:
GM_addStyle('#wtg-menu textarea { font-family: monospace; color: #ccc; font-size: 1em; line-height: 0.9em; height: 18px; width: 145px; padding: 0px; }');

Guess you do not have monospace font or Max has different size measures. I will try to find a Mac and look into it.
Image
User avatar
Colonel Dako
 
Posts: 3987
Joined: Sun Aug 26, 2007 9:07 am
Location: St. Petersburg, Russia

Re: Watch this game - 1.3.3

Postby jricart on Sat Jun 12, 2010 3:35 pm

Dako wrote:Line 1087:
GM_addStyle('#wtg-menu textarea { font-family: monospace; color: #ccc; font-size: 1em; line-height: 0.9em; height: 18px; width: 145px; padding: 0px; }');

Guess you do not have monospace font or Max has different size measures. I will try to find a Mac and look into it.


Thanks.

5md5xdlm8.jpg
User avatar
Captain jricart
 
Posts: 2930
Joined: Fri Jan 09, 2009 6:52 pm

Re: Watch this game - 1.3.3

Postby Night Strike on Tue Jun 22, 2010 4:13 pm

Dako wrote:
Night Strike wrote:It would be beneficial if the games were ordered by number or even by a custom order.

They are ordered by the "Remaining time" either ascending or descending (depends on your option in the script menu).


Is it possible to add other ordering options?
Image
User avatar
Major Night Strike
 
Posts: 8512
Joined: Wed Apr 18, 2007 2:52 pm

PreviousNext

Return to Third-Party Tools & Enhancements

Who is online

Users browsing this forum: No registered users

cron