DaveMcW
Deity
- Joined
- Oct 8, 2002
- Messages
- 6,489
Here is how I was able to compile the DLL. Thanks to whoward69 and Gedemon for several hints.
1.
Download and run http://download.microsoft.com/.../vcsetup.exe.
2.
Start Steam and select Library -> Library -> Tools.
Find "Sid Meier's Civilization V SDK", right-click it, and select Install Game.
3.
Copy "C:\Program Files (x86)\Steam\SteamApps\common\sid meier's civilization v sdk\CvGameCoreSource" to "My Documents\Visual Studio 2008\Projects\CvGameCoreSource".
4.
Open "CvGameCoreSource\CvGameCoreDLL \CvGameCoreDLL.rc" in notepad.
On line 10, replace "afxres.h" with "windows.h"
5.
Open "CvGameCoreSource\CvGameCoreDLL_Expansion1 \CvGameCoreDLL.rc" in notepad.
On line 10, replace "afxres.h" with "windows.h"
6.
Open "CvGameCoreSource\CvGameCoreDLL_Expansion2 \CvGameCoreDLL.rc" in notepad.
On line 10, replace "afxres.h" with "windows.h"
7.
Start Visual C++ 2008 Express Edition.
File -> Open -> Project/Solution.
Open CvGameCoreSource\CvGameCoreDLL.vs2008.sln
8.
Right-click CvGameCoreDLL and select Properties -> Configuration Properties -> Linker.
Change the Output File to: $(OutDir)\CvGameCoreDLLFinal Release.dll
9.
Right-click CvGameCoreDLL_Expansion1 and select Properties -> Configuration Properties -> Linker.
Change the Output File to: $(OutDir)\CvGameCore_Expansion1.dll
10.
Right-click CvGameCoreDLL_Expansion2 and select Properties -> Configuration Properties -> Linker.
Change the Output File to: $(OutDir)\CvGameCore_Expansion2.dll
11.
Save all.
12.
Build -> Build Solution. You could also right-click a single DLL and just build that one.
13.
Find the new DLL in "CvGameCoreSource\BuildOutput". Add it to the root directory of your mod, and set the "Import into VFS" property to true.
1.
Download and run http://download.microsoft.com/.../vcsetup.exe.
2.
Start Steam and select Library -> Library -> Tools.
Find "Sid Meier's Civilization V SDK", right-click it, and select Install Game.
3.
Copy "C:\Program Files (x86)\Steam\SteamApps\common\sid meier's civilization v sdk\CvGameCoreSource" to "My Documents\Visual Studio 2008\Projects\CvGameCoreSource".
4.
Open "CvGameCoreSource\CvGameCoreDLL \CvGameCoreDLL.rc" in notepad.
On line 10, replace "afxres.h" with "windows.h"
5.
Open "CvGameCoreSource\CvGameCoreDLL_Expansion1 \CvGameCoreDLL.rc" in notepad.
On line 10, replace "afxres.h" with "windows.h"
6.
Open "CvGameCoreSource\CvGameCoreDLL_Expansion2 \CvGameCoreDLL.rc" in notepad.
On line 10, replace "afxres.h" with "windows.h"
7.
Start Visual C++ 2008 Express Edition.
File -> Open -> Project/Solution.
Open CvGameCoreSource\CvGameCoreDLL.vs2008.sln
8.
Right-click CvGameCoreDLL and select Properties -> Configuration Properties -> Linker.
Change the Output File to: $(OutDir)\CvGameCoreDLLFinal Release.dll
9.
Right-click CvGameCoreDLL_Expansion1 and select Properties -> Configuration Properties -> Linker.
Change the Output File to: $(OutDir)\CvGameCore_Expansion1.dll
10.
Right-click CvGameCoreDLL_Expansion2 and select Properties -> Configuration Properties -> Linker.
Change the Output File to: $(OutDir)\CvGameCore_Expansion2.dll
11.
Save all.
12.
Build -> Build Solution. You could also right-click a single DLL and just build that one.
13.
Find the new DLL in "CvGameCoreSource\BuildOutput". Add it to the root directory of your mod, and set the "Import into VFS" property to true.