Units move to (0,0) regardless of using Move, Rightclick or Attack

https://github.com/bwapi/bwapi
[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
User avatar
Leckofunny
Posts: 27
Joined: Mon Apr 04, 2016 7:41 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

Units move to (0,0) regardless of using Move, Rightclick or Attack

Postby Leckofunny » Sun Apr 17, 2016 11:20 am

Attachments
marines.png
marines.png (169.03 KiB) Viewed 6742 times
User avatar
warwolf30
Site Admin
Posts: 7
Joined: Mon Apr 04, 2016 12:33 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

Re: Units move to (0,0) regardless of using Move, Rightclick or Attack

Postby warwolf30 » Sun Apr 17, 2016 5:41 pm

User avatar
Leckofunny
Posts: 27
Joined: Mon Apr 04, 2016 7:41 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

Re: Units move to (0,0) regardless of using Move, Rightclick or Attack

Postby Leckofunny » Sun Apr 17, 2016 5:50 pm

This wrapper doesn't provide a constructor using TilePosition as parameter.

It looks like that I'm dealing with some conversion issue. I have to multiply the TilePosition by 32 in order to get the proper Position.


edit: I hard coded targetPosition, so its always on (28,13) or on (29,45) depending on the startLocation.

[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
[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

Return to “BWAPI (wrappers in other languages / questions and announcements related to BWAPI itself)”

Who is online

Users browsing this forum: No registered users and 11 guests