Installing and using the SDK

Do I need a makefile for this? If so where do I get the BTS v3.19 makefile? If I can't how do I edit it?
 
Ok, I'm all the way to the end, did the BTS fixes that were tacked on, and still get a 'fatal error C1038: cannot open include file: 'windows.h' No such file or directory'

What's the deal with that?
I got that too. You aren't using the makefile I take it. I tried it without a makefile on C++ because it never works that way for me and I didn't have one for v3.19. I believe the makefile tells it that windows.h is under Platform SDK along with a variety of other files which weren't listed because it quit after windows.h. I'm not experienced with C++. I found that by accident.
 
Do I need a makefile for this? If so where do I get the BTS v3.19 makefile? If I can't how do I edit it?

Some mods specifically use a makefile, but I think most don't. Certainly to compile the dll without any changes or just minor changes, you don't need one. All the linking and such is done by the project file (cvGameCoreDLL.vcproj). How to use this file is covered in the first post.
 
I get four errors. It seems to ingnore missing CvGameCoreDLL.rc even though it was warning me, but I was compiling a dll that I had only added the option to have 50civs. It is only one little change. I was using a custom DLL but they got it compiled, so why can't I? I get an error with playerai and textscreens. A function in playerai is said not be in selection something. Textscreens is missing CvTextMgr.h. Where is that file anyway? Then it was missing CvGameCoreDLL.res where all the compiled files go under final release win32. Is it that I am using the latest version? Was I supposed to use another one? I followed all instructions and tried several times.
 
Have you tried compiling it with no changes at all? If you can do that, then this isn't the topic for you. If you can't do that, then tell us what your errors are.

Your one little change can have many knock-on effects.
 
Have you tried compiling it with no changes at all? If you can do that, then this isn't the topic for you. If you can't do that, then tell us what your errors are.

Your one little change can have many knock-on effects.
Sorry, deleted it from the folder but I didn't remove it from the project so it thought it was there. It works now and I have my 50civ dll. Thanks for this. I'll be sure to credit you and the two you quoted in my mod.
 
Hi there

I'm fairly new at this SDK thingy but I'm having a problem that I don't seem to be able to find the answer on Google. I'm using Microsoft Visual C++ Toolkit 2003 and CodeBlocks.


I'm trying to merge Dale's RTW with Super Spy Mod. I'm having problems compiling a file named "CyGameInterface.cpp" in my project it is the last file listed in the "build log" tab before the process is terminated. The error message I receive is :

c:\Program Files\Microsoft Visual C++ Toolkit 2003\include\memory(498) : fatal error C1067: compiler limit : debug information module size exceeded

I want to know how to define some python classes in C++ so that I can make them inherit one another so that the final class would contain all the .def() in the present CyGameInterface.cpp file (Each class would be in a different file).
 
New problem.

Says something about debug information module size exceeded.
 
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 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?

Remove CvTextScreen.cpp from your sources. It's not used afaik.
 
As far as I can tell from looking at the file just now, it appears to be a remnant from an older version of the code but no one realised they could remove it. Everything it does has probably been superseded by stuff in the rest of the C++, the python and/or the XML.

The weird thing is, pretty much everyone in this topic has managed to compile the dll without ever getting this error. Are you compiling this according to instructions in the original post?
 
As far as I can tell from looking at the file just now, it appears to be a remnant from an older version of the code but no one realised they could remove it. Everything it does has probably been superseded by stuff in the rest of the C++, the python and/or the XML.

The weird thing is, pretty much everyone in this topic has managed to compile the dll without ever getting this error. Are you compiling this according to instructions in the original post?
I have had this problem. He was probably adding all the files to his project. According to other tutorials.
 
When I first recompiled the DLL, not so long ago, I opened CvGameCoreDLL.vcproj with CodeBlocks. Then saved the project as CvGameCoreDLL.cbp (ofcourse after removing the RC-file and setting options right). Next time I want to recompile the DLL I just load CvGameCoreDLL.cbp and I'm ready to go. Hope this helps. :)
 
Now, right before Codeblocks finishes, I get the error "LINK : fatal error LNK1181: cannot open input file 'Release.obj' "

Any idea what causes this and how I can fix it?
 
Could someone updated this tutorial for the latest version of CodeBlocks (8.02) please? I'm trying to get it set up on my new laptop, but the interface is completely different and I don't know how to get it configured properly. For example, I am not shown a list of compilers when I run it, and the compiler setting window has no options, just command line arguments and plugins to load.

If anyone can help it would be very helpful.

EDIT: Does anyone know where I can get the old 1.0rc2 version? 8.02 won't open vcproj files; these two considerations make it vastly inferior IMO to 1.0rc2 and make it impossible for me to do any SDK modding.
 
Hi I have a question about installing the last step. I am installing the codeblocks but I have three choices not sure which one to download plz help. Choices are 1)the binary release 2)the source code or 3)source code from SVN. I am new to this and I had been wanted to do more things to the game.
 
Back
Top Bottom