Fixed coded! Yay team . I hadn't done serious trigonometry in a while but had to pull it out after 10pm. Shortly after I gave up for the night it came to me so of course I popped back up and that bit worked. In short, instead of storing unit offsets from group center as pixel x, y values, we now store them as distance units. Distance units are a strange unit of measurement, 6211 DUs per nautical mile that the original developer conceived or copied.
HCE - 2021.012 - 2021-12-22
===========================
- Chg:31898 GE The formation editor will draw units in the correct location
now for most situations. This includes changing the group
map zoom level while the formation editor is open.
Limited testing also suggests units will properly adapt
to changing of formation zone sizes.
When you select a unit in the unit list, the unit should
have a dotted box drawn around the current position of
the unit and the formation zone(s) it is assigned to
should be highlighted. This means the units will not
always show in their assigned zones (aircraft transiting
to their formation position, ships catching up after
a formation or course change, etc.). The Unit window
will show the actual positions of friendly units, even
for the group that is currently having its formation
edited. That can give you some manner of before/after
comparison.
(thanks eeustice)
https://harpgamer.com/harpforum/topic/31898-ge-formation-editor-units-dont-draw-at-correct-location-on-group-map/