Installing and using the SDK

Will this work with Visual C/C++ Studio 2005 Pro
 
Will this work with Visual C/C++ Studio 2005 Pro

Not easily. The python calls and functions it uses are the 2003 version.
 
Use the STABLE version of codeblocks.

See the following quote from the Codeblocks site.
The last stable release is from a while back: 1.0rc2 (dated Oct 25, 2005). A little while after it was released though, it was decided that there were enough shortcomings in that version which would practically lead us to a crippled version bearing the milestone number 1.0.
At that time, we decided to take the plunge and started re-designing some of the core modules, re-factoring some others and generally increasing the development pace. Soon after, new features started creeping in as well as new bugs (an inevitable fact of programming).
Anyway, to make the long story short, time has gone by and no new release was made. Well, not quite...
Since January the 2nd of 2006, we started publishing what we call "nightly builds". These are development (binary) snapshots containing Code::Blocks in its current form, updated each day (well, actually each night). These binary snapshots allow people to watch Code::Blocks evolve without them having to build it from source. This was a huge help to us, because we got almost immediate feedback about bugs that crept in, usability issues, anything. And so Code::Blocks evolved in ways we had not imagined...
Note though, that the fact that nightly builds are "development" snapshots, doesn't make them immediately unusable. As a matter of fact, any recent snapshot is much more stable than our last "stable" release (so called 1.0rc2). In terms of features any snapshot is leaps ahead 1.0rc2.

This clearly says that the "nightly builds" are more stable than the last major release.

Now, if what you meant to say is "go back to the previous version which we know people are using and have had success with," then your advice is well taken. I will give that a shot.

Wodan
 
"\cvgamecoredll\boost-1.32.0\include\boost\python\data_members.hpp(277) : error C2665: 'boost:python::detail::make_getter' : none of the 3 overloads could convert all the argument types"

Anyone got a clue how I can fix this one? I didn't change anything in the code yet, just disabling read-only on every file and converting the project from VS2003 to VS2005.
 
Here, once again. This is the way that it goes. Games are built using certain versions of compilers and linkers. It is Microsoft because of Security that changed things around from different versions of Visual Studio. NET between the different versions. Do not expect a different version to work for this game. There is a MakeFile (text file) that one can use that is listed somewhere in this thread to make Visual Studio diffferent versions work as if they are of the same version, but the Makefile is used because it has to be. In other words, the correct versions of the *.h files or *.lib files have to be used to Compile and Link the SDK of the Civ IV game. The same way with Direct X versions. You do not use Direct X 7 to make a Direct X 9 version game. It may or may not work, because the files have changed with the *.h files and *.lib files you need to Compile and Link a particular version. Also at the same time, just listing the Path (s) to find the files may not work when Compiling or Linking. Simply put, in Visual Studio .NET whatever version, or even the Express C++ version, one has to make sure (especially in Direct X) that the Correct Librarys and such are in the Linker which means that using the Linker's page to set up Additional Dependencies will have to be used. In other words, Direct X whatever version made to be a game without Linking those libraries into the Additional Dependencies page of the Linker will make it not Compile or Link the program. If different versions are used (and this I do well know now) then using the Correct Version will have to be used.

In a C program you may well have sprint (whatever the command is for the C program) but it may not work with a C++ program and it will not work if the correct *.h file is not used that gives the code in the first place. This is beyond anything in the game's programming. It is called "Setting up the Compiler and Linker" for the program in the first place, in this case, the program being the SDK of the Civ IV game. Microsoft upgrades these programs all the time, so when a Certain Version is given to use to Compile and Link the Civ IV SDK that is the version that must be used, from the Platform SDK downloaded from Microsoft to the correct version of the Compiler and Linker used to make the Civ IV game in the first place. You can not Convert over to Visual C++ Express because it is the 2005 version. You must use the 2003 version referred to as Visual Studio. NET 2003 version or the Toolkit which contains the 2003 version of the Compiler. It will not Convert, and it will not work on Visual Studio .NET 2002 because of code changes due to Microsoft of upgrading everything including what is used to Compile and Link the Civ IV game that was used at the time Civ IV was Compiled and Linked. Thus the Makefile somewhere in this thread that can be downloaded to be used with the different versions from Microsoft, but only will work if the proper correct library and *.h files are used that were used when the Civ IV game was made. Nothing else will work. You will receive error after error after error, because it is not automatic. It is a program, and it must be told what to do to make the SDK of Civ IV to work. (that program is anything used to Compile and Link the SDK which is another program.)
A program is a program is a program and those files are all programs.
:goodjob:
 
How big is the Platform SDK? I get 1.3 mb files that, when run, try to get much larger files.

I just changed the files above to those three files??? Water Walking/Animal Spawning and something else??;) Still need these.
 
I can build just fine with Codeblocks, but I want to use a decent debugger, so I'm trying to build with Ms Visual C++.net standard 2003. The build works fine, but whenever I attempt to execute it, I get the following error:

"The application has failed to start because boost_python-vc71-mt-gd-1_32.dll was not found."

I can physically find this file, and as far as I can determine, my paths are correct (but apparently they aren't). Could anyone point me either to a resource that identifies how run-time dll paths are resolved?

I've found multiple solutions. If anyone else has this issue, I'd be happy to post how to deal with it.
 
Got a problem. I just attempted to compile a DLL, but came up with some errors. I quit out of codeblocks, redid a new batch of files from a clean backup of the BetterAI SDK, and when I try to load the *.vcproj file, it has none of the settings shown in the Codeblocks install on the first page.

I could not get it to recognise any *.vcproj file I had on hand. I uninstalled and then reinstalled codeblocks and attempted with just a straight copy of the DLL SDK files out of the Warlords directory. Same problem.

Any way to fix this? It won't compile anything. It won't recognise anything. At this point, all I want is to get it to see some files and make a BetterAI dll with max players at 24.
 
it has none of the settings shown in the Codeblocks install on the first page.

Do you mean "/EHsc" and such? If so, first select the build profile from the left hand side of the Build Options dialog, then change the options. Close the window and then select the build profile from the CodeBlocks main window. Finally build.

I just set it up last night (started, but my machine tanked while compiling), so I can't verify that this worked, but it was compiling.
 
I can't find the CyDiplomacy.cpp file i find this line in CvDiplomacy.py
self.diploScreen = CyDiplomacy()
and i don't know how to retrive the CyDiplomacy()
i can't find this classes too. in the begining there is
from CvPythonExtensions import *

where i can find CvPythonExtensions ??

help me please.
thanks
 
These instructions need updating with the new version of codeblocks , some things have changed .
 
The GUI has changed slightly, so the instructions don't quite match what you see. I was able to work my way through it, but it helps that I've used many IDEs in the past and know what to look for.
 
I want to change things in the window where one can comunicate with the diplomatic. i want to add an text area in it. but i can't find that window. does anyone knows what file is?
 
Back
Top Bottom