Home » MODDING HQ 1.13 » v1.13 General Development Talk » Quick Guide for Compiling and Debugging Source Code in Visual Studio
Quick Guide for Compiling and Debugging Source Code in Visual Studio[message #301086] Tue, 06 March 2012 06:16
haydent

 
Messages:264
Registered:November 2007
Location: NSW, Australia
Install Visual Studio 2005, 2008, 2010 or 2013 (this guide is based on 2008)

Install JA2 Original

Checkout 1.13 from SVN:
https://ja2svn.mooo.com/source/ja2_v1.13_data/GameDir/
(and put it the files in your game dir)

Checkout SVN copy of source from repository with Tortoise SVN e.g.

Latest 1.13 Trunk:
https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13

Latest 1.13 MP Dev Branch:
https://ja2svn.mooo.com/source/ja2/branches/Wanne/JA2 1.13 MP
(there are gamedir files in this branch too, that need putting in the right place)


Open Corresponding .sln solution file for you VS version ie ja2_VS2008.sln

Once Open Click Menu At Top: Project -> Properties (Alt + F7)

Change "Configuration" dropdown to "All Configurations"

Click "Configuration Properties" -> General

Change "Output Directory" to you game directory (where ja2.exe is)

Click "Configuration Properties" -> Debugging

Change "Working Directory" to you game directory (where ja2.exe is)

Click OK, Save.

To Choose if you build a debug or release exe use the dropdown in top menu near green play button.

Use the build menu to just build, use green play button to build with debugging.

Compiled Exe's will appear in your game directory.

Maybe this can be stickied, and added to if need be.

[Updated on: Wed, 02 July 2014 23:02] by Moderator



Previous Topic: ja2MapTool
Next Topic: New SVN address
Goto Forum:
  


Current Time: Fri Aug 18 08:06:55 EEST 2017

Total time taken to generate the page: 0.01183 seconds