HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Stuck Units

08-17-2007, 12:43 AM#1
GosuSheep
While playing my map, there are times that my units will get completely stuck. They are not able to use abilities, move, attack, anything. I noticed that this occurs when units are replaced when a Build menu or Hero Ability menu is open. But there are occasions that menus aren't open and units are still getting stuck. REALLLLLL STUCK. I made a -unstuck function to try to solve the problem... and it did... but it's such an inconvenience.

In 1 version of my map, units do NOT get stuck for no reason... In the 2nd version of my map, they do!!! I noticed that the cause is most likely 1 thing I changed about the units... And that is the Cast Backswing and Cast Point. I changed those values to 0, and it would make sense to me that that is the problem.

Please, if anyone has any insight on how to prevent or how to fix the problem more easily, reply... And i will greatly appreciate it.
08-17-2007, 08:37 AM#2
cohadar
How and why are you replacing your units? show us that trigger.

You are probably having an error in some jump or slide trigger
that messes up with unit collision or pauses/unpauses units.
08-17-2007, 10:49 PM#3
Tide-Arc Ephemera
Units also get completely stuck in that fashion if there are over around 200 or so units simultaneously trying to do similar or the same thing.
08-18-2007, 05:54 PM#4
GosuSheep
Heh. Yeah i know...

When a unit dies, another unit is created and immediately selected. If the first unit had a build menu or some menu open, the second unit will not have anything at all in it's unit's menu thingy... Just 12 black squares.

That's not my biggest issue. There are times that for NO REASON, units will just GET STUCK. NOT BE ABLE TO MOVE AT ALL. The way i fix this is by having the player type -u (for unstuck) then reselect their unit manually. I have no idea why this happens. I believe it has something to do with the cast backswing and cast point being reduced to 0 because the maps that did NOT have that value reduction had no problems.
08-18-2007, 06:44 PM#5
Dil999
Try making backswing 0.01.
If the map your talking about is Sheep Tag (which I believe it is), I know this is a common bug in alot of the newer versions. As far as I know, selecting something else (such as a random unit owned by neutral hostile) and then reselecting the unit fixed the bugs. Figure out every possible time when you could have the bug, and then run a trigger which deselects and reselects instantly.
11-22-2007, 09:24 PM#6
GosuSheep
well... The issue was... if a menu is open (such as build or hero abilities) and that unit is removed, and another unit without those menus is selected, the new unit will have a blank menu canvas or whatever. I fixed that by putting a (Force player to press ESC) trigger before units are removed.

The problem is that that is not the only time when units get stuck. Units get stuck for no reason that i can tell. Sometimes unit just stop moving and cannot be moved, cannot attack, cant do anything until another unit is selected. The only clue i have to fixing the problem is that sometimes multiple people's units get stuck at the same time.

Has anyone experienced a problem like this that could give me some insight on how to fix it?