+ Reply to Thread
Results 1 to 2 of 2

Thread: [PICS] How to compile HearthStone!

  1. #1
    MMOpro Owner Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry's Avatar
    Join Date
    Mar 2009
    Location
    Serbia
    Posts
    1,290
    Thanks
    15
    Thanked 27 Times in 24 Posts
    Rep Power
    10

    [PICS] How to compile HearthStone!

    Hey all! [Only registered and activated users can see links. ]

    I've seen people having problems and people having absolutely no idea of how to compile hearthstone, so i decided to make a guide for it.

    Note that this is how to compile a server from SCRATCH, no repack or anything.

    Please visit : [Only registered and activated users can see links. ] for more of this amazing emu!

    1.0 - Downloads
    1.1 - Part 1 (Obtaining a copy of the source)
    1.2 - Part 2 (Aspire libraries)
    1.3 - Part 3 (Compiling your core)
    1.4 - Part 4 (Compiling your scripts)
    1.5 - Part 5 (Acquiring Client Files)
    1.6 - Part 6 (Importing your database)
    1.7 - Part 7 (Final configurations)




    1.0

    [Only registered and activated users can see links. ]
    [Only registered and activated users can see links. ]
    [Only registered and activated users can see links. ]
    [Only registered and activated users can see links. ]
    [Only registered and activated users can see links. ]

    1.1

    You can start by making a new folder at your harddrive. (C:\)
    Name it whatever you want, but in this tutorial we are gonna call it "Hearthstone - Compile"

    Right click on it, press "SVN Checkout..." and this window should appear :

    [Only registered and activated users can see links. ]

    In the "URL of repository:" you put this:

    svn://svn.aspiredev.org/AspireCore/trunk



    Hey all! [Only registered and activated users can see links. ]

    I've seen people having problems and people having absolutely no idea of how to compile hearthstone, so i decided to make a guide for it.

    Note that this is how to compile a server from SCRATCH, no repack or anything.

    Please visit : [Only registered and activated users can see links. ] for more of this amazing emu!

    1.0 - Downloads
    1.1 - Part 1 (Obtaining a copy of the source)
    1.2 - Part 2 (Aspire libraries)
    1.3 - Part 3 (Compiling your core)
    1.4 - Part 4 (Compiling your scripts)
    1.5 - Part 5 (Acquiring Client Files)
    1.6 - Part 6 (Importing your database)
    1.7 - Part 7 (Final configurations)




    1.0

    [Only registered and activated users can see links. ]
    [Only registered and activated users can see links. ]
    [Only registered and activated users can see links. ]
    [Only registered and activated users can see links. ]
    [Only registered and activated users can see links. ]

    1.1

    You can start by making a new folder at your harddrive. (C:\)
    Name it whatever you want, but in this tutorial we are gonna call it "Hearthstone - Compile"

    Right click on it, press "SVN Checkout..." and this window should appear :

    [Only registered and activated users can see links. ]

    In the "URL of repository:" you put this:
    Code:
    svn://svn.aspiredev.org/AspireCore/trunk
    When it's finish downloading, it should say something similar to "Done at revision XXXX"
    That is your core revision!

    1.2

    Go into C:\HearthStone - Compile\extras\dependencies\ then open the 'DLL Files' folder, and copy the 2 .dll files inside.

    Then navigate to C:\Windows\system32\ and pase the two .dll files there.

    Navigate to C:\HearthStone - Compile\extras\dependencies\VC\lib and copy the files there.

    Paste them in your <Visual C++ path>\VC\lib. (The default path is C:\Program Files\Microsoft Visual Studio 9.0\VC\lib)

    Also copy the files inside C:\HearthStone - Compile\extras\dependencies\VC\include.

    Paste them in C:\Program Files\Microsoft Visual Studio 9.0\VC\include.

    Now we're gonna compile the zlib and PCRE libraries, open C:\Hearthstone - Compile\extras\dependencies\Sources and start the open "VC90-solution.sln
    ".

    Do exactly as this pic says :

    [Only registered and activated users can see links. ]

    When it's done, make sure there is no "Failed" at the bottom.

    Now navigate to C:\HS-Compile\trunk\extras\dependencies\Sources\Output_R elease and copy the two .lib files in there, zlib.lib and pcre.lib.

    Pase them into C:\Program Files\Microsoft Visual Studio 9.0\VC\lib.

    Note : This only has to be done once per compile!

    1.3

    First of all, navigate to C:\HS-Compile\trunk\extras\collision\collision_dll\ and open "collision_vc9.sln"
    Set output to "Release" and platform to "Win32".
    Then "Build Solution".

    Now Navigate to C:\HearthStone - Compile\win\ and open "heartstoneVC90.sln"

    Do as you did before when compiling, change the output to "Release" and then "Build Solution".

    When it's done, make sure it doesn't have any "Failed" at the end.

    Now the core is compiled! Simple as that! [Only registered and activated users can see links. ]

    1.4

    Navigate to C:\HS-Compile\trunk\src\scripts\ and open "scripts2008".
    Once again, change the output to "Release" and then "Build Solution"

    Make sure there's no "Failed" at the end when it's done compiling.

    Right now your compiled core is located at C:\HS-Compile\trunk\bin\Release!

    1.5

    Download this file! : [Only registered and activated users can see links. ]

    From the extractor pack, copy the files in the MPQE folder over to your World of Warcraft\Data\enUS directory.
    Open command prompt. Navigate to the directory using the cd command, like so;

    cd C:\Program Files\World of Warcraft\Data\enUS

    Then execute the following command;

    mpqe /p locale-enUS.MPQ DBFilesClient\*.dbc

    We also have to put the dbc folder in the "server folder" (It will come later in the guide)

    And then we need to extract the maps!

    From the extractor pack, copy the ad.exe file to your client's root directory - World of Warcraft\. Create a folder called "maps" and start ad.exe. It should start extracting map files from your client.

    We have to put the "maps" folder in the "server folder" also

    (Thanks Aspire wiki!)

    1.6

    Download MySQL - [Only registered and activated users can see links. ] and install it.

    Make a new folder called "LPDB" and put it on your desktop. Now right-click -> SVN Checkout...
    In the URL put in
    [Only registered and activated users can see links. ]
    And start downloading it.

    When it's done, navigate to Desktop\Lost project DB\trunk\ and open the "LPDB Importer" using Notepad.

    Change what i changed in this pic:

    [Only registered and activated users can see links. ]

    User : root
    pass : Your mysql password

    Then run the LPDB Importer.bat and this will appear :

    [Only registered and activated users can see links. ]

    Type "w" and press enter, wait until it's done importing the world database.

    When it's done, re-open it and type "c" and press enter and wait until it's done importing the logon and character database. Then exit.

    Now you got a compiled core, compiled scripts and a Database! Almost done!

    1.7

    Now we are gonna put everything together.
    Make a new folder anywhere on your computer, name it whatever you want but i'll use "server folder" in this tutorial.

    Navigate to C:\HS-Compile\trunk\bin\Release\ And copy the following files :

    Hearthstone-world.exe, hearthstone-logonserver.exe, hearthstone-realmserver.exe, hearthstone-voicechat.exe and script_bin folder.

    Now navigate to your "server folder" and paste these files.
    Then navigate to C:\HS-Compile\trunk\extras\collision\collision_dll\Relea se\ and copy "Collision.dll" and paste that together with the logonserver.exe, world.exe.

    Alot of back and forth [Only registered and activated users can see links. ] Navigate to C:\HS-Compile\trunk\src\ and copy all the .conf files (hearthstone-world.conf, hearthstone-realmserver.conf, hearthstone-logonserver.conf and hearthstone-voicechat.conf)

    Paste these into your "Server folder" together with your .exes.

    Now we're gonna edit them to match your server information.
    Open up "hearthstone-logonserver.conf" with Notepad.

    Locate this and change the red parts:

    <LogonDatabase Hostname = "localhost"
    Username = "MySQL username"
    Password = "MySQL password"
    Name = "Name of your "Logon" database. The one that includes the table "accounts""
    Port = "3306"
    Type = "1">
    Also find and change the red parts here:

    <LogonServer RemotePassword = "W/e you want, remember it!"
    AllowedIPs = "Read in the conf file about this"
    AllowedModIPs = "Read in the conf file about this">
    Close and save your logonserver.conf and open your world.conf

    Locate and change the red parts:

    <WorldDatabase Hostname = "localhost" Username = "mysql username" Password = "mysql password" Name = "Name of world database" Port = "3306">
    <CharacterDatabase Hostname = "localhost" Username = "mysql username" Password = "mysql password" Name = "Name of character database" Port = "3306">
    And locate this in your world.conf and change the red:

    RemotePassword = "The same remote password as in the logonserver.conf">
    And atlast, close world.conf and open realmserver.conf and locate and change the red parts:

    <Realm1 Name = "Realm Name"
    Address = "127.0.0.1:8129"
    Icon = "PVP"
    Colour = "1"
    Population = "1.0"
    TimeZone = "1">
    You're done! Congratulations and i hope this guide was useful, i put down ALOT of time in it.

    -Ubbelol [Only registered and activated users can see links. ]

    Credits :
    Ubbelol
    Aspiredev for parts of the guide and an awesome emu
    Lost Project DB for the database
    Did i miss someone? Then tell me!

  2. #2
    Banned TheSerbianEllite is on a distinguished road
    Join Date
    Nov 2009
    Location
    Serbia,Prokuplje
    Posts
    201
    Blog Entries
    5
    Thanks
    1
    Thanked 2 Times in 1 Post
    Rep Power
    0

    Nice Turtual Jerry

+ Reply to Thread

Similar Threads

  1. Compile MaNGOS On Linux
    By Jerry in forum Mangos Guides
    Replies: 0
    Last Post: 07-12-2009, 06:17 AM
  2. How to compile arcemu 3.1.x
    By Jerry in forum ArcEmu Guides
    Replies: 0
    Last Post: 07-11-2009, 04:34 PM
  3. Compile Mangos on Ubuntu
    By Jerry in forum Mangos Guides
    Replies: 6
    Last Post: 07-08-2009, 07:38 AM
  4. How to compile Mangos 3.1.X!
    By Jerry in forum Mangos Guides
    Replies: 0
    Last Post: 07-05-2009, 04:46 PM
  5. Replies: 0
    Last Post: 06-26-2009, 08:56 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts