I have added a new unit to my map recently but whenever this specific unit dies, starcraft freezes up and crashes, if tried it in the editor aswell with people online, very weird so there must be something wrong with the unit death??. what could be causing this problem??? i already tried changing the model, that doesnt help, maybe its the actor that i added? it really sucks....
So its not the actor causing the issue, but the buff. We need more information. What do the buffs modify, what kinds of effects are involved, any other actors we should know of?
In the screenshots on the last post and below you can see all the effects and stuff. nothing special i believe...
just for information i also added a screen of the unit in the editor, but i guess its only the buff messing things up.
behavior - mercspeedybuff: All units within range get the sentry - speedrangebuff which is defined below
effect - applymercspeedybuff : reapplies the the mercspeedybuff behavior on the unit once its expired.
actor - mercspeedybuffapplied: creates a visual for the units that have behavior sentry - speedrangebuff.
behavior - sentry - speedrangebuff: the behavior that gets applied on units by the mercspeedybuff behavior, modifies the units speed x2 and their range+5 also does the normal ranged damage reduction like normal shield.
The freeze just happens whenever the unit dies doesnt matter when he dies.
The game just totally freezes up and i have to force shut it with task manager
You apply the buff when the unit loses the buff. If it dies, it loses the buff. Then the buff gets applied. But wait, the unit just died...
Classic infinite loop.
I guess you re-applied the buff to fix the visuals? This should be handled by the actor now, so you can just set the duration to infinite, or whatever you need and remove the final effect.
okay, guess you were right about the infinite loop cause it doesnt crash anymore since i have removed the effect final.
Okay so, i have set the duration to infinite(-1) and removed the effect final but now the animation wont repeat... and i dont know how to fix this cause i thought i had already fixed it..
What should i change about the actor in the screen below to make the animation repeat?
What the hell man, i changed the name to BSD and it totally does what you say and it doesnt even play the birth animation anymore its just one smooth sweet animation. I get so confused with these actors man but thnx for this help, i dont really know much about actors and stuff, you sure gave me good insight.
Thnx for your time again!
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hey guys,
I have added a new unit to my map recently but whenever this specific unit dies, starcraft freezes up and crashes, if tried it in the editor aswell with people online, very weird so there must be something wrong with the unit death??. what could be causing this problem??? i already tried changing the model, that doesnt help, maybe its the actor that i added? it really sucks....
You might want to remove the first and 3rd event, they are obsolete. Not sure, if it will fix the crash, though.
Also, if you don't check for a timer name, you don't even need to specify one.
@Kueken531: Go
i removed the actor for the unit, so it isnt the actor, trying to find another reason
@Rice87: Go
Hmmm.
... tried unchecking 'PlayForever' ? It plays the animation anyways and repeats on its own. PlayForever is useless, might be causing issues?
Does it crash if the unit dies within the first 33 seconds of the unit's birth/creation? Or just after?
I've never had SC2 crash on me, but would running it in window mode give you an error box with a hint? If so, what does it say?
@Rice87: Go
What do you mean you removed the actor for the unit? Do you mean the aura actor, or the "blimp" actor?
@BorgDragon: Go
Hey, i had only removed the visuals actor, this time i have removed the buff the unit has and it didnt crash.
what this buff does is within an area applies a buff to units and creates the visuals for the guardian shield
So its not the actor causing the issue, but the buff. We need more information. What do the buffs modify, what kinds of effects are involved, any other actors we should know of?
@Kueken531: Go
In the screenshots on the last post and below you can see all the effects and stuff. nothing special i believe... just for information i also added a screen of the unit in the editor, but i guess its only the buff messing things up.
behavior - mercspeedybuff: All units within range get the sentry - speedrangebuff which is defined below
effect - applymercspeedybuff : reapplies the the mercspeedybuff behavior on the unit once its expired.
actor - mercspeedybuffapplied: creates a visual for the units that have behavior sentry - speedrangebuff.
behavior - sentry - speedrangebuff: the behavior that gets applied on units by the mercspeedybuff behavior, modifies the units speed x2 and their range+5 also does the normal ranged damage reduction like normal shield.
The freeze just happens whenever the unit dies doesnt matter when he dies. The game just totally freezes up and i have to force shut it with task manager
Effect - Final - ApplyMercSpeedyBuff
You apply the buff when the unit loses the buff. If it dies, it loses the buff. Then the buff gets applied. But wait, the unit just died...
Classic infinite loop.
I guess you re-applied the buff to fix the visuals? This should be handled by the actor now, so you can just set the duration to infinite, or whatever you need and remove the final effect.
@Kueken531: Go
okay, guess you were right about the infinite loop cause it doesnt crash anymore since i have removed the effect final. Okay so, i have set the duration to infinite(-1) and removed the effect final but now the animation wont repeat... and i dont know how to fix this cause i thought i had already fixed it.. What should i change about the actor in the screen below to make the animation repeat?
xD When I told you to remove events, I was referring to the greyed-out ones.
Well, whatever. In the current state, it should suffice, if you change the animation name for the AnimSetCompletion message to "BSD"
@Kueken531: Go
What the hell man, i changed the name to BSD and it totally does what you say and it doesnt even play the birth animation anymore its just one smooth sweet animation. I get so confused with these actors man but thnx for this help, i dont really know much about actors and stuff, you sure gave me good insight.
Thnx for your time again!