SWGEMU: How to Compile and Run A Server!

Part 1: Getting the Goods

1.) Download all of these files:

http://tortoisesvn.sourceforge.net/downloads
http://msdn.microsoft.com/vstudio/express/visualc/download/
http://www.microsoft.com/downloads/details.aspx?FamilyId=A55B6B43-E24F-4EA3-A93E-40C0EC4F68E5&displaylang=en
http://dev.mysql.com/downloads/mysql/5.0.html
http://www.navicat.com/
http://www.emukettemoor.com/swgemu_client.zip

Code:
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
http://patch.starwarsgalaxies.com:7040/patch/swg/main/patch_01.tre
http://patch.starwarsgalaxies.com:7040/patch/swg/main/patch_02.tre
http://patch.starwarsgalaxies.com:7040/patch/swg/main/patch_03.tre
http://patch.starwarsgalaxies.com:7040/patch/swg/main/patch_04.tre
http://patch.starwarsgalaxies.com:7040/patch/swg/main/patch_05.tre
http://patch.starwarsgalaxies.com:7040/patch/swg/main/patch_06.tre
http://patch.starwarsgalaxies.com:7040/patch/swg/main/patch_07.tre
http://patch.starwarsgalaxies.com:7040/patch/swg/main/patch_08.tre
http://patch.starwarsgalaxies.com:7040/patch/swg/main/patch_09.tre
http://patch.starwarsgalaxies.com:7040/patch/swg/main/patch_10.tre
http://patch.starwarsgalaxies.com:7040/patch/swg/main/patch_11_00.tre
http://patch.starwarsgalaxies.com:7040/patch/swg/main/patch_11_01.tre
http://patch.starwarsgalaxies.com:7040/patch/swg/main/patch_11_02.tre
http://patch.starwarsgalaxies.com:7040/patch/swg/main/patch_11_03.tre
http://patch.starwarsgalaxies.com:7040/patch/swg/main/patch_12_00.tre
http://patch.starwarsgalaxies.com:7040/patch/swg/main/patch_13_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.
Navicat

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:
http://forums.swgemu.com/viewtopic.php?t=2701

~~~~~~~~~~~~

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.

Code:
— -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.

Troubleshooting:

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

http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/

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....

SWG TRES IF YOU NEED THEM
-------------------------
http://forums.station.sony.com/swg/board/message?board.id=Techsupport&message.id=295177

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 127.0.0.1 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.

NOTE:
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.

CRASHES
--------------
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.

-------------------------------------------------------------------------------------------------------
www.swgemu.com

9,166 Responses to “SWGEMU: How to Compile and Run A Server!”

  1. Hmm it appears like your website ate my first comment (it was super long) so I guess I’ll just sum it up what I submitted and say, I’m thoroughly enjoying your blog. I as well am an aspiring blog writer but I’m still new to the whole thing. Do you have any tips and hints for newbie blog writers? I’d certainly appreciate it.|

  2. I really love your website.. Excellent colors & theme. Did you make this website yourself? Please reply back as I’m looking to create my own personal website and would love to know where you got this from or exactly what the theme is named. Thanks!|

  3. Hi, i read your blog from time to time and i own a similar one and i was just wondering if
    you get a lot of spam remarks? If so how do you stop it, any plugin or anything
    you can advise? I get so much lately it’s driving me insane
    so any help is very much appreciated.

  4. Hello There. I found your blog using msn. This is a very well
    written article. I will make sure to bookmark it and return to read
    more of your useful information. Thanks for the post. I will definitely
    return.

    My homepage 바카라게임

  5. Hello, I think your site might be having browser compatibility issues.
    When I look at your website in Firefox, it looks fine but when opening in Internet
    Explorer, it has some overlapping. I just wanted
    to give you a quick heads up! Other then that, amazing blog!

  6. You could definitely see your expertise in the article you write.
    The sector hopes for more passionate writers such as you who aren’t afraid to say how they believe.
    Always follow your heart.

  7. m88cvf says:

    My spouse and I stumbled over here from a different page and thought I might check things out.
    I like what I see so now i am following you. Look forward to going over your web page again.

  8. When I originally commented I clicked the “Notify me when new comments are added”
    checkbox and now each time a comment is added I get several e-mails
    with the same comment. Is there any way you can remove me from that
    service? Thank you!

  9. It is truly a nice and useful piece of info.

    I’m satisfied that you simply shared this helpful info with us.
    Please keep us up to date like this. Thank you for sharing.

  10. Peculiar article, totally what I wanted to find.

  11. joker123 apk says:

    Have you ever considered about adding a little bit more than just your articles?

    I mean, what you say is fundamental and everything. Nevertheless imagine
    if you added some great photos or video clips to give
    your posts more, “pop”! Your content is excellent but with pics
    and video clips, this blog could certainly be one of the greatest in its niche.

    Good blog!

  12. I have been checking out some of your posts and i must say pretty clever stuff.
    I will definitely bookmark your blog.

    Feel free to surf to my site … Ultra Max Male Enhancement

  13. Good day! This is my 1st comment here so I just wanted to give a quick shout out and tell you I
    really enjoy reading your articles. Can you suggest any other blogs/websites/forums that go over the same
    subjects? Thanks for your time!

  14. Hi! I could have sworn I’ve been to ths site before but after checking through sme oof the post I rezlized it’s
    new to me. Anyhow, I’m definitely delighted I found it and I’ll be book-marking and checking back
    frequently!

  15. hospodarske says:

    Hurrah, that’s what I was looking for, what a stuff!
    present here at this blog, thanks admin of
    this web site.

  16. music video says:

    I’m not sure where you’re getting your information, but good topic.
    I needs to spend some time learning much more or understanding
    more. Thanks for fantastic info I was looking for this
    information for my mission.

Leave a Reply