![]() |
#76 |
default string
|
![]() I'm surprised noone has mentioned this yet buuuut...
When a unit is Paused or Unpaused it gets issued all un-orders for abilities it has like immolation, defend, etc. If you don't filter those out of storable orders, when you try to AbortSpell on a unit with one of those abilities, it gets paused and has the un-order ordered (which gets stored and bumps the other ones down) then when it's issued the second last order (from AbortSpell) it will either be an un-order or the the order from the spell that was called the AbortSpell (if it only has 1 ability with an un-order it makes an infinite loop, any more than 1 and it just stops on the spot from the un-order being re-issued). Yay blizzard! This is a big problem if you have AutoIndex in your map as well. Hope that makes sense.. Last edited by Fledermaus : 06-10-2010 at 03:45 PM. |
![]() |
![]() |
Sponsored Links - Login to hide this ad! |
|
![]() |
#77 |
User
Join Date: Jun 2009
Posts: 5
![]() |
![]() Is this already fixed?
|
![]() |
![]() |
![]() |
#78 |
default string
|
![]() You can fix it yourself by just filtering out all the possible un-orders.
|
![]() |
![]() |
![]() |
#79 |
User
Join Date: Jun 2009
Posts: 5
![]() |
![]() uhm....how?
|
![]() |
![]() |
![]() |
#80 |
default string
|
![]() Add all the orders you don't want (in this case the un-orders) to the OrderFilter function.
You can use Dusk's OrderID List to find the corresponding OrderID's. |
![]() |
![]() |
![]() |
#81 | |
User
|
![]() Quote:
i guess this and something like it is why my plans for a few new spell ideas i came up with went awry. both this and the preventorders libraries didn't work for me once i started thoroughly testing the spells. |
|
![]() |
![]() |
![]() |
#82 |
User
Join Date: May 2010
Posts: 5
![]() |
![]() I m not sure why you make "order" struct is a public struct.
If ( you plan everybody can use "order" struct ) You should name order struct a unique name like "LastOrder_OrderData" else You should make a private struct I have a proplem with your library that is "re-declare: order" error It is a small stuff, hope you change. Or all mapmakers use this library must remember: dont use variable name "order" |
![]() |
![]() |
![]() |
#83 | |
User
|
![]() function GetPastOrder takes unit u, integer whichOrder returns order
that returns "order" struct, no? how can you use that if "order" struct is private? also Quote:
Last edited by Tom_Kazansky : 05-20-2011 at 12:16 PM. |
|
![]() |
![]() |
![]() |
#84 |
default string
|
![]() struct order[MAX_ORDERS] doesn't look very private to me.
|
![]() |
![]() |
![]() |
#85 |
default string
|
![]() Here's the updated code to fix the bug that I mentioned earlier.
![]() |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
|