How to Compile ArcEmuThis is a guide on how to compile ArcEmu. Compiling is a process that combines source files into executables, or files that can be run (.exe's). The objective of this guide is to teach the user how to compile their own ArcEmu server.
By Vindicated
Download Prerequisites:
Microsoft Visual C++ Express Edition - Visual C++ 2008 Express Edition
TortoiseSVN: TortoiseSVN downloads | TortoiseSVN
I. Why learn to compile ArcEmu?
Learning to compile your own ArcEmu server comes with a number of advantages. First, you can control the amount and frequency of updates for your server. If you use a repack, you have to wait until the repack is updated. Second, you can make what are called "core edits". These allow you to make modifications without having to create your own script. Examples include modifying the mail send delay and a custom startup message. Third, you are able to compile DLLs (C++ files). If you have ever seen a C++ script released and wondered how to add it to your server, you have to have compiled ArcEmu first. Those are some good reasons for learning to compile ArcEmu.
II. Checking out the SVN
Before we compile our server, we are going to need the files first. I assume you already have TortoiseSVN downloaded & installed (see top of guide). First, create a folder named "ArcEmu". Right click the folder and choose "SVN Checkout...". For the Url of Repository field, enter "svn://arcemu.info/svn/" (Without quotes) in the field. Then click ok.
Advanced Users Only - If you are looking for a specific revision, click that radio button and enter in the revision in the text field.
The download should begin, automatically downloading the latest revision available. This download time can range anywhere from one minute to one hour, so be patient.
III. ArcEmu-Windows-Libraries
Navigate to the \trunk\extras\arcemu-windows-libraries folder. If you are x32, open the folder called "DLL Files". If you are x64, open the "DLL Files x64. Move these DLLs into your binary folder, or "C:\Windows\System32". Now open up the folder labed VC. Navigate to the directory. "C:\Program Files\Microsoft Visual Studio 9.0\VC". Copy the files in VC\include to VC\include. Copy the files in VC\lib to VC\lib. Now you are ready to continue on to the next step.
IV. Compiling Your Server
This is the part that will have to be repeated to update your server. All the steps above are irrelevant after your first compile. First, if you are going to make any "core edits" make them now, before you compile your realm. Now go into the "trunk/win" folder and doubleclick the solution named "arcemuVC90". Set the build to "Release" (As we did before when compiling our Ascent-Windows-Libraries) and hit F7. The build will begin and may take anywhere from 5 minutes to 30 minutes. After this is complete, go into the "trunk/src/scripts" folder and select the solution "Scripts2008". Set the build to "Release" and hit F7. Again, this could take anywhere from 5 to 30 minutes.
When this process is finished, exit out of Visual Studio. Now go to your "trunk/bin/Release" folder and copy these files to a new folder elsewhere and call it "Compiled Server". Now browse over to "trunk/configs" and copy the .conf files listed, not the folder though. Create a folder named configs in your "Compiled Server" folder. Paste the configs in your "configs" folder. You have now officially compiled ArcEmu! It becomes a very short and easy process to do after your first couple tries. You will still need to download the DBC files and Map files from somewhere, or extract them yourself (I will be making a guide on this). You will also need an up-to-date database. I recommend you download this from NCDB at Next Chapter Community.
Remember, a video is to come along with other guides to help you further understand the world of emulation.
Extra Downloads:
DBC Files: http://www.2shared.com/file/4951937/...dbc_files.html
Map Extractor: http://www.2shared.com/file/4951943/...Extractor.html
If I have forgotten something, or if there is something you would like me to add to the guide, please feel free to PM me. If you have a question or error during this process, just reply the this thread. Otherwise I will not respond.
Thanks and hope this guide helped alot.
-Vindicated