| 08-26-2009, 05:42 PM | #1 |
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. BUG #2: Huge BUG WITH NEGATIVE HP! Attachment 45248 |
| 08-26-2009, 07:01 PM | #2 |
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 |
its fun to see 1/1 in red |
| 08-26-2009, 07:38 PM | #4 |
| 08-26-2009, 07:53 PM | #5 |
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 |
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 |
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 |
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 |
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 |
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. |
