Page 1 of 2 1 2 LastLast
Results 1 to 10 of 13

Thread: Question about radiant_logo and dire_logo

  1. #1

    Question Question about radiant_logo and dire_logo

    Is there any way to get actual team logo images using IDs (radiant_logo and dire_logo) returned by https://api.steampowered.com/IDOTA2M...hDetails/V001/?


    Also, there are two variables returned by the same method:
    • radiant_team_complete
    • dire_team_complete

    What do they mean?

    For example, in match #37584550:
    Code:
    "radiant_name": "Natus Vincere",
    "radiant_logo": 920110421043409300,
    "radiant_team_complete": 1,
    "dire_name": "LGD-GAMING",
    "dire_logo": 596975880634081200,
    "dire_team_complete": 1

  2. #2
    Administrator
    Join Date
    Oct 2012
    Posts
    66
    Give this example a shot:

    https://api.steampowered.com/IDOTA2M...ch_id=37623177
    Code:
    		"radiant_name": "Natus Vincere",
    		"radiant_logo": 920110421043409228,   <<<<<<<<<<<
    		"radiant_team_complete": 1,
    		"dire_name": "Invictus Gaming",
    		"dire_logo": 939254794963968818,
    		"dire_team_complete": 1

    http://api.steampowered.com/ISteamRe...pid=570&ugcid=920110421043409228
    Code:
    	"data": {
    		"filename": "teams/team_logo_1343406470",
    		"url": "http://cloud-2.steampowered.com/ugc/920110421043409228/82E0398179759BD48DA9486A7F10CB1ECE55A713/",
    		"size": 26332
    	}
    Then grab the file at that URL for your team logo.
    Last edited by DanielJ; 01-29-2013 at 06:53 PM.

  3. #3
    Basic Member adrianlegg's Avatar
    Join Date
    Mar 2012
    Posts
    568
    Thx!
    You gotta FIGHT!
    For Your RIGHT!
    To BUUUGFIX!

  4. #4
    Thanks, Daniel. It works.

    What about radiant_team_complete/dire_team_complete?
    Last edited by Gentlecat; 01-29-2013 at 12:00 AM.

  5. #5
    Basic Member
    Join Date
    Dec 2011
    Posts
    83
    Quote Originally Posted by DanielJ View Post
    Give this example a shot:

    https://api.steampowered.com/IDOTA2M...ch_id=37623177
    Code:
    		"radiant_name": "Natus Vincere",
    		"radiant_logo": 920110421043409228,   <<<<<<<<<<<
    		"radiant_team_complete": 1,
    		"dire_name": "Invictus Gaming",
    		"dire_logo": 939254794963968818,
    		"dire_team_complete": 1

    http://api.steampowered.com/ISteamRe...pid=570&ugcid=920110421043409228
    Code:
    	"data": {
    		"filename": "teams/team_logo_1343406470",
    		"url": "http://cloud-2.steampowered.com/ugc/920110421043409228/82E0398179759BD48DA9486A7F10CB1ECE55A713/",
    		"size": 26332
    	}
    Then grab the file at that URL for your team logo.
    Looks like in this case it's a .png file, but is this always the same? Cause the filename doesn't include an extension.

  6. #6
    Basic Member MuppetMaster42's Avatar
    Join Date
    Nov 2011
    Location
    Australia
    Posts
    585
    Quote Originally Posted by Arie View Post
    Looks like in this case it's a .png file, but is this always the same? Cause the filename doesn't include an extension.
    from what i've seen all the dota images are in PNG (items, heroes, etc). So i think it's*safe to* assume they'd probably convert all custom team logos to png for convenience.

  7. #7
    Administrator
    Join Date
    Oct 2012
    Posts
    66
    Quote Originally Posted by Gentlecat View Post
    Thanks, Daniel. It works.

    What about radiant_team_complete/dire_team_complete?
    I believe that signifies that all 5 players on the Radiant/Dire belong to that team (and that there aren't any stand-ins from elsewhere.)
    Last edited by DanielJ; 01-29-2013 at 06:53 PM.

  8. #8
    Basic Member
    Join Date
    Jul 2012
    Posts
    3
    For some reason when attempting to access the logo I am getting a 'The information you requested could not be retrieved.' This is the link I am attempting to pull the image from for Na'Vi

    http://cloud-2.steampowered.com/ugc/...1343406470.png

  9. #9
    Basic Member
    Join Date
    Nov 2012
    Posts
    49
    Try just using what is in the actual "url" part of the GetUGCFileDetails API response, i.e. http://cloud-2.steampowered.com/ugc/...0CB1ECE55A713/.
    That seems to work for me.

  10. #10
    Basic Member Netshroud's Avatar
    Join Date
    Dec 2011
    Posts
    166
    Quote Originally Posted by jmack View Post
    For some reason when attempting to access the logo I am getting a 'The information you requested could not be retrieved.' This is the link I am attempting to pull the image from for Na'Vi

    http://cloud-2.steampowered.com/ugc/...1343406470.png
    Where did you pull teams/team_logo_1343406470.png from? That's not part of the URL.

Posting Permissions

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