Conquer Club

Script: MedalAid 1.3.0 (5/30/18)

Discuss developing tools and get details on Conquer Club's API.

Moderator: Tech Team

Forum rules
Please read the Community Guidelines before posting.

Script: MedalAid 1.3.0 (5/30/18)

Postby lanyards on Tue Feb 20, 2018 10:30 pm

Install link: http://www.greasyfork.org/en/scripts/38723-medalaid

You run userscripts with the Tampermonkey extension, available on all browsers. Do not attempt with Greasemonkey, they've changed their API recently. To keep the script available to all browsers it will need to be run with Tampermonkey.

===============================USER GUIDE===============================

With the script installed and enabled, the MedalAid Menu will be displayed under all the other CC menus:

Image

Under the menu header, the time and date of the last scan is shown. You will need to click on Scan Games to let the script retrieve the data used to display unique medal defeats and game highlighting. All finished games prior to the scan will be included, and you will need to scan again to have your progress updated when you finish games after the last scan time/date. Scan progress will be displayed on screen, and you will need to wait until it is finished to have the data saved (takes less than a minute for my 10k+ games).

Clicking on Medal Tracking or Options will reveal drop-down menus:

Image

In the Medal Tracking menu, you can select which medals you would like to make progress in. For each that you have selected, defeat medals and/or missing medals will be displayed next to users' names. When in the Join a Game pages and Game Finder, games will be highlighted to indicate that you can make progress towards your tracked medals (meaning the game has players you haven't beaten yet for the medals you are tracking.) I recommend only tracking a few at a time to keep pages less hectic, and it will make it easier for you to select games to join.

The Options menu allows you to toggle on/off the 2 types of medal icons and the pages where you want the icons to be displayed. The Defeat Medals represent a win against the user, and the Missing Medals indicate you have not won. You can have either, both, or none on. Having both will show every medal you are tracking next to users and provide insight on your medal progress against that player, but again if you are tracking a lot of medals at once there will be lots going on on the page. For both of the menus, once you have checked a box your selection is saved and you just need to refresh the page to see the changes.

Image
Image

The screenshots above show the game highlighting that is done in Join a Game and Game Finder. I am tracking Terminator, Assassin, Polymorphic, Teammate, and Beta medals with both Defeat and Missing medal types shown. Based on my medal tracking selection, open games that are of either terminator, assassin, or polymorphic type that contain at least 1 new player to beat will be highlighted. Since I'm tracking the teammate medal, if there is an open team game with a slot to team with someone I haven't won with, that game will be highlighted. Also, any games on a Beta map with players I haven't beaten on a Beta map will be highlighted. If a game is highlighted, you will make progress towards at least 1 of the medals you are tracking if you win.

Additionally, if you have Medals on User Profiles checked in the options, you can see your wins against that user on their profile:

Image

For all medals defeated/missing displayed on any page, hovering over the medal will give a description.

========================================================================

Please post any questions/suggestions/thoughts/issues in here.

TODO:
Remove scenario wins (needs API adjustment from BigWham)
Improve scan times
Rating tracking
Last edited by lanyards on Wed May 30, 2018 2:55 am, edited 5 times in total.
Image
WANT AN ADVANTAGE WHILE WORKING TOWARDS MEDALS?
https://www.conquerclub.com/forum/viewtopic.php?f=529&t=226714
User avatar
Major lanyards
 
Posts: 1378
Joined: Sat Feb 24, 2007 1:31 am
2

Re: Script: MedalAid 1.0

Postby betiko on Wed Feb 21, 2018 6:39 am

thanks! i will try it
Image
User avatar
Major betiko
 
Posts: 10941
Joined: Fri Feb 25, 2011 3:05 pm
Location: location, location
22

Re: Script: MedalAid 1.0

Postby Mad777 on Wed Feb 21, 2018 9:02 am

Same here, will let you know
".....Under Phucumol treatment....."
https://youtu.be/zlusWzDY4qw
User avatar
Lieutenant Mad777
 
Posts: 9822
Joined: Thu Jun 18, 2009 9:21 am

Re: Script: MedalAid 1.0

Postby Mad777 on Wed Feb 21, 2018 9:27 am

Using Chrome & Tempermonkey.

All works great!!! Thanks =D>
".....Under Phucumol treatment....."
https://youtu.be/zlusWzDY4qw
User avatar
Lieutenant Mad777
 
Posts: 9822
Joined: Thu Jun 18, 2009 9:21 am

Re: Script: MedalAid 1.1.0

Postby lanyards on Mon Feb 26, 2018 4:16 pm

Updated the script to include dark versions of the medals (missing), and game highlighting for open games with potential unique wins. I also spoke with bigWham who agreed to alter API output which will allow me to track Random Map wins and all Beta map wins, so that will be coming at some point (hopefully.) Currently Beta map wins on maps which are currently in Beta are tracked. Also, the script will from now on alert you when there is an update to install and provide a link with where to go.
Image
WANT AN ADVANTAGE WHILE WORKING TOWARDS MEDALS?
https://www.conquerclub.com/forum/viewtopic.php?f=529&t=226714
User avatar
Major lanyards
 
Posts: 1378
Joined: Sat Feb 24, 2007 1:31 am
2

Re: Script: MedalAid 1.1.0

Postby Mad777 on Mon Feb 26, 2018 5:05 pm

=D>

I like it more and more...sad that iOS mobile device are not running with script...but looks nice while on my computer...keep up the good job.
".....Under Phucumol treatment....."
https://youtu.be/zlusWzDY4qw
User avatar
Lieutenant Mad777
 
Posts: 9822
Joined: Thu Jun 18, 2009 9:21 am

Re: Script: MedalAid 1.1.0

Postby Fewnix on Tue Feb 27, 2018 10:47 am

COOL !!!

Got it installed. like it and will try to use it to work on some medals I am chasing

Appreciate all that you have done, are doing and will do
=D> =D> =D>
Rule 1
show
User avatar
Cadet Fewnix
 
Posts: 1245
Joined: Sat Apr 25, 2009 2:15 am
2

Re: Script: MedalAid 1.1.0

Postby t4mcr53s2 on Sun Mar 11, 2018 7:04 pm

bravo
I wish either my father or my mother, or indeed both of them as they were in duty both equally bound to it, had minded what they were about when....

If 2 player fog game,please allow 12 hour snap courtesy, or post what I could have seen.... Thank you
User avatar
Colonel t4mcr53s2
 
Posts: 885
Joined: Wed Sep 21, 2011 1:19 pm
Location: maryland, usa
22

Re: Script: MedalAid 1.1.0

Postby Mad777 on Sun Mar 11, 2018 7:19 pm

I like the fact you can select which medal you want to work on and where you want it to appear (Central Command, Join Game, etc...) 8-)
".....Under Phucumol treatment....."
https://youtu.be/zlusWzDY4qw
User avatar
Lieutenant Mad777
 
Posts: 9822
Joined: Thu Jun 18, 2009 9:21 am

Re: Script: MedalAid 1.1.0

Postby fairman on Wed Mar 14, 2018 7:42 am

Damn I just discover ot now? I'm on holiday, but I'll definitly try it next week.
Thanks mate
Image

Nous étions là bien avant les targaryens !!
User avatar
Brigadier fairman
 
Posts: 679
Joined: Fri Feb 20, 2009 5:22 am
42

Re: Script: MedalAid 1.1.0

Postby fairman on Fri Mar 16, 2018 9:44 am

I installed it and I can confirm that it works perfectly.
Thanks lanyards
Image

Nous étions là bien avant les targaryens !!
User avatar
Brigadier fairman
 
Posts: 679
Joined: Fri Feb 20, 2009 5:22 am
42

Re: Script: MedalAid 1.1.0

Postby nietzsche on Tue Mar 20, 2018 10:03 pm

i've been having problems loading some icons.

https://u.cubeupload.com/lanyards/standard.png
doubles.png
triples.png
quadruples.png
terminator.png
assassin.png


the tab remains "loading" forever. i turn MedalAid off and it loads fine.


i'm in Mexico, in case cubeupload is working but not for this route.
el cartoncito mas triste del mundo
User avatar
General nietzsche
 
Posts: 4597
Joined: Sun Feb 11, 2007 1:29 am
Location: Fantasy Cooperstown

Re: Script: MedalAid 1.1.0

Postby lanyards on Tue Mar 20, 2018 10:49 pm

nietzsche wrote:i've been having problems loading some icons.

https://u.cubeupload.com/lanyards/standard.png
doubles.png
triples.png
quadruples.png
terminator.png
assassin.png


the tab remains "loading" forever. i turn MedalAid off and it loads fine.


i'm in Mexico, in case cubeupload is working but not for this route.

https://twitter.com/CubeUpload

Nah CubeUpload is just temporarily down, sorry guys but those icons should be back up pretty soon.

Almost done with an update which will track Random Map wins and more Beta wins (past beta maps will be tracked.) A big thanks to a big Wham for making changes to CC's API for me to make this possible. :D And thank you to everyone for the support, if anyone has any suggestions for improvement I will make it happen!
Image
WANT AN ADVANTAGE WHILE WORKING TOWARDS MEDALS?
https://www.conquerclub.com/forum/viewtopic.php?f=529&t=226714
User avatar
Major lanyards
 
Posts: 1378
Joined: Sat Feb 24, 2007 1:31 am
2

Re: Script: MedalAid 1.2.0

Postby lanyards on Sat Mar 24, 2018 2:17 am

Okay just submitted version 1.2.0, hopefully users will be seeing a notification in the script menu that an upgrade is available.

Random map wins are now tracked, and Beta map wins now include wins on maps which were beta at the time of the win. Your browser will also print the totals from the scan in the console (right click on a page, select Inspect, select the Console tab, then click Scan Games from the script menu.) Once the scan completes you will see the total unique defeats for each medal the scan is detecting.

Right now I am trying to weed out discrepancies between my scan totals and the sites totals. This is difficult using only data from my own games so if anyone wants to post theirs that would be great. Most of my medal totals match the sites, and a few which are different should change soon if BigWham agrees to change API output again. The scan currently doesn't count wins against bots (they shouldn't count as far as I know,) but Scenario wins are counting (and I believe they shouldn't.) When/if BigWham labels scenario games in the API, wins in those games will be ignored.

For me:
Standard Medal: scan is detecting 30 extra defeats (most likely from scenario wins, potentially fixed soon)
Triples Medal: 2 extra defeats (no idea)
Terminator: 6 extra defeats (scenario wins again I believe)
Speed: 13 extra defeats (no idea)
Teammate: 6 MISSING wins (literally no idea)
Beta: 9 extra wins (need more precise beta map quenching time/date?)

All other medals are matched perfectly in my case. The tool is still pretty accurate when comparing with the sites totals considering these are only a few off from hundreds and thousands of wins for me. I'd like to figure out why there are differences though, the issue could be:
- Bad logic somewhere in the tool (Currently scenario wins counting, but can't remember being in any triples/speed/beta map scenarios, an undetected bug, or misunderstanding how medal requirement works)
- CC's medal scanner/code missed something (don't know if this is possible, but I think the site never scans and only counts defeats at game completions)
- CC's API output faulty (highly doubt it)

The good news is these are all false positives currently, so if a game is highlighted you WILL be making medal progress. If users are experiencing differences in the same medals then that information will be useful to figuring out these slight differences.

EDIT: version 1.2.1 fixes missing teammate wins
Image
WANT AN ADVANTAGE WHILE WORKING TOWARDS MEDALS?
https://www.conquerclub.com/forum/viewtopic.php?f=529&t=226714
User avatar
Major lanyards
 
Posts: 1378
Joined: Sat Feb 24, 2007 1:31 am
2

Re: Script: MedalAid 1.2.1

Postby Mad777 on Sat Mar 24, 2018 5:55 am

May not change anything but I would ask King achille by PM to reset your medal count and check again, if you have never done it you may have little glitch from past site issue that still show, if no change then you still sure that the site is accurate and can be taken as good reference?

...keep doing what you do, this add’on is awesome!
".....Under Phucumol treatment....."
https://youtu.be/zlusWzDY4qw
User avatar
Lieutenant Mad777
 
Posts: 9822
Joined: Thu Jun 18, 2009 9:21 am

Re: Script: MedalAid 1.2.1

Postby hjelp on Sat Mar 24, 2018 8:25 am

This is good.
Can I run Tampermonkey and Greasemonkey both at the same time in my browser ?
I'm using Firefox v30.
User avatar
Major hjelp
 
Posts: 323
Joined: Thu Oct 06, 2011 2:50 pm

Re: Script: MedalAid 1.2.1

Postby Mad777 on Sat Mar 24, 2018 8:46 am

hjelp wrote:This is good.
Can I run Tampermonkey and Greasemonkey both at the same time in my browser ?
I'm using Firefox v30.


Tampermonkey is made for Chrome, is it? (Greasemonkey is for Firefox)
".....Under Phucumol treatment....."
https://youtu.be/zlusWzDY4qw
User avatar
Lieutenant Mad777
 
Posts: 9822
Joined: Thu Jun 18, 2009 9:21 am

Re: Script: MedalAid 1.2.1

Postby lanyards on Sat Mar 24, 2018 8:59 am

hjelp wrote:This is good.
Can I run Tampermonkey and Greasemonkey both at the same time in my browser ?
I'm using Firefox v30.
I don't see why not! Additionally, anything you're running with Greasemonkey will run on Tampermonkey if you want to convert over to the better extension ;)

Mad777 wrote:
hjelp wrote:This is good.
Can I run Tampermonkey and Greasemonkey both at the same time in my browser ?
I'm using Firefox v30.


Tampermonkey is made for Chrome, is it? (Greasemonkey is for Firefox)

No, and yes. Greasemonkey is limited to Firefox, Tampermonkey is available for just about every browser there is.
Image
WANT AN ADVANTAGE WHILE WORKING TOWARDS MEDALS?
https://www.conquerclub.com/forum/viewtopic.php?f=529&t=226714
User avatar
Major lanyards
 
Posts: 1378
Joined: Sat Feb 24, 2007 1:31 am
2

Re: Script: MedalAid 1.2.1

Postby lanyards on Mon Mar 26, 2018 4:28 pm

Mad777 wrote:May not change anything but I would ask King achille by PM to reset your medal count and check again, if you have never done it you may have little glitch from past site issue that still show, if no change then you still sure that the site is accurate and can be taken as good reference?

...keep doing what you do, this add’on is awesome!
Thank you, that solved the extra 2 triples defeats CC was missing.

BigWham is going update the API again to label scenario games in output, so that will fix the extra standard and terminator defeats. I guess now the MedalAid scan log will also let you know if you need to have CC rescan your games by comparing the totals.
Image
WANT AN ADVANTAGE WHILE WORKING TOWARDS MEDALS?
https://www.conquerclub.com/forum/viewtopic.php?f=529&t=226714
User avatar
Major lanyards
 
Posts: 1378
Joined: Sat Feb 24, 2007 1:31 am
2

Re: Script: MedalAid 1.3.0 (5/30/18)

Postby lanyards on Wed May 30, 2018 3:03 am

Image

New update. Added medal defeats to the Full Score Leaderboard: https://www.conquerclub.com/public.php?mode=scoreboard

Added some more options as well. Any issues/more features to add, let me know
Image
WANT AN ADVANTAGE WHILE WORKING TOWARDS MEDALS?
https://www.conquerclub.com/forum/viewtopic.php?f=529&t=226714
User avatar
Major lanyards
 
Posts: 1378
Joined: Sat Feb 24, 2007 1:31 am
2

Re: Script: MedalAid 1.3.0 (5/30/18)

Postby Swimmerdude99 on Mon Nov 26, 2018 11:38 am

Yo this thing looks dope, gonna have to try it out.
Image
User avatar
Major Swimmerdude99
 
Posts: 2456
Joined: Mon Aug 09, 2010 6:07 pm
Location: North Carolina
2435

Re: Script: MedalAid 1.3.0 (5/30/18)

Postby lanyards on Tue Nov 27, 2018 3:04 am

swimmerdude99 wrote:Yo this thing looks dope, gonna have to try it out.
Thanks dude! Let me know if you have any issues/questions/suggestions for improvement. :)
Image
WANT AN ADVANTAGE WHILE WORKING TOWARDS MEDALS?
https://www.conquerclub.com/forum/viewtopic.php?f=529&t=226714
User avatar
Major lanyards
 
Posts: 1378
Joined: Sat Feb 24, 2007 1:31 am
2

Re: Script: MedalAid 1.3.0 (5/30/18)

Postby IcePack on Wed Jan 09, 2019 1:44 am

My only wish would be if it would say (next to Round 0 in join game / game finder on the title blocks) how many unique opponents for the medal your searching for instead of having to count individually.

Example: searching for assassin games, using game finder i search all waiting assassins. without counting how many are silver vs gold, its not easy at a glance to know how many unique assassins each game would provide. It turns yellow if theres at least one, but if its a 12 player game and only 1 unique medal it might not be worth the time and energy if there was a 5 player game and 4 uniques available. Help optimize potentially.
Image

fac vitam incredibilem memento vivere
Knowledge Weighs Nothing, Carry All You Can
User avatar
Major IcePack
Multi Hunter
Multi Hunter
 
Posts: 16631
Joined: Wed Aug 04, 2010 6:42 pm
Location: California

Re: Script: MedalAid 1.3.0 (5/30/18)

Postby Pirlo on Thu Jun 25, 2020 7:36 pm

It refused to be installed
User avatar
Captain Pirlo
 
Posts: 1840
Joined: Wed May 19, 2010 3:48 pm
252

Re: Script: MedalAid 1.3.0 (5/30/18)

Postby IcePack on Mon Feb 22, 2021 4:14 pm

i assume this wont get updated for the new zombie medals?
Image

fac vitam incredibilem memento vivere
Knowledge Weighs Nothing, Carry All You Can
User avatar
Major IcePack
Multi Hunter
Multi Hunter
 
Posts: 16631
Joined: Wed Aug 04, 2010 6:42 pm
Location: California


Return to Tools Development

Who is online

Users browsing this forum: No registered users