Skip to content
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.

Units in bunkers / transport do not get included in frames #163

Open
edran opened this issue Jun 8, 2017 · 7 comments
Open

Units in bunkers / transport do not get included in frames #163

edran opened this issue Jun 8, 2017 · 7 comments
Labels

Comments

@edran
Copy link
Contributor

edran commented Jun 8, 2017

No description provided.

@dgant
Copy link
Contributor

dgant commented Apr 17, 2018

Presumptive cause (as I learned today): BWAPI's Game.getAllUnits() and Player.getUnits() do not (by design!) return units inside dropships/refineries/bunkers/carriers/etc. unless complete map vision is enabled.

From BWAPI's standpoint, this is a feature. From TC's, it may be a hindrance.

@ebetica
Copy link
Contributor

ebetica commented Apr 18, 2018

@tscmoo do you know if this is the case? I thought you said at one point that getAllUnits worked.

@tscmoo
Copy link
Contributor

tscmoo commented Apr 18, 2018

As memory serves, getAllUnits should work, yes. I also thought we changed TC to use getAllUnits at some point, but it appears not.

@dgant
Copy link
Contributor

dgant commented Apr 18, 2018

Player.getUnits is a subset of what Game.getAllUnits returns, all of which flow from the "is there a sprite" check which causes units inside other things to be hidden (except with CompleteMapInformation).

@ebetica
Copy link
Contributor

ebetica commented Jul 27, 2018

#257 might solve this...

@dgant
Copy link
Contributor

dgant commented Jul 27, 2018

Still affected by the visibility check. There's no escaping that short of tracking unit creation/destruction from within TorchCraft (which I wouldn't recommend we do).

@dgant
Copy link
Contributor

dgant commented Jul 27, 2018

I propose closing this as "won't fix" -- it's a BWAPI limitation. We could work around it, but that's be an opinionated API change when I think we'd rather TorchCraft transparently relay BWAPI data.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants