When I do this it for some reason resets the energy of EVERY unit on the map to 0... Why? It's not related to any one behavior either. ANY behavior that I modify with ANY upgrade causes this effect...
I did some extensive testing by making a new map and emulating how I had done it in my map on a new one and everything worked. So I went back in my map and started removing things and deleting things to figure out wtf is going on.
In my map I have 4 attributes that give the heroes/units their stats. Stats like life/energy/dmg etc. The stat aptitude gives energy and regeneration. It looks like whenever you upgrade an behavior it sets your energy THAT you gain from that attribute to 0. I gave the unit some initial energy on the unit itself and THAT energy stays on, but the rest evaporates.
Attached is a cut down version of my map for an example of what is going on. When you load the map the ability in question is puncture which is in the learn menu. Use the button on the hero's command card called upgrade the problem in action.
Please can someone tell me how to fix this, as it is game breaking.
I would suggest you create a new version of it and then see if that does the same since you said it did work on a new map but doesn't on yours.
I've had a few weird bugs in my map like trained units duplicating and there was no reason at all for it to do so, when I remade the abilities they worked fine, sometimes the editor is just weird.
From what you've written in this thread it seem to me this could be an engine bug - Blizzard don't use attributes themselves, and being able to modify behaviors via upgrades is a relatively new feature, it's a kind of out of the way thing to test, so they probably didn't (On the other hand, they actually released a patch where Ultralisks AoE had "include unit radius" checked so they could demolish the entire worker line by attacking the command center) Report it on the official forums so that they see it. But chances are it won't get fixed too quickly, so I highly recommend you start thinking about workarounds unless you find out this isn't a bug caused by the sc2 engine itself and actually fixable.
One workaround could be that whenever the upgrade that causes energy to reset hits, you first save all attribute and energy values for all units, apply the upgrade, and then apply enough buffs and modify their energy to counter the reset. If the upgrade isn't applied through triggers, make the ability research a dummy upgrade and have a trigger detect when its done and then do what's necessary.
I haven't actually checked the map, so let's hope someone else for whom it isn't 1:37 AM does and manages to find an easier fix.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
When I do this it for some reason resets the energy of EVERY unit on the map to 0... Why? It's not related to any one behavior either. ANY behavior that I modify with ANY upgrade causes this effect...
Has anyone else experienced this?
I did some extensive testing by making a new map and emulating how I had done it in my map on a new one and everything worked. So I went back in my map and started removing things and deleting things to figure out wtf is going on.
In my map I have 4 attributes that give the heroes/units their stats. Stats like life/energy/dmg etc. The stat aptitude gives energy and regeneration. It looks like whenever you upgrade an behavior it sets your energy THAT you gain from that attribute to 0. I gave the unit some initial energy on the unit itself and THAT energy stays on, but the rest evaporates.
Attached is a cut down version of my map for an example of what is going on. When you load the map the ability in question is puncture which is in the learn menu. Use the button on the hero's command card called upgrade the problem in action.
Please can someone tell me how to fix this, as it is game breaking.
I would suggest you create a new version of it and then see if that does the same since you said it did work on a new map but doesn't on yours.
I've had a few weird bugs in my map like trained units duplicating and there was no reason at all for it to do so, when I remade the abilities they worked fine, sometimes the editor is just weird.
@Rileyb80: Go
Yes. I've tried this already. I completely remade everything related to the hero/leveling up/abilities. Same shit is happening.
From what you've written in this thread it seem to me this could be an engine bug - Blizzard don't use attributes themselves, and being able to modify behaviors via upgrades is a relatively new feature, it's a kind of out of the way thing to test, so they probably didn't (On the other hand, they actually released a patch where Ultralisks AoE had "include unit radius" checked so they could demolish the entire worker line by attacking the command center) Report it on the official forums so that they see it. But chances are it won't get fixed too quickly, so I highly recommend you start thinking about workarounds unless you find out this isn't a bug caused by the sc2 engine itself and actually fixable.
One workaround could be that whenever the upgrade that causes energy to reset hits, you first save all attribute and energy values for all units, apply the upgrade, and then apply enough buffs and modify their energy to counter the reset. If the upgrade isn't applied through triggers, make the ability research a dummy upgrade and have a trigger detect when its done and then do what's necessary.
I haven't actually checked the map, so let's hope someone else for whom it isn't 1:37 AM does and manages to find an easier fix.