Guys (and really, Devs) I won't get into the historicity of whether or not pikes/sarissas/really long spears should be more effective in this time period. What I will discuss are the SPECIFIC problems of EB2's phalanxes expressed by the M2TW game engine. Note though, these errors only appear for phalanxes with guard mode OFF, so I will be listing the reasons WHY said mode should be off and then the horrible glitches that forced the devs to turn it ON for the ai not to suck so much in their usage of the unit/like-units.
Reasons to Turn OFF Guard Mode for Phalanx-"Type" Units (For both AI and Player):
1) Pike units can PIN the foe. If the enemy turns about and tries to disengage, they suffer, because the whole phalanx is pressing on them and thrusting. They're (the phalanx) not just passively staying in place.
2) In the right situations against the right opponents (so levy phalanx against levy infantry/light phalanx against medium infantry/phalanx against heavies) the phalanx performs well, instead of having such a lopsided death to casualty ratio, where the best the phalanx can hope for is an equal death to kill ratio.
3) Far more effective against cavalry...same reasons as the first but magnified (pikes have bonus against cavalry).
4) Looks more realistic? Never heard of any sort of formation being so picture perfect after the shock and grind of battle. Seeing the phalanx type units thrust home and try to keep even battle lines despite becoming gradually more disorganized is cool (to me and those of like opinions).
Reasons why Devs had to keep Guard Mode On (Especially due to AI usage of them):
1) Enemy infantry can somehow break through the phalanx. A select number of individuals on the opposing side somehow pass through the phalanx like it was air and appear behind your lines.
2) In extreme stress situations (getting attacked from multiple directions), the phalanx sometimes turns around and remains locked in an about face position...the WORST thing to do ever in melee combat (show back to opponent).
3) AI usage of the phalanx gets a fourth of their number killed because they right click into the enemy formation, and because there is such a massive lag between marching and keeping the pikes DOWN, the first ranks of the phalanx get decimated.
4) All the three reasons above magnified in any pike units that are NOT the regular phalanx/the mercenary phalanx/and the agema phalanx. Any AI army with lesser pike units that have guard mode OFF are better off without them because they become player targets as they are so easy to rout and slaughter.
5) The exact opposite reason compared to the last one in the first block. More people like seeing the phalanx in perfect eternal rectangles. I don't understand why but there you have it.
Now on to the solution (more aptly termed clue):
You see that pic up there? That's a custom battle in the Divide and Conquer Mod between Dunlending Pikemen (attack 2 defense 6) against Loke Gamp-Rim (attack 8 defense 26). Dunlending Pikemen with GUARD MODE OFF AND under AI Assistance. No, I did not double stack pikemen into one unit before handing them over to ai command. No, I did not get Dunlending Pikemen to gold experience with upgraded arms and armour, they remain as sucky as they were initially. No, I did not order the Dunlending Pikemen into better battle lines before handing them over to the ai, that's why you see only two dunlending pikemen against the Easterlings, ai likes holding back captain's unit and never using it *shrugs*. The only thing I did before grouping them and clicking the ai assistance button was to turn all their guard modes off.
This scrimmage was going on for a long time. The undeniable positives that this battle (and tons of other tests I did in Divide and Conquer) show are as such:
1) Pikemen in Divide and Conquer with guard mode OFF never let any individual enemy infantry go through their whole formation and out their rear. Never.
2) The about face problem is FAR rarer. Also, even in the cases that it does happen, half the pike block still faces forward and thrusts home....so they kinda make an improvised pike square (maybe a boon)???
3) The pikemen I showed are one of the crappiest pikemen in the game. They're close to the equivalent of the levy eastern phalanxes in EB2 as their stats are attack 2 and defense 6. Also, take this into the context of the Divide and Conquer Mod, with high end units that have ludicrous stats, and realize how much crappier Dunlending Pikemen are in-universe. Despite all of that and under AI command, they held the line, did not break, and dished out more kills than their deaths against formidable foes.
I am not saying that THIS is THE solution. Heck, the devs still have to look at the export_descr_unit file of Divide and Conquer and see it anything can be applied to EB2. It's possible they already did this a LONG time ago, and I'm just wasting everybody's time. But, considering the pikemen of one M2TW mod can work so well (in the light of the usual flaws), I really hope EB2's pike units can copy that.