pysc2
pysc2 copied to clipboard
Small bug on FindAndDefeatZerglings
Hi, I just noticed that at step 0 of FindAndDefeatZerglings the marines appear as selected only on the minimap_features layers 'selected', but not in the one of screen_features. At step 1 selects them in both and that solves the problem.
It's nothing too important, but I noticed it's affecting the action space and consequently the behaviour of my agent. Example:
Available actions after calling env.reset() 0/no_op () 1/move_camera (1/minimap [0, 0]) 2/select_point (6/select_point_act [4]; 0/screen [0, 0]) 3/select_rect (7/select_add [2]; 0/screen [0, 0]; 2/screen2 [0, 0]) 4/select_control_group (4/control_group_act [5]; 5/control_group_id [10]) 7/select_army (7/select_add [2])
After playing no_op() 0/no_op () 1/move_camera (1/minimap [0, 0]) 2/select_point (6/select_point_act [4]; 0/screen [0, 0]) 3/select_rect (7/select_add [2]; 0/screen [0, 0]; 2/screen2 [0, 0]) 4/select_control_group (4/control_group_act [5]; 5/control_group_id [10]) 5/select_unit (8/select_unit_act [4]; 9/select_unit_id [500]) 453/Stop_quick (3/queued [2]) 7/select_army (7/select_add [2]) 451/Smart_screen (3/queued [2]; 0/screen [0, 0]) 452/Smart_minimap (3/queued [2]; 1/minimap [0, 0]) 331/Move_screen (3/queued [2]; 0/screen [0, 0]) 332/Move_minimap (3/queued [2]; 1/minimap [0, 0]) 333/Patrol_screen (3/queued [2]; 0/screen [0, 0]) 334/Patrol_minimap (3/queued [2]; 1/minimap [0, 0]) 12/Attack_screen (3/queued [2]; 0/screen [0, 0]) 13/Attack_minimap (3/queued [2]; 1/minimap [0, 0]) 274/HoldPosition_quick (3/queued [2])