• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Units stop responding at random

Status
Not open for further replies.
Level 24
Joined
Jun 26, 2020
Messages
1,928
Hello, in the map I'm making, for some reason in random moments when I wanna order a unit to move by clicking, it just doesn't do anything, the unit is not paused, the UI is visible, but it just stay quiet, with selecting another unit and then select it back again it acts normally.
I just don't know why happens, I could have minimized the game and when I maximize it again, it just happens, do you know what can cause it?
 
Last edited:

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,871
Might be this?
 
Level 24
Joined
Jun 26, 2020
Messages
1,928
Might be this?
Maybe it has to do with I have too many regions in the map.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,286
Too many regions (actual regions, not GUI rect "regions") is known to cause the path finder to do pretty silly things at times. You can quickly test this by saving a backup of your map and then removing all triggers. If the units start to act normally then it is caused by too many regions, or other script related causes.
 
Level 24
Joined
Jun 26, 2020
Messages
1,928
Too many regions (actual regions, not GUI rect "regions") is known to cause the path finder to do pretty silly things at times. You can quickly test this by saving a backup of your map and then removing all triggers. If the units start to act normally then it is caused by too many regions, or other script related causes.
I can't be sure even if I test, because is very unlikely, unless I test it with people, but I can try minimizing the regions.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,286
but I can try minimizing the regions.
Again, it is only JASS regions that affect this. The GUI regions are rects and so do not affect this.

A JASS region is created whenever "a unit enters/leaves X region" GUI event is used. Internally this creates a region object and fills it with cells based roughly on the shape of the provided rect. The most common cause of the issue is dozens of triggers with events "a unit enters (playable map area)" as those create regions which contain most cells on the map. With 480x480 maps even a few such triggers can start to cause issues.
 
Level 24
Joined
Jun 26, 2020
Messages
1,928
Does your map feature very high number of units? If too many orders are given at one time, units can just stop taking any action because there's too much stuff to process for the game
Not too many, so I don't know.
Again, it is only JASS regions that affect this. The GUI regions are rects and so do not affect this.

A JASS region is created whenever "a unit enters/leaves X region" GUI event is used. Internally this creates a region object and fills it with cells based roughly on the shape of the provided rect. The most common cause of the issue is dozens of triggers with events "a unit enters (playable map area)" as those create regions which contain most cells on the map. With 480x480 maps even a few such triggers can start to cause issues.
I know, when I said regions I was referring to the Jass regions.
 
Level 24
Joined
Jun 26, 2020
Messages
1,928
did you test if the units complete the last order before they stop responding?

if you press S (or order to stop) do the units start responding again?

if yes, i encountered this error when using a triggered Silence on units. it somehow messes up the internal order queue for the units, i think
Probably that is the problem, but I never checked the previous order and I never tried press S, also I don't use triggered silence, but some abilities are based on silence or incinerate and channel-based abilites with silence as base order ID, and they are casted by the normal AI or players.
Just in case, I wanna know if that could count.
 
Level 9
Joined
Jun 28, 2023
Messages
51
i think it would

in my map i had this problem where if my hero was silenced, it would stop responding until i pressed S. it seems to be a SIlence-specific interaction with the internal order queue of the unit.

i tried solving it by everytime the hero got silenced, the trigger would order the hero to Stop... but that felt too clunky for me, so i just removed the silence
 
Level 24
Joined
Jun 26, 2020
Messages
1,928
i think it would

in my map i had this problem where if my hero was silenced, it would stop responding until i pressed S. it seems to be a SIlence-specific interaction with the internal order queue of the unit.

i tried solving it by everytime the hero got silenced, the trigger would order the hero to Stop... but that felt too clunky for me, so i just removed the silence
Nope, it wasn't the reason, pressing stop didn't make the unit respond again.
 
Status
Not open for further replies.
Top