Thanks for the tip Heinermann, definitely makes it more readable (and also saves that little bit of processing time I guess)
- unfortunately the result is still the same: unit iteration works (all units are found), but any search for surrounding units returns an empty set :/
Problem using getUnitsInRadius()
-
- Posts: 362
- Joined: Thu Apr 26, 2007 12:42 am [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
-
- Posts: 35
- Joined: Tue Jun 28, 2011 1:26 pm [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[quote name='swen' date='26 January 2012 - 12:05 PM' timestamp='1327547133' post='10688']
Thanks for the tip Heinermann, definitely makes it more readable (and also saves that little bit of processing time I guess)
- unfortunately the result is still the same: unit iteration works (all units are found), but any search for surrounding units returns an empty set :/
[/quote]
Yeah, I had the same problem. So far, I fixed it using UnitGroup::inRadius from BWSAL.
Thanks for the tip Heinermann, definitely makes it more readable (and also saves that little bit of processing time I guess)
- unfortunately the result is still the same: unit iteration works (all units are found), but any search for surrounding units returns an empty set :/
[/quote]
Yeah, I had the same problem. So far, I fixed it using UnitGroup::inRadius from BWSAL.
-
- Posts: 254
- Joined: Thu Dec 18, 2008 12:42 pm [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[quote name='Kae' date='24 February 2012 - 03:01 AM' timestamp='1330045277' post='10768']
[quote name='swen' date='26 January 2012 - 12:05 PM' timestamp='1327547133' post='10688']
Thanks for the tip Heinermann, definitely makes it more readable (and also saves that little bit of processing time I guess)
- unfortunately the result is still the same: unit iteration works (all units are found), but any search for surrounding units returns an empty set :/
[/quote]
Yeah, I had the same problem. So far, I fixed it using UnitGroup::inRadius from BWSAL.
[/quote]
I think Heinermann has fixed this now. Try using a newer BWAPI3 revision
[quote name='swen' date='26 January 2012 - 12:05 PM' timestamp='1327547133' post='10688']
Thanks for the tip Heinermann, definitely makes it more readable (and also saves that little bit of processing time I guess)
- unfortunately the result is still the same: unit iteration works (all units are found), but any search for surrounding units returns an empty set :/
[/quote]
Yeah, I had the same problem. So far, I fixed it using UnitGroup::inRadius from BWSAL.
[/quote]
I think Heinermann has fixed this now. Try using a newer BWAPI3 revision
-
- Posts: 362
- Joined: Thu Apr 26, 2007 12:42 am [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
This issue was fixed here int r4054. http://code.google.com/p/bwapi/source/detail?r=4054
-
- Posts: 362
- Joined: Thu Apr 26, 2007 12:42 am [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Who is online
Users browsing this forum: No registered users and 0 guests