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
{{ message }}
Repository navigation
STARPORTTECHLABRESEARCH abilities not working #294
I think you are trying to research upgrades that were removed from the game but are still listed in the AbilityIds.
You can also use the .research function to let the function figure out the research ability from an UpgradeId:
idle_starport_techlabs=self.units.filter(lambdau: u.type_id==UnitTypeId.STARPORTTECHLABandu.is_readyandu.is_idle)
forsptinidle_starport_techlabs:
self.combinedActions.append(spt.research(UpgradeId.BANSHEECLOAK))
self.combinedActions.append(spt.research(UpgradeId.BANSHEESPEED))
self.combinedActions.append(spt.research(UpgradeId.MEDIVACINCREASESPEEDBOOST))
self.combinedActions.append(spt.research(UpgradeId.RAVENCORVIDREACTOR))
# The following requires that you have a fusion coreself.combinedActions.append(spt.research(UpgradeId.LIBERATORMORPH))
awaitself.do_actions(self.combinedActions)
Here are a couple upgrades and their corresponding research abilities.
Thanks @BurnySc2 for pointing it out!
This is great help of understanding how does the research upgrade works in python-sc2.
I would suggest to remove the unused attributes.
Activity
baibinghere commentedon Jun 26, 2019
Just found that at least for Banshee, I can use below Abilities:
RESEARCH_BANSHEECLOAKINGFIELD
RESEARCH_BANSHEEHYPERFLIGHTROTORS
I still don't understand why STARPORTTECHLABRESEARCH_RESEARCH*** doesn't work.
It looks much more official.
BurnySc2 commentedon Jun 26, 2019
I think you are trying to research upgrades that were removed from the game but are still listed in the AbilityIds.
You can also use the
.researchfunction to let the function figure out the research ability from an UpgradeId:Here are a couple upgrades and their corresponding research abilities.
baibinghere commentedon Jun 27, 2019
Thanks @BurnySc2 for pointing it out!
This is great help of understanding how does the research upgrade works in python-sc2.
I would suggest to remove the unused attributes.