Page 1 of 1

Script: MedalAid 1.3.0 (5/30/18)

PostPosted: Tue Feb 20, 2018 10:30 pm
by lanyards
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

Re: Script: MedalAid 1.0

PostPosted: Wed Feb 21, 2018 6:39 am
by betiko
thanks! i will try it

Re: Script: MedalAid 1.0

PostPosted: Wed Feb 21, 2018 9:02 am
by Mad777
Same here, will let you know

Re: Script: MedalAid 1.0

PostPosted: Wed Feb 21, 2018 9:27 am
by Mad777
Using Chrome & Tempermonkey.

All works great!!! Thanks =D>

Re: Script: MedalAid 1.1.0

PostPosted: Mon Feb 26, 2018 4:16 pm
by lanyards
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.

Re: Script: MedalAid 1.1.0

PostPosted: Mon Feb 26, 2018 5:05 pm
by Mad777
=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.

Re: Script: MedalAid 1.1.0

PostPosted: Tue Feb 27, 2018 10:47 am
by Fewnix
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>

Re: Script: MedalAid 1.1.0

PostPosted: Sun Mar 11, 2018 7:04 pm
by t4mcr53s2
bravo

Re: Script: MedalAid 1.1.0

PostPosted: Sun Mar 11, 2018 7:19 pm
by Mad777
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-)

Re: Script: MedalAid 1.1.0

PostPosted: Wed Mar 14, 2018 7:42 am
by fairman
Damn I just discover ot now? I'm on holiday, but I'll definitly try it next week.
Thanks mate

Re: Script: MedalAid 1.1.0

PostPosted: Fri Mar 16, 2018 9:44 am
by fairman
I installed it and I can confirm that it works perfectly.
Thanks lanyards

Re: Script: MedalAid 1.1.0

PostPosted: Tue Mar 20, 2018 10:03 pm
by nietzsche
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.

Re: Script: MedalAid 1.1.0

PostPosted: Tue Mar 20, 2018 10:49 pm
by lanyards
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!

Re: Script: MedalAid 1.2.0

PostPosted: Sat Mar 24, 2018 2:17 am
by lanyards
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

Re: Script: MedalAid 1.2.1

PostPosted: Sat Mar 24, 2018 5:55 am
by Mad777
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!

Re: Script: MedalAid 1.2.1

PostPosted: Sat Mar 24, 2018 8:25 am
by hjelp
This is good.
Can I run Tampermonkey and Greasemonkey both at the same time in my browser ?
I'm using Firefox v30.

Re: Script: MedalAid 1.2.1

PostPosted: Sat Mar 24, 2018 8:46 am
by Mad777
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)

Re: Script: MedalAid 1.2.1

PostPosted: Sat Mar 24, 2018 8:59 am
by lanyards
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.

Re: Script: MedalAid 1.2.1

PostPosted: Mon Mar 26, 2018 4:28 pm
by lanyards
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.

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

PostPosted: Wed May 30, 2018 3:03 am
by lanyards
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

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

PostPosted: Mon Nov 26, 2018 11:38 am
by Swimmerdude99
Yo this thing looks dope, gonna have to try it out.

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

PostPosted: Tue Nov 27, 2018 3:04 am
by lanyards
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. :)

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

PostPosted: Wed Jan 09, 2019 1:44 am
by IcePack
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.

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

PostPosted: Thu Jun 25, 2020 7:36 pm
by Pirlo
It refused to be installed

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

PostPosted: Mon Feb 22, 2021 4:14 pm
by IcePack
i assume this wont get updated for the new zombie medals?