google-code-export / bwapi

Automatically exported from code.google.com/p/bwapi
0 stars 0 forks source link

CoolDown shows zero for several types of Units #188

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. unit->getAirWeaponCooldown() is always 0
2. unit->getGroundWeaponCooldown() is always 0
3. only happens for tank and goliath

What is the expected output? What do you see instead?
expect to find some non zero value when the unit is attacking.

What version of the product are you using? On what operating system?
BWAPI 2.6.1

Please provide any additional information below.
this happens only on tank and goliath (among the units I tested). nothing 
is wrong for marine, ghost, ultralisk...
also, unit->isStartingAttack() always return false for tank and goliath.

Original issue reported on code.google.com by hero...@gmail.com on 22 Jan 2010 at 7:55

GoogleCodeExporter commented 9 years ago
This is most likely because tanks and goliaths have "turrets" which can attack, 
the
unit that you access as tank can't attack. You can access the turret in some 
way,
maybe something like getChild. I don't know how it is implemented but I am sure 
there
is a way.

Original comment by Heckl.Jo...@googlemail.com on 23 Jan 2010 at 12:02

GoogleCodeExporter commented 9 years ago
OK...

I hope BWAPI could have more documentation. Most functions are not documented 
enough.

Original comment by hero...@gmail.com on 23 Jan 2010 at 8:32

GoogleCodeExporter commented 9 years ago
Why read documentation? :) Just play about and try some probably crazy 
thoughts, 
and you're there :)

Original comment by tai...@nm.ru on 23 Jan 2010 at 9:45

GoogleCodeExporter commented 9 years ago
well. It is interesting and exciting to try a few things. But it is boring to 
test 
EVERY function. hope BWAPI will have more documentation.

Original comment by hero...@gmail.com on 23 Jan 2010 at 9:50

GoogleCodeExporter commented 9 years ago

Original comment by AHeinerm on 28 Jan 2010 at 9:46

GoogleCodeExporter commented 9 years ago
Hi guys,
in which unit is exprimed weapon cooldown? (milliseconds, frames, .. ?)
thanks

Original comment by mehdi.ra...@gmail.com on 3 Mar 2010 at 4:48

GoogleCodeExporter commented 9 years ago
I believe it's in frames.

Original comment by hero...@gmail.com on 3 Mar 2010 at 9:06

GoogleCodeExporter commented 9 years ago
Is there some kind of getWeaponMaxCooldown, to know of often we give an attack 
move 
order ? (if too often, the unit just keep moving without attacking)

Original comment by mehdi.ra...@gmail.com on 3 Mar 2010 at 11:08

GoogleCodeExporter commented 9 years ago
Please verify if r2109 has fixed this issue.

Original comment by AHeinerm on 6 Mar 2010 at 8:14