Navigation

    TripleA Logo

    TripleA Forum

    • Register
    • Login
    • Search
    • TripleA Website
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Tags

    place units anywhere, also no max production in factories

    Map Making
    3
    18
    1327
    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.
    • F
      ff03k64 last edited by

      I can't get units to be able to be placed anywhere. The best i have found previously is to make an invisible factory, but the POS2 xml sure makes it seem like this should be possible.

      Similar with having a factory have unlimited production.

      W 1 Reply Last reply Reply Quote 0
      • W
        wc_sumpton @ff03k64 last edited by

        @ff03k64

        Look at this option:

        <property name="Place in Any Territory" value="true" editable="false">
           <boolean/>
        </property>
        
        <property name="Placement Restricted By Factory" value="false" editable="false">
           <boolean/>
        </property>
        

        There is also the 'originalFactory' for territory attachments, which allows only the original controller/owner to have unlimited production.

        Cheers...

        1 Reply Last reply Reply Quote 1
        • F
          ff03k64 last edited by

          @wc_sumpton said in place units anywhere, also no max production in factories:

          <property name="Placement Restricted By Factory" value="false" editable="false">
          <boolean/>
          </property>

          Yeah! Progress!

          So your second one allowed units to be built anywhere.

          Do you know the property (i am assuming that is what it is) to not tie production to territory value?

          B 1 Reply Last reply Reply Quote 0
          • B
            beelee @ff03k64 last edited by beelee

            @ff03k64 I'm not certain but it may be this one

            Placement Restricted By Factory

            ahh... I see you already have that 🙂

            1 Reply Last reply Reply Quote 0
            • B
              beelee last edited by

              So it looks like you need a unitAttachment

              canProduceXUnits values: allows a factory-type unit to produce a set amount of units no matter where it is located. if -1 then it will produce at the value of the territory where it is.

              <option name="canProduceXUnits" value="10"/>

              F 1 Reply Last reply Reply Quote 0
              • F
                ff03k64 last edited by

                @beelee said in place units anywhere, also no max production in factories:

                @ff03k64 I'm not certain but it may be this one

                Placement Restricted By Factory

                ahh... I see you already have that 🙂

                Placement restricted by factory is indeed what got me to be able to place anywhere.

                @beelee said in place units anywhere, also no max production in factories:

                So it looks like you need a unitAttachment

                canProduceXUnits values: allows a factory-type unit to produce a set amount of units no matter where it is located. if -1 then it will produce at the value of the territory where it is.

                <option name="canProduceXUnits" value="10"/>

                I looked at the POS2 xml some more after you said this, and it might be what i need. I might be trying to be too fancy for it though. I will put that on my factory for sure.

                What I am trying to do, is have a unit that is an upgrade of another unit. I want that to be placed where ever on the map the first unit is. Possible even in allied territories. Though depending on how i design my map, i may be able to work around that part.

                Does that make sense?

                B 1 Reply Last reply Reply Quote 0
                • F
                  ff03k64 @beelee last edited by ff03k64

                  @beelee said in place units anywhere, also no max production in factories:

                  <option name="canProduceXUnits" value="10"/>

                  unfortuantely that doesn't seem to have done it. Do i need to set a property for this to work? I put it on a factory itself.

                  1 Reply Last reply Reply Quote 0
                  • B
                    beelee @ff03k64 last edited by

                    @ff03k64 said in place units anywhere, also no max production in factories:

                    What I am trying to do, is have a unit that is an upgrade of another unit. I want that to be placed where ever on the map the first unit is.

                    So if you had a tank in Ukraine and you upgraded your tank you want the upgrade placed in Ukraine ? The old tank removed as well ?

                    If so, you would make your upgrade a condition and use it in a trigger to place/remove the units. You'd also have to have a condition checking that the original unit is there as well so it would then fire when your upgrade takes place.

                    You can also do it with your upgrade being a tech. You have to word it a little differently.

                    Or I may have misunderstood 🙂

                    F 1 Reply Last reply Reply Quote 0
                    • F
                      ff03k64 @beelee last edited by

                      @beelee said in place units anywhere, also no max production in factories:

                      @ff03k64 said in place units anywhere, also no max production in factories:

                      What I am trying to do, is have a unit that is an upgrade of another unit. I want that to be placed where ever on the map the first unit is.

                      So if you had a tank in Ukraine and you upgraded your tank you want the upgrade placed in Ukraine ? The old tank removed as well ?

                      If so, you would make your upgrade a condition and use it in a trigger to place/remove the units. You'd also have to have a condition checking that the original unit is there as well so it would then fire when your upgrade takes place.

                      You can also do it with your upgrade being a tech. You have to word it a little differently.

                      Or I may have misunderstood 🙂

                      Almost. I have a basic rookie unit. I have 4 units that consume rookies as a cost. I want to do that where ever rookies are located. I want rookies to only be placed in the original territory, which i have working.

                      What doesn't work is that i want to be able to place as many rookies as i can in the original territory, but currently i can only place 1 there (or the current PU value). I also want my upgraded units to be able to placed for however many rookies there are.

                      1 Reply Last reply Reply Quote 0
                      • B
                        beelee last edited by

                        Try <property name="Unlimited Constructions" value="true" editable="true">
                        <boolean/>
                        </property>

                        for placing as many as you want

                        1 Reply Last reply Reply Quote 0
                        • W
                          wc_sumpton last edited by

                          @ff03k64

                          In the original territory's attachment did you try:

                             <option name="originalFactory" value="true"/>
                          

                          That should allow unlimited production from a factory placed in that territory by the original owner of the territory.

                          Cheers...

                          F 1 Reply Last reply Reply Quote 0
                          • F
                            ff03k64 @wc_sumpton last edited by

                            @wc_sumpton I have been busy, so i just saw this response now. That allowed me to have unlimited production in one territory. So one problem solved. Thanks!

                            Unfortunately, that doesn't help with my units that consume rookies. I still need a factory, and I still can only place them up to the territory value.
                            xcom.xml

                            1 Reply Last reply Reply Quote 0
                            • W
                              wc_sumpton last edited by

                              @ff03k64

                              Try adding the following properties:

                              <property name="Unit Placement Per Territory Restricted" value="true" editable="false">
                                 <boolean/>
                              </property>
                              
                              <poperty name="Production Per X Territories Restricted" value="true" editable="false">
                                 <boolean/>
                              </property>
                              

                              Hoping that helps

                              Cheers...

                              1 Reply Last reply Reply Quote 0
                              • F
                                ff03k64 last edited by

                                @wc_sumpton They don't seemed to have helped.

                                I am thinking of making my base unit (rookie) a factory that can produce one unit, and making sure that any other units require an actual factory unit. Do you think that would work?

                                1 Reply Last reply Reply Quote 0
                                • W
                                  wc_sumpton last edited by

                                  @ff03k64

                                  Okay this is what I did. I redownloaded your above posted xml. I changed the game name to "XCOM Test" and add just the following property:

                                  <property name="Unit Placement Per Territory Restricted" value="true" editable="false">
                                     <boolean/>
                                  </property>
                                  

                                  Then I started the map. I was able to purchase 10 rookies, 1 heavy and 1 sniper. The rookies have to go to 'Sweden' because of the placement restriction. But I could place the heavy and sniper into 'French West Africa' with no factory at that location. I think that was what you are trying to do. If I have something wrong please let me know.

                                  You do not need both properties just 'Unit Placement Per Territory Restricted' should do.

                                  Cheers...

                                  F 1 Reply Last reply Reply Quote 0
                                  • F
                                    ff03k64 @wc_sumpton last edited by

                                    @wc_sumpton It worked that time, i must have not updated my zip file when i tried it before. Thanks!

                                    1 Reply Last reply Reply Quote 1
                                    • W
                                      wc_sumpton last edited by

                                      @ff03k64

                                      LOL. I have chased a single 'bug' for hours because I did not update the zip, or start a new game.

                                      Cheers...

                                      1 Reply Last reply Reply Quote 1
                                      • F
                                        ff03k64 last edited by ff03k64

                                        Now for the last thing for these units. How can i place them in allied territories (assuming i have a rookie there)?

                                        1 Reply Last reply Reply Quote 0
                                        • 1 / 1
                                        • First post
                                          Last post
                                        Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums