-
Notifications
You must be signed in to change notification settings - Fork 40
Demo.file_info
A lot of general information about the game can be determined before parsing any of the PacketEntities using the CGameInfo Protobuf message.
This is actually contained within a CDemoFileInfo Protobuf message, which can be found in the file_info
attribute of the skadi.Demo
class.
-
CDemoFileInfo
-
playback_time
-
playback_ticks
-
playback_frames
-
CDotaGameInfo
-
match_id: the match ID
-
game_mode: game mode
-
game_winner: team id for the game winner (2 for Radiant, 3 for Dire)
-
leagueid
-
radiant_team_id: Radiant's team ID
-
dire_team_id: Dire's team ID
-
radiant_team_tag: Radiant's team tag
-
dire_team_tag: Dire's team tag
-
end_time: seconds since Epoch for when the game ended
-
player_info: list of CPlayerInfo messages (see below)
-
picks_bans: list of CHeroSelectEvent messages (see below)
-
CPlayerInfo
-
hero_name: backend name for the hero being played (eg. npc_dota_hero_nyx_assassin)
-
player_name: player's name when the game was played
-
is_fake_client
-
steamid: the steamID64 for the player
-
game_team: team index for the player (2 for Radiant, 3 for Dire)
-
CHeroSelectEvent
-
is_pick: boolean determining if this is a pick or ban
-
team: team index for the pick/ban (2 for Radiant, 3 for Dire)
-
hero_id: hero ID for the pick/ban (from GetHeroes API)