I have had a very strange error in my last few games whenever I summon a unit. The summon is produced properly, but the summoner's strength and movement values change dramatically. The units usually seem to gain many billions in their physical strength but also have absurdly high negative strength in all the different damage types. Their movement points, both total and remaining, also become extremely high, and at least one of these is always negative. If I leave these units alone then the game proceeds just fine but if I try to move one then it freezes up.
I assume that this is not a wide spread error and that it was my fault, since it occurred in a version that I had changed. Mostly of the changes were simple things in the .xls, but I also added a few spells in the python files. Most of these were terriforming spells borrowed from Maxmod, but I also wrote 2 spells myself: take spellstaff (basically a copy of take axe, but for spellstaffs. It also could be used regardless of whether either unit had attacked/casted, and did not give the caster the casted promotion) and Enlighten (a modified version of inquisition for the Luonnatar, which removes all religions, regardless of the owner's state religion). I don't see how these changes would have caused this bug.
I put the modified version in a separate file, and still have the unmodified version, which I think runs fine. Come to think of it, I believe the problem didn't start until after I installed a patch or two. Could that have caused the problem? The changes in the patch do not seem to have been applied, but I vaguely remember a patch for .21 causing some odd errors in a minor mod I had made of that version.
Edit-the problem now seems to occur with most, but not all, sorcery and divine spells as well