CYBER_Aeon
New Member
- Reaction score
- 11
Tip: How to prevent crashes when cancelling upgrades.
I was about to post a question about this, but I managed to figure it out myself and decided it was just obscure enough to post about. It was a strange crash bug I had, and others might benefit from knowing about this.
I had a pair of structures. 'Trap Marker' and 'Concussion Mine'. Essentially, the Trap Marker could be upgraded to the Mine. (And other things, but that's not important)
The catch was, when you cancelled the upgrade, WC3 would crash to the desktop. You could cancel the Marker, you could kill the Marker AND the Trap. You just couldn't cancel the upgrade.
Turns out, I had a conflict with the pathing information. I'm not sure why WC3 cared about this, but this is what it to fix it.
I can't tell you why it works now, because i'm not sure. All I know is that's what fixed the problem.
I was about to post a question about this, but I managed to figure it out myself and decided it was just obscure enough to post about. It was a strange crash bug I had, and others might benefit from knowing about this.
I had a pair of structures. 'Trap Marker' and 'Concussion Mine'. Essentially, the Trap Marker could be upgraded to the Mine. (And other things, but that's not important)
The catch was, when you cancelled the upgrade, WC3 would crash to the desktop. You could cancel the Marker, you could kill the Marker AND the Trap. You just couldn't cancel the upgrade.
Turns out, I had a conflict with the pathing information. I'm not sure why WC3 cared about this, but this is what it to fix it.
Code:
PROBLEM:
Trap Marker
Pathing Map: Circle of Power
Collision Size: 16
Concussion Mine
Pathing Map: None
Collision Size: 0
SOLUTION:
Trap Marker
Pathing Map: Circle of Power
Collision Size: 16
Concussion Mine
Pathing Map: Circle of Power
Collision Size: 16
I can't tell you why it works now, because i'm not sure. All I know is that's what fixed the problem.