If you just cant wait, grab the 1.5Gb PTR download and give the StarCraft is free to download with Patch 1.18 with a free
Starcraft 118 Patch Download And GiveDeprecated unit.killed_by in favor of unit.killing_player Loading resources in this way returns a replay generator: replays = sc2reader.load_replays('path/to/replay/directory') Nothing elseSc2reader.load_replay('MyReplay.SC2Replay', load_level=0)# Also loads game details: map, speed, time played, etcSc2reader.load_replay('MyReplay.SC2Replay', load_level=1)Sc2reader.load_replay('MyReplay.SC2Replay', load_level=2)Sc2reader.load_replay('MyReplay.SC2Replay', load_level=3)Sc2reader.load_replay('MyReplay.SC2Replay', load_level=4)If you want to load a collection of replays, you can use the plural form. You can use the load level option to limit replay loading and improve load times: # Release version and game length info. In some cases, you donât need the full extent of the replay data. Versioned meta data support will be addedFor many users, the most basic commands will handle all of their needs: import sc2readerReplay = sc2reader.load_replay('MyReplay', load_map=true)This will load all replay data and fix GameHeart games. Find mac id for teamviewerRemoved the defunct replay.player_names attribute. Now a CorruptTrackerFileError is raised when the tracker file is corrupted (generally only older resume_from_replay replays) But hopefully people were not doing that anyway. This means no more unit._type_class._class_._name_. Use generic UnitType and Ability classes for data. Deprecated UnitDiedEvent.killer in favor of UnitDiedEvent.killing_player All references to the gateway attribute have been replaced in favor of region e.g. Replays can now be pickled and stored for later consumption. Removed the defunct replay.other_people attribute. AddToHotkeyEvent is now AddToControlGroupEvent. SetToHotkeyEvent is now SetControlGroupEvent. See replay.resume_user_info for additional info. event.name is no longer a class property it can only be accessed from an event instance. SelfAbilityEvent is now DataCommandEvent LocationAbilityEvent is now TargetPointCommandEvent TargetAbilityEvent is now TargetUnitCommandEvent AbilityEvent doubled as both an abstract and concrete class (very bad, see #160). PlayerAbilityEvent is no longer part of the event hierarchy. ![]() Reorganized the person/player/observer hierarchy. Deprecated player.gateway for player.region Fixed #136, unit types from tracker events are used when available. To conform with replay name conventions PersonDict can no longer be constructed from a player list and new players cannot be added by string (name). Player.uid is now the user id of the player (was player.cid) Player.uid now means something completely different! Use player.toon_id instead Participant and Computer are both children of player so any isinstance code should still work fine. An unknown color name will use 0x000000 as the color. An unknown hex value will use the hex value as the name. Log a warning instead of throwing an exception when using an unknown colors.
0 Comments
Leave a Reply. |
AuthorHallie ArchivesCategories |