Installing and using the SDK

Well my problem is that when I run the instal exe for the Platform SDK, it can't find some certain files.

Now your saying copy the libs into the lib directory?
 
God this is a long thread, I started at the begining and tried to find someone asking the same as me, I did a few searches and I got nothing that seemed relevant, probably because everyone else managed to figure it out for themselves, if so that is good because now you can help me.

I have Visual Studio .NET 2003 (Microsoft Visual C++.NET 2003), I've made sure all the files in the SDK are NOT set to read only, it compiles fine, well at least I don't get any errors, it is just producing 5 files called CvGameDLL, as you would expect there is .lib, .pdb, .pch and .obj, there is also .exp, however I do not get a .dll !

I have tried following the instructions to get it working the free way but I dont get the option to open a .vcproj in CodeBlocks. I have also tried setting the config manager and project properties to final release in VS and it claims the linker should output ../Assets/CvGameCoreDLL.dll.

SO WHAT THE HELL IS GOING ON???


Edit: Right its official, I AM a muppet, I answer my own question and make myself look like a noob, like I said the file is in ../Assets, theres my problem.
 
GraveEatr said:
I figured it out. For some reason the default CvInfos.cpp from the Warlords CD was messed up, and giving me those errors. I fixed the file, and all seems to be compiling well.



Yeah, right now I'm just testing the compiler, just to get a feel for it.

Copying all the SDK files and putting them into the MOD folder does seem like a good idea. Like you said, then all the files are there, and ready to compile.

Thanks for the help, I think I may have it now. :king:

hello

can you just post your changes in case somebody else encounters a similiar problem ?
btw is the warlords sdk of the vanilla version (on cd) and the 2.08 patch version identically ?
 
Rod said:
btw is the warlords sdk of the vanilla version (on cd) and the 2.08 patch version identically ?

First, the vanilla version had no SDK on it's DVD, the SDK came with patch 1.61 for download.
This was the one and only SDK for vanilla.
Second, there is a SDK on the Warlords CD which is very different from the vanilla SDK.
And third, the Warlords SDK was also updatet with patch 2.08, so it's different from 2.00.

Matze
 
MatzeHH said:
First, the vanilla version had no SDK on it's DVD, the SDK came with patch 1.61 for download.
This was the one and only SDK for vanilla.
Second, there is a SDK on the Warlords CD which is very different from the vanilla SDK.
And third, the Warlords SDK was also updatet with patch 2.08, so it's different from 2.00.

Matze


sorry for my confusing question. I was of course asking whether the SDK of the unpatched warlords addon is identically with the sdk of the patched 2.08 warlords addon. I used the vanilla term wrongly and I was never referring to the civ1.61 sdk.

In anyway as the we need now a new sdk for the patched warlords version .. is there already any progress ?
 
Hello,

I finally managed to install all the vc++ toolkit 2003 , the codeblocks, the microsoft platform sdk etc.

Now when I compiled the Vanilla Civ1.61 Sdk for testing i encountered following error. Already for two nights i am tinkering around , but no glue.

Edit : At first I need to thank Kael and to Gordon. They had the right ideas. Such errors occur, if you miss out a lib folder in the respective directory AND do not set the Final Release. In this case a mention. I also had to change the target directory for Final Release, because the problem was that codeblocks was always searching for a folder Final Release|Win32 (Projects->Properties->Target)
So I keep this now an example for other people that maybe have a similiar problem

cvstring-error.JPG
 
Rod said:
Hello,

I finally managed to install all the vc++ toolkit 2003 , the codeblocks, the microsoft platform sdk etc.

Now when I compiled the Vanilla Civ1.61 Sdk for testing i encountered following error. Already for two nights i am tinkering around , but no glue.

can somebody please help me ??

cvstring-error.JPG

Im not sure. From your screenshot it doesn't look like step 9 was done to change the build target to Final Release. I would check through all the steps in the first post and make sure they done correctly, I wish it was simpliar than it is but there is a lot of little adjustments in those steps that can be easy to miss.
 
Another thing to make sure of is that you've selected the VC++ Toolkit as your compiler, and added the Microsoft Platform SDK libraries. All that is is the instructions. As Kael said, just go over them and make sure you've done every single little thing.
 
MatzeHH said:
It is on the Warlords CD.

Matze

Sorry to sound like such a noob, but which file on the Warlords CD is the SDK? In the past, I've obtained (and subsequently tweaked and successfully compiled) the SDK after having downloaded a file from the web. I followed a link, downloaded a very big file, and voila, I have SDK without having to know anything about the filename.

To clarify, I downloaded the magic SDK file and saved it into a directory far away from the Civ4 directories - just so, as a noob, I would not accidentally overwrite something critical while I tweaked away at the SDK. Once I finished my tweaks, I'd just copy the dll over to my mod's assets folder and run it (with great success).

So, to recreate this wonderfully simple experience in finding the SDK for Warlords 2.08, is there a place on the web I can download it?

Thanks for your help.
Spocko
 
Having fun with SDK modding (no sleep, no hair, no shower for 14 days)

just kidding

But a question: Is there a way to setup Code::Blocks so that we don't have to perform step 8 in your tutorial each time? Like, a default setup.

Or rather, if I save the project per step 9, and then change .h and/or .cpp files, will opening the same project again work during compile?
 
Chazcon said:
Or rather, if I save the project per step 9, and then change .h and/or .cpp files, will opening the same project again work during compile?

Yes. After you reload the .cbp project, you can jump right to Step 11.

The only reason to re-save the project is if you add new files.
 
CvGameCoreDLL.cpp
cl : Command line warning D4024 : unrecognized source file type 'EHsc', object file assumed
cl : Command line warning D4027 : source file 'EHsc' ignored

Erm... What did I do wrong and how can I fix it?
 
Anthraxus899 said:
CvGameCoreDLL.cpp
cl : Command line warning D4024 : unrecognized source file type 'EHsc', object file assumed
cl : Command line warning D4027 : source file 'EHsc' ignored

Erm... What did I do wrong and how can I fix it?

Did you follow step 8 to change EHsc to /EHsc?
 
I put /EHsc, and there was no EHsc to begin with. Edit: Nvm, found it, was a ******** mistake on my part, was filling in the wrong area.
 
Anthraxus899 said:
I put /EHsc, and there was no EHsc to begin with. Edit: Nvm, found it, was a ******** mistake on my part, was filling in the wrong area.

Yes, I had the same thing . just for everybody else :

the EHsc that needs to be replaced is in : Project -> Build Options, not in Settings.
 
Spocko said:
Sorry to sound like such a noob, but which file on the Warlords CD is the SDK? In the past, I've obtained (and subsequently tweaked and successfully compiled) the SDK after having downloaded a file from the web. I followed a link, downloaded a very big file, and voila, I have SDK without having to know anything about the filename.

To clarify, I downloaded the magic SDK file and saved it into a directory far away from the Civ4 directories - just so, as a noob, I would not accidentally overwrite something critical while I tweaked away at the SDK. Once I finished my tweaks, I'd just copy the dll over to my mod's assets folder and run it (with great success).

So, to recreate this wonderfully simple experience in finding the SDK for Warlords 2.08, is there a place on the web I can download it?

Thanks for your help.
Spocko

For those of you following along at home, I of course found it in the CvGameCoreDLL folder...

C:\Program Files\Firaxis Games\Sid Meier's Civilization 4\Warlords\CvGameCoreDLL

Back in business.
Spocko
 
talchas said:
Ah, these ops did it: "/SUBSYSTEM:WINDOWS /OPT:REF /OPT:ICF"

Talchas,
Do you mean that setting these options reduced the size of the CvGameCoreDLL.dll?

If so, where are these options posted to CodeBlocks? Perhaps Project Build Options > Final Release > "Other Linker Options" tab?

Thanks!
Spocko
 
Hello,

and another problem :

CodeBlockScreen-Memory.JPG


and the Build Log of the same problem :

CB-MemoryBuildLog.JPG


I checked the steps and the build is starting very properly but then I get this memory error.
 
I dont know why you have CvGameCoreDLL.chp and memory files open.

In your workspace you should have a Sources folder full of .cpp files and a Headers folder full of .h files. It seems like you may have some files in your project that aren't supposed to be there.
 
Back
Top Bottom