PDA

View Full Version : [Pics]Compiling ArcEmu - Taking the First Steps in C++



Kibblebit
21-10-09, 11:55 AM
Hey Guys. This is my first actual release/guide. I may have looked over a forum called "Tutorials", so I posted it here. This tutorial will include pictures and I'll introduce you to ArcEmu's C++ code. In this tutorial, you will be compiling ArcEmu for your own repack/personal use + editing the message you see on login. I am not an expert in this, but I know what to do and I'm good at solving any errors you may get. This is done on Windows XP.

Contents
1. Downloading
1-1. Getting the SVN
1-2. Getting the Core
2. First Steps
2-1. Getting the needed DLL files.
2-2. Getting Configuration files.
2-3. Getting the basic Lua Scripts
3. Customizing
3-1. Changing "ArcEmu" tag on login
4. Compiling
4-1. Getting your compiled stuff
4-2. Cleaning Up Your ArcEmu Folder

======================================
======================================
======================================

Step 1. Downloading
Download the following files:
Tortoise SVN (http://tortoisesvn.net/downloads) <=== Gets the Core
Microsoft Compiler (http://www.microsoft.com/Express/VC/) <=== Compiles the Core
Restart your computer after these items are finished downloading and installed

Step 1-1. + 1-2. Getting the SVN + Getting the Core
Make a folder in the "My Documents" directory called ArcEmu, or whatever you want.
Right Click on the folder and click "SVN Checkout", then you will see this box:
http://i476.photobucket.com/albums/rr124/brandonrulz1/pic1.jpg
Now the text box that says URL of repository, put this link inside it: svn://arcemu.info/svn/trunk
Don't mess with anything else and click the "Ok" box.
Wait up to 5 minutes for the core to download.

Step 2. The First Steps
When the SVN is done downloading, click "Ok" and go to the folder where the core was downloaded too.
You should see this:
http://i476.photobucket.com/albums/rr124/brandonrulz1/pic2.jpg

Step 2-1. Getting the Needed DLL files.
Follow this directory: C:\My Documents\arcemu\extras\arcemu-windows-libraries\DLL Files
Right click on the files and then go to this directory: C:\My Documents\arcemu\bin
Right click on the "Release" folder and click "paste"

Step 2-2. Getting the Configuration Files
Go to your ArcEmu folder where you downloaded the core, then right click on the folder named "configs" and paste it in the "Release" folder directory given above.

Step 2-3. Getting your Lua Files
You will need some things to work, right? Thats what Lua is for. Go to this directory: C:\My Documents\arcemu\src\scripts\lua-scripts
Copy everything in there and go to the "Release" directory given in step 2-1. Now go inside the folder and paste everything to the "scripts" folder, NOT THE "script_bin" FOLDER!!!!

Step 3. Customizing
You have a repack/server and you really don't want to look like a noob when your clearly using ArcEmu. Or, you want to edit the core to say things that arn't Blizzlike. The following steps are for you.

Step 3-1. Changing the "ArcEmu" tag on login
Go to this directory: C:\My Documents\arcemu\src\arcemu-world
Open up the file called 'CharacterHandler.cpp" without the quotes. With Microsoft Visual
Now look through the file until you see a piece of script like this:
You CAN delete the %s and %s and |r shit, because I doubt your going to want to define anything, but if you want people to know your running on a certain revision and stuff, then thats your idea, not mine. Anyways, Change that piece of script to something like mine, Remember, change the text to your liking.
Before:
http://i476.photobucket.com/albums/rr124/brandonrulz1/pic3.jpg
After:
http://i476.photobucket.com/albums/rr124/brandonrulz1/pic4.jpg
Now press <Ctrl+S> to save and X out of the window. Your pretty much done customizing, unless you want to customize the entire thing. Which will take a while.

Step 4. Compiling ArcEmu
Go to this directory: C:\My Documents\arcemu\win
Open up arcemuVC90 - All Projects.sol in Microsoft Visual.
You will see this:
http://i476.photobucket.com/albums/rr124/brandonrulz1/pic5.jpg
Go to the top and change "Debug" to "Release"
then go to the sidebar called and right click on the very top project and hit "Build Solution"
This will lag your computer for a while, this process will take 10-15 minutes and if you get any errors, screenshot them and post below.

Step 4-1. Cleaning up your compiled stuff.
Go to that Release folder in the 'bin' directory, you will see tons of files that were not there before you compiled. Some of those files don't have to be there. It also makes you less noobish. Delete EVERYTHING EXCEPT the folders, the arcemu-world.exe and arcemu-logonserver.exe, the collision.dll and the other 2 dll files.
Now go to the script_bin folder and delete everything except the .dll files.

That is my guide on how to ArcEmu, this is what I did to begin learning C++ I messed with the core for 3 months now and I'm still learning, but I'm getting better. Hope you do the same.

Apple
21-10-09, 01:08 PM
nice one +rep ;)

enegue
26-10-09, 06:32 AM
Just... Kibble-fied

shadowzwow
06-12-09, 01:44 AM
dude when i edited arcemu-world it didnt change i went in game and it still says online players and everything
what should i do?

hellrazor
09-01-10, 04:28 PM
maybe a stupid question XD but is there how to setup a new Privateserver?

DoPeT
10-01-10, 01:32 AM
Nice organized guide! Bump

hellrazor
10-01-10, 04:56 AM
Is this how to setup a new server if i done all this where do i click to start up wow or?

Storth
13-01-10, 11:52 PM
Nice guide

treetree
15-01-10, 12:04 AM
this is a very good tut
and edit pics,,

I would defiantly like
to see more like this,,

+rep

tree :)

Dorito
20-01-10, 09:47 PM
very nice +rep

ebbiebright
21-01-10, 02:02 AM
Nice guide, +rep !