Installing and using the SDK

This file is the SDK, isnt it? Is there a special BtS SDK? Just asking because I do not really get what the update from sgerner in the first post is all about.

And another stupid question: I put the downloaded /CvGameCoreDLL folder into the /mymod folder, right?

Oh and this error message:
||=== CvGameCoreDLL, Final Release Win32 ===|
C:\Programme\Microsoft Visual C++ Toolkit 2003\include\memory|498|fatal error C1067: compiler limit : debug information module size exceeded|
||=== Build finished: 1 errors, 0 warnings ===|
means that I do not have enough disk space!?
 
This file is the SDK, isnt it? Is there a special BtS SDK? Just asking because I do not really get what the update from sgerner in the first post is all about.

I guess, the download has been made available, because the files haven't been added to the clear civ4 installation.

For BtS you need the files in the CvGameCoreDLL folder from BtS.

Oh and this error message:

means that I do not have enough disk space!?

I think, you must have made a mistake while setting up your compiler.
Try to redo the steps.
 
Hi!

I have gotten the SDK to compile in VC++ Express 2008 (which is free BTW), but, when I start up my mod, it crashes during or directly after the XML loading.

As far as I can tell my sourcecode is the 1.74 source.

Any ideas?

--EDIT--

I have read around on the forum some more, and heard mention of a PDF file, which I am now downloading. I'll tell you how it goes.

-- EDIT --

AaaaAAAgh! I give up! I'll try this Code::Blocks thing, instead.
 
I've never compiled anything before I got into Civ4 modding, either. I was able to get 8.02 set up with a little trial and error with no problem. The interface is different, but everything in the tut is still there somewhere. Poke around until you find it. look at the build lot and build messages to see what they are telling. Especially be sure you have all the right search directories and they are correct; you have covered all the little changes, like deleting /zi and adding the / to EHsc.

What I have not been able to do is compile from a makefile. According the CB all you have to do is check the custom makefile box but there must be more to it. I am using RevDCM 2.51 source code because it comes with a good makefile which works for everybody else. Glider has instructions elsewhere on how to use a makefile but is obviously using a different IDE from CodeBlock, although I have tried to cover everything he does.

Everytime I hit build I get:
Execution of 'nmake.exe -f Makefile Final Release Win32' in 'C:\Program Files\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\sdk' failed.

I checked settings and nmake is there with the correct directory reference.

Can anyone point me to instructions for using makefiles with VC2003 in CB?
 
Maybe you know more about programming than I do then. For me it looked like the interface had been completly rewritten. There is no more "without compiler" option for a download so I installed it as an editor (which does not include a compiler) and found that the compiler options screen had nothing on it (I guess you need a compiler to tell it to use a different compiler?).:confused: I realize that I'm clueless about how to run these programs, but I'm sure I'm not the only one. I gave up and switched to VS 2008 Express (using Refar's guide).
 
Maybe you know more about programming than I do then. For me it looked like the interface had been completly rewritten. There is no more "without compiler" option for a download so I installed it as an editor (which does not include a compiler) and found that the compiler options screen had nothing on it (I guess you need a compiler to tell it to use a different compiler?).:confused: I realize that I'm clueless about how to run these programs, but I'm sure I'm not the only one. I gave up and switched to VS 2008 Express (using Refar's guide).

The one that includes a compiler has mingw in the file name. You don't want that one unless you plan to do C or C++ coding outside of Civ4 modding. The other file is the one you probably want. After you install Code::Blocks, don't run the program even once until you have installed the compiler you need for this. The process is slightly easier this way. And you don't need a compiler to be able to choose a different compiler.
 
I have a problem with codeblocks, when I get to CvTextScreen.cpp I get an error that says it cannot find "CvTextMgr.h". I looked everywhere in my files, but that item doesn't exist. How do I proceed if it gives me errors every time?

I can confirm this issue. I've been using VC++ Express for some time now, and when compiling there, this error is not reported. I've just now tried to compile a 3.19 dll on CodeBlocks, where this error came up. So it's just a CodeBlocks issue. I guess the CvTextScreen.cpp file became redundant in BtS 3.19, as I've never seen this error when compiling 3.17 dll's in CodeBlocks.

By the way, I've also noticed that CodeBlocks is much faster at compiling. CB takes around 8 min. 30 seconds, while VC++ is more like double that. Why is there such a big difference?
 
I can confirm this issue. I've been using VC++ Express for some time now, and when compiling there, this error is not reported. I've just now tried to compile a 3.19 dll on CodeBlocks, where this error came up. So it's just a CodeBlocks issue. I guess the CvTextScreen.cpp file became redundant in BtS 3.19, as I've never seen this error when compiling 3.17 dll's in CodeBlocks.

By the way, I've also noticed that CodeBlocks is much faster at compiling. CB takes around 8 min. 30 seconds, while VC++ is more like double that. Why is there such a big difference?

I think CvTextScreen.cpp is not used (anymore).
 
i have an issue when compiling. It's looking for a file named windows.h
someone told me the error comes from the step 6 so here are screens :

error1zaa.png

error2l.png


the directories appearing are the existing directories, i 've already checked

hoping someone can help ...
 
I have a strange problem. I'm making a DLL for the MechaMod here and although it got through all the files, it throws up this error after its done:

lolwut.jpg
 
Another error -- I'm sure that's what you want to hear! ;)

Everything works until I try to compile, and I get this message:
=== CvGameCoreDLL, Final Release Win32 ===
fatal error LNK1181: cannot open input file 'boost_python-vc71-mt-1_32.lib'
=== Build finished: 1 errors, 0 warnings ===

I've uninstalled codeblocks, reinstalled, triple-checked that I followed the directions... I even followed the directions for how to get everything to work on Windows Vista, with one exception. The directions:
2) remove CvGameCoreLL_DEBUG.pdb from linker:
- under: Projects --> Build options...
- in the tab for: Final Release Win 32 --> Linker Settings --> Other Linker Options
- remove: /pdb:Final Debug Win32\CvGameCoreDLL_DEBUG.pdb

Maybe it's because I have a new version of Codeblocks, but I don't have an "Other Linker Options" in my Linker Settings, and I certainly don't see any reference to CvGameCoreDLL_DEBUG.pdb, so I cannot remove it.

In reference to my error message, though... I've looked through the lib folders in Microsoft SDKs and C++, and I cannot find a 'boost_python-vc71-mt-1_32.lib' file.
Any advice? Am I missing something / is the file supposed to be there?

Many thanks.
 
Back
Top Bottom