- Joined
- Apr 14, 2012
- Messages
- 2,901
Okay... I am currently making an AoS map which has now a lot of spells in it. One spell in particular, the latest spell, makes the game either crash or does 'something else'. Before I tell you what that is, the spell is suppose to increase the armor and movement speed of the caster and his allies around him.
The dummy ability with the dummy caster is based on Acid Bomb, with the targets 'Air, Ground, Friend, Invulnerable, Vulnerable' respectively, and with the trigger:
But what I don't understand is why, when the caster casts it, the special effect created from a modified Thunder Clap takes a long time to finish also makes the game lag a lot, sometimes it crashes (2 out of 10 times), and after it resumes the game, the game speed increases like hell. I mean like the counter for the game time doubles in speed, and the gold production also doubles in speed. Not only that but the rivers' animation; actually everything in the game that has an animation doubles or probably triples in animations speed.
Why is that happening? Can somebody help me?
EDIT: Attached a test map (okay in the test map the animation speeding thing doesn't happen. But still the special effect takes longer than the usual time, and the movement speed and armor increase is applied, but can't be of much use because of the lagging)
P.S. It might also possible that the number of doodads and other objects in the original map worsens the time for the effect to finish, and the speed of the animations.
P.S. I'll attach a video of it later.
EDIT2: I tried to change the duration of the movement and armor bonus to a longer duration. Turns out the game slows down during that duration (i.e. If duration == 10, Then game slows down for 10 seconds). Also added a video.
In the video the Hero/Normal duration is 3.00 s.
EDIT3: Added the main map's in-game video of the spell casting
[YOUTUBE]
http://www.youtube.com/watch?v=hnOJDizU96c&feature=youtu.be
[/YOUTUBE]
[YOUTUBE]
http://www.youtube.com/watch?v=DGa2Symzzo0
[/YOUTUBE]
The dummy ability with the dummy caster is based on Acid Bomb, with the targets 'Air, Ground, Friend, Invulnerable, Vulnerable' respectively, and with the trigger:
-
Warcry Cast
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Warcry
-
Actions
- Set WC_CastLoc = (Position of (Triggering unit))
- Unit - Create 1 Warcry Dummy for (Owner of (Triggering unit)) at WC_CastLoc facing Default building facing degrees
- Set WC_Dummy = (Last created unit)
- Unit - Add Warcry Dummy to WC_Dummy
- Unit - Set level of Warcry Dummy for WC_Dummy to (Level of Warcry for (Triggering unit))
- Unit - Order WC_Dummy to Neutral Alchemist - Acid Bomb (Triggering unit)
- Unit - Add a 2.00 second Generic expiration timer to WC_Dummy
- Custom script: call RemoveLocation(udg_WC_CastLoc)
-
Events
But what I don't understand is why, when the caster casts it, the special effect created from a modified Thunder Clap takes a long time to finish also makes the game lag a lot, sometimes it crashes (2 out of 10 times), and after it resumes the game, the game speed increases like hell. I mean like the counter for the game time doubles in speed, and the gold production also doubles in speed. Not only that but the rivers' animation; actually everything in the game that has an animation doubles or probably triples in animations speed.
Why is that happening? Can somebody help me?
EDIT: Attached a test map (okay in the test map the animation speeding thing doesn't happen. But still the special effect takes longer than the usual time, and the movement speed and armor increase is applied, but can't be of much use because of the lagging)
P.S. It might also possible that the number of doodads and other objects in the original map worsens the time for the effect to finish, and the speed of the animations.
P.S. I'll attach a video of it later.
EDIT2: I tried to change the duration of the movement and armor bonus to a longer duration. Turns out the game slows down during that duration (i.e. If duration == 10, Then game slows down for 10 seconds). Also added a video.
In the video the Hero/Normal duration is 3.00 s.
EDIT3: Added the main map's in-game video of the spell casting
[YOUTUBE]
http://www.youtube.com/watch?v=hnOJDizU96c&feature=youtu.be
[/YOUTUBE]
[YOUTUBE]
http://www.youtube.com/watch?v=DGa2Symzzo0
[/YOUTUBE]
Attachments
Last edited: