• Our friends from AlphaCentauri2.info are in need of technical assistance. If you have experience with the LAMP stack and some hours to spare, please help them out and post here.

How can I use the Dynamic City Names in another mod?

What you need are the event triggers that do the stuff defined in the CNM in the first place. I think the safest way to add that without messing everything up is to copy the CvEventManager.py file from your BtS folder into your mod, then import your CNM module there and call its onCityAcquired() and onCityBuilt() methods in the equivalent methods of the event manager. Look into CvRFCEventHandler.py to see how RFC does it.
 
What you need are the event triggers that do the stuff defined in the CNM in the first place. I think the safest way to add that without messing everything up is to copy the CvEventManager.py file from your BtS folder into your mod, then import your CNM module there and call its onCityAcquired() and onCityBuilt() methods in the equivalent methods of the event manager. Look into CvRFCEventHandler.py to see how RFC does it.

Could you explain? It hardly makes sense for a python noob... Perhaps even indicate the place you're talking about?
 
Back
Top Bottom