Playing against Custom Civ

So I was bored and wanted to begin looking in and trying to figure out how to get a custom civ from a mod to be playable by the AI. I looked through all the files for the references of civs and made the necessary adjustments (or at least that’s what I thought) but I was still not able to get it to work. I messed with the personality list and tried to swap to leaders around. I was able to change the picture and the name but they still had the same voice lines and descriptions. I even tried completely removing the leader, Napoleon, and assign Elizabeth to be Frances leader it still has Napoleon as the leader of France. What is the file that I’m missing that is keeping Napoleon’s info. Does anyone know how to get the computer to play a civ? I don’t need a whole new AI created I just would like to copy an AI and use that for the custom civ.

Thanks in advance.