Gaius Octavius
Deity
- Joined
- Jul 28, 2006
- Messages
- 4,016
Theocratic USA flag: Uses 50 Crosses instead of Stars. 

I have run into a BIG problem, I can't seem to get the compiler to work and no one will compile the code I have for me. The code I have will allow me to rename a leader from python. Oh, if you guys had a working compiler please PM if you would like to compile it.
Isn't this the basic purpose of this thread? New empires can be formed, and leaders can be changed. If a civ# is re-used, it will inherit much of what the previous civ had (eg trade routes, attitudes).
Not quite. What we want to do is make it so only the names change over time, not necessarily the whole civ. We don't want to have to kill off the Roman Republic and start another civ as the Empire, for instance. At least, that's how I understood it
It's very close then, except the flag part :/ When I split the Roman Empire into the Western Roman Empire, and the Eastern Roman Empire (which later become the Byzantine Empire in year??) all units, cities, etc.. will be maintained, just under new ownershipI don't know if the Revolutions code can maintain the units (new civs get new units), but if not it wouldn't be too hard in python to do this even if the civ# changes. The enslavement code shows most of the commands necessary. Foreach unit owner by the splitting civ#, save the location + unit id + promotions + xp + name, delete the existing unit, create new unit using the saved data. Bam, an exact copy, but owned by a different civ! If Revolutions creates new units, just delete any unit owned by that civ before recreating the original units.
Enboldening by me.If I understand correctly, right now they're just looking to change the name of the civ, not the whole civ type. This is also possible in the Revolution Mod, although currently only through a popup for fun. You can see the results here.
If Zebra runs into any more trouble I could make this part of my SDK changes available separately, along with examples of how to cause the changes from Python so that this project can move forward.
Almost there. If it goes well it will be ready by next month.![]()