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

2 Questions (Related to a bug)

Status
Not open for further replies.
Level 8
Joined
Mar 26, 2009
Messages
301
1-) Creating a unit group variable and destroying it rapidly over and over (say, every 0.25 secs of game time) will drop performance noticably?
2-) Now the real problem. Sometimes, units in my map show icons in their status bar with "tool tip missing". This normally happens when you remove a buff from an ability and do not replace it with anything else. Or there is an ability with a buff which has an icon but no description or title at all. None of these exist in my map. So to fix this, I created a trigger. (This is also the reason of question 1)
Goal of this trigger was, to periodically remove these "tool-tip-missing" icons from status bar of the heroes. Thought it would fix the problem. But they just re-appear after they are removed. It is like a "tool-tip-missing-icon" is blinking constantly at status bar, lol!
  • Global Buff Glitch Fix
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Set Player_Hero_Units = (Units in (Playable map area) matching (((Unit-type of (Matching unit)) Equal to Engineer) or (((Unit-type of (Matching unit)) Equal to Heavy Weapons Guy) or (((Unit-type of (Matching unit)) Equal to Marine) or ((Unit-type of (Matching unit)) Equal to X-22K P
      • Unit Group - Pick every unit in Player_Hero_Units and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Or - Any (Conditions) are true
                • Conditions
                  • ((Picked unit) has buff Cloaked ) Equal to True
                  • ((Picked unit) has buff Sprint ) Equal to True
                  • ((Picked unit) has buff Out of Ammo ) Equal to True
                  • ((Picked unit) has buff Reloading ) Equal to True
                  • ((Picked unit) has buff Disabled Attack ) Equal to True
            • Then - Actions
              • Do nothing
            • Else - Actions
              • Unit - Remove All buffs from (Picked unit)
      • Custom script: call DestroyGroup (udg_Player_Hero_Units)
Buff checking conditons are to prevent trigger from disabling duration spells.
Whole this thing does not affect the gameplay at all, but it just disturbs me.
 
1) No, it shouldn't. It has been shown that groups do leak a bit of RAM when destroyed, but it shouldn't make much of a noticeable difference, and 0.25 is a pretty low frequency so you should be fine. :)

2) Well, for the tooltip to be considered missing, you must have an empty string. Are you sure that you didn't fill in the wrong field? Recheck the buffs to make sure you edited the description, instead of any of the other fields. ;D
 
Status
Not open for further replies.
Top