Dynamic Civ Names

Atlantean King

Chieftain
Joined
Oct 13, 2012
Messages
2
During my test plays with my custom scenario I made Rome a theocracy, so I went to test to see if everything was working and saw that Rome's name changed to Roman Republic instead of for example Theocracy or Papacy of Rome.

So I went in to the DynamicCivNames.py and found this:
sHoly = localText.getText("TXT_KEY_MOD_DCN_HOLY", ()) + ' '
if( RevUtils.getReligiousFreedom(iPlayer)[0] < -9 ) :
if( self.LOG_DEBUG and bVerbose ) : CvUtil.pyPrint("Names - player is theocracy")
if( len(newName) < 16 and not sHoly in newName and not sGreat in newName and not newName.startswith(localText.getText("TXT_KEY_MOD_DCN_HOLY_HRE_MATCH", ())) ) :
newName = sHoly + newName
elif( newName.startswith(sHoly) and not origDesc.startswith(sHoly) ) :
# Cut off any inappropriately saved 'Holy ' prefix
newName = newName[len(sHoly):]

Wouldn't this suggest that Rome become Holy Rome?

As a little side note in the DynamicCivNames_CIV4GameText.xml what is with the names like Russ towards the bottom.

Another side note what's the point of CivNames_CIV4GameText.xml if we already have the DynamicCivNames_CIV4GameText.xml?
 
During my test plays with my custom scenario I made Rome a theocracy, so I went to test to see if everything was working and saw that Rome's name changed to Roman Republic instead of for example Theocracy or Papacy of Rome.

So I went in to the DynamicCivNames.py and found this:


Wouldn't this suggest that Rome become Holy Rome?

As a little side note in the DynamicCivNames_CIV4GameText.xml what is with the names like Russ towards the bottom.

Another side note what's the point of CivNames_CIV4GameText.xml if we already have the DynamicCivNames_CIV4GameText.xml?
That is part of an attempt to move the Python based naming to an XML based naming but it is incomplete and I don't have any time to complete it at the moment.
 
Um... can't answer most of that question - the Python is complex and I don't know what the variables ARE soooo....

But I CAN tell you AIAndy is in the middle of a dll based 'naming' project - pretty cool stuff once its up and running properly and has some good data put in place for it. So some of what you're seeing that could be confusing the issue for you (xml files) may have more to do with that then the current methods in use for Dynamic Naming.

EDIT: Looks like he beat me to the punch in explaining that ;)
 
It took me a moment to understand what you guys are saying but I think I got it and thanks for answering my question.
 
Back
Top Bottom