FAForever Forums
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Login

    The function of automatically building mass storage around the miners.

    Scheduled Pinned Locked Moved Suggestions
    60 Posts 17 Posters 5.5k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • JipJ Offline
      Jip
      last edited by

      To come back to this, this is the code in question:

      Callbacks.CapMex = function(data, units)
          local units = EntityCategoryFilterDown(categories.ENGINEER, SecureUnits(units))
          if not units[1] then return end
      
          local mex = GetEntityById(data.target)
          if not mex or not EntityCategoryContains(categories.MASSEXTRACTION * categories.STRUCTURE, mex) then return end
      
          if mex.Layer == 'Seabed' then return end
      
          local pos = mex:GetPosition()
          local msid
          local builder
      
          for _, unit in units do
              msid = LetterArray[unit:GetBlueprint().General.FactionName]..'b1106' -- The identity of the storage we'll build
              if unit:CanBuild(msid) then
                  builder = unit
                  break
              end
          end
      
          if not builder then return end
      
          local locations = {
              up = Vector(pos.x, pos.y, pos.z - 2),
              down = Vector(pos.x, pos.y, pos.z + 2),
              left = Vector(pos.x - 2, pos.y, pos.z),
              right = Vector(pos.x + 2, pos.y, pos.z),
          }
      
          for key, location in locations do
              if CanBuildInSpot(mex, msid, location) then
                  IssueBuildMobile({builder}, location, msid, {})
              end
          end
      
          IssueGuard(units, builder)
      end
      

      The reason one is assisted is because there could be a unit that can not build the storage (e.g., the commander) - but I agree that typically it would be better to just issue the build order for all the units in question, and only let those that can't build it assist one that can. Or perhaps exclude that one all together - we'll have to discuss that.

      A work of art is never finished, merely abandoned

      1 Reply Last reply Reply Quote 1
      • veteranasheV Offline
        veteranashe
        last edited by

        I didn't know they assisted one engie

        1 Reply Last reply Reply Quote 1
        • E Offline
          Exselsior
          last edited by

          Would love to see this changed away from being an assist order, there are many times where I manually use my mex ring template to avoid having a random assisted engineer that I now have to think about. So many times have I selected an idle engineer to do something only to realize later that it was assisted by several other engineers due to this, or accidentally canceled Mex storage orders by selecting a couple of the engineers and accidentally selecting the one that they’re all assisting. Kind of annoying.

          1 Reply Last reply Reply Quote 0
          • JipJ Offline
            Jip
            last edited by

            If an issue with a clear description as to what people want it to be can be made on Github before the weekend then I can get a version on FAF Develop with the altered behavior by Monday.

            A work of art is never finished, merely abandoned

            1 Reply Last reply Reply Quote 0
            • TheWeakieT Offline
              TheWeakie Balance Team
              last edited by

              Might also solve some weird bugs like your engies only building a few of the storages before moving on. Assist has always been buggy.

              I also think it should be changed considering that 99/100 times you arent building storages with a t1 acu anyway. It adds way more issues than it solves

              1 Reply Last reply Reply Quote 0
              • JipJ Offline
                Jip
                last edited by

                I'm all for the change and can make a draft, testable on FAF Develop after next Monday. Someone just needs to make the issue on Github with the behavior that we all deem reasonable πŸ™‚

                A work of art is never finished, merely abandoned

                1 Reply Last reply Reply Quote 2
                • UvesoU Offline
                  Uveso
                  last edited by

                  I like the assist function.
                  Not only the commander can assist, although unable to build it himself.
                  Also Mantis, Harbinger Mark IV and Siren Class are able to assist. (i am not sure how many player use that)

                  So, unassist after building the storage would be my wish πŸ™‚

                  JipJ BlackYpsB 2 Replies Last reply Reply Quote 0
                  • arma473A Offline
                    arma473
                    last edited by

                    I don't mind it. With UI Party I can see which engineer is the "lead" engineer. Also I can see that be pressing spacebar.

                    1 Reply Last reply Reply Quote 0
                    • JipJ Offline
                      Jip @Uveso
                      last edited by Jip

                      @uveso I'm not sure how we could time that. Also - the Siren class πŸ€” ?

                      We could keep the assist function for units that can't build it themselves. Perhaps exclude the ACU, as it allows various other behavior / capabilities (have ACU and some engineers in the same selection, where the engies first make the storages and the ACU starts working on something else).

                      A work of art is never finished, merely abandoned

                      arma473A 1 Reply Last reply Reply Quote 0
                      • arma473A Offline
                        arma473 @Jip
                        last edited by

                        @jip @uveso

                        I just tested it. Replay IDs #15507408 and #15507454

                        The Cybran Siren-class cruiser can assist the construction of buildings. I tested it with underwater mex upgrades and also with the construction of a T3 pgen on land (obviously, right at the water's edge).

                        It has 1 BP, exactly 1/5 of what a t1 engineer has. For a mex upgrading to t2, it spends 1 mass/second and 6 e/second, which is exactly 20% of what a T1 engie spends (5 mass and 30 e). Similarly, to assist a mex upgrading to t3, the engie uses 8 mass/second, and the siren uses 1.6. so, exactly 20%

                        The assistance does, as expected, increase the rate at which the upgrades complete

                        I think this is a bug, there's no in-game or lore reason why Sirens should have this ability.

                        I wondered if this might be because Sirens have air staging. So I tested other units/structures with air staging to see if they have the same bug (all t3 aircraft carriers, Atlantis, Czar, Fatboy, and the air staging structures). I was not able to replicate this bug with those other units. So there is something else going on with the Siren.

                        I wonder if the existence of a guard radius ("GuardReturnRadius = 130") makes a difference. Or perhaps it is the targeting laser weapon. Just a couple wild guesses. If I wasn't so lazy I could mod the game to remove the guard radius to test if that's what's causing it.

                        ZeldafanboyZ 1 Reply Last reply Reply Quote 0
                        • T Offline
                          Tagada Balance Team
                          last edited by

                          Guardscanradius is not causing that, I will look into this.

                          1 Reply Last reply Reply Quote 0
                          • ZeldafanboyZ Offline
                            Zeldafanboy @arma473
                            last edited by

                            @arma473 said in The function of automatically building mass storage around the miners.:

                            @jip @uveso

                            I just tested it. Replay IDs #15507408 and #15507454

                            The Cybran Siren-class cruiser can assist the construction of buildings. I tested it with underwater mex upgrades and also with the construction of a T3 pgen on land (obviously, right at the water's edge).

                            It has 1 BP, exactly 1/5 of what a t1 engineer has. For a mex upgrading to t2, it spends 1 mass/second and 6 e/second, which is exactly 20% of what a T1 engie spends (5 mass and 30 e). Similarly, to assist a mex upgrading to t3, the engie uses 8 mass/second, and the siren uses 1.6. so, exactly 20%

                            The assistance does, as expected, increase the rate at which the upgrades complete

                            I think this is a bug, there's no in-game or lore reason why Sirens should have this ability.

                            I wondered if this might be because Sirens have air staging. So I tested other units/structures with air staging to see if they have the same bug (all t3 aircraft carriers, Atlantis, Czar, Fatboy, and the air staging structures). I was not able to replicate this bug with those other units. So there is something else going on with the Siren.

                            I wonder if the existence of a guard radius ("GuardReturnRadius = 130") makes a difference. Or perhaps it is the targeting laser weapon. Just a couple wild guesses. If I wasn't so lazy I could mod the game to remove the guard radius to test if that's what's causing it.

                            Top secret Cybran military intel here

                            put the xbox units in the game pls u_u

                            1 Reply Last reply Reply Quote 0
                            • AskaholicA Offline
                              Askaholic
                              last edited by

                              It’s a feature, it’s just part of cybrans lore of sneakyness that it remains undocumented πŸ˜‚

                              1 Reply Last reply Reply Quote 2
                              • A Offline
                                Aulex
                                last edited by

                                Inb4 people complaining hoards of cruisers building harms is broken

                                1 Reply Last reply Reply Quote 0
                                • B Offline
                                  Broker Banned @Jip
                                  last edited by

                                  @jip yes i did
                                  https://github.com/FAForever/fa/issues/3483#issue-1026614155

                                  1 Reply Last reply Reply Quote 0
                                  • BlackYpsB Offline
                                    BlackYps @Uveso
                                    last edited by

                                    Not only the commander can assist, although unable to build it himself.
                                    Also Mantis, Harbinger Mark IV and Siren Class are able to assist. (i am not sure how many player use that)

                                    So, unassist after building the storage would be my wish πŸ™‚

                                    That would still leave us with the issue that it could cancel your orders if you select a part of the group to do something else and you happen to select the primary engie.
                                    Also having your mantis build mass storage instead of fighting seems like a very odd game decision to me.

                                    1 Reply Last reply Reply Quote 0
                                    • T Offline
                                      Tagada Balance Team
                                      last edited by

                                      Imo, remove the assist feature for engies and just make each engie receive the proper set or commands, the only use case for it is the ACU so if you can add the assist functionality for it it would be useful, if it's not possible then so be it, you can assist manually with your ACU.

                                      arma473A 1 Reply Last reply Reply Quote 0
                                      • JipJ Offline
                                        Jip
                                        last edited by Jip

                                        I think the consensus is clear, but what about these situations:

                                        • What if you have engineers of multiple factions (say, full share after gifting)?
                                        • What if you have your ACU in your selection?
                                        • What if you have Mantis, a Siren (!) or other units that can assist in your selection?

                                        Tagada mentioned about the latter, what are other opinions?

                                        edit: an initial version can be found here on Github

                                        A work of art is never finished, merely abandoned

                                        B 1 Reply Last reply Reply Quote 0
                                        • JipJ Offline
                                          Jip
                                          last edited by

                                          And do we want similar behavior for t3 pgens and / or t3 fabricators, to be able to quickly cap them?

                                          A work of art is never finished, merely abandoned

                                          1 Reply Last reply Reply Quote 0
                                          • TurinturambarT Offline
                                            Turinturambar Balance Team
                                            last edited by

                                            no, since its allmost never used and cause actual damage if you accidentally click on your pgen

                                            Forumpros doing balance https://www.youtube.com/watch?v=4wTcguJZh3A .
                                            When a canis player remembers to build more than 3 units https://www.youtube.com/watch?v=7hjp8xJHuyA .

                                            1 Reply Last reply Reply Quote 2
                                            • First post
                                              Last post