Better documentation anywhere?

Molybdeus

Prince
Joined
Jul 30, 2006
Messages
528
I hate modding the SDK for Civ4 because I never find even the simplest functions I need.

This site is OK, but it doesn't actually tell you what any of the functions it lists do, therefore making it little more useful than simply searching through the SDK line by line.

Is there any better documentation around?

Also what functions returns the maximum number of players in the game? I can't believe I can't find this, but I've searched CvGame and CyPlayer and can't find anything.
 
I hate modding the SDK for Civ4 because I never find even the simplest functions I need.

This site is OK, but it doesn't actually tell you what any of the functions it lists do, therefore making it little more useful than simply searching through the SDK line by line.

Is there any better documentation around?

Also what functions returns the maximum number of players in the game? I can't believe I can't find this, but I've searched CvGame and CyPlayer and can't find anything.

I suggest downloading microsoft vc++ express 2005. You really can't compile with it for various extremely complicated reasons, but if you convert the project file to the new version, the search functions are fantastic. The class view window breaks everything down with every class and an alphabetized list of each function in the class. vc 2003 doesn't do that nearly as thoroughly. For any function you see used in the code, you can find where it's defined and also everywhere else it's used, so you can step through any process and see how all the pieces fit together.

It's a great research tool that will save lot's of time.
 
It should get easier quickly, once you get the hang of how functions are named in the codebase. There's actually a system to it ;) For example, functions that handle some aspect every turn usually start with do - such as doCulture(), doHeal(), doTurn() and such.

The maximum amount of players would be a preprocessor define, it's MAX_PLAYERS. Check CvDefines.h, some key stuff is defined there.
 
Back
Top Bottom