How to Install the SDK: Difference between revisions

From Civilization Modding Wiki
Jump to navigationJump to search
(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...')
 
No edit summary
Line 5: Line 5:
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.
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 [http://forums.civfanatics.com/downloads.php?do=file&id=10018| 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:
Fear not.  Refar [http://forums.civfanatics.com/downloads.php?do=file&id=10018| released his own guide], which works with Beyond the Sword (and Vista!) 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 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 [http://forums.civfanatics.com/showpost.php?p=8191788&postcount=323| this makefile] instead of the one provided.
* Since the tutorial was released, Beyond the Sword has been updated to 3.19.  You will have to use [http://forums.civfanatics.com/showpost.php?p=8191788&postcount=323| 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 [http://forums.civfanatics.com/showthread.php?t=314201| An Idiot's Guide to Editing the DLL] to get started with the SDK.  Good luck!
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 [http://forums.civfanatics.com/showthread.php?t=314201| An Idiot's Guide to Editing the DLL] to get started with the SDK.  Good luck!

Revision as of 19:15, 22 August 2009

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 Vista!) 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!