• 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.

Strange UI bug

Level 2
Joined
Mar 13, 2015
Messages
5
I'm experiencing a bug on my map and I can't find the cause. Basically whenever I enter a menu on the bottom UI, for example when you click the red plus icon to select a new ability or ability level for your hero or opening the build structure menu to build something with a peasant. Whenever one of these menus are opened it will eventually close itself, sometimes it closes immediately after opening. The problem seems to only happen at the start of the game. Anyone have any idea what could be causing it to close? I think it may be due to some sort of trigger, but I cant seem to figure it out. Any help would be appreciated. If anyone is curious enough I'll attach the map.
 

Attachments

  • The Hunter of Shadows - Edited LOA.w3x
    5.8 MB · Views: 6

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,866
Well, I couldn't find the issue, but I imagine it's one of these:
1) Pressing the escape key.
2) Hiding/unhiding the unit.
3) Issuing a cancel order.
4) Pausing/unpausing the unit. (Maybe)

Bugs I did find:
1) Tons of memory leaks (not the end of the world).
2) This one is pretty serious, (Last created unit) is definitely NOT going to refer to that Dummy unit:
  • Horn of Cenarius Buff
    • Events
    • Conditions
    • Actions
      • Unit - Create 1 Dummy for Player 7 (Green) at (Center of (Playable map area)) facing Default building facing degrees
      • Wait 65.00 seconds
      • Unit - Remove (Last created unit) from the game
      • Trigger - Turn on Horn of Cenarius <gen>
Instead, add a 65.00 second Expiration Timer to the Dummy. (Doesn't look like it even does anything)

3) I never messed with adding to the trigger queue but MAYBE there's some bugs there, I usually just do Run Trigger at the moment it's needed. All and all the triggers seemed a little unpredictable.
 
Level 2
Joined
Mar 13, 2015
Messages
5
Thanks for taking the time to try and help, I really appreciate it. I've narrowed down the problem. I noticed the bug starts as soon as the trigger runs to start the ai and unhide their bases, and sure enough when I disabled the trigger the bug stopped. So it seems for some reason its the ai causing the bug. I've combed through the ai scripts and run the syntax checker and there's nothing wrong with them. The weirdest thing is this bug started to happend randomly out of nowhere, the AI have been on this map from the start. Maybe an update to the game broke somthing? I'll have to do some more testing tomorrow.

Regarding the other things you mentioned. Could you give me an example of one of the memory leaks on the map? Its just something that I've never understood. I fixed the issue with the dummy, that triggger was disabled for a bit so I never noticed it was wrong. The trigger queues are actually there from the devs when they made this level, I typically don't like to use them either. I also thought they may be the culprit so I went ahead and changed all of them to just simple Run Triggers, it didn't seem to change anything unfortunatly.
 

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,866
Thanks for taking the time to try and help, I really appreciate it. I've narrowed down the problem. I noticed the bug starts as soon as the trigger runs to start the ai and unhide their bases, and sure enough when I disabled the trigger the bug stopped. So it seems for some reason its the ai causing the bug. I've combed through the ai scripts and run the syntax checker and there's nothing wrong with them. The weirdest thing is this bug started to happend randomly out of nowhere, the AI have been on this map from the start. Maybe an update to the game broke somthing? I'll have to do some more testing tomorrow.

Regarding the other things you mentioned. Could you give me an example of one of the memory leaks on the map? Its just something that I've never understood. I fixed the issue with the dummy, that triggger was disabled for a bit so I never noticed it was wrong. The trigger queues are actually there from the devs when they made this level, I typically don't like to use them either. I also thought they may be the culprit so I went ahead and changed all of them to just simple Run Triggers, it didn't seem to change anything unfortunatly.
Unfortunately, I have no experience with AI stuff, so I couldn't say anything for certain.

Regarding memory leaks, just about every trigger has at least one leak. The main leak culprits are, in order of most common to least: Points, Unit Groups, and Player Groups.

Here's a recent thread where I break things down:
Here's a tutorial that goes into great detail:
 
Last edited:
Top