Home » MODDING HQ 1.13 » v1.13 General Development Talk » Quick Guide for Compiling and Debugging Source Code in Visual Studio
Re: Quick Guide for Compiling and Debugging Source Code in Visual Studio[message #361479 is a reply to message #301086]
|
Mon, 05 October 2020 10:06 ![Go to previous message Go to previous message](/theme/Bear_Classic_Brown/images/up.png)
|
|
Kitty |
![](http://thepit.ja-galaxy-forum.com/images/avatars/Waldo.jpg) ![](/images/ranks/master_sergeant.png) |
Messages:492
Registered:October 2017 Location: Germany |
|
|
As supplement for Haydents allready good Guide for Compiling, I added some pictures (based on Visual Studio 2019).
Also with description on how to compile a MapEditor and UB.
haydent wrote on Tue, 06 March 2012 06:16Open Corresponding .sln solution file for you VS version ie ja2_VS2008.sln
--
01
--
The following examples are based on Visual Studio 2019. The solution-file (in download from SVN Source) should look something like this:
--
--
Quote:Once Open Click Menu At Top: Project -> Properties
--
02-03 additional explaination on steps before 04
--
02
--
In preparation to do so, first check if Project ja2 is chosen
--
![https://i.imgur.com/XLag6R0.png](https://i.imgur.com/XLag6R0.png)
--
03
--
and check if configuration Release is selected (and while there, check if "win32", right next to it, is chosen as well)
--
![https://i.imgur.com/mmtOGOw.png](https://i.imgur.com/mmtOGOw.png)
--
--
04
--
open drop-down at Tab Project, there click at Properties
--
![https://i.imgur.com/94od1f3.png](https://i.imgur.com/94od1f3.png)
--
05
--
Quote:Change "Configuration" dropdown to "All Configurations"
--
Click "Configuration Properties" -> General
--
![https://i.imgur.com/tozs4zV.png](https://i.imgur.com/tozs4zV.png)
--
06
--
Quote:Change "Output Directory" to you game directory (where ja2.exe is)
--
It doesn't have to be the game directory, you can define any directory as an output-directory.
At least, that's what I'm doing. So far the compiles have been working.
I can't see, why the former exe or the GameDir would be nescessary to compile the code.
Correct me if I'm wrong, so that I could adjust this description, if so.
--
![https://i.imgur.com/IoUogeL.png](https://i.imgur.com/IoUogeL.png)
--
07
--
During the compiling, some intermediate files are created. Those need an output-directory as well.
--
--
08
--
Do check, if configuration type is .exe
--
--
09
--
Quote:Click OK, Save.
--
Confirm changes, click ok to close.
--
![https://i.imgur.com/sxTmdmA.png](https://i.imgur.com/sxTmdmA.png)
--
10
--
Quote: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.
In that drop-down (of quote, not picture) you can also choose the MapEditor later on.
--
For anything else then debug, to build choose Tab "Build" at top and in drop-down (picture) of this then choose "Build ja2".
--
![https://i.imgur.com/Ya27RGc.png](https://i.imgur.com/Ya27RGc.png)
--
[Updated on: Wed, 14 December 2022 02:31]
How to get: latest 1.13, 7609 and more | 7609 SCI (eng) | Compiling+SVN
I need more details. (Didi Hallervorden) Report message to a moderator
|
|
|
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Quick Guide for Compiling and Debugging Source Code in Visual Studio
By: haydent on Tue, 06 March 2012 06:16
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Quick Guide for Compiling and Debugging Source Code in Visual Studio
By: Kitty on Fri, 20 December 2019 06:09
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Quick Guide for Compiling and Debugging Source Code in Visual Studio
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Quick Guide for Compiling and Debugging Source Code in Visual Studio
By: Kitty on Sun, 22 December 2019 05:53
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Quick Guide for Compiling and Debugging Source Code in Visual Studio
By: Kitty on Thu, 18 June 2020 10:27
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Quick Guide for Compiling and Debugging Source Code in Visual Studio
By: Asdow on Thu, 18 June 2020 11:41
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Quick Guide for Compiling and Debugging Source Code in Visual Studio
By: Kitty on Mon, 05 October 2020 10:06
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Quick Guide for Compiling and Debugging Source Code in Visual Studio
By: Kitty on Mon, 05 October 2020 10:06
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Quick Guide for Compiling and Debugging Source Code in Visual Studio
By: Kitty on Mon, 05 October 2020 18:58
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Quick Guide for Compiling and Debugging Source Code in Visual Studio
By: Kitty on Mon, 02 November 2020 22:14
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Quick Guide for Compiling and Debugging Source Code in Visual Studio
By: Inveris on Mon, 23 November 2020 16:39
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Quick Guide for Compiling and Debugging Source Code in Visual Studio
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Quick Guide for Compiling and Debugging Source Code in Visual Studio
By: Deleted. on Sun, 07 February 2021 23:41
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Quick Guide for Compiling and Debugging Source Code in Visual Studio
By: Kitty on Wed, 28 April 2021 06:33
|
Goto Forum:
Current Time: Fri Feb 14 22:07:19 GMT+2 2025
Total time taken to generate the page: 0.00968 seconds
|