Extracting Dynamic Civ Names

Voltage

Warlord
Joined
Oct 4, 2006
Messages
173
Hello,

Im trying to extract Dynamic Civ Names from RevDCM source files for the third time, Aargh! I've got a successful compile, but its not working :( It gives a crash to desktop after its finished loading all the XML and Python on start up screen. Is there a LOG that can show what problem is occuring?

I have these files containing code from RevDCM, It has some notes im a lil weary of
Spoiler :

CvDllwidgetData.cpp
Cvplayer.cpp
CyEnumsInterface.cpp
CyPlayer.cpp ---> "SetFoundedFirstCity...Blah" - Removed it because of compile error and didnt seem to have any dynamic civ code.
CyPlayerInterface.cpp
CvDefinesModtools.h ---> Non-existent in standard BTS source files.
CvEnums.h .
CvPlayer.h
CyPlayer.h

Anyone know if im missing some files?

CvEnums.h and CyEnumsInterface.cpp contain the code to allow the options for RevDCM parts on Custom Game screen. Im not sure if i should remove these code segments ...

Can anyone give some ideas or help please. Would be greatly appreciated.
 
CvEnums.h and CyEnumsInterface.cpp contain the code to allow the options for RevDCM parts on Custom Game screen. Im not sure if i should remove these code segments ...

Can anyone give some ideas or help please. Would be greatly appreciated.

I'm pretty sure you need the GameOption code in CvEnum.h and CyEnumInterface.cpp, as Dynamic Civ Names was coded as a Gameoption. However, delete all the game options except
Code:
GAMEOPTION_DYNAMIC_CIV_NAMES,

That's the one you need to keep.
 
Hi Afforres. The change you suggest has compiled :)

Now I can get to the main menu, but crash when pressing custom game. So i tried quick game and Auto played for 200 turns. But no civilization was renamed to Kingdom of X after they switched to monarchy.

These are the other files i have used to try and get this working.

DynamicCivnames.py
CIV4UnitSchema.xml inside Units folder
RevUtils.xml inside Text Folder
CIV4CivicInfos inside game info
CIV4GameInfoSchema inside game info

I tried the above files from RevDCM and DynamicCivNames 0.41, but not work... :(

Maybe im missing something because this isnt working at the moment ?


***EDIT***

Maybe another issue might be that i have so many config files in my mod :
Lead from Behind
SHAM
Varietas Delectat
AIAutoPlay

Also In my python folder
CvModName is set to AIAutoPlay.

In CvCustomEventManager
Spoiler :

Code:
.......
# --------- Revolution mod (1/2) -------------
import RevolutionInit   #### <---- This Part I beleive i am meant to be something else ??? Confuses me.

class CvCustomEventManager(CvEventManager.CvEventManager, object):


    def __init__(self, *args, **kwargs):
        super(CvCustomEventManager, self).__init__(*args, **kwargs)
        # map the initial EventHandlerMap values into the new data structure
        for eventType, eventHandler in self.EventHandlerMap.iteritems():
            self.setEventHandler(eventType, eventHandler)
        # --> INSERT EVENT HANDLER INITIALIZATION HERE <--

        # --------- Revolution mod (2/2) -------------    
        revConfigFile = "AIAutoPlay.ini"     ####<---- This Part I beleive i am meant to be something else ??? Confuses me.
        RevolutionInit.RevolutionInit( self, revConfigFile )  #### <---- This Part I beleive i am meant to be something else ??? Confuses me.

    def addEventHandler(self, eventType, eventHandler):
        """Adds a handler for the given event type.
.......
 
Top Bottom