Odd raiding bug

XXXconanXXX

Cocktails anyone?
Reaction score
288
The system is like so:

You go into a pedestal to capture the expansion, your paused along with the base, then your un-paused. Thing is, during certain games and at random times, the bases will bug out and won't pause or switch over. The Tidal Guardian that guards it, is though. So, I'm thinking it has to do with the picking of the units. Any thoughts on why this isn't working?

Code:
Expansion base Human Middle
    Events
        Unit - A unit enters Expansion Human Middle Raid <gen>
    Conditions
        ((Entering unit) is A Hero) Equal to True
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Or - Any (Conditions) are true
                    Conditions
                        (Owner of (Entering unit)) Equal to Player 1 (Red)
                        (Owner of (Entering unit)) Equal to Player 2 (Blue)
                        (Owner of (Entering unit)) Equal to Player 3 (Teal)
                        (Owner of (Entering unit)) Equal to Player 4 (Purple)
                        (Owner of (Entering unit)) Equal to Player 5 (Yellow)
                        (Owner of (Entering unit)) Equal to Player 6 (Orange)
            Then - Actions
                Unit Group - Pick every unit in ExpBase_UnitGroup_HM and do (Actions)
                    Loop - Actions
                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            If - Conditions
                                (Owner of (Picked unit)) Equal to Player 6 (Orange)
                            Then - Actions
                                Skip remaining actions
                            Else - Actions
                Unit Group - Pick every unit in ExpBase_UnitGroup_HM and do (Unit - Pause (Picked unit))
                Unit - Pause (Entering unit)
                Game - Display to (All players) for 3.00 seconds the text: |cffff0000Control o...
                Wait 2.00 seconds
                Game - Display to (All players) for 1.00 seconds the text: |cffff00003...|r
                Sound - Play BattleNetTick <gen>
                Wait 1.00 seconds
                Game - Display to (All players) for 1.00 seconds the text: |cffff00002...|r
                Sound - Play BattleNetTick <gen>
                Wait 1.00 seconds
                Game - Display to (All players) for 1.00 seconds the text: |cffff00001...|r
                Sound - Play BattleNetTick <gen>
                Wait 1.00 seconds
                Game - Display to (All players) for 3.00 seconds the text: |cffff0000Control o...
                Sound - Play GoodJob <gen>
                Unit - Unpause (Entering unit)
                Unit - Change ownership of Tidal Guardian 0007 <gen> to Player 6 (Orange) and Change color
                Unit Group - Pick every unit in ExpBase_UnitGroup_HM and do (Unit - Unpause (Picked unit))
                Unit Group - Pick every unit in ExpBase_UnitGroup_HM and do (Unit - Change ownership of (Picked unit) to Player 6 (Orange) and Change color)
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Or - Any (Conditions) are true
                    Conditions
                        (Owner of (Entering unit)) Equal to Player 7 (Green)
                        (Owner of (Entering unit)) Equal to Player 8 (Pink)
                        (Owner of (Entering unit)) Equal to Player 9 (Gray)
                        (Owner of (Entering unit)) Equal to Player 10 (Light Blue)
                        (Owner of (Entering unit)) Equal to Player 11 (Dark Green)
                        (Owner of (Entering unit)) Equal to Player 12 (Brown)
            Then - Actions
                Unit Group - Pick every unit in ExpBase_UnitGroup_HM and do (Actions)
                    Loop - Actions
                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            If - Conditions
                                (Owner of (Picked unit)) Equal to Player 12 (Brown)
                            Then - Actions
                                Skip remaining actions
                            Else - Actions
                Unit Group - Pick every unit in ExpBase_UnitGroup_HM and do (Unit - Pause (Picked unit))
                Unit - Pause (Entering unit)
                Game - Display to (All players) for 3.00 seconds the text: |cffff0000Control o...
                Wait 2.00 seconds
                Game - Display to (All players) for 1.00 seconds the text: |cffff00003...|r
                Sound - Play BattleNetTick <gen>
                Wait 1.00 seconds
                Game - Display to (All players) for 1.00 seconds the text: |cffff00002...|r
                Sound - Play BattleNetTick <gen>
                Wait 1.00 seconds
                Game - Display to (All players) for 1.00 seconds the text: |cffff00001...|r
                Sound - Play BattleNetTick <gen>
                Wait 1.00 seconds
                Game - Display to (All players) for 3.00 seconds the text: Red: |cffff0000Cont...
                Sound - Play GoodJob <gen>
                Unit - Unpause (Entering unit)
                Unit - Change ownership of Tidal Guardian 0007 <gen> to Player 12 (Brown) and Change color
                Unit Group - Pick every unit in ExpBase_UnitGroup_HM and do (Unit - Unpause (Picked unit))
                Unit Group - Pick every unit in ExpBase_UnitGroup_HM and do (Unit - Change ownership of (Picked unit) to Player 12 (Brown) and Change color)
            Else - Actions
 
~In an unrelated-to-the-current-problem analysis, you will need to change your sound - play good job or whatever it was to be a 3-D sound; otherwise, the people will never here it (I never did, at least :p).

Yes, I believe it is related to the pick every unit thing. You might want to double check that, and make sure that no other codes have a chance to overlap and override that information. Also, check the replays to see if you can determine when and why this problem occurs.

Occasionally, 2 people, sometimes on the same team and sometimes not, will step on the CoP at the same time (pretty much) and the clock will start a dual countdown. Just thought I'd mention this, too :p

You might just want to pick every unit in area matching - is a building. It would be more redundant, but might stop the problem from occuring. :>)
 
I guess I can only say what's obvious - your ExpBase_UnitGroup_HM variable is being changed or cleared or something like that.

What you should do is add the following test trigger action in:

Unit Group - Pick every unit in ExpBase_UnitGroup_HM and do
Cinematic - Flash a speech indicator for (Picked unit) of color (100.00%, 100.00%, 100.00%) with 0.00% transparency

So when that trigger of yours executes, you will see all the units in the unit group have white circles flash around them. So, if the theory holds correct, the next time units don't switch over, you will see no units with white flashing circles.
 
Eh, that is good, Darg, but it is redundant, as the units in question are TOWERS, with big long color strips down the sides, and a sizable portion of the minimap :p. It is pretty easy to tell which ones have and haven't converted over, rofl :p
 
His point is to see if the unit group is holding the correct units or not, and thank you Darg, I'll test it out in a second.
 
Well, I'm not sure if this is your problem, but if you have nested pick every unit loops, you need to store the outer one into a variable; only the innermost one will be referred to as picked unit.

Just general info.
 
And I thought I'd suggest less lines for the condition.

(Owner of Unit is ally of (Human Side CPU)) and (Owner of Unit is not Neutral Passive)

instead of your long lines :)

You can also make a Player variable for whoever controls the base. Set the Player equal to Neutral Hostile at first and then to either the Human or Undead CPU Player as they go for control of the base. Then, just have (Owner of Unit is enemy of (Owner of Base variable)).
 
Saving maybe a few bytes of memory is not worth it for every part I have to change.

Let's just leave it at this, since there's no point in doing it if it doesn't make a significant change.

(And yes, I know it leaks pretty badly...)
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Varine Varine:
    Today I had to scramble, I didn't work most of dinner service and no one told me shit. They had a rough few hours lol
  • Varine Varine:
    I have two salmon, Sockeye and Atlantic. Atlantic is used for the kids salmon and the salmon and beet salad, and can also be added onto any dish or just as a side. Atlantic salmon will almost exclusively ever be FARMED, as it is endangered in the wild, and we ALWAYS cut them to 4 ounces.
  • Varine Varine:
    SOCKEYE salmon, very different and this IS wild caught. We have an ENTREE version, and an add on version. The entree is 7 ounces, the add on is 4. Why? Because that is how someone that wasn't me set up the computer.
  • Varine Varine:
    I had to have this conversation like ten fucking times tonight
  • Varine Varine:
    The issue being, I came into work and had none of this whatsoever
  • Varine Varine:
    No one told me shit
  • Varine Varine:
    So, taking into consideration that what I typed out up there is kind of some fucking nonsense that under normal circumstances no one really needs to fucking be able to explain in any rational way
  • Varine Varine:
    Let alone trying to figure it out from a wildly stressed out me that is also on a phone call trying to get something to show up from Seattle tomorrow while trying to explain this salmon situation, that also is barely solved in maybe a few hours and and but I am bulking it with a few steelhead filets I have and that is a WHOLE fucking different thing to the 19 year old server that got put on day shift C crew that doesn't know who I am.
  • Varine Varine:
    I did however really want days. I like getting off at 4 half the time, and that makes it worth it!
  • Varine Varine:
    Also I hate my job right now but I think that was the hard part. Now it's just work
  • Varine Varine:
    @jonas I'm sorry? I don't know what you're referring to.
  • Varine Varine:
    Once we hit winter I feel like I get to back to having a pretty cool job. Like I bitch about it all the time, but it's work. I'm still gonna bitch
  • Varine Varine:
    All in all though I think this summer is going really well. Some complicated things, but at the end of the day it isn't THAT big of a deal. Not all of our servers have quite realized they are technically sales
  • Varine Varine:
    Like yeah it is a substitute, but FOMO. Chef isn't getting this again this year, he has to figure it out, so it's slightly off on the menu, but that is more or less the LOWEST quality and price. Right now, steelhead is a real stealhear, right?
  • Varine Varine:
    Like fuck off even I can do it
  • Varine Varine:
    I am going to get one of my servers to do that in her server voice and you'll see my point
  • Varine Varine:
    Maybe the bartender. Idk, it's one of my favorite things to hear them go from calm to customer service voice. They will translate it to like "The chef is trying to change that a bit right now so he does have a Alaskan river steelhead. Yeah like the one you might fish probably!" And then the girls can bat their eyes and do pretty girl server shit
  • Varine Varine:
    At least that's how imagine some of them. Did you know mayonnaise is dairy free? A suprisingly amount of people don't\
  • The Helper The Helper:
    mayo is eggs right?
  • The Helper The Helper:
    Seems I never watched the Witcher - looks like i have a lot of content
  • The Helper The Helper:
    Season 1 Episode 8 the marathon continues...
  • jonas jonas:
    mayo is eggs & oil
    +1
  • The Helper The Helper:
    I got halfway season 2 on The Witcher and it lost me. I am going to have to pick this one up again later.
  • jonas jonas:
    season 2 is with the new actor right? it's so far below the first one
  • The Helper The Helper:
    first season was good the 2nd season is bleh I hope I can make it through it for 3

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials
      Top