I never did pay much attention to Generals turning rebel and now I need to understand. Sigh. I have playing as Poland (Lands to Conquer Modification) and the two brother to the king seem destined to turn rebel when in the Islamic culture dominated middle east (Antioch to Gaza) if not the General to end a crusade. I think their single piety may be the problem, but if so how to boost up this piety? I am not certain, but the started the game as low level dread and over the course of the campaign they have moved to low level chivalrous. I do not remember the traits that made up this transition though a bit was occupation rather than sacking the low population centers on the steppes (motte and bailey regions). In LtC modification, it does take a while to grow to be able to build even a wooden castle. Sacking an 800 population settlement seems very counter productive.
Now if I had been writing code for mods, I might already know this answer. Sadly, my code writing days are long past and not a bit of code for Total War. So, any help on this is greatly appreciated.