Page 4 of 30 FirstFirst ... 2 3 4 5 6 14 ... LastLast
Results 31 to 40 of 296

Thread: THINGS YOU SHOULD KNOW BEFORE STARTING

  1. #31
    Basic Member
    Join Date
    Nov 2011
    Posts
    13
    Quote Originally Posted by MuppetMaster42 View Post
    Item IDs can be found in/parsed from the following game file:
    Code:
    <path to steam>/Steam/steamapps/common/dota 2 beta/game/dota/scripts/npc/items.txt
    It's packed in VPK files now, as per this post:
    http://dev.dota2.com/showthread.php?...ight=items.txt

    Probably should update the sticky.

  2. #32
    Basic Member
    Join Date
    Jun 2012
    Posts
    10
    Is there an IRC channel for dota 2 web api talk?

  3. #33
    Basic Member
    Join Date
    Nov 2011
    Posts
    149
    Quote Originally Posted by Shoot View Post
    Is there an IRC channel for dota 2 web api talk?
    A couple of us lurking in ##dota2webapi on freenode.

  4. #34
    Basic Member
    Join Date
    Sep 2012
    Posts
    23
    Quote Originally Posted by alcaras View Post
    It's packed in VPK files now, as per this post:
    http://dev.dota2.com/showthread.php?...ight=items.txt

    Probably should update the sticky.
    You can unpack that file with gcfscape: http://nemesis.thewavelength.net/index.php?p=25

  5. #35
    Basic Member
    Join Date
    Dec 2011
    Posts
    11,187
    Quote Originally Posted by MuppetMaster42 View Post

    GetMatchDetails
    Used to get detailed information about a specified match.

    Available options:
    Code:
    match_id=<id> # the match's ID
    Examples:
    To get the details for match with ID "XXXXX":
    Code:
    https://api.steampowered.com/IDOTA2Match_570/GetMatchDetails/V001/?key=<key>&match_id=XXXXX
    Result Field Format:
    • players - an array of players:
      • account_id - the player's 32-bit Steam ID
      • player_slot - an 8-bit unsigned int: if the left-most bit is set, the player was on dire. the two right-most bits represent the player slot (0-4)
      • hero_id - the numeric ID of the hero that the player used
      • item_0 - the numeric ID of the item that player had in their top-left slot
      • item_1 - the numeric ID of the item that player had in their top-center slot
      • item_2 - the numeric ID of the item that player had in their top-right slot
      • item_3 - the numeric ID of the item that player had in their bottom-left slot
      • item_4 - the numeric ID of the item that player had in their bottom-center slot
      • item_5 - the numeric ID of the item that player had in their bottom-right slot
      • kills - the number of kills the player got
      • deaths - the number of times the player died
      • assists - the number of assists the player got
      • leaver_status
        • NULL - player is a bot.
        • 2 - player abandoned game.
        • 1 - player left game after the game has become safe to leave/
        • 0 - Player stayed for the entire match.

      • gold - the amount of gold the player had left at the end of the match
      • last_hits - the number of times a player last-hit a creep
      • denies - the number of times a player denied a creep
      • gold_per_min - the player's total gold/min
      • xp_per_min - the player's total xp/min
      • gold_spent - the total amount of gold the player spent over the entire match
      • hero_damage - the amount of damage the player dealt to heroes
      • tower_damage - the amount of damage the player dealt to towers
      • hero_healing - the amount of damage the player healed
      • level - the player's final level
      • additional_units - (optional) term to account for units such as spirit bear
        • unitname - the name of the unit
        • item_0 - the inventory of the unit
        • item_1
        • item_2
        • item_3
        • item_4
        • item_5

    • season - ????????
    • radiant_win - true if radiant won, false otherwise
    • duration - the total time in seconds the match ran for
    • starttime - date in UTC seconds since Jan 1, 1970 (unix time format)
    • match_id - the numeric match ID
    • tower_status_radiant - an 11-bit unsinged int: see THIS THREAD
    • tower_status_dire - an 11-bit unsinged int: see THIS THREAD
    • barracks_status_radiant - a 6-bit unsinged int: see THIS THREAD
    • barracks_status_radiant - a 6-bit unsinged int: see THIS THREAD
    • cluster - see REPLAYS below
    • first_blood_time - the total time in seconds at which first blood occurred
    • replay_salt - see REPLAYS below
    • lobby_type - the type of lobby (0 for human matchmaking, 1 for co-op bot)
    • human_players - the number of human players in the match
    • leagueid - the leauge this match is from (see GetMatchHistory above)
    • positive_votes - the number of thumbs up the game has received
    • positive_votes - the number of thumbs up the game has received
    i added the part about additional units (e.g. spirit bear).
    Make sure to read the Forum Rules as well as the stickied Threads of the Forum Section you are posting in.

    Contributions i'd like to highlight:
    My Suggestion: Coaching System
    My Sticky: Intended Changes List
    My Challenge: Completely Fixed Hero Challenge: Skywrath Mage

  6. #36
    Basic Member adrianlegg's Avatar
    Join Date
    Mar 2012
    Posts
    568
    As I PM'ed, correct game modes are:

    var g_gamemodes =
    {
    '1' : 'All Pick',
    '2' : "Captains Mode",
    '3' : 'Random Draft',
    '4' : 'Single Draft',
    '5' : 'All Random',
    '6' : '?? INTRO/DEATH ??',
    '7' : 'The Diretide',
    '8' : "Reverse Captains Mode",
    '9' : 'Greeviling',
    '10' : 'Tutorial',
    '11' : 'Mid Only',
    '12' : 'Least Played',
    '13' : 'New Player Pool'
    };
    Take a look at any league match(110124683), and any all random match(115252636) (and any ap match, it's 1, not 0)
    I've got no idea what 6th mode is.
    You gotta FIGHT!
    For Your RIGHT!
    To BUUUGFIX!

  7. #37
    Basic Member MuppetMaster42's Avatar
    Join Date
    Nov 2011
    Location
    Australia
    Posts
    585
    Quote Originally Posted by adrianlegg View Post
    As I PM'ed, correct game modes are:

    Take a look at any league match(110124683), and any all random match(115252636) (and any ap match, it's 1, not 0)
    I've got no idea what 6th mode is.
    Sorry, I forgot to check the notes on my laptop that I made on my holiday.. I was on autopilot!
    I just fixed it, thanks

  8. #38
    Basic Member
    Join Date
    Oct 2011
    Posts
    72
    Not sure if this has been mentioned elsewhere and I couldn't find it, but to use the GetMatchHistoryBySequenceNum call you can use the option 'start_at_match_seq_num' . For example: http://api.steampowered.com/IDOTA2Match_570/GetMatchHistoryBySequenceNum/v0001/?key=<key>&start_at_match_seq_num=107083073

    I'm not sure what other options there are. I tried using some of the options from the GetMatchHistory call but other than matches_requested=<n> they didn't seem to effect the call.
    datdota.com -- Dota 2 Stats for the Professional Scene

  9. #39
    Basic Member Netshroud's Avatar
    Join Date
    Dec 2011
    Posts
    166
    Yes, that's been mentioned and documented. GetMatchHistoryBySequenceNum has three parameters - key, start_at_match_seq_num (optional) and matches_requested (optional)

  10. #40
    Basic Member
    Join Date
    Dec 2011
    Posts
    70
    Quote Originally Posted by MuppetMaster42 View Post
    lobby_type - the type of lobby
    • 5 = Team match.
    • 4 = Co-op with bots.
    • 3 = Tutorial.
    • 2 = Tournament.
    • 1 = Practice.
    • 0 = Public matchmaking.
    • -1 = Invalid.
    https://api.steampowered.com/IDOTA2Match_570/GetMatchDetails/V001/?match_id=117762656&key=<key>

    Here lobby_type is 1, whereas it's a tournament game...

Tags for this Thread

Posting Permissions

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