Star Wars Galaxies
Free Private Servers
SWG Servers
Site Search

Server Quick Find
Free SWG Server Listing

Featured SWG Server

Euro Chimaera
Euro Chimaera
SWGEmu
Online Resources
Vote For SWG Servers
Star Wars Galaxies Private Server

Vote on the Star Wars Galaxies Top 200

Star Wars Galaxies Emulator Compiling Help


This guide is for SWGEmu Core 2.

Required Tools
If you would like to compile the source code, you will need the following tools:

TortiseSVN
http://tortoisesvn.sourceforge.net/downloads

Visual C++ 2005 Express Edition
http://msdn.microsoft.com/vstudio/express/visualc/download/

Microsoft Platform SDK
http://www.microsoft.com/downloads/details.aspx?FamilyId=A55B6B43-E24F-4EA3-A93E-40C0EC4F68E5&displaylang=en

MySQL Database Server v5.0 w/ dev packages
http://dev.mysql.com/downloads/mysql/5.0.html

MySQL GUI Tools
http://dev.mysql.com/downloads/gui-tools/5.0.html

Navicat
http://www.navicat.com/download.html


Required SWG Updates - These must be placed in your SWG directory
patch_00.tre patch_01.tre patch_02.tre patch_03.tre patch_04.tre patch_05.tre patch_06.tre patch_07.tre patch_08.tre patch_09.tre patch_10.tre patch_11_00.tre patch_11_01.tre patch_11_02.tre patch_11_03.tre patch_12_00.tre patch_13_00.tre

Required Before Going Any Further...
You need to make sure you have the following installed:
- Windows SP 2
- Microsoft Platform SDK
- Tortoise SVN
- Visual C++ Express Edition
- MySQL
- Navicat

Configuring Visual C++ Express Edition
1. Open Visual C++ Express Edition.
2. Click on Tools then Options.
3. Click on the "+" next to Projects and Solutions.
4. In the new dropdown menues below Projects and Solutions, click VC++ Directories.
5. At the top right of the window, select Include Files from the Show Directories For: dropdown menu.
6. Click on the button below the Show Directories For: dropdown menu that looks like a yellow folder with a star.
7. In the menu a new line will now be highlighted. Enter in your MySQL Include directory. (we are assuming you installed MySQL to C:\Program Files\MySQL\MySQL Server 5.0\. So enter C:\Program Files\MySQL\MySQL Server 5.0\include in the highlighted line.
8. Click the button below the Show Directories For: dropdown menu that looks like a yellow folder with a star again.
9. In the menu a new line will now be highlighted again. Enter in your Microsoft Platform SDK Include directory. (we are assuming you installed Microsoft Platform SDK to C:\Program Files\Microsoft Platform SDK\. So enter C:\Program Files\Microsoft Platform SDK\Include in the highlighted line.

10. We now need to specify the Lib directories. At the top right of the window, select Library Files from the Show Directories For: dropdown menu.
11. Click on the button below the Show Directories For: dropdown menu that looks like a yellow folder with a star.
12. In the menu a new line will now be highlighted. Enter in your MySQL Library directory. (we are assuming you installed MySQL to C:\Program Files\MySQL\MySQL Server 5.0\. So enter C:\Program Files\MySQL\MySQL Server 5.0\lib\opt in the highlighted line.
13. Click the button below the Show Directories For: dropdown menu that looks like a yellow folder with a star again.
14. In the menu a new line will now be highlighted again. Enter in your Microsoft Platform SDK Library directory. (we are assuming you installed Microsoft Platform SDK to C:\Program Files\Microsoft Platform SDK\. So enter C:\Program Files\Microsoft Platform SDK\lib in the highlighted line.
15. At the bottom of the window, click OK. You have now configured Visual C++ Express Edition.


Downloading the Latest Source Code via Tortoise SVN
1. Create a new folder on your desktop.
2. Right click on the folder and click SVN Checkout.
3. When the new window pops up, paste http://opensvn.csie.org/SWGEmuPub/ in the URL of repository box input and click OK.
4. Tortoise SVN will now start downloading all the source files to your folder on your desktop. This may take a few minutes on a slow connection.
5. Once the download is complete, the last line will display the Revision you just downloaded. This will be the latest revision of the source code. The OK button will become clickable so click it.
6. You have now downloaded the SWGEmu Source Code.


Opening the Source Code in Visual C++ Express Edition
1. Open Visual C++ Express Edition.
2. Click File then Open then Project/Solution.
3. Go to the directory you saved the SWGEmu source code too. Before we mentioned to save it to your desktop. 4. Once in your SWGEmu source code directory, go to the win32 directory and double click on swgemu-vc8.sln.
5. Visual C++ Express Edition will now load the SWGEmu project.

Compiling the SWGEmu Source Code
1. Assuming you have Visual C++ Express Edition open and the SWGEmu project loaded, click Build then Build Solution.
2. You will notice in the status bar that it says "Build Started". This means Visual C++ is now compiling the SWGEmu source code into an executable application. This may take a few minutes so please be patient.
3. Once the build is complete, you will notice in the status bar that it says "Build Succeeded".
4. To check if any errors occured, checkout the last line of the Output of the build. This will be right above the status bar that says "Build Succeeded".
5. The last line should say something similar to "========== Build: 8 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========".
6. Look at the number next to failed and skipped. If these both say 0 then you have successfully compiled the source code.