Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Bad icon for the label

  1. #1

    Bad icon for the label

    Hello,

    I want to display the label selected by the players on clashspot.net.
    This work but the API contains bad icon.
    For example, for the "Friendly" :

    Please, can you give us the good icon for the label ?
    Attached Images Attached Images

  2. #2
    Senior Member NattensNinjaerJakob's Avatar
    Join Date
    Aug 2016
    Location
    Denmark
    Posts
    223
    TH12/BH9. Heroes: 65/65/40/30. 106 of 108 achievement stars. Clan leader of 4 clans; Lvl 23, 19, 9 & 6.
    Obsessed since Jan 2013.


  3. #3
    Senior Member NattensNinjaerJakob's Avatar
    Join Date
    Aug 2016
    Location
    Denmark
    Posts
    223
    It looks to me that SC mixed up the icons but my guess is that they are all there..
    TH12/BH9. Heroes: 65/65/40/30. 106 of 108 achievement stars. Clan leader of 4 clans; Lvl 23, 19, 9 & 6.
    Obsessed since Jan 2013.


  4. #4
    Senior Member NattensNinjaerJakob's Avatar
    Join Date
    Aug 2016
    Location
    Denmark
    Posts
    223
    I managed to find all the icons.

    This is how the labels are identified in the API. If you download all the pictures returned by the API then you get them all but they are all wrongly located, you need to fix that yourself.

    ["labels"][0]["id"]


    int(57000000) Clan Wars
    int(57000001) Clan War League
    int(57000002) Trophy Pushing
    int(57000003) Friendly Wars
    int(57000004) Clan Games
    int(57000005) Builder Base
    int(57000006) Base Designing
    int(57000007) Farming
    int(57000008) Active Donator
    int(57000009) Active Daily
    int(57000010) Hungry Learner
    int(57000011) Friendly
    int(57000012) Talkative
    int(57000013) Teacher
    int(57000014) Competitive
    int(57000015) Veteran
    int(57000016) Newbie
    int(57000017) Amateur Attacker
    TH12/BH9. Heroes: 65/65/40/30. 106 of 108 achievement stars. Clan leader of 4 clans; Lvl 23, 19, 9 & 6.
    Obsessed since Jan 2013.


  5. #5
    Thank but I know how to fix this myself, it's not a problem.
    I write this post to report the problem to SuperCell in the hope he fix it (yes, the hope ...).

  6. #6
    I believe this issue has been reported to the devs.

    In the meantime, I have made a patch for coc.py to divert label URLs to the correct ones - feel free to use:

    https://github.com/mathsman5133/coc..../enums.py#L132
    https://github.com/mathsman5133/coc..../enums.py#L207
    https://github.com/mathsman5133/coc....models.py#L554

    (cheers to devhl of minion bot for matching the correct URLs to IDs)
    Last edited by mathsman5132; 4 Weeks Ago at 11:57 PM.

  7. #7
    Fresh Spawn
    Join Date
    Oct 2019
    Posts
    1
    You can download the icons and fix it while they fix the problem. I think is easy, but it needs some efford

  8. #8
    Forum Contender JusMe's Avatar
    Join Date
    Feb 2017
    Location
    amongst the stars
    Posts
    4,954
    Quote Originally Posted by juansan View Post
    You can download the icons and fix it while they fix the problem. I think is easy, but it needs some efford
    All of that already was in the previous posts, right?

  9. #9
    Right. And how to solve theise bug is not the subject of my initial post ...
    When a bug is in the game, it's not the player who fix it, but the game developer. Why it's different with the API ? SuperCell doesn't take effort to get a reliadable API.
    All bug are not fix and no communication from SuperCell about the API development.

  10. #10
    Centennial Club
    Join Date
    Feb 2015
    Posts
    174
    It's different in the API because we are used to issues going unresolved. So buckle in and be ready for disappointment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •