[SDK] Using Microsoft Visual C++ 2005 Express Edition

When I open the makefile in wordpad, I get non understandable text. I think that it is because the script of my wordpad is Cyrillic. When I try to change text by selecting western, nothing happens. Can someone please help?
 
Try using Notepad it should work. (Wordpad is not recommended for editing any code files as it might add formating code to the file).

Otherwise you can download Notepad++ from here: http://notepad-plus.sourceforge.net/uk/site.htm. It works very well with all code files and it should make working with the Makefile easier. You will also find it helpful in editing XML and Python files if you would need or like to do so.
 
I downloaded notepad++ and opened the makefile with it. It still showed non understandable text (that I cannot copy).
 
I must admit that this is strange. One thing to look at in Notepad++ is to go to the Format menu and make sure that the option checked there is "Encode in ANSI". If this is checked and you still have geprish instead of text then the last thing I know is to go to Control Panel\Regional and Language Options. In advanced tab of the dialog box select English as the language for non-unicode programs. If this doesn't work go to Language tab of the same dialog click Details button in the upper part. In the dialog you will get select English as the default input language.

If non of the above works then I don't know what actually is wrong.
 
It is in ANSI. I changed the language and regional settings. I think that the text changed, although it is still gibberish. I would be very grateful if someone opens and changes the makefile for step 6 and then uploads it.
 
High there.
I'm currently compiling the SDK using Codeblocks and the VC++ Toolkit 2003 as per Kael's great "guide to installing and using the SDK". I'm debugging the SDK the hard way (console and log file messages to trace execution) because Codeblocks doesn't include a debugger.

Is it possible to debug with breakpoints etc with Visual C++ 2005 EE and are people debugging with it?

Cheers.
 
I think some people do actually debug the DLL using VC 2005. To do so the procedure outlined in the first post needs to be modified a little. You should keep the Debug build rather than remove it and add the appropriate command-line to use the debug build already in the Makefile.

Once you have a DLL with debug info you can assign break points. You then can start BTS from within VC2005 by setting its executable as the one that should use the DLL.
 
You can do debugging with the Final build option as well, you just will get less information out. Start Civ4 normally with the DLL you built then in your VS project under Debug choose Attach to Process. Breakpoints and stepping through the code work, you just won't get access to all the state variables without a debug build but I've found you get enough information usually. Also, if the game crashes, it will take you to the offending line (assuming that it's in the DLL, which isn't always the case) ... you may need to run Civ4 in windowed mode as opposed to full screen to be able to switch to VS and see the call stack.
 
The description on the first page says:

9 - Click -File- -New- -Project-. The ‘New Project’ window will open.

In the ‘Project types’ box select –General-.

I don't have a -General- under Project Types, there is only a 'Visual C#' and a 'XNA Game Studio 2.0'

can someone help me please?
 
I'm totally newby at modding, but I just had a Basic Course in C++ at University, so I got the Visual C++ 2008 Espress (it's free).
But it seems it looks very different to the described 2005.
Couldn't figure it out (92 Errors, and finally it broke up)
Has someone found a way to do this with the C++ 2008 express?
Or do I have to search an old download for the C++ 2005 Express???
 
@fahrenderfisch

I am using VC++ 2008 Express and it works quite well. I can't know what went wrong with you unless you post some of the errors you have got.

Generally you need to follow the same instructions and use a Makefile that works for BTS. I posted one some where on the thread. The differences are:
1 - You don't need to get the Windows Platform SDK as a separate download as it is included in VC++ 2008 express. However if you download the PSDK and referenced it in the Makefile this should work as well. So this difference while an advantage it doesn't affect the end result.
2 - After creating the project and when you add files to it you should change the types of files displayed from All to C++ files. This will exclude some the files in the folder that aren't acceptable. Again if you reached the compilation phase then this wasn't your problem. Actually adding the files is important for you to work on them otherwise if you setup the project properties as per instructions you will still be able to compile and link the DLL even if you didn't add the files to the project. VC++ works as a front end that execute the instructions in the make file. It has nothing to do with the actual building of the DLL.
 
You Guys ROCK!!!
Thanks for the really quick reply! But it seems like the Problem was a language based one.
I installed the C++ 2005 Express in ENGLISH (the 2008 I got in German)
I misinterpreted some buttons to click on and some fields to fill stuff in! Somehow I couldn't even find the "NMAKE" configurations...

My mistake...
So I'm learning here several languages: for computers and for humans ;-)

by now it is compiling... since 5 minutes and not one error message!!!
 
I know I'm being dumb but this is drivin' me nuts. I can't get this file to appear in the SDK and it's not in the DLL of my current CivBTS but I know I've seen it somewhere. Help please

NMAKE : fatal error U1073: don't know how to make 'CyPlayerInterface2.cpp'
 
@Pilotis

Inside your Civ4 installation there are three folders with the name CvGameCoreDLL each has a full set of SDK source files. These are for Civ4, Warlords, and BTS respectively. The one for Civ4 is immediately under Sid Meier's Civilization 4 folder. The other two are under the extensions folders.

The source for BTS definitely has CyPlayerInterface2.cpp. If your compiler can't find it then you have used the wrong set of files. You need to use this folder: Sid Meier's Civilization 4\Beyond the Sword\CvGameCoreDLL.
 
Back
Top Bottom