snowl / LegendaryClient

Custom League of Legends client. No longer in development.
MIT License
43 stars 30 forks source link

Champion icons path not found after patcher #22

Closed GodLesZ closed 10 years ago

GodLesZ commented 10 years ago

Info

After getting the struggling patch-thing to work for EUW and de-DE (adding dummy vars in RiotPatcher for desired server and language to use), i got some exceptions because of missing champion dir for champion icons. After invastigating I found multiple paths of champion icon/image loading which are wrong.

Example: https://github.com/Snowl/LegendaryClient/blob/master/LegendaryClient/Windows/LoginPage.xaml.cs#L37

I searched the current ddragon archive (v3.14.41) for the champions dir but found nothing. Just a champion dir with basic champ icons. I came up by renaming the ddragon extraction into champions.

Next exception was the missing image itself - Aatrox_Splash_0.jpg was not found. Thats correct, only basic artworks (Aatrox.png) are in my ddragon renamed champions folder. The missing images are located in my lol_air_client under assets/data/champions/. I came up by copying all images from the lol_air_client into the renamed champions dir and it seems to work.

Is this normally atm or did I something wrong?

snowl commented 10 years ago

You must have done something wrong, it automatically copies /champions and /abilities from your lol_air_client installation.

GodLesZ commented 10 years ago

Damn, got it. Problems goes to PatcherPage and detection of current LoL installation. I installed them to another folder and missed to copy them into the execution dir for proper path detection.

Thank you