This is how
i've modded my phalanxes. These modifications should only be valid for phalanxes in
guard mode.
Open the EDU file with Notepad++
I will give you an example of what the original line looked like and how i modified it for native phalanx.
soldier pantodapoi_phalangitai, 96, 0, 1.5 (original stats)
soldier pantodapoi_phalangitai, 96, 1, 1.5, 0.2, 1.55 (modified stats)
So i've added two numbers to the line, first one corresponding to
unit radius the other one corresponding to
unit height.
What does it do? low unit radius (default 0.4) increases lethality of the unit but not directly so it will take a long time before they dispatch enemy units.
Unit height (default 1.7) of 1.55 makes your units dodge a little better the enemy hits so it acts by prolonging a units life.
I chose these values after i tested and retested the phalanxes against enemies like hoplites and hypaspistai, enemies that will push into your formation.
I observed that the phalanx formation now tends to hold a little better while in guard mode.
The native phalanxes can win against hoplites but not against hypaspistai.
The agema phalanx can barely beat the hypaspistai with decent (to me) casualties on your side (your casualties are now a bit lower then what they used to, and it seems to be to be good that way

).
These changes were deemed by me to not be game breaking or imbalanced. They still take a lot of time to either break, or break the enemies and casualties on your side are a bit better than they used to.
If only i could get the
AI to use phalanxes in
guard mode now!
This is the
best you can do from the EDU!
Phalanxes will still break their formation but it will take
a bit longer now with
less casualties.
I've opened a lot of other mods that use M2TW and they all work the same in phalanx stats.
The only thing that differ and could actually really make the phalanxes balanced would be from
animations not EDU.
I should probably be awarded a nobel prize or something.
Try it out for yourselves and mix and match to your own
satisfaction!

Enjoy