two HROCHland requests

Hi, bmarnz. Last version of your minimod work good. Thanks you very much.

Problem with crash game, when I press button is caused by conflict between some of python modcomp´s in my mod, I think.
I must now test versions with various combinations and locate, which is incompatible with others and discard him..
Thanks
HROCHland
 
Good day, Bmarnz and others. I have a little question, if you have a bit time for me.

HTML:
## CvEventManager


      def onImprovementBuilt(self, argsList):
                'Improvement Built'
                iImprovement, iX, iY = argsList

                #HrochMod: vysadit les a waterland

                pPlot = CyMap().plot(iX,iY)
#################################################################
             if(iImprovement==gc.getInfoTypeForString('IMPROVEMENT_NEW_FOREST')):
                        pPlot.setImprovementType(-1)
                        pPlot.setFeatureType(4, 1)
                if(iImprovement==gc.getInfoTypeForString('IMPROVEMENT_NEW_FORESTW')):
                        pPlot.setImprovementType(-1)
                        pPlot.setFeatureType(4, 2)
#################################################################
                iWaterland1 = gc.getInfoTypeForString('IMPROVEMENT_WATERLAND1')
                iWaterland2 = gc.getInfoTypeForString('IMPROVEMENT_WATERLAND2') etc. etc.

Inserted part is from GreenMod - code for replant forest. I paste it to the my BtS mod and game crash when I load mod.
Have anybody experience how I can use replant forest in BtS mod, please?

thanks
HROCHland
 
Top Bottom