TripleA freezes with movementCostModifier
-
I have the following territoryEffectAttachment:
<attachment name="territoryEffectAttachment" attachTo="Convoy" javaClass="TerritoryEffectAttachment" type="territoryEffect"> <option name="movementCostModifier" value="UK-scoutcar" count="-3"/> </attachment>UK-scoutcar has a movement of 4, so the intention with this is if this unit starts the turn inside a territory with territory effect "Convoy", it only has a movement of 1.
Now unfortunately what happens currently is that I can select the unit, and once the cursor crosses the border of the territory while trying to move to another territory, TripleA freezes. My PC is becoming louder and I am unable to do anything. I have to force quit tripleA using Task Manager.
If I set "count" to "-1", I can avoid this, but then there is no effect on the movement. So the machine does not freeze but the movement is still 4 for some reason. If it's any other number, the game freezes.
What causes this behavior? And what should I do to get this to work as I want?
One more special thing to note is that there is water between the territories, even though a connection is specified between these territories. Another thing is that both Atlantic Ocean Convoy and Indian Ocean Convoy have the territory effect "Convoy", although the behavior also comes up when moving from a convoy to a standard territory.

-
Does it throw a error or just freeze ? Are you in edit when it happens ?
I know the Paras and LCVs kinda nutup sometimes in HRE
-
@victoryfirst said in TripleA freezes with movementCostModifier:
<option name="movementCostModifier" value="UK-scoutcar" count="-3"/>
Try
<option name="movementCostModifier" value="UK-scoutcar" count="3"/>AFAIK 2 is the extra cost to move into.
-
@beelee No error at all, just the game freezing. I am also not in edit mode.
-
Try
<option name="movementCostModifier" value="UK-scoutcar" count="3"/>
AFAIK 2 is the extra cost to move into.thedog
I tried this and it worked!!!
-
-
Update,
so it works completely correctly when both starting in a "convoy" and moving to a "convoy". However if you start in a convoy and move to a regular territory there is no effect on the movement. How do I solve that?
-
I have no idea
Hows java school coming along ? 
-
I think movementCostModifier only applies when moving to the territory, not moving from it. Is there a way to get around this?
@beelee Java school is not going well, I am still at 5% of completing the course...
-


