You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description for function BotAI.research states that the result should only be True if the upgrade was started.
But the function will return True even if the research is not started because of the structure needed to research the upgrade not being finished.
Researches an upgrade from a structure that can research it, if it is idle and powered (protoss).
Returns True if the research was started.
Return False if the requirement was not met, or the bot did not have enough resources to start the upgrade,
or the building to research the upgrade was missing or not idle.
The problem seems to be that the condition checking for an available structure to do the research does not check if the structure has finished building.
Will return True if there is only one evolution chamber and if it is not finished, but it should be False.
Example 2:
self.research(UpgradeId.GLIALRECONSTITUTION)
Will return True if there is only one roach warren and if it is not finished, but it should be False.
Possible solution
Adding and structure.is_ready in the condition checking for an available structure would solve the issue.
Not sure if there are any problems with this.
Description for function BotAI.research states that the result should only be True if the upgrade was started.
But the function will return True even if the research is not started because of the structure needed to research the upgrade not being finished.
python-sc2/sc2/bot_ai.py
Lines 1080 to 1085 in f175e81
The problem seems to be that the condition checking for an available structure to do the research does not check if the structure has finished building.
python-sc2/sc2/bot_ai.py
Lines 1136 to 1152 in f175e81
Example 1:
Will return True if there is only one evolution chamber and if it is not finished, but it should be False.
Example 2:
Will return True if there is only one roach warren and if it is not finished, but it should be False.
Possible solution
Adding
and structure.is_ready
in the condition checking for an available structure would solve the issue.Not sure if there are any problems with this.
python-sc2/sc2/bot_ai.py
Lines 1138 to 1147 in f175e81
Version burnysc2 6.5.0
The text was updated successfully, but these errors were encountered: