maxdeviant / lol-mastery-manager

A tool for managing mastery pages in League of Legends
MIT License
37 stars 21 forks source link

Fix for 6.8.1 mastery changes #46

Open michaellavoie opened 8 years ago

michaellavoie commented 8 years ago

Hey I've enjoyed this app but noticed it stopped working since LOL 6.8.1 moved a few masteries around and changed their static data mastery.json file format a bit.

Code Changes I saw the format for how the Mastery.Tree variable provided changed in the new mastery.json file so i updated the ChampionGG.vb to parse it from the new location.

Data/Json Changes I also updated the masteries.json (called mastery.json now on the lol static data page) to the latest version and also updated coordinates.json file for the new mastery button locations.

Internal Utilities Updating coordinates is a pain in the butt so i also added a "Json Utilities" folder with 3 linqpad scripts (linqpad is a free lightweight version of visual studio and is nice for small utility scripts). The big one "CoordinatesGenerator.linq" will automatically generate the coordinates.json file based off 2 bmp screenshot files (mastery page and champ select mastery page) as long as they are 1280x800 and you use a single pixel green dot to mark the upper left of each mastery icon (i've included example bmp that i used). My hope is if Riot keeps tweaking the mastery layout this will make it easier to keep up.

I'd be happy to go back and forth on the changes if there's anything you want to discuss further.

Best wishes,

-platy