Antares
Spell Reviewer
- Joined
- Dec 13, 2009
- Messages
- 921
Hello,
I am pretty sure at this point that the problem with regards to this issue isn't sitting in front of the computer, but located in the top-right corner of the main menu, but maybe someone can still offer advice or has experienced something similar.
I have a system in my map wherein spells have infinite range, but if the hero is out of a range set in the script, a trigger will cancel the spell cast, save the order and the location, move the hero towards the location, and once in range of the spell, will give the order to cast it. This is necessary because of the custom movement system in the map.
Now I noticed that the system is sometimes failing. Sometimes the hero moves to the location, but then doesn't do anything. I have not been able to reliably reproduce it. On some map tests, it will always work, and occasionally it will never work on exactly one spell.
So I put in debug messages, created hooks for IssueImmediateOrder, IssueTargetOrder, and IssuePointOrder (anything that could intercept the command (accidental "stop" trigger?)), but nothing. The code executes, there's a message that the hero has been given the correct order, but it just doesn't do anything. There are no additional orders detected.
If the hero is ordered by me to cast the same spell in range (so the cast range system doesn't jump in), it will cast it without issues. When I was able to get a map launch where the bug occured, I tried to get more info. The bug also happens for another spell of a different hero that has the same order id ("acidbomb", ability based on Channel). This is so bizzare...
I think (about 50% sure) that the bug only occurs once you hear that main menu chains sound that you shouldn't hear in-game. I am almost certain that the IssueOrder functions are the problem because I've experienced unexpected behavior with regards to units ignoring orders in other areas, but where I couldn't exclude the possibility yet that I caused the bug.
Thanks for any help!
I am pretty sure at this point that the problem with regards to this issue isn't sitting in front of the computer, but located in the top-right corner of the main menu, but maybe someone can still offer advice or has experienced something similar.
I have a system in my map wherein spells have infinite range, but if the hero is out of a range set in the script, a trigger will cancel the spell cast, save the order and the location, move the hero towards the location, and once in range of the spell, will give the order to cast it. This is necessary because of the custom movement system in the map.
Now I noticed that the system is sometimes failing. Sometimes the hero moves to the location, but then doesn't do anything. I have not been able to reliably reproduce it. On some map tests, it will always work, and occasionally it will never work on exactly one spell.
So I put in debug messages, created hooks for IssueImmediateOrder, IssueTargetOrder, and IssuePointOrder (anything that could intercept the command (accidental "stop" trigger?)), but nothing. The code executes, there's a message that the hero has been given the correct order, but it just doesn't do anything. There are no additional orders detected.
If the hero is ordered by me to cast the same spell in range (so the cast range system doesn't jump in), it will cast it without issues. When I was able to get a map launch where the bug occured, I tried to get more info. The bug also happens for another spell of a different hero that has the same order id ("acidbomb", ability based on Channel). This is so bizzare...
I think (about 50% sure) that the bug only occurs once you hear that main menu chains sound that you shouldn't hear in-game. I am almost certain that the IssueOrder functions are the problem because I've experienced unexpected behavior with regards to units ignoring orders in other areas, but where I couldn't exclude the possibility yet that I caused the bug.
Thanks for any help!