[PYTHON] DynamicCivNames

_Teiwaz_

Chieftain
Joined
Sep 15, 2024
Messages
1
Hello,
first Post.
I was having a look at the DynamicCivNames Python Code and decided to give it a go myself. See attached file.

One Question i have is how to get the player's chosen Religion ? Then i would make names like "Caliphate" or "Sultanate" depending on Islam being the Religion (also other Stuff potentially for theocracies).
And another Question: Can i somehow test the script other than reloading the game ? If i save the script with the game open, it attempts to reload the script aparently, but i always get the error CyAppInterface can not be loaded.

Also if you have any Civic combinations that should result in a specific Civ name, drop them here and i can add them.

And finally, once this is fleshed out properly, how would i go about adding it into the SVN? have only worked with git previously, and only on small scale repositories.

[EDIT]
Apparently i can not attach raw .py files, so i zipped it now
 

Attachments

Last edited:
One Question i have is how to get the player's chosen Religion ?
CyPlayer::getStateReligion() I think.

And another Question: Can i somehow test the script other than reloading the game ? If i save the script with the game open, it attempts to reload the script aparently, but i always get the error CyAppInterface can not be loaded.
I don't know what's up with that, but that's the way it's been forever. I've never found a way other than reloading the game.

And finally, once this is fleshed out properly, how would i go about adding it into the SVN? have only worked with git previously, and only on small scale repositories.
Put changes on github first, then it will be sent to svn.

 
Top Bottom