Blizzard / s2client-api

StarCraft II Client - C++ library supported on Windows, Linux and Mac designed for building scripted bots and research using the SC2API.
MIT License
1.66k stars 281 forks source link

progress not updated when building supply depots #217

Open mboedigh opened 6 years ago

mboedigh commented 6 years ago

The SCV with orders to build a supply depot will go about building the depot through completion, but the orders list will show the progress as zero the whole time.
The code below is a snippet of the code illustrating the problem: with const *iUnit pointing to the SCV that is doing the building

  if (iUnit != NULL)
        {
            if (!iUnit->orders.empty())
            {
                auto &o = *iUnit->orders.begin();
                std::cout << "\nprogress on " << AbilityTypeToName(o.ability_id) << " " << o.progress;
            }
        }
alkurbatov commented 6 years ago

I also have problems with it. Currently the only way to monitor build progress is to track the structure scv is building by tag. However here we encounter #32