addLeaderheadGFC->accessing art files

vicawoo

Chieftain
Joined
Feb 12, 2007
Messages
3,226
I can't find the code for the addLeaderheadGFC function, which is called to create leaderheads in the Dawn of Man and civilopedia.

I've gone through all of the DawnofMan python code, checked the includes, and the function I'm looking for is definitely addLeaderheadGFC. However, I've done a text search of all the Assets/python and BTS/assets/python files, along with bts/cvgamecoredll, and it is not present. I've checked http://civilization4.net/files/moddi...nAPI/list.html, and it's in the http://civilization4.net/files/moddi...nterfaceScreen class, but the class says it's not in SDK.

So should I still bother trying to find it, or does someone know how to access the artwork directly? The art files are not in a recognizable format.
 
Most of the actual drawing of the graphics is done by a commercial game engine, gamebyro I believe, and Civ4 had to pay money to get a license to use it, so they can redistribute that part of the code.
 
I can't find the code for the addLeaderheadGFC function, which is called to create leaderheads in the Dawn of Man and civilopedia.

I've gone through all of the DawnofMan python code, checked the includes, and the function I'm looking for is definitely addLeaderheadGFC. However, I've done a text search of all the Assets/python and BTS/assets/python files, along with bts/cvgamecoredll, and it is not present. I've checked http://civilization4.net/files/moddi...nAPI/list.html, and it's in the http://civilization4.net/files/moddi...nterfaceScreen class, but the class says it's not in SDK.

So should I still bother trying to find it, or does someone know how to access the artwork directly? The art files are not in a recognizable format.

I had this issue with some other functions, getXResolution and getYResolution, which oddly enough, wasn't exposed in the SDK either. I got around this by adding some fuctions in CvGame that were set the correct X and Y resolution values from python when the game starts up.

I'm not sure, but perhaps you could work out a hack to call the python functions with the SDK when you need this done, like the way python callbacks work.
 
Since when does windows search do text searches?

I learned about the dds, km and the other formats, and found a program with a python/c++ library that can access it. So the artwork is displayable through gimp or other means. However, without the code for addLeaderHeadGFC, instead of the Dawn of Man graphic I'm going to be getting this

 
Back
Top Bottom