HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Unable to Control Unit

08-29-2005, 09:57 AM#1
James59281
Hi All! I'm making a map, and have a really odd problem. It seems that my hero is very slow to respond to commands, especially in combat.
To begin with, everything seems fine, but when he enters combat he either doesn't respond to commands (move/attack/cast) or takes about 5 seconds to do so. And the problem persists AFTER combat has finished.

My map has a few imported files, and the hero has a few custom abilities, and the map is medium sized, so I presume that it's nothing to do with my computer, which is well above the specs required for Warcraft 3. I also have a periodic trigger running in the background every 0.5s, but it deactivates itself after running the first time and has to be reactivated by another trigger- don't ask why i need this, but i do, it's too hard to explain. Could this be it?
Also, i've only run the map in test mode, but i don't think running it normally would chage much anyway- ???

It's really annoying because i finally came up with a good idea for a map, and this is really slowing down my progress.

I tried describing my triggers, etc, in case someone can see some problem that i missed.

Anyone know what's causing this or what i can do to fix it?
08-29-2005, 10:26 AM#2
Tim.
Are any triggers run when he enters combat? This sounds like lag caused by a memory leak.
08-29-2005, 11:08 AM#3
James59281
Unfortunately, no. Actually, i wish there was, because then at least i'd know what i had to correct. There are plenty of triggers in my map which affect my hero, but none of them are run specifically when he enters combat.

[edit] but btw, i have lots of variables such as dialogs, ability arrays etc. Could this be anything to do with it?
08-29-2005, 01:06 PM#4
Tim.
Depends if they leak. Post the map or post any triggers that might leak.
08-29-2005, 02:10 PM#5
James59281
Okay i posted the map. Just click on the link to have a look.


Put it in my signature too, in case someone wants to have a look after reading one of my posts in other threads. The map is a bit bare-bones, but it's because i intend to make a campaign, and this is only the map to try out my ideas. If you look in my triggers, you'll find a trigger comment in the "Map Initialization" folder that might be helpful.
Try moving the blood mage to the right and do some fighting and then try moving him while he's still fighting. He won't budge for me! Hope you can help me out. Thanks.Help Me Please!
08-29-2005, 03:59 PM#6
James59281
I figured it out! YAY!!!
It wasn't anything to do with the triggers - it turns out that my dummy ability i used to run the triggers wasn't a very good choice. (I chose Avatar and set the duration to be 0.01 seconds), but that was what was causing the slow down. I changed it and it worked great! Thanks for your help anyway, though - very much appreciated!