I'm using Visual Studio 2008 so if someone uses a different version and it doesn't work let me know.
So the first thing needed to compile with Visual Studio is of course Visual Studio which you can only get if you paid for it or if you are a student.
If you are a student you can get it here
If you do not pay or you're not a student, you can use Visual C++ Express 2008
Make sure you let it install the Microsoft SDKs if there is that option.
After installing this you will need a couple other SDKs to compile correctly.Microsoft Directx SDK
(I'm using the February 2006 release but the others should work also.)OpenAL SDKINSTALL THESE SDKsFINALLY WE NEED THE SOURCE CODE ITSELF. There are two ways that you can get the source code:
1. Download it here
(it seems that the direct download of the source is not up to date and is not available at the moment)
Use a subversion client like Tortoise SVN
updated with the latest revisions of SG 1.1 & 1.0 (if you have a 64 bit comp you need TortoiseSVN 64 bit
As Torhu said, development is now going on in the 1.1 Branch so if you want to see what is the most recent development you will be using the 1.1 source.If you downloaded the source code directly, skip down to the COMPILING section.
To get the source code using TortoiseSVN first install Tortoise. After it is installed, create a folder wherever you want the SG code to be. Name it anything you want. Then right click on this folder and click SVN Checkout.
Then copy this URL: https://smokinguns.svn.sourceforge.net/ ... anches/1.1
into the "URL of repository" box.
If you want to try something with the v1.0 Source, then use this URL:https://smokinguns.svn.sourceforge.net/ ... uns/trunk/
Everything else should be set up like my screenshot by default.
Click Ok and watch as Tortoise SVN "Checks Out" or in other words Downloads the latest revision to the SG 1.1 or SG 1.0 source. (Whichever you chose to use)COMPILING:
Now you have the source code and all the SDKs that you need to compile.
Open up your SG Source Code folder and open up the code folder. There should be a Visual Studio Project named smokinguns. Open This.
Once Visual Studio or Express is up and running you need to set it up to find the SDKs.
Then go to Projects and Solutions->VC++ Directories.
Now in the Show Directories box make sure it says include. Then hit the Folder icon for a new line and on that new line click the "..." to browse for the directories you need. Add the SDK Directories for OpenAL and DirectX. Make sure its the SDK\include folders.
Now do the same thing for the Library files. Make sure you select the folder for your platform.
Once your done with adding these Directories click OK.
Hit Build->Build Solution.
It should compile with no errors or warnings.
Now you can start coding on Smokin' Guns!
P.S. If anyone finds a mistake or has trouble don't be afraid to post