Quote Originally Posted by buujin
I have a problem with a mod im developing. The mod conains many new units as well as most of the units from MTW and a few from VI. Currenlty i get no dead bodies appearing during battles, not even those of the original mtw units.

Ive taken a look at the thread by DnC in the repositry regarding this but have gained no full understanding of the problem.
DnC's explanation in the archive got chopped, so it's incomplete.

Everytime a man is killed the game goes through the deadpage file sequentially from top to bottom matching the units against prod file entries. When it gets to the unit type of the man killed, a corpse is produced. If the deadpage has an entry without a corresponding entry in the prod file, the search will stop at that point and no corpse will be produced. Some units in MTW, such as the Faris, lost their corpses when VI was released because CA put 3 VI units in the middle of the deadpage coordinate list in front of some regular MTW units. That can be fixed by moving those 3 units (JomsVikings, Bonnachts and IrishDartmen) to the end of the deadpage.

If your mod is trying to maintain compatibility with regular MTW/VI, any new units must be placed at the end of the deadpage file and the prod file must contain all the regular MTW/VI units unless you swap in a new deadpage file when the mod is in use.