Results 1 to 5 of 5

Thread: Bug in the api Clan War League war

  1. #1
    Fresh Spawn
    Join Date
    Sep 2019
    Posts
    7

    Bug in the api Clan War League war

    Hello,


    I found a bug in the clash of clan api that gives the results of league war. (https://api.clashofclans.com/v1/clanwarleagues/wars/{Tagwar})


    The position on the map and the number of members does not correspond to the players who started the war on the map.


    The attacks are correct.


    As a result, players who have not attacked can not be determined.


    Is this bug already reported and is it being resolved?

    You can test whith this clan war ligue war #28RG9QRCV Annotation 2019-12-09 225357.png

    and compare with the screen 79449962_2517723258444143_2016190517850669056_n.jpg



    Thank you for your reply
    Last edited by Taakar; December 9th, 2019 at 09:54 PM.

  2. #2
    Trainee
    Join Date
    Sep 2019
    Location
    Finland
    Posts
    20
    The position on the map and the number of members does not correspond to the players who started the war on the map.
    If you participate for example to 15vs15 CWL you can select more players than 15 to CWL roster and the mapPosition tells player's position in the roster, not on the actual war map.

    For example if you select 23 players to CWL roster and then select last 15 players (15 weakest) from the CWL roster to war then the first player in the war map has a mapPosition=9, second player mapPosition=10 and so on.

    As a result, players who have not attacked can not be determined
    Yes this is one limitation in the current API. You can keep track of your own and opponent attacks (Attacks/OpponentAttacks) and based on that get the idea of the players who are on the war even though the player has not attacked. However in the beginning of the war day you have basically no information available to know who is on the war map...
    Last edited by tparviainen; December 10th, 2019 at 06:03 AM.
    .NET Standard library for Clash of Clans API @ https://github.com/tparviainen/clashofclans

  3. #3
    Fresh Spawn
    Join Date
    Sep 2019
    Posts
    7
    Quote Originally Posted by tparviainen View Post
    If you participate for example to 15vs15 CWL you can select more players than 15 to CWL roster and the mapPosition tells player's position in the roster, not on the actual war map.

    For example if you select 23 players to CWL roster and then select last 15 players (15 weakest) from the CWL roster to war then the first player in the war map has a mapPosition=9, second player mapPosition=10 and so on.
    I had considered this solution to cross attacks from both clans to determine the players actually present on the map. But this solution does not work if a player has not attacked and has not been attacked.


    Quote Originally Posted by tparviainen View Post
    Yes this is one limitation in the current API. You can keep track of your own and opponent attacks (Attacks/OpponentAttacks) and based on that get the idea of the players who are on the war even though the player has not attacked. However in the beginning of the war day you have basically no information available to know who is on the war map...
    Does this point evolve in the API?
    There is no point in having the list of all members selected for the league. Only the players present on the map on an interest (finally from my point of view )

  4. #4
    Trainee
    Join Date
    Sep 2019
    Location
    Finland
    Posts
    20
    But this solution does not work if a player has not attacked and has not been attacked
    Yes that is true, below are results from CWL round 6 from previous CWL war:

    Code:
    WarEnded: FURY [30★/32,26%/10] vs Metal Nation [35★/43,00%/14], P:6.12.2019 18:44:59, S:7.12.2019 18:44:56, E:8.12.2019 18:44:56
    #LU0CRLGP/FURY
    1. #92G2YJYQ/soneya sany
    2. #90RR9P009/Animated001
    3. #22QJ8PLU8/Shovon: [3★/100%/#U2QQ2Q9R]
    4. #2C29QPL0Q/Masud: [3★/100%/#2YQGPYP00]
    5. #8YPJLG8P2/TOUHID
    6. #8GCJL8QRV/Himel: [3★/100%/#CYR0GJ8U]
    7. #PYUVRG8Q/faisal: [3★/100%/#9UCQV00CJ]
    8. #2RQV2QGGJ/ReZon
    9. #2GQ2RU0RQ/Shafiq: [3★/100%/#P29UY8RR]
    10. #92YY20JGL/Suchi: [3★/100%/#22YC9J2CU]
    11. #P8J0RPV92/SuMeL: [3★/100%/#8CLQL22]
    12. #82Y9GVR2V/SHOVON: [3★/100%/#909JCQY8U]
    13. #82VY2LGVY/***Pial***: [3★/100%/#2PUYY8JRV]
    14. #PYVJRVCQY/hog rider: [3★/100%/#208YGRG2L]
    #220QRJLLY/Metal Nation
    1. #JY0G0RQQ/--[t0m1]--: [2★/92%/#92G2YJYQ]
    2. #2YQGPYP00/LonelySeagull: [2★/98%/#90RR9P009]
    3. #2Q9JU282/Rasmus™: [2★/99%/#22QJ8PLU8]
    4. #CYR0GJ8U/BIGG: [3★/100%/#2C29QPL0Q]
    5. #U2QQ2Q9R/okay: [2★/70%/#8YPJLG8P2]
    6. #208YGRG2L/Brac: [2★/95%/#8GCJL8QRV]
    7. #P29UY8RR/Tommi: [2★/87%/#PYUVRG8Q]
    8. #22YC9J2CU/bisilu kudure: [3★/100%/#2RQV2QGGJ]
    9. #8CLQL22/Kaybie: [3★/100%/#2GQ2RU0RQ]
    10. #909JCQY8U/☺Happy☺: [2★/92%/#92YY20JGL]
    11. #Q88G9QG0/greg954: [3★/100%/#P8J0RPV92]
    12. #L2QG2UYQ/Xx_Boss_xX: [3★/100%/#82Y9GVR2V]
    13. #9UCQV00CJ/ripjaw: [3★/100%/#82VY2LGVY]
    14. #2PUYY8JRV/Hegde Rocky: [3★/100%/#PYVJRVCQY]
    As you can see the list contains only 14 members because one Metal Nation member did not attack and also the member who did not attack was not attacked by opponent and thus that information cannot be guessed from the current API. Also several members of FURY did not attack but because their bases were attacked by Metal Nation you know that those bases are in the war map.

    There are several ways SC could fix this, for example by adding attribute that tells whether player is currently in war map but I doubt that they will do anything to fix this issue...
    Last edited by tparviainen; December 10th, 2019 at 10:22 AM.
    .NET Standard library for Clash of Clans API @ https://github.com/tparviainen/clashofclans

  5. #5
    Fresh Spawn
    Join Date
    Sep 2019
    Posts
    7
    Quote Originally Posted by tparviainen View Post
    There are several ways SC could fix this, for example by adding attribute that tells whether player is currently in war map but I doubt that they will do anything to fix this issue...
    I find that supercell does not really intervene on its forum. Our bug posts are a bit like a bottle in the sea ...

Posting Permissions

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