SWGEMU: How to Compile and Run A Server!

Part 1: Getting the Goods

1.) Download all of these files:


NOTE! YOU ONLY NEED THESE IF YOU DON’T HAVE THIS IN YOUR ROOT SWG DIRECTORY!http://patch.starwarsgalaxies.com:7040/patch/swg/main/patch_00.tre

(You must have Windows SP 2 to install the SDK!)

2.) After downloading all of the files, install them in this order (RECOMMENDED):

Service Pack 2
Windows® Server 2003 Platform SDK Web Install
Tortoise SVN
VStudio 2005
MySQL We will be running this from the auto install! We will also be installing it into the C:\MySQL folder. Don’t forget when installing to choose customize, and install EVERYTHING. That way there cannot be any missing folders. This step is probably vital to not getting any errors.

Part 2: Compiling the Core

1.) Create a new folder on your desktop. The name doesn’t matter, but I named mine SWGEmu.

2.) Right click that folder, and press SVN Checkout. When a window comes up, for the “URL of repository box”, paste in: http://opensvn.csie.org/SWGEmuPub/ Next, for revision, make sure head is selected.

3.) After the files are done downloading, run VStudio Compiler. It’s located under Start->All Programs->Visual C++ 2005 Express Edition.

4.) When it opens, go to Tools->Options->Projects and Solutions-> VC++ Directories. Open the dropdown menu under Show Directories for, and select include files.

5.) Under $(VCInstallDir)include add a new line by clicking the folder or pressing Ctrl + Insert. In that line, type C:\MySQL\include

6.) Next, select Library Files from the same dropdown menu, and for the new line, add in C:\MySQL\lib\opt

7.) Go back to the main Visual C++ screen. Go to file -> open -> project / solution.

8.) Browse to the SWGEmu root directory (The folder you Tortoise SVN-d) and then go to Win32. Open up swgemu-vc8.sln

9.) Press F7 or go to the Build menu, then build solution.

10.) If there are ANY errors, here are the solutions (Thanks ramsey and users!)

Q) fatal error LNK1104: cannot open file ‘libmysql.lib’
A) Tools -> Options -> Projects and Solutions -> VC++ Directorys
Then at the top right, click on library files
Add a path to the library which should be here: C:\MySQL\MySQL Server 5.0\lib\opt
If you installed it in the default path, it should be here:
C:\Program Files\MySQL\MySQL Server 5.0\lib\opt


Q) mysql.h couldnt be found.
A) Tools -> Options -> Projects and Solutions -> VC++ Directorys
Then at the top right, click on include files
Add a path to the library which should be here: C:\MySQL\MySQL Server 5.0\include
If you installed it in the default path, it should be here:
C:\Program Files\MySQL\MySQL Server 5.0\include

Still getting the error? Go to Database_Mysql.h. Find: #include
Replace with: #include


Q) winsock2.h missing
A) Make sure you install the platform sdk which can be found here:


Q) libmysql.dll is missing when i try to run the server.
A) \MySQL\MySQL Server 5.0\lib\opt
There should be a libmysql.dll. Drag that to your C:\WINDOWS\system folder. NOT system32. system.


Part 3: MySQL and you!

1.) The first thing you want to do, is take note of the password you entered in when you were installing MySQL. If you didn’t enter one that’s fine, but if you did you WILL have to use that.

2.) Okay, you’re server should be up, since the MySQL should be the autoinstaller version.

3.) Open up Navicat, which is in the Premiumsoft folder in All Programs.

4.) Click the connections button in the semi-top left hand part of the screen. The connection name doesn’t matter too much, but I set mine as SWGEmu. Leave the hostname to localhost and the port to default (3306). The username will be root, (Unless you entered in a username for your mysql, which I’m not sure is possible since I can’t remember Smile ) and the password will be blank or the password you entered in whilst installing MySQL. Press test connection. If it doesn’t connect, you either have a firewall messing stuff up, or you typed the username and password wrong.

5.) A new server should show up! Yay! Now, right click on it and press new database. You’ll want to name it swgemu (I believe it’s case-sensitive) and leave the character set to default.

6.) On the new database, you want to right click, then press execute batch file. Select swgemu.sql from MySQL in your SWGEmu folder.

7.) Go do debug, then config in your SWGEmu folder, edit config and enter in the information listed. If you’re running on your home PC you probably only need to change the password that you entered in when you installed MySQL.

8.) With the unused zip, currently named as swgemu_client.zip you have sitting on your computer, it is now time to finally get into the game! Open up that zip and copy it into your LEGIT (I hope Smile ) SWG directory. Mine is C:\Program Files\StarWarsGalaxies. Copy all the files located in that zip to your directory. Now, if you are up to date on the patches, or have at least patch 13 installed, you’ll be set. If you don’t have any patches or something under 13, you’ll have to get them off the SWG website. If you’re OVER, take out ANY file with the prefix patch. Don’t delete them if you plan on going back into NGE. (If you even wanted to Smile ). It’s pretty sad that a game that only has the function of walking around the environment is more compelling to play than the NGE.

9.) If you’ve played the NGE or any other version of SWG lately, you can just take out anything but the files patch_00.tre – patch_13_00.tre. Take all the other patch files out.

10.) Make a shortcut of SWGEmu.exe somewhere. Right click it, then choose properties. After that, add this to the target field.

— -s Station subscriptionFeatures=1 gameFeatures=255

11.) Run SWGEmu_Setup.exe to set up your screen resolution, etc. After you’re done, press okay and get out of that. Now, run the SWGEmu.exe in your emu folder under debug. Then, open the SWGEmu shortcut you modified the target of. Wait till the login screen shows, then log in under test. The password will be test. You can now run around. Yay! Or in a better looking phrase

YOU CAN NOW PLAY PRE-CU SWG! Yay! Oh…and just incase you didn’t notice…YOU CAN ALSO STOP SPAMMING “I NEED HELP ZOMG!!1” IN THE IRC. thx.

Have fun, please, read this before you ask any questions.


Compiling Errors:
If you are getting errors such as winsock.h/windows.h and have reinstalled the SDK, follow the steps on this link:


Ignore step 5.

Next, You need to copy the files in the SDK’s include folder into VC’s include folder and copy the files in SDK’s lib folder into VC’s lib-folder.

The SDK’s director is C:\Program Files\Microsoft Platform SDK\

SWGEmu - Setting up and running the Publish 12.1/13 Client. By Ultyma.
(c)2006 SWGEmu Team. www.swgemu.com

1) Download the client from somewhere....


2) Extract the archive to your SWG directory. (Usually c:program filesStarWarsGalaxies)

3) Open up swgemu_login.cfg in notepad, and change the loginServerAddress0 IP address
to the server address that you would like to play on. (Or leave it at for local).

4) Right click swgemu.exe and create a shortcut to it.

5) Right click the newly created shortcut, and change the Target field to the following:
"C:Program FilesStarWarsGalaxiesSWGEmu.exe" -- -s Station  subscriptionFeatures=1 gameFeatures=255

Note: If your SWG directory is different just modify that to the correct path. Leave the quotes on!

6) To run the game, just double click the shortcut. Voila. That simple. Login, and have fun.

If you are having problems getting the skill/emote/mood list to show up, its because its an error
between publish 12.1 and publish 13.

If you have SWG Explorer, open up the patch_12_00.tre. And extra ui_skill.inc from /ui to /ui in your
StarWarsGalaxies directory.

That SHOULD fix the skills/emotes not showing up in the command browser.

ERROR: unknown location : FATAL 82674e4e: unsupported SlotIdManager file format [0004]
CAUSE: You dont have all of the patches.
SOLUTION: Patch your SWG installation to AT LEAST publish 13.


23 Responses to “SWGEMU: How to Compile and Run A Server!”

  1. I found useful information on this topic as Now i’m focusing on a company project. Thank you posting relative information and its currently becoming easier to complete this project 먹튀폴리스

  2. Thanks for such a great post and the review, I am totally impressed! Keep stuff like this coming 토토사이트

  3. It’s really a nice and helpful piece of info.
    I’m glad that you just shared this helpful information with us.
    Please stay us informed like this. Thank you for sharing.

  4. superslot says:

    You can follow any responses to this entry through the superslot

  5. mitha says:

    thank you for your information, i hope you succsess

  6. gyiopal says:

    great information i hope you succsess

  7. opah says:

    very useful information i hope you succsess

  8. munut says:

    very useful idea i hope you succsess

  9. tasya says:

    cool information i hope you succsess

  10. vaeria says:

    thank you broo i hope you succsess

  11. ganash says:

    wonderfull site i hope you succsess

  12. lano says:

    wonderfull information i hope you succsess

  13. rixiel says:

    i love this information i hope you succsess

  14. roman says:

    great idea i hope you succsess

  15. tutung says:

    what agreat information i hope you succsess

  16. kristal says:

    what agreat idea i hope you succsess

  17. 2018년 런칭한 RT(레드타이거)슬롯은 최근 슬롯 게임 이용자들에게 많은 사랑을 받고 있습니다. 본사 이벤트 평일3% 주말5% 외에 담당자 쿠폰으로 최대 10%의 추가 보너스를 지급하고 있습니다. 믿고 쓰는 우리카지노 계열은 당연 먹튀가 없으며 높은 배당이 잘 터지는 곳 중에 하나입니다. 그 외에도 SA슬롯 마이크로밍 슬롯 등 다양한 슬롯게임을 즐기실 수 있습니다. 코인카지노는 (구)에비앙카지노의 후속인 우리카지노 계열입니다.

  18. 슬롯 says:

    2018년 런칭한 RT(레드타이거)슬롯은 최근 슬롯 게임 이용자들에게 많은 사랑을 받고 있습니다. 본사 이벤트 평일3% 주말5% 외에 담당자 쿠폰으로 최대 10%의 추가 보너스를 지급하고 있습니다. 믿고 쓰는 우리카지노 계열은 당연 먹튀가 없으며 높은 배당이 잘 터지는 곳 중에 하나입니다. 그 외에도 SA슬롯 마이크로밍 슬롯 등 다양한 슬롯게임을 즐기실 수 있습니다. 코인카지노는 (구)에비앙카지노의 후속인 우리카지노 계열입니다.

  19. It was an awesome post to be sure. I completely delighted in understanding it in my noon. Will without a doubt come and visit this blog all the more frequently. A debt of gratitude is in order for sharing. 온라인포커

  20. Thanks for finally writing about > blog_title < Liked it!|

  21. keonhacai says:

    Of course, your article is good enough, but I thought it would be much better to see professional photos and videos together. There are articles and photos on these topics on my homepage, so please visit and share your opinions. keonhacai

  22. safetotosite says:

    A related proverb is “Nunchi is looking for a sparrow’s mill”, which means “Nunchi is quite quick.”

Leave a Reply