Announcement

Collapse

Forum Rules

  • No flaming or derogatory remarks, directly or through insinuation.
  • No discussion, sharing or referencing illegal software such as hacks, keygen, cracks and pirated software.
  • No offensive contents, including but not limited to, racism, gore or pornography.
  • No excessive spam/meme, i.e. copious one liners in a short period of time, typing with all caps or posting meme responses (text/image).
  • No trolling, including but not limited to, flame incitation, user provocation or false information distribution.
  • No link spamming or signature advertisements for content not specific to Dota 2.
  • No Dota 2 key requests, sell, trade etc.
  • You may not create multiple accounts for any purpose, including ban evasion, unless expressly permitted by a moderator.

  • Please search before posting. One thread per issue. Do not create another thread if there is an existing one already.
  • Before posting anything, make sure you check out all sticky threads (e.g., this). Do not create new threads about closed ones.
  • It is extremely important that you post in correct forum section.

  • Balance discussion only in Misc.
  • All art related (such as hero model) feedbacks go to Art Feedback Forum.
  • All matchmaking feedback should go here: Matchmaking Feedback
  • All report/low priority issues should go here: Commend/Report/Ban Feedback
  • No specific workshop item feedback. These should go to workshop page of that item.
  • When posting in non-bugs section (such as this), use [Bugs], [Discussion] or [Suggestion] prefix in your thread name.



In case you object some action by a moderator, please contact him directly through PM and explain your concerns politely. If you are still unable to resolve the issue, contact an administrator. Do not drag these issues in public.



All rules are meant to augment common sense, please use them when not conflicted with aforementioned policies.
See more
See less

THINGS YOU SHOULD KNOW BEFORE STARTING

Collapse
This is a sticky topic.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Originally posted by BradPitt View Post
    Hey MuppetMaster42,

    I've tried e-mailing the Dota 2 team but never got an answer, so I'm going to try this here. While building the dota 2 version of http://backpack.tf (final version not live to the public yet) we realized the GetPlayerItems API did not include the socket and gem attributes. It used to include the attached particles but since they moved to gems they are no longer included. We are currently forced to fetch the GetPlayerItems WebAPI and simultaneously the community json to be able to display item information properly. It is not efficient as it involves parsing HTML code within the community json on top of that. I would assume this adds some additional strain to VALVe's server as well but we don't have a choice if we want to display accurate information. Would it be possible to add the missing attributes to GetPlayerItems ? And if you are feeling generous, could you add item rarity to GetSchema, I think this has been requested several times by the community and would definitely help those who are struggling with parsing vdf files.

    Thanks in advance.
    I'm flattered that you think I have some say in what happens with the valve
    I'm just a regular guy who's spent too much time with the API.
    There's a link to a community-run feature request form in the "Known Bugs" thread.
    that's your best bet really!
    The API Bible: Things You Should Know Before Starting API Development

    Comment


    • Originally posted by MuppetMaster42 View Post
      I'm flattered that you think I have some say in what happens with the valve
      I'm just a regular guy who's spent too much time with the API.
      There's a link to a community-run feature request form in the "Known Bugs" thread.
      that's your best bet really!
      Thanks for the advice, I have posted there as well.

      Comment


      • First I would like to thank you for your attention already. I am developing an Android application and I'm having enough trouble finding references on how to get description of items, skills and heroes.

        For example:

        item -

        Tango - descripion - bla bla bla

        Hero -

        Axe

        **** Skill - bla bla bla

        Could you help me with some information this?

        Comment


        • ItemID problem...

          Everyone, I just downloaded a matchID and it said one of the heroes in the game was carrying an item with ID number 169. However, according to the item ID's found at http://www.dota2.com/jsfeed/itemdata, there is no item number 169. What's going on here?

          Comment


          • Hey guys! I use method "http://api.steampowered.com/IEconItems_570/GetPlayerItems/v0001/" and get information about items, but how can i get information about gems inside items? Is that possible?

            Comment


            • Originally posted by HiRoGliFiQ View Post
              ItemID problem...

              Everyone, I just downloaded a matchID and it said one of the heroes in the game was carrying an item with ID number 169. However, according to the item ID's found at http://www.dota2.com/jsfeed/itemdata, there is no item number 169. What's going on here?
              169 is a Yasha Recipe. That JSFeed isn't the full list of items. It's just the items that are used in the shop keepers quiz.

              A good list you can find here thanks to another forum members post. https://github.com/kronusme/dota2-ap...ata/items.json
              Other way to grab the actual ID out of the game files.

              Comment


              • It's giving me a lobby type 8 today, which isn't on the list of possible lobby numbers found at https://github.com/kronusme/dota2-ap...a/lobbies.json

                What is lobby 8? The majority of games are coming up as that lobby number now.

                Comment


                • Originally posted by HiRoGliFiQ View Post
                  It's giving me a lobby type 8 today, which isn't on the list of possible lobby numbers found at https://github.com/kronusme/dota2-ap...a/lobbies.json

                  What is lobby 8? The majority of games are coming up as that lobby number now.
                  Code:
                  enum LobbyType {
                  	INVALID = -1;
                  	CASUAL_MATCH = 0;
                  	PRACTICE = 1;
                  	TOURNAMENT = 2;
                  	COOP_BOT_MATCH = 4;
                  	LEGACY_TEAM_MATCH = 5;
                  	LEGACY_SOLO_QUEUE_MATCH = 6;
                  	COMPETITIVE_MATCH = 7;
                  	CASUAL_1V1_MATCH = 8;
                  }

                  Comment


                  • Can anyone explain me the difference in various methods IEconItems_570 IEconItems_440 IEconItems_238460 IEconItems_218620 IEconItems_205790 and so on. What does the number mean?

                    Comment


                    • Originally posted by kunalpowar1203 View Post
                      Can anyone explain me the difference in various methods IEconItems_570 IEconItems_440 IEconItems_238460 IEconItems_218620 IEconItems_205790 and so on. What does the number mean?
                      if you've read anything about the API.
                      you'll realise that the number is the game id.
                      The API Bible: Things You Should Know Before Starting API Development

                      Comment


                      • Thanks a lot. Missed reading about this in the API.

                        Comment


                        • Hey guys, noob question here, apologies if this has been asked before!
                          I did a quick search and nothing really came up, I have some specific questions about the getLiveLeagueGames API. Hopefully someone here is more knowledgeable in this area than I am! Some questions:
                          • The extensive documentation here is good (so good!), but what defines a "league" game?
                          • Is there a list of running tournaments maintained somewhere?
                          • Can any game classify as a "league" game, no matter the tier?
                          • How often do league games actually run? Is there data coming through this endpoint every day?


                          Thanks!

                          Comment


                          • Originally posted by susanne View Post
                            • The extensive documentation here is good (so good!), but what defines a "league" game?
                            • Is there a list of running tournaments maintained somewhere?
                            A league game is any game played as part of a tournament with a ticket in the store.
                            See the GetLeagueListing API. This provides a list of all valid leagues.

                            Originally posted by susanne View Post
                            • Can any game classify as a "league" game, no matter the tier?
                            The tier itself does not matter, as long as it has a ticket in the store it will be listed in the GetLeagueListing API and its matches will show up in GetLiveLeagueGames (as long as the tournament runner doesn't cock anything up..)

                            Originally posted by susanne View Post
                            • How often do league games actually run? Is there data coming through this endpoint every day?
                            It used to be you'd rarely get much through the API, because only big tournaments had tickets.

                            But now there are ameteur level tourneys, so pretty much every time I've looked at GetLiveLeagueGames it's had at least 1 game in it.
                            Chances are it won't be a game with teams you know, but there'll be games.

                            If you have a look at oskor's site http://dota2.azurewebsites.net/LiveLeagueGames
                            You can see an example if it in action. AFAIK he displays every bit of data from that API.
                            The API Bible: Things You Should Know Before Starting API Development

                            Comment


                            • Thanks so much for your help MuppetMaster42! It was very insightful

                              Comment


                              • Hi, thx for the detailed explanantion.

                                One thing I'm very interested it (sorry if it was already asked somewhere) in whether or not GetScheduledLeagueGames is going to be implemented any time soon? I would like to know if I should consider using it in development or find some other ways to get the league schedule

                                There's a public calendar inside the game, so why not have one in the API?

                                Comment

                                Working...
                                X