Compiling:Aspire/Hearthstone and Installing RivalDB
Hello MMOwned! I'm here to post a quick and simple guide on how to compile your Hearthstone server. There are many guides out there for ArcEmu, but not nearly enough for Aspire/Hearthstone.
What You Need: A subversion client - This allows you to downlaod the core and keep it updated. I advise using Tortoise SVN.
A C++ Compiler - A compiler is necessary for your creating your core. There are many free compilers out there, but I advise you use Visual C++ Express Edition.
Downloading and Installing the Compiler:
Head on over to [Only registered and activated users can see links. ] and download the Visual C++ Express Edition. Once downloaded follow the instillation instructions. This shouldn't be too difficult.
Downloading and Installing the Subversion Client:
Navigate to tortoisesvn.tigris.org. Download Tortoise SVN and install it. Once again. This is very basic. After you finish the install you need to restart your system.
Getting Your Source Code:
Once you have your Compiler and your Subversion Client it is time to download the source code. Create a new folder on your desktop named AspireCore. Right click on the folder and select SVN Checkout.
After selecting SVN Checkout a window will pop up a window asking for the URL of repository. Type in svn://svn.aspiredev.org/AspireCore Hit "OK", now it will begin getting the source for you. This may take some time.
Installing the Aspire Libraries:
While you are waiting you can dowload your Aspire Libraries.
Download one of the above. After downloading extract the file to your desktop.
Copy the files in VC\include, paste these files into the VC\include of your Compiler.
Copy the files in VC\lib, paste these files into the VC\lib of your Compiler aswell.
It will ask you if you want to replace these files. Select "Yes for All"
Compiling the Library Source:
Now head over to your ascent-windows-libraries and double click on the "VC90-solution.sln". This should open your compiler. Now its time to build the source. Change the build from "Debug" to release. You can find this at the top of the screen next to "Win32". After setting the build to release simply press F7. This should begin the compile. You should get no errors.
After the compile is complete it should create a Output_Release folder. Open it up and copy the 2 files inside. Paste them into the lib directory of your compiler. Now get the two DLL files from your ascent-windows-libraries and copy them to your system 32 folder (C:\Windows\System32). THIS ONLY HAS TO BE DONE ONCE PER COMPILER. Now we can beging to compile Aspire!
Compiling Aspire:
Go to your AspireCore and click "Trunk", then "Win". Now double click on arcemuVC90.sln. Set the build to release like we did with the libraries and once again press F7. This takes about 10 minutes so find something else to do while you wait. At the end of the compile it should not have anything failed. If it did fail you need to check that you installed the libraries correctly.
Making your server folder and adding the core to it:
Now its time to make your server folder. Make a new folder and name it whatever you want. I use AspireCompiled. Now go to the Trunk>Bin>Release. Copy "aspire-logonserver.exe" and "aspire-world.exe" to your new server folder.
Now go to the Trunk>src and copy the configs folder. Paste it into your new server folder.
Congratulations! You now have your core files. You have successfuly compiled your Aspire server and are no longer a repack wielding nub!
Hopefully this helped some people out.
__________________
NXDHosting.com - For All Your Hosting Needs!
Last edited by Dr. Livingstone; 04-05-2009 at 03:12 AM.
Donate to remove ads, get your "DONATOR title, and get access to the MMOwned community's elite Shoutbawx.
What You Need: A subversion client - This allows you to download the core and keep it updated. I advise using Tortoise SVN. MySQL - MySQL is your database program Navicat Lite - Navicat Lite is how you will edit MySQL
Downloading and Installing the Subversion Client:
Navigate to tortoisesvn.tigris.org. Download Tortoise SVN and install it. Once again. This is very basic. After you finish the install you need to restart your system.
Downloading and Installing MySQL:
Download MySQL at [Only registered and activated users can see links. ] Follow the instructions it provides. When it asks for password and username info just put "root"
Downloading and Installing Navicat Lite:
Download Navicat Lite at [Only registered and activated users can see links. ] Follow the instillation instructions.
Downloading RivalDB:
Create a new folder on your desktop named RivalDB. Right click and select SVN Checkout. A window should then appear. Type [Only registered and activated users can see links. ] into the "Location of repository" box. Once that is completed we can begin setting up the DB.
Preparing to install RivalDB:
Open up Navicat Lite. Create a new connection and name it "localhost". Once that is completed open localhost and create two new databases by right-clicking in the "Connections" box and selecting "New Database". Name one "world" and the other "logon". Remember your password and other info. You will need it.
Installing RivalDB:
Go to the RivalDB folder. Open the folder called "Development". From there go to the world folder and right click and extract the database.rar into your world folder. Now go back to the development folder and double click the RDB instillation.bat This will ask for all your MySQL info.
When it asks for your info put this:
Server: localhost
Database login: root
Password: root
World Database: world
Character Database: logon
A menu should pop up. Press "i". After the instillation is complete press any key. Then select "c". This will install the changesets. After this is complete press any key once more you should be back at the main menu. Press any button again. Back to the main menu we go. Press "h". After that is finished go back to the main menu again! This time press "d". Once this is finished exit out of the installer.
Our final step is to apply any Hearthstone sql updates past revision 1135. So go to your Aspire folder and open up Navicat Lite. Open up your "world" databse. Right click on it and select "Execute Batch File..." Select the file you want to apply from this menu.
You need to apply:
1776_reputation_instance_onkill.sql
There you are! You have installed RivalDB!
Compiling Your Custom C++ Scripts Compile Your Own Server:
You must compile your own server before doing this. This will not work with repacks.
Properly Placing Your cpp:
First of all you need the cpp you want to compile. Place this file in your already existing miscscripts project. So navigate to trunk\src\scripts\src\MiscScripts and place your cpp there.
Now open up your Scripts2008.sln This can be found in your trunk\src\scripts. Once it opens click on "Solution Explorer" to the left of your screen. Right click the ArcScriptMiscScripts, go to "Add", and then "Existing Item". Navigate to your cpp and double click on it.
Gathering Information:
Now we need to get some info before we finish up compiling your cpp. Copy the part where it says "SCRIPT_DECL" and then it should say something of yours. Copy that all the way till the ":". Make sure to copy this to clipboard (ctrl + c)
Now its time to go back to the solution explorer. Open up both files in your main resources. These should be your Setup.cpp and Setup.h
The Setup.H:
You need to add a line right after "void SetupEbonHold(ScriptMgr * mgr);".
Add this:
Now to the Setup.cpp:
You need to add a line right after "SetupEbonHold(mgr);"
Add this:
Code:
SetupWHATCOMESAFTERYOURSCRIPT_DECL(mgr);
After this you simply press F7 and let it compile. It will add a "script_bin" folder in your trunk\bin\release. Copy that folder into your already compiled server folder. You have just compiled a C++ script!
__________________
NXDHosting.com - For All Your Hosting Needs!
Last edited by Dr. Livingstone; 04-06-2009 at 02:29 PM.
I am a repack wielding nub :*( but thanks to this not anymore but how do i compile a custom script like a c++ teleporter ect. well where to put the scripts before i compile the core. thanks for this guide +rep
Added a guide for that under the installing RivalDB guide. If this guide is helping you out please let me know. Also if you want a guide for something else let me know too.
Having a problem with the mysql. Every time I get to apply security settings it gives me an error. It's not behind a firewall and I haven't uninstalled it. I also seem to get a similar error in navicat about the password.
Resized it sorry about the smaller size earlier. I just shrunk it before because it seemed to big and I couldn't get it back to a larger size...and nvm the rest of the story.