Python question

Try CyGame().setPlotExtraYield(int iX, int iY, int /*YieldTypes*/ eYield, int iExtraYield)
 
The BtS API by Zebra 9 . If you want all the functions in a single file ... sometimes usefull with the search function . You can launch this function via civ4 : ( It creates "CvPythonExtensions.hlp.txt" in the main folder . cf CvAppInterface.py )

Code:
		import CvPythonExtensions
		import CvUtil
		import sys
		helpFile=file("CvPythonExtensions.hlp.txt", "w")
		sys.stdout=helpFile
		import pydoc                  
		pydoc.help(CvPythonExtensions)
		helpFile.close()
                sys.stdout=CvUtil.RedirectDebug()

Tcho !
 
I searched in the SDK.
 
The BtS API by Zebra 9 . If you want all the functions in a single file ... sometimes usefull with the search function . You can launch this function via civ4 : ( It creates "CvPythonExtensions.hlp.txt" in the main folder . cf CvAppInterface.py )

Code:
		import CvPythonExtensions
		import CvUtil
		import sys
		helpFile=file("CvPythonExtensions.hlp.txt", "w")
		sys.stdout=helpFile
		import pydoc                  
		pydoc.help(CvPythonExtensions)
		helpFile.close()
                sys.stdout=CvUtil.RedirectDebug()

Tcho !

jeha, the Zebra API isn't complete yet.
it's very interesting but i'm some kind of n00b and have no idea how to create this file :D

is it possible you just upload it? (because i think a howto would be too much work for you - and plz dont say it's in the python console because that thing don't work for me)
 
Not this time :) the how to is very simple , and it can be usefull to recreate the file with updates and different versions :

_ go to \<civ4 folder>\Assets\Python\EntryPoints
_ put a copy of CvAppInterface.py in your CustomAssets
_ change PythonHelp = 0 to 1 in init()

Code:
def init():
	# for PythonExtensions Help File
	PythonHelp = 0		# doesn't work on systems which haven't installed Python
			
	# dump Civ python module directory
	if PythonHelp:		
		import CvPythonExtensions
		helpFile=file("log\CvPythonExtensions.hlp.txt", "w")
		sys.stdout=helpFile
		help(CvPythonExtensions)
		helpFile.close()
	
	sys.stderr=CvUtil.RedirectError()
	sys.excepthook = CvUtil.myExceptHook
	sys.stdout=CvUtil.RedirectDebug()

_ launch civ4 and it's done .

Tcho !

i'll upload the file if you still want it ...
 
Top Bottom