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 Go to next message
haydent

 
Messages:267
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



Re: Quick Guide for Compiling and Debugging Source Code in Visual Studio[message #358687 is a reply to message #301086] Fri, 20 December 2019 06:09 Go to previous messageGo to next message
Kitty

 
Messages:172
Registered:October 2017
Location: Germany
Is this up-to-date enough in 2019?

And which version of Visual Studio is used nowadays?

The version I use to look into files is VisualStudioCode,
nut there is no "Projects"-tab in this one.



I need more details.

(Didi Hallervorden)
Re: Quick Guide for Compiling and Debugging Source Code in Visual Studio[message #358691 is a reply to message #358687] Fri, 20 December 2019 12:24 Go to previous messageGo to next message
DepressivesBrot

 
Messages:3733
Registered:July 2009
Visual Studio Code is an entirely different product to Visual Studio 20XY. There's project files for up to VS2017, I don't know if there's any changes in VS2019 that would prevent a straight import of the '17 files, just give it a try.



Chat with us!
#bearpit on IRC
Discord
Get your latest 1.13 Builds
(Pls don't use my forum PMs for general game queries)


Re: Quick Guide for Compiling and Debugging Source Code in Visual Studio[message #358705 is a reply to message #358691] Sun, 22 December 2019 05:53 Go to previous messageGo to next message
Kitty

 
Messages:172
Registered:October 2017
Location: Germany
Thanks,

from first glance after downloading VisualStudioExpress2017 and VisualStudioCommunity, I probably
need more tutorials and research on them. First try ended with complains about missing extensions (SDK),
so I first need to learn more.
But it's good to know that it might be possible, if I learn to manage the tools. Don't know, if I can
realy make it happen, but I'll give it a try.



I need more details.

(Didi Hallervorden)
Re: Quick Guide for Compiling and Debugging Source Code in Visual Studio[message #360403 is a reply to message #358705] Thu, 18 June 2020 10:27 Go to previous messageGo to next message
Kitty

 
Messages:172
Registered:October 2017
Location: Germany
ok, finally managed to compile.

For building an MapEditor I used the same 113-source from SVN as for game-exe. Instead of "release", I've choosen "MapEditor" (VS2019). In quick tests this seems to be working, but is this the right way to do this? Or am I missing something?

And how am I building an UB-exe? Is there a different source for UB somewhere?



I need more details.

(Didi Hallervorden)
Re: Quick Guide for Compiling and Debugging Source Code in Visual Studio[message #360404 is a reply to message #360403] Thu, 18 June 2020 11:41 Go to previous message
Asdow

 
Messages:20
Registered:August 2010
Yeah, that should be correct for the mapeditor. For UB, pick release and then in builddefines.h you need to uncomment two lines.
// -----------------------------
// *****************************
// WANNE: Enable those 2 defines, if you want to build UB-Version!!

//JA2/Unfinished Business
#define JA2UB

//Unfinished Business - Titles (ja2set.dat)
#define JA2UBMAPS

Also, note that even though it should now launch a new game without issues after my fixes, since UB side hasn't been worked on in a long while it will have weirdness happening in game.

[Updated on: Thu, 18 June 2020 11:51]

Previous Topic: Instructions for using SVN
Next Topic: SVN Server Support
Goto Forum:
  


Current Time: Sun Jul 12 09:04:45 EEST 2020

Total time taken to generate the page: 0.01301 seconds