• Our friends from AlphaCentauri2.info are in need of technical assistance. If you have experience with the LAMP stack and some hours to spare, please help them out and post here.

Installing and using the SDK

I'm not trying to take short cuts. I just can't spend 24 hours dling somthing on my only phone line! Also my internet connection is infamus for disconecting at any given moment. :badcomp:

Now, is there any way I could order the SDK thingy through the mail?
 
I am following the instructions on this page to the letter, and yet I get this error:

Execution of 'rc.exe -fo"Final Release\CvGameCoreDLL.res" CvGameCoreDLL.rc' in 'C:\Program Files\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\CvGameCoreDLL' failed.

I have only changed the max civs setting, so what am I doing wrong? Is it a different procedure for BtS? Thanks,

Markus
 
I am following the instructions on this page to the letter, and yet I get this error:

Execution of 'rc.exe -fo"Final Release\CvGameCoreDLL.res" CvGameCoreDLL.rc' in 'C:\Program Files\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\CvGameCoreDLL' failed.

I have only changed the max civs setting, so what am I doing wrong? Is it a different procedure for BtS? Thanks,

Markus

Delete CvGameCoreDLL.rc if you have BTS.

This should probably be edited into the first post.
 
I'm am having the same problem debugging in VS 2003 as noted by someone else earlier:

I compiled CvGameCoreDLL.dll (and copy to Assets\).
Because I never used debuger: HOW to debug Civ4?
I have tried Tools->Debug Processes... and then attach Civ4 process, but I can't change any variable, and when set breakpoint game freezes (this is probably normal), but then I can't gain acces to the Microsoft Visual Studio .NET 2003.

If I hit F5 to continue the debug, the screens unlock. Does anyone know what i have wrong in the project setup to nget this issue?

Also, i'm debugging in Native on the process, is this correct?

Cheers for any replies
 
"7: Open \CvGameCoreDLL\CvGameCoreDLL.vcproj in CodeBlocks."

Where is this located? I can't seem to find a file CvGameCoreDLL.vcproj anywere, and I definitely don't see a folder named CvGameCoreDLL. I don't know if I'm looking in the right place or what.
Thanks.
 
Under C:\Program Files\Firaxis Games\Sid Meier's Civilization 4 there is a CvGameCoreDLL folder this is the one for Vanilla Civ4 (version depends on the patches you installed). Under each of the expansions folders (Warlords, and Beyond the Sword) there is another CvGameCoreDLL folder that you use to make mods that work with the respective expansion.

Now, it is a better practice to make a copy of this folder somewhere else so that you may work on the copy and keep the original as you may need it later.

The only case where you won't find this folder is that you have only Vanilla Civ4 and it is not patched to 1.61. Starting with this patch and with any expansion the folder exists where I mentioned above.
 
There's a CvGameCoreDLL.h and a CvGameCoreDLL.cpp.

I don't see a .vcproj though.

When you're in codeblocks and trying to open the vcproj file for the first time, you'll need to ensure the open-file-window scroll-space says "show all files" not the default "show known files". Switch to "show all" and you'll see that the vcrproj file is the fourth one with the filename CvGameCoreDLL.*.

Let me know if this helps.
Spocko
 
Try to run Civ in windowed mode. That could help accessing VS when reaching a breakpoint.

Matze

Thanks Matze, sometimes the simplest solution is the answer. My debug is up any running with no problem now
 
How do I get this to work? When I compile, I get the following error:
LINK : fatal error LNK1181: cannot open input file 'Final Release\CvGameCoreDLL.res'
Process terminated with status 1 (17 minutes, 28 seconds)

EDIT: I should also mention that this has no modified code in it.

EDIT 2: Deleting resource.h solved the problem.
 
Ok.. heres my probelm... I really did try searching the forum before I came to you guys with it.

I hit build. It compliles for about forty minutes and then hits me with this error message....

fatal error LNK1104: .....Beyond the Sword\CvGameCoreDLL\
cannot open file cvgamecoredll.dll
 
Check that the file at the target folder (Final_Release\cvgamecoredll.dll) is not read only. The build process is supposed to replace this file with the one you built. If it is read only it can't replace it.

Yeah.. I thought of that... Wasn't that. I fixed it by changing the target of the output file to a new folder... not sure why it won't let me copy over the old... might be a vista thing.... anyway thanks guys
 
Hi

I'm having a bunch of problems trying to compile a new CvGameCoreDLL file.

I'm playing vanilla civ4 (patch 1.61) with SevoMod 3.3 and GIRs ADD-ON loaded, and would like to add TheLopez's Air Forces Mod to the package.

I downloaded SevoMod's source files, applied the extra codes from TheLopez's mod (thx to his excellent 'how to' guide), and then followed every step in Kael's Guide from post #1, hoping that would do the trick.

Yet every time the build reaches the 'CvGame.cpp' file, a truckload of error messages appears (mostly refering to 'undeclared identifiers') and the build stops.

Now, I've spend hours trying to figure out what could be wrong, and tried numerous things to solve it (redownloading, removing and reapplying TheLopez's codes, reinstalling, recompiling etc.). The only thing I haven't done, is to rewrite Sevo's source files - simply because I'm no modder. I only rely on well-explained guides, and excellent threads (like this one) to help me through, 'cause all that code language is just double Dutch to me...

So now, I turn to you guys. I've put in a few links so you're able to download the source files from Sevo and TheLopez, hoping someone out there might wanna help me build a working CvGameCoreDLL file - or perhaps just tell me what the heck could be wrong (ex. whether it's missing or corrupt files in the downloads, or just me that's 'missing' something).

Here are the source files I got from the SevoMod thread (I believe all the Mastery_SDK files are included in the SevoMod_Mastery file - but this is the way they were originally posted):

http://forums.civfanatics.com/uploads/89405/Mastery_SDK.zip
http://forums.civfanatics.com/uploads/89405/SevoMod_Mastery.zip

And here are the files from TheLopez's Air Forces Mod:

http://forums.civfanatics.com/uploads/89405/Air_Forces_changed_files_only_.rar

Thanks to Sevo for the files (and Titi for uploading them), and TheLopez.

And Thanks for any help coming my way :)
 
Back
Top Bottom