google-code-export / bwapi

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

Scourge attack doesn't trigger onUnitDestroy #171

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Print whenever onUnitDestroy is called, then attack a scourge into an air unit.

What is the expected output? What do you see instead?

I expect onUnitDestroy to be called since the scourge is removed from the
game. Instead, it is not called.

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

Beta 2.4 on Windows XP

Please provide any additional information below.

onUnitDestroy is called when a scourge is killed by other means.

Original issue reported on code.google.com by sharpe.m...@gmail.com on 21 Dec 2009 at 2:26

GoogleCodeExporter commented 9 years ago
due to a different approach to unit event detection, this issue is fixed in the 
BWAPI 3.0 branch

It's up to you guys if you want to fix it in the 2.x branch

Original comment by goo...@teabix.com on 21 Dec 2009 at 3:06

GoogleCodeExporter commented 9 years ago
onUnitDestroy is incorrectly labelled, and should be called onUnitDeath. It's 
just a
seriously bad hook.

Original comment by AHeinerm on 25 Dec 2009 at 3:58

GoogleCodeExporter commented 9 years ago
This will be the new hook:

0x0048AAC0 ; int __fastcall sub_48AAC0(int a1)

Original comment by AHeinerm on 31 Dec 2009 at 4:31

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r1890.

Original comment by lowerlo...@gmail.com on 1 Jan 2010 at 1:15

GoogleCodeExporter commented 9 years ago
Implemented new hook in r1890. Tested and it works for scourge (both those that 
get
shot down and those that suicide into another flying unit).

Original comment by lowerlo...@gmail.com on 1 Jan 2010 at 1:18

GoogleCodeExporter commented 9 years ago
This problem seems to still exist for enemy scourge on Windows 7.

Versions:
- Windows 7.
- BWAPI Beta 2.6.1.
- W-Mode 1.02.

Reproduce:
- Print unit type name whenever onUnitDestroy is called.
- Get the single player competition maps here:
  http://eis.ucsc.edu/StarCraftTournament1
- Run the muta.scm map (UMS).
- Wait for enemy scourges to attack.

Results:
- Some calls are missing (Suiciding enemy scourges do not seem to trigger 
onUnitDestroy()).

Original comment by frel...@gmail.com on 20 Feb 2010 at 11:33

GoogleCodeExporter commented 9 years ago
Issue re-opened.

Original comment by AHeinerm on 21 Feb 2010 at 8:47

GoogleCodeExporter commented 9 years ago
Please verify if the same behaviour occurs in the latest revision.

Original comment by AHeinerm on 21 Feb 2010 at 8:47

GoogleCodeExporter commented 9 years ago

Original comment by AHeinerm on 7 Mar 2010 at 5:05

GoogleCodeExporter commented 9 years ago
Still need to add this, it'll be done soon.

Original comment by AHeinerm on 7 Mar 2010 at 10:32

GoogleCodeExporter commented 9 years ago
Looks like this does in fact work, try r2126

Original comment by AHeinerm on 7 Mar 2010 at 11:41

GoogleCodeExporter commented 9 years ago
Issue re-opened in r2127

Original comment by AHeinerm on 8 Mar 2010 at 8:40

GoogleCodeExporter commented 9 years ago
fixed in r2215

Original comment by lowerlo...@gmail.com on 19 May 2010 at 7:02