You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 8, 2024. It is now read-only.
InfantryTypes can exist at 5 different cell spots (also called "subcells") within a cell. These spots use values 0-4, encoded as the 6th infantry parameter (see code below). Unfortunately, FA2 doesn't register infantry at the last spot (spot value 4). Infantry at this spot are invisible in the editor and cannot be selected. This is especially problematic when editing vanilla maps, as they sometimes contain infantry at these spots.
In addition, when placing infantry in a cell in FA2, they are placed at spots 0-2, not in 2-4 as seems to be intended. In vanilla maps, infantry are never placed at spots 0-1, probably due to how they overlap at the cell center.
I think the placement within the cell needs to correlate with the *OccupationBits= setting too. Not all terrain objects (trees specifically in this case) allow infantry to occupy every corner or center of the cell, so if placed on a cell with a tree, only the available spots should be used, which would also affect how many can occupy it.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
InfantryTypes can exist at 5 different cell spots (also called "subcells") within a cell. These spots use values 0-4, encoded as the 6th infantry parameter (see code below). Unfortunately, FA2 doesn't register infantry at the last spot (spot value 4). Infantry at this spot are invisible in the editor and cannot be selected. This is especially problematic when editing vanilla maps, as they sometimes contain infantry at these spots.
In addition, when placing infantry in a cell in FA2, they are placed at spots 0-2, not in 2-4 as seems to be intended. In vanilla maps, infantry are never placed at spots 0-1, probably due to how they overlap at the cell center.
Example map code:
The number 4 is the cell spot parameter.
For more information on cell spots, see ModEnc.
The text was updated successfully, but these errors were encountered: