place units anywhere, also no max production in factories
-
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.
-
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...
-
@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?
-
@ff03k64 I'm not certain but it may be this one
Placement Restricted By Factory
ahh... I see you already have that
-
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"/>
-
@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?
-
@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.
-
@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
-
@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.
-
Try <property name="Unlimited Constructions" value="true" editable="true">
<boolean/>
</property>for placing as many as you want
-
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...
-
@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 -
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...
-
@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?
-
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...
-
@wc_sumpton It worked that time, i must have not updated my zip file when i tried it before. Thanks!
-
LOL. I have chased a single 'bug' for hours because I did not update the zip, or start a new game.
Cheers...
-
Now for the last thing for these units. How can i place them in allied territories (assuming i have a rookie there)?