Page 1 of 9

REDUNDANT: Conquer Club Games Filter GM Script

PostPosted: Mon Aug 11, 2008 6:25 am
by chipv
Conquer Club Games Filter

Image

Script to filter pages on Conquer Club

Filters pages on join games and waiting games listings on the game finder
by Maximum number of empty slots left, Minimum Rank,Maximum Rank,Minimum Rating

Filters the Recently Finished Games page to see games where you have not rated players.

Filters maps on the game finder and start game pages with user definable tags.

Sort maps alphabetically or by number of territories.

You can click on the map images on the game finder and start game pages to see number of territories
and number of initial territories.

New Filters the Active Games Page (My Games) by whose turn it is.

Versions
This script has version control. When you have the latest version the link next to Games Filter says Latest Version Installed.
Click on it to see latest additions and if necessary re-install.
When a new version is available , this will turn red and say New Version Available.
Click on it to see latest additions and if necessary re-install.

Install here:

http://userscripts.org/scripts/source/31550.user.js

After this you can install new versions from the link described above.

Join games pages and Waiting Games Listings Pages

At the top of the join pages and game finder listings there is a dropdown which you can use to filter the games by number of empty slots.
Saves having to trawl through the list trying to find a single free slot left.

Image

There are also dropdowns for filtering by maximum and minimum rank as well as minimum rating.

These filters work together now, so if you choose min rating = 4.8 AND min rank = Private AND Max Empty slots=2
This is a combination filter so they will all work at the same time.

The script remembers your filters so you don't have to keep setting it.
Press Reset All to clear all filters and get back to the original pages.

Recently Finished Games Page and Eliminated Page

On the recently finished games page and eliminated page, there is a dropdown to filter by games you have not given any ratings.

Image

Choose from All (show all) or Not Rated.

New My Games Page (Active Games Page)

On the default My Games Pages or Active games page there is a dropdown to filter by whose turn it is.

Image

Choose from Anyone, My Turn, Not My Turn

Game Finder and Start Games Page

Image

New Click on the map images to see number of territories and starting territories.
You can filter the view of the maps on the game finder and start game pages.
Set up new tags to filter out maps on the game finder. These will activate on the game finder and start game pages.

At the top there is a section called Map Tags.
You can assign a tag for any set of maps you like and the maps will be filtered so the ones you don't want are hidden.
There are buttons to check just these maps or clear all checkboxes.
Choose a tag using the select dropdown.
You will start with a "None" tag - this will always be there so you can select all maps to view.

Default Tags
Default tags cannot be removed but they can be modified.
They are preset tags primarily for helping choose map type.
Default tags exist for complexity , number of territories, and objectives maps.
The numbers next to the territory tag names indicate the range of territories represented by those maps.

Adding Tags
Start from the None tag or a similar tag to what you want.
Check the boxes you want for the tag.
Type in a memorable and relevant tag name.
Press Add Tag.
If the tag already exists you will be prompted to replace it. Cancel to stop replace.
The new tag will be added, the filter will activate and the select dropdown will choose the new tag.

Removing Tags
Remove individual tags by first selecting the tag fro the dropdown.
Click on Remove Tag.
Note you cannot remove the None Tag.
After removal, the select dropdown will choose the previous tag in the list and activate that filter.

Modifying Tags

Choose a tag to modify from the select dropdown.

Adding Maps
Press Check Visible.
Select None Tag - the selected maps will still be checked.
Check the checkboxes you want to add.
Type in the same tag name - must be case sensitive otherwise a new tag will appear.
Press Add Tag and press ok when prompted.

Removing Maps
Uncheck the checkboxes you want to remove.
Type in the same tag name - must be case sensitive otherwise a new tag will appear.
Press Add Tag and press ok when prompted.

Remove all Tags
Just click on Clear Tags to clear all tags except the None Tag - the Default Tags will be reset.

Checkboxes
The Check Visible button will check all the boxes in your filter and clear all checkboxes for hidden maps.
The Uncheck All button will clear all checkboxes including hidden maps.
Use these 2 and the tags to quickly select combinations of maps.
If you want to select all maps in a tag except one, select that tag, press check visible and clear the checkbox(es) you dont want.

Sorting
You sort the maps using the Sort By dropdown.
Sort alphabetically or by territory both ascending and descending.

Re: Conquer Club Waiting Games Greasemonkey Script

PostPosted: Mon Aug 11, 2008 6:32 am
by Kemmler
nice. keep making awesome scripts chip!

Re: Conquer Club Waiting Games Greasemonkey Script

PostPosted: Mon Aug 11, 2008 7:14 am
by chipv
You can now filter by minimum rank.

Re: Conquer Club Waiting Games Greasemonkey Script

PostPosted: Mon Aug 11, 2008 7:17 am
by Kemmler
chip i change the dropdown but the pages doesnt refresh and there's no button to pres sso how do i get it to work?

Re: Conquer Club Waiting Games Greasemonkey Script

PostPosted: Mon Aug 11, 2008 7:35 am
by Hatchman
Same problem here lol.

Re: Conquer Club Waiting Games Greasemonkey Script

PostPosted: Mon Aug 11, 2008 7:39 am
by chipv
Kemmler wrote:chip i change the dropdown but the pages doesnt refresh and there's no button to pres sso how do i get it to work?


If you change the selection in a dropdown, the filter will activate automatically.
Obviously if there is nothing to filter, nothing will change.

Re: Conquer Club Waiting Games Greasemonkey Script

PostPosted: Mon Aug 11, 2008 7:39 am
by Kemmler
chipv wrote:
Kemmler wrote:chip i change the dropdown but the pages doesnt refresh and there's no button to pres sso how do i get it to work?


If you change the selection in a dropdown, the filter will activate automatically.
Obviously if there is nothing to filter, nothing will change.


it doesnt activate automatically

Re: Conquer Club Waiting Games Greasemonkey Script

PostPosted: Mon Aug 11, 2008 7:42 am
by chipv
It is only supposed to work on waiting games listing pages.

Re: Conquer Club Waiting Games Greasemonkey Script

PostPosted: Mon Aug 11, 2008 7:50 am
by chipv
I've put a new version in that removes the dropdowns unless it is a waiting games page, I agree that is confusing.

Re: Conquer Club Waiting Games Greasemonkey Script

PostPosted: Mon Aug 11, 2008 7:58 am
by Kemmler
it still doesnt refresh so doesnt do anything when I click on an option

Re: Conquer Club Waiting Games Greasemonkey Script

PostPosted: Mon Aug 11, 2008 8:02 am
by chipv
Kemmler wrote:it still doesnt refresh so doesnt do anything when I click on an option


What settings did you use (what page are you on) so I can replicate and test please?

Re: Conquer Club Waiting Games Greasemonkey Script

PostPosted: Mon Aug 11, 2008 8:04 am
by Kemmler
Game Finder > Waiting for players > click option on dropdown and nothing happens

Re: Conquer Club Waiting Games Greasemonkey Script

PostPosted: Mon Aug 11, 2008 8:14 am
by chipv
Yeah, you are right. Bug (already) with private/speed/tournament games.

Fixed and uploaded so give the new one a try please.

Re: Conquer Club Waiting Games Greasemonkey Script

PostPosted: Mon Aug 11, 2008 8:22 am
by Kemmler
awesome! it works now. what you need is a way to filter out private/tourney games because otherwise they're all that shows up.

Re: Conquer Club Waiting Games Greasemonkey Script

PostPosted: Mon Aug 11, 2008 8:33 am
by chipv
Kemmler wrote:awesome! it works now. what you need is a way to filter out private/tourney games because otherwise they're all that shows up.


Yeah, funny how the first few pages full of private/tourney games. Well you can always use the game finder to filter out private/tourney.
So always select Public.

Re: Conquer Club Games Filter GM Script

PostPosted: Mon Aug 11, 2008 9:33 am
by chipv
Newest version works on join a game pages also.

Re: Conquer Club Waiting Games GM Script

PostPosted: Mon Aug 11, 2008 10:35 am
by chipv
Dropdown filters all work at the same time so you can filter by rank and number of empty slots.

Also you can now filter by minimum player rating...

Re: Conquer Club Waiting Games GM Script

PostPosted: Mon Aug 11, 2008 12:50 pm
by Timminz
If you have a minimum rank function, why not a maximum too?

Re: Conquer Club Waiting Games GM Script

PostPosted: Mon Aug 11, 2008 12:55 pm
by chipv
Timminz wrote:If you have a minimum rank function, why not a maximum too?


No reason at all - depends if people want that.
Are you asking for this or just making a point, I'm not sure?

Re: Conquer Club Waiting Games GM Script

PostPosted: Mon Aug 11, 2008 1:06 pm
by Timminz
chipv wrote:
Timminz wrote:If you have a minimum rank function, why not a maximum too?


No reason at all - depends if people want that.
Are you asking for this or just making a point, I'm not sure?


I wouldn't use it, but I've seen it come up in some of the suggestion threads. Some lower scoring players don't want to be playing against colonels. I thought it might be a simple addition, that some people would find helpful.

Re: Conquer Club Waiting Games GM Script

PostPosted: Mon Aug 11, 2008 1:37 pm
by chipv
Timminz wrote:
chipv wrote:
Timminz wrote:If you have a minimum rank function, why not a maximum too?


No reason at all - depends if people want that.
Are you asking for this or just making a point, I'm not sure?


I wouldn't use it, but I've seen it come up in some of the suggestion threads. Some lower scoring players don't want to be playing against colonels. I thought it might be a simple addition, that some people would find helpful.


Yeah, I think you're right. I'll add it.

Re: Conquer Club Waiting Games GM Script

PostPosted: Mon Aug 11, 2008 1:51 pm
by chipv
Done. Maximum rank added to set of dropdowns.

Re: Conquer Club Waiting Games GM Script

PostPosted: Mon Aug 11, 2008 2:16 pm
by Optimus Prime
Hey there chipv, I've just checked this one out for a little bit.

Seems to work pretty good, but I have a suggestion. Right now, you've got the dropdown menus set up side by side at the top of the page, but that is really messing up the layout. Might I suggest you attempt stacking them on top of each other instead? I think it will help with the visual appeal when using it. I would go in this order:

1. Spots Available
2. Minimum Rank
3. Maximum Rank
4. Rating

Re: Conquer Club Waiting Games GM Script

PostPosted: Mon Aug 11, 2008 2:32 pm
by chipv
Optimus Prime wrote:Hey there chipv, I've just checked this one out for a little bit.

Seems to work pretty good, but I have a suggestion. Right now, you've got the dropdown menus set up side by side at the top of the page, but that is really messing up the layout. Might I suggest you attempt stacking them on top of each other instead? I think it will help with the visual appeal when using it. I would go in this order:

1. Spots Available
2. Minimum Rank
3. Maximum Rank
4. Rating


Hmm, stacking does rather push the content down. I'm tinkering with this at the moment, just wondering how best to do it.

Re: Conquer Club Waiting Games GM Script

PostPosted: Mon Aug 11, 2008 2:36 pm
by Optimus Prime
Hmmm... perhaps put Minimum Rank and Maximum Rank on top of each other, and then the other two next to them on top of each other?