Difference between revisions of "Compiling with Microsoft Visual C++ (OpenXcom)"

From UFOpaedia
Jump to navigation Jump to search
(This looks really ugly, but I hope it makes things easier.)
Line 2: Line 2:
 
# Download [https://windows.github.com/ GitHub for Windows].
 
# Download [https://windows.github.com/ GitHub for Windows].
 
# Download the source code from [https://github.com/SupSuper/OpenXcom here], by pushing '''Clone in Desktop'''.
 
# Download the source code from [https://github.com/SupSuper/OpenXcom here], by pushing '''Clone in Desktop'''.
 +
# Download and install [http://store.steampowered.com/app/7760/ X-COM: UFO Defense].
 +
# Navigate to '''<path-to-game>\XCOM\''' and copy the following folders.
 +
<pre>
 +
GEODATA
 +
GEOGRAPH
 +
ROUTES
 +
MAPS
 +
SOUND
 +
TERRAIN
 +
UFOGRAPH
 +
UFOINTRO
 +
UNITS
 +
</pre>
 +
5. Navigate to '''<path-to-repo>\OpenXcom\bin\UFO''' and paste the folders in there.
  
 
===Compiling===
 
===Compiling===
Line 8: Line 22:
 
* [http://openxcom.org/download/dev/openxcom-deps-win-vc2010.zip Visual C++ 2010]
 
* [http://openxcom.org/download/dev/openxcom-deps-win-vc2010.zip Visual C++ 2010]
 
* [http://openxcom.org/download/dev/openxcom-deps-win-vc2013.zip Visual C++ 2013]
 
* [http://openxcom.org/download/dev/openxcom-deps-win-vc2013.zip Visual C++ 2013]
# Extract the files to '''<path-to-repo>\OpenXcom\'''
+
3. Extract the files to '''<path-to-repo>\OpenXcom\'''
# Navigate to '''<path-to-repo>\OpenXcom\src''' and open '''OpenXcom.2010.sln'''.  
+
4. Navigate to '''<path-to-repo>\OpenXcom\src''' and open '''OpenXcom.2010.sln'''.  
 
<!-- Upgrade the solution on later versions of Visual Studio by right clicking on '''OpenXcom'''. idk how to word this -->
 
<!-- Upgrade the solution on later versions of Visual Studio by right clicking on '''OpenXcom'''. idk how to word this -->
# Compile and run the project by pressing the '''Start Debugging''' button with a green arrow on the top toolbar.
+
5. Compile and run the project by pressing the '''Start Debugging''' button with a green arrow on the top toolbar.
 +
6. Navigate to '''<path-to-repo>\OpenXcom\bin''', depending on which platform the game was built, either open the '''Win32''' or '''x64''' folder.
 +
7. Copy all the '''DLLs''' from either the '''Win32''' or '''x64''' folder to '''<path-to-repo>\OpenXcom\bin'''
 +
8. Navigate to '''<path-to-repo>\OpenXcom\bin''', open the desired platform folder, open the '''Release''' or '''Debug''' folder and copy '''OpenXcom.exe''' to '''<path-to-repo>\OpenXcom\bin'''
  
 
* Certain anti-viruses such as Avast may stop the project from building. Add the OpenXcom folder as an expection.  
 
* Certain anti-viruses such as Avast may stop the project from building. Add the OpenXcom folder as an expection.  

Revision as of 16:30, 28 May 2015

Setting up

  1. Download GitHub for Windows.
  2. Download the source code from here, by pushing Clone in Desktop.
  3. Download and install X-COM: UFO Defense.
  4. Navigate to <path-to-game>\XCOM\ and copy the following folders.
GEODATA
GEOGRAPH
ROUTES
MAPS
SOUND
TERRAIN
UFOGRAPH
UFOINTRO
UNITS 

5. Navigate to <path-to-repo>\OpenXcom\bin\UFO and paste the folders in there.

Compiling

  1. Download and install Visual Studio. A free version is available here.
  2. Download the following dependencies for the appropiate version of Visual Studio.

3. Extract the files to <path-to-repo>\OpenXcom\ 4. Navigate to <path-to-repo>\OpenXcom\src and open OpenXcom.2010.sln. 5. Compile and run the project by pressing the Start Debugging button with a green arrow on the top toolbar. 6. Navigate to <path-to-repo>\OpenXcom\bin, depending on which platform the game was built, either open the Win32 or x64 folder. 7. Copy all the DLLs from either the Win32 or x64 folder to <path-to-repo>\OpenXcom\bin 8. Navigate to <path-to-repo>\OpenXcom\bin, open the desired platform folder, open the Release or Debug folder and copy OpenXcom.exe to <path-to-repo>\OpenXcom\bin

  • Certain anti-viruses such as Avast may stop the project from building. Add the OpenXcom folder as an expection.
  • See the Visual Studio Documentation for more information on the IDE.

Issues fixed

Failed To Load Palette

Copy the X-Com resources to your bin folder, see Installing for more details.

afxres.h not found

Remove resource.h and OpenXcom.rc from the project.

MSVCR100.DLL not found

A: You're using the pre-built dependencies with an old Visual C++ version so you need to install the VC++ 2010 Redist.

Platform 'x64' cannot be found

Compile as Win32.