HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

New weird bug found on wc3

08-26-2009, 05:42 PM#1
Anachron
Hey,

I played around with my new AOS, and got a REALLY weird bug!

Bug #1:

I set the unit hp addition from strengh to 0, set the strengh attribute to 0, set the base hitpoints to 0 and placed an unit on the map.

On test, the unit could walk in deep water and does NOT respect most collisions of bushes, however, trees and some other are respected.

The HP bar shows 1/1, however, the bar on hero icon is empty.
(Meaning black).

Weird.
Click image for larger version

Name:	WeirdBug.jpg
Views:	102
Size:	312.9 KB
ID:	45247

BUG #2:

Huge BUG WITH NEGATIVE HP!

Attachment 45248
Attached Images
File type: jpgWeirdBug.jpg (312.9 KB)
08-26-2009, 07:01 PM#2
Flame_Phoenix
Are you sure you didn't change the collision size ?
Well technically a unit with 0 hp is a dead unit, if the computer is treating your hero like a dead unit that may explain all the bugs.
Quite a funny bug you have found. Btw, can you set a unit's hp to a negative value ? That would be awesome xD
08-26-2009, 07:02 PM#3
Alevice
its fun to see 1/1 in red
08-26-2009, 07:38 PM#4
Anachron
I didn't change collision size.

Huge bug with negative hp!
Click image for larger version

Name:	Selection.jpg
Views:	77
Size:	443.0 KB
ID:	45248
Attached Images
File type: jpgSelection.jpg (443.0 KB)
08-26-2009, 07:53 PM#5
Pyrogasm
If I remember correctly, if you give a unit negative or 0 HP and then restore it later, the unit can't actually die. Daelin ran into bugs like that for his Scarlet Crusader hero.
08-26-2009, 07:57 PM#6
Anachron
I think more weird is that walking units don't use normal pathing, so care about a few things only. They ignore doodads, but can't enter destructables, as far as I tested. Water is also welcome for them.
08-26-2009, 08:15 PM#7
Bobo_The_Kodo
It's not a new bug.
The unit counts as it's dead.
Also the hp is probably an unsigned int, is why it makes it go so large when you try to set negative.
08-26-2009, 08:17 PM#8
Skater
The unit can walk through water because you saved your map with an edited UI/miscdata.txt .
If you remove that file (temporaly) your unit will move normal again.
08-26-2009, 08:18 PM#9
PurplePoot
Been there, done that, got the t-shirt. The bug is that the unit can be controlled, not that it doesn't have pathing etc.
08-26-2009, 08:25 PM#10
Anachron
I don't have an edited miscdata.txt.
The movement type is walk. Try it yourself.

But if the unit is counting as dead, why can you do actions and why does it only care about destructable pathing?

Doesn't make that much of sense.