Page 9 of 30 FirstFirst ... 7 8 9 10 11 19 ... LastLast
Results 81 to 90 of 296

Thread: THINGS YOU SHOULD KNOW BEFORE STARTING

  1. #81
    Basic Member
    Join Date
    Sep 2011
    Location
    Lille, France
    Posts
    52
    Quote Originally Posted by Razumov View Post
    Anyone know what leaver_status 3 or leaver_status 4 stand for?

    Edit: Did some testing of 9 recent games with leaver_status 2, 3, and 4 (tested 3 of each type). Looks like:
    leaver_status 2: Player abandons after being dc'd for 5 minutes of game time.
    leaver_status 3: Player abandons after choosing to abandon.
    leaver_status 4: Player abandons after not getting experience for 5 minutes of game time.

    Not sure what leaver_status someone gets for not moving for 5 minutes (I thought that was a way to abandon). I only tested 9 games, all from a batch of 100 recent games, so this may be incorrect. Below are my rough notes:
    Code:
    enum DOTALeaverStatus_t {
    	DOTA_LEAVER_NONE = 0;
    	DOTA_LEAVER_DISCONNECTED = 1;
    	DOTA_LEAVER_DISCONNECTED_TOO_LONG = 2;
    	DOTA_LEAVER_ABANDONED = 3;
    	DOTA_LEAVER_AFK = 4;
    	DOTA_LEAVER_NEVER_CONNECTED = 5;
    	DOTA_LEAVER_NEVER_CONNECTED_TOO_LONG = 6;
    }

  2. #82
    Actually I have one little promblem here

    STEAMIDS

    STEAMID64 - 76561197960265728 = STEAMID32
    STEAMID32 + 76561197960265728 = STEAMID64
    OR
    STEAMID32 = The right-most 32-bits of STEAMID64

    But I find one thing that,the SteamID64 I get from URL does not fit the STEAMID32 I find from a single game which the same user played in .Only the last two digit don't fit.

    I can't find out the mistake.

  3. #83
    Basic Member
    Join Date
    Oct 2012
    Posts
    81
    I just wrote a crawler to get my match history and the description in the OP is wrong/misleading.

    Getting the date of the last match and using it as max_date for the next result changes the sort order of the matches and you will get many duplicates.

    Getting the last match id of the result set and using start at match id will limit to 500 results only.

    You need to combine both,

    Crawl the first 500 matches:
    Code:
    https://api.steampowered.com/IDOTA2Match_570/GetMatchHistory/V001/?key=<key>
    keep using start_at_match_id to get to the last set of matches
    if no matches returned, you're done.
    if results_remaining =0, get the last start_time of the matches.

    Crawl the next 500 matches, using the same max_date result from above while you keep changing the start_at_match_id.
    if no matches returned, you're done.
    if results_remaining =0, get the last start_time of the matches.
    repeat..

    It was really confusing for me at first, because if you don't use both parameters, the parameters by themselves will not behave logically

  4. #84
    Basic Member RJackson's Avatar
    Join Date
    Sep 2011
    Posts
    121
    Quote Originally Posted by centurion42 View Post
    Actually I have one little promblem here

    STEAMIDS

    STEAMID64 - 76561197960265728 = STEAMID32
    STEAMID32 + 76561197960265728 = STEAMID64
    OR
    STEAMID32 = The right-most 32-bits of STEAMID64

    But I find one thing that,the SteamID64 I get from URL does not fit the STEAMID32 I find from a single game which the same user played in .Only the last two digit don't fit.

    I can't find out the mistake.
    Which steam ID and account ID are you comparing? I don't know if "76561197960265728" is reliable for every Steam user too, I tend to just AND with 0xFFFFFFFF to get an account ID from a steam ID in case "76561197960265728" doesn't accurately reflect the other 32 bits of a Steam ID.

  5. #85
    Basic Member Netshroud's Avatar
    Join Date
    Dec 2011
    Posts
    166
    76561197960265728 is reliable for Public universe, Individual account, instance 1. It won't work for Console or Web instances, any other SteamID type (gameserver, etc.) or on other universes such as a Steam developer's local machine.

    That said, magic numbers are evil.

  6. #86
    Quote Originally Posted by papa_pointnet View Post
    Code:
    enum DOTALeaverStatus_t {
    	DOTA_LEAVER_NONE = 0;
    	DOTA_LEAVER_DISCONNECTED = 1;
    	DOTA_LEAVER_DISCONNECTED_TOO_LONG = 2;
    	DOTA_LEAVER_ABANDONED = 3;
    	DOTA_LEAVER_AFK = 4;
    	DOTA_LEAVER_NEVER_CONNECTED = 5;
    	DOTA_LEAVER_NEVER_CONNECTED_TOO_LONG = 6;
    }
    Are you sure about these values? Where did you get them? Just from a random game of mine, (http://dotabuff.com/matches/111354419) I think Tide just abandoned. But he's marked as LEAVER_AFK. Can we get an explanation of these values, what's DISCONNECTED_TOO_LONG? NEVER_CONNECTED_TOO_LONG? Please elaborate, thanks.

  7. #87
    Basic Member Netshroud's Avatar
    Join Date
    Dec 2011
    Posts
    166
    That enum comes from the Dota 2 binaries themselves, so they come with no explanation.

    I have no idea what the _TOO_LONG variants are.

  8. #88
    One more question concerning leaver_status. How does Valve count games that were abandoned? What are the rules for that? I think I read somewheres that games with no kills and/or were shorter than 5 minutes did not count, but longer games did, even when people abandoned. Is this correct? I'm trying to filter out abandon games and it's not matching up w/ the in-game win/loss display.

  9. #89
    Is there an official word on game modes 0 and 14? I am guessing "before this field was operational" and "Compendium Matchmaking" respectively, but it would be nice to know.

  10. #90
    Basic Member
    Join Date
    Sep 2011
    Location
    Lille, France
    Posts
    52
    Quote Originally Posted by datadrivendota View Post
    Is there an official word on game modes 0 and 14? I am guessing "before this field was operational" and "Compendium Matchmaking" respectively, but it would be nice to know.
    Code:
    enum DOTA_GameMode {
        DOTA_GAMEMODE_NONE = 0;
        DOTA_GAMEMODE_AP = 1;
        DOTA_GAMEMODE_CM = 2;
        DOTA_GAMEMODE_RD = 3;
        DOTA_GAMEMODE_SD = 4;
        DOTA_GAMEMODE_AR = 5;
        DOTA_GAMEMODE_INTRO = 6;
        DOTA_GAMEMODE_HW = 7;
        DOTA_GAMEMODE_REVERSE_CM = 8;
        DOTA_GAMEMODE_XMAS = 9;
        DOTA_GAMEMODE_TUTORIAL = 10;
        DOTA_GAMEMODE_MO = 11;
        DOTA_GAMEMODE_LP = 12;
        DOTA_GAMEMODE_POOL1 = 13;
        DOTA_GAMEMODE_FH = 14;
    }

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
  •