I'm printing an APM report at the end of my game by keeping track of all bot.state.actions during the entire game. Since I updated python-sc2 recently, it has become completely nonsensical.
I think there is a bug introduced in 94e94ed in game_state.py (see 94e94ed#r183392187), where the field ability_id was moved from ActionRawUnitCommand to its base class, AbilityLookupTemplateClass. This changes the argument order of the initializer (before: game_loop, ability_id, ..., after: ability_id, game_loop, ..., but callers, such as game_state.actions have not been updated to the new ordering:
edit: it looks like the same may apply to ActionRawToggleAutocast
I'm printing an APM report at the end of my game by keeping track of all
bot.state.actionsduring the entire game. Since I updatedpython-sc2recently, it has become completely nonsensical.I think there is a bug introduced in 94e94ed in
game_state.py(see 94e94ed#r183392187), where the fieldability_idwas moved fromActionRawUnitCommandto its base class,AbilityLookupTemplateClass. This changes the argument order of the initializer (before:game_loop, ability_id, ..., after:ability_id, game_loop, ..., but callers, such asgame_state.actionshave not been updated to the new ordering:edit: it looks like the same may apply to
ActionRawToggleAutocast