How to Install the SDK

From Civilization Modding Wiki
Revision as of 18:46, 16 July 2009 by Deanej (talk | contribs) (Created page with 'Installing the SDK can be frustrating, especially if you have never coded C++ before. Fortunately, there are two tutorials out there: * [http://forums.civfanatics.com/showthread...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Installing the SDK can be frustrating, especially if you have never coded C++ before. Fortunately, there are two tutorials out there:

Just one problem: both are outdated. The CodeBlocks tutorial was written for version 1.0 rc2, but CodeBlocks has since been updated to 8.02 and its settings have changed completely, making the tutorial useless. Visual Studio 2005 is no longer available, and the tutorial was written for Warlords, making it difficult to get it to work with Beyond the Sword.

Fear not. Refar released his own guide, which works with Beyond the Sword and also allows the creation of a debug DLL (useful for more advanced modders). This tutorial is mostly up to date, but a couple modifications do have to be made:

  • Since Visual Studio 2005 is no longer available, you will be using Visual Studio 2008. The download link and dialog boxes are the same, so in reality this does not entail any modification to the tutorial at all.
  • Since the tutorial was released, Beyond the Sword has been updated to 3.19. You will have to use this makefile instead of the one provided.

That's it. Everything else can be found in Refar's guide. Once you have it set up it is recommended to do a compile with no changes made to make sure everything works properly (the DLL compiled can be found in the Final_Release folder in the CvGameCoreDLL folder you created). It is also recommended that you look at Xienwolf's An Idiot's Guide to Editing the DLL to get started with the SDK. Good luck!