ggtrackerstack icon indicating copy to clipboard operation
ggtrackerstack copied to clipboard

LOTV: Zerg macro doesn't work when queuing injects

Open gravelweb opened this issue 9 years ago • 2 comments

Looks like queueing injects causes the previous inject to be unregistered.

sc2parse/plugins.py:1153 (ZergMacroTracker)

        if target_hatch_id not in owner.hatches:
            target_hatch.injects = [event.frame]
            owner.hatches[target_hatch_id] = target_hatch
        else:
            # If not enough time has passed, the last one didn't happen
            if event.frame - target_hatch.injects[-1] < INJECT_TIME:
                print "Previous inject on {0} at {1} failed".format(target_hatch, target_hatch.injects[-1])
                target_hatch.injects[-1] = event.frame
            else:
                target_hatch.injects.append(event.frame)

gravelweb avatar Jun 05 '16 15:06 gravelweb

Fixed by https://github.com/ggtracker/sc2reader/pull/14 and https://github.com/dsjoerg/ggpyjobs/pull/11

dsjoerg avatar Jun 13 '16 13:06 dsjoerg

The queued injects are still not showing up in the graph, because of the code above ^^ I'm looking to solve this in the beginning of July.

gravelweb avatar Jun 13 '16 15:06 gravelweb