Ok I tell you guys all I learned in my testing of auto-battles (and I test with medium difficulty).
At least these factors affect auto-battle results:
-hit_points = medium effect
-hit_point_extra = medium effect
-troop numbers = biggest effect
-primary melee attack = big effect
-ranged attack (if unit has ranged attack then also melee attack has effect) = big effect
-armor = big effect
I don't know the mathematical operation the computer makes to calculate the auto-battle results. It seems that some factors are more important than others, so thats why I put these "medium", "big", "biggest". I might even be wrong about which one of those matters most, but I think I'm right.
Also, for example, hypaspist (with 160 men) wins gold shields and loses to elite hoplite but the gold shields win the elite hoplite. So there is not one way all these things are calculated. It means things like phalanx, heavy, light or missile type troops might have some effect when facing certain opponents.
But the main thing is that currently in Extended Realism Mod the automatic battles are flawed.
Some of the most powerful units at the moment are:
-aor numidia spearmen (240 men, powerful ranged attack and medium melee attack)
-numidian javelinmen (240 men, powerful ranged attack and medium melee attack)
-aor asia roman archer (medium ranged attack, medium melee attack and +8 armor)
-german warband (240 men, powerful ranged attack and medium melee attack)
Some of the weakest units are:
-hypaspists (very few men)
-triarii (very few men)
-all cavalry units (very few men and hit_point_extra don't work with them)
Other weak units:
-legionares
-sacred band
-silver shields
-elephant units
This means that every single unit must be tested in auto-battles and edited. And some units in battle map are also underpowered (hypaspists, triarii, silver shields), mainly because of low number of men.
Other mistakes I have noticed:
-There is problem with hoplites whose formation is: formation 0.7... They are too close together and even when highly_trained their formation is disorderly.
-The german berserkers have javelin instead of sword in their hand in battle map mode. This is because their javelin weapon have been deleted from export_descr_unit, but their skeleton still has it. I don't know how you can take the javelin away without them using it in battle map mode. So I suggest to bring back their javelin.
-Most of the horse sprites do not match with their (new ExRM) textures.
-Some units (carthagian citizen peltast, hypaspist swordsmen) don't have any text in their info box.
Other things that might or might not be mistakes:
-Macedonian Pezhetairoi have darker skin than what I think ancient macedonians had
-Spartan hoplites also have darker skin than what I think ancient greeks had.
-Britons have too bright (blue) colored clothes.
-merc elephants cannot be hired from anywhere.
I will have to say this mod in its current state is UNPLAYABLE. The auto-battles must be balanced and I say all other improvements right now are not important. Balancing the auto-battles will have big effect on AI behaviour and the succes of all factions. There is no point right now for example test what the AI will do in the campaign map(will ptolemy attack greece or seleucid etc...) because all this will change and all testing must be done again.
Lots of work ahead.