Network: WoW Gold | WoW Accounts | MPS Games | FPSowned
MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides
Homepage »      Register »      Hall of Fame »      Ranks And Awards »      Advertise »      Marketplace »
 
Sign up



Do you like this excellent information? Then Donate HERE to remove ads and support the MMOwned community.


Go Back   MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides > WoW Emulator Server > Emulator Server Guides

Emulator Server Guides Guides for working with World of Warcraft Emulator servers. Learn how to create a WoW Server here.
[NO QUESTIONS HERE]

Reply
 
LinkBack Thread Tools
  #1  
Old 05-13-2009
Vindicated's Avatar
Vindicated is offline.
Contributor
  
 
Join Date: Aug 2008
Location: USA
Posts: 1,057
Reputation: 213
Points: 3,189, Level: 5
Points: 3,189, Level: 5 Points: 3,189, Level: 5 Points: 3,189, Level: 5
Level up: 49%, 411 Points needed
Level up: 49% Level up: 49% Level up: 49%
Activity: 21.8%
Activity: 21.8% Activity: 21.8% Activity: 21.8%

How to Compile Hearthstone Core

How to Compile Hearthstone Core
By Vindicated

Hey guys! I'm back with another one of my guides. However, this time I have taken some input from others and decided to add more pictures . I will also add a video later on, but for now I'm really busy with exams and all.

Anyways, what is Hearthstone? Hearthstone is a branch of the AspireCore (now integrated into the trunk of AspireCore) that was created in late November. It is based off of the Summit leak a while back. Yes, it does have
3.1.3 support! It is a really good, stable core that is usually the first major emulator to receive support for the new patch. I may also interchange the words AspireCore & Hearthstone throughout the guide. I will also explain how to setup Hearthstone.

Note - Please note that the "trunk" is 3.0.9, not 3.1.3. For 3.1.3, you must browse to the "branches/3_1_0" folder and follow the exact same instructions as you would for 3.0.9, just in that folder. Thanks!


Table of Contents:
I. Downloads
II. Getting the Repository
III. Setting up Dependencies
IV. Compiling Hearthstone
V. Compiling Scripts
VI. Setting up the Database
VII. Setting up the Configuration Files
VIII. Extracting DBC/Map Files
IX. Running Hearthstone
X. Links

I. Downloads

Microsoft Visual C++ 2008 - [Only registered and activated users can see links. ]
TortoiseSVN - [Only registered and activated users can see links. ]
Navicat Lite - [Only registered and activated users can see links. ]
MySQL 5 - [Only registered and activated users can see links. ]
Extractors -
[Only registered and activated users can see links. ]

II. Getting the Repository
Alright, well in order to compile Hearthstone we need the files on our computer first right? First, create a folder on your desktop and call it "Hearthstone". Right-click the folder and click "SVN Checkout...". Then fill out the first field so that it reads:
svn://svn.aspiredev.net/AspireCore. Then click ok. Refer to the picture of you have any questions.

Click the image to open in full size.

The files will start downloading. This can take anywhere from five minutes to an hour, so go do something in real life that actually matters during this time.

Note - To update your repository (do this once or twice a day), right click the folder and choose "SVN Update...".

III.
Setting up Dependencies
In my opinion, this is the hardest part of compiling. However, it only has to be done once per compiler (unless you uninstall Visual Studio), so don't get too caught up on this; just make sure you get it one time and then you will be done with it.

First, I want you to open up your Heartstone folder that you "checked out" the repository from. Browse to the "trunk/extras/dependencies" folder. Open up another folder and browse to "C:\Program Files\Microsoft Visual Studio 9.0\VC". Go back to the dependencies folder and browse to "dependencies\VC\include". Copy these files into "Microsoft Visual Studio 9.0\VC\include". Copy the files in
"dependencies\VC\lib" to "Microsoft Visual Studio 9.0\VC\lib".

Now browse to "dependencies\Sources". Double click the VC-90 solution file. If you are on a 64 bit computer (most are not), go to the top of the window and change the "Win32" to "x64" by clicking the dropdown box. Click the drop-down arrow next to the word "Debug" and change it to release. Now you need to use the keyboard shortcut F7. Refer to the picture if you have further questions.

Click the image to open in full size.

Now browse to the "dependencies\Output_Debug" and the "dependencies\Output_Release" and copy the .lib files (zlib & pcre) into the "C:\Program Files\Microsoft Visual Studio 9.0\VC\lib" folder. Finally, copy the two DLL files into "C:\Windows\System32". You are now on your way to becoming a daily compiler!

IV.
Compiling Hearthstone
This part is very simple. Browse to the "trunk\win" folder. You should "compile" this the same way that you did when compiling your dependencies. First, if you are x64 remember to change "Win32" at the top to "x64". Second, remember to change "Debug" to "Release". Finally, you need to use the keyboard shortcut F7 to compile.

When it is done compiling, go to the "bin" folder. This is under either the "aspirecore\trunk" directory. Open up the Release folder and you will see your .exe files . Create a folder on your desktop called "Compiled HS". Copy/paste the .exe files only into this folder. You do NOT need to copy the other files.

Note - To update your Hearthstone core, you first need to update your SVN. Then you need to recompile BOTH the core (what we just did) and the scripts (what we are about to do)

V. Compiling Scripts
This part is easy. It is just doing what we have done in the previous sections. Browse to the "src\scripts" folder and double-click the "scripts2008" solution file. Set the build to "Release" and hit F7 (and change to x64 if you are 64 bit). Browse to your "bin" folder again, and copy/paste the script bin folder into your "Compiled HS" folder. Again, you only need the .DLL files, so you can delete the rest of the files in the script_bin folder.

VI. Setting up the Database
There are many ways you can setup your database. I am just going to tell you the way you that you can keep it up-to-date. To actually add content, you need a Hearthstone database. There really is no good one available at the moment, so I will just show you how do this with a blank database. I assume you have already installed the MySQL & Navicat files at the beginning of this guide.

First, open up Navicat Lite. Click on the green "Connection" button in the top left corner. For the connection name, put "Hearthstone". For the "Password" field, put your MySQL password that you created when you installed MySQL. Leave the rest as they are and click "Ok".

Now you should see a connection in the window pane on the left-hand side of the program. Double click it and then right click it. Choose "New Database...". Enter the name of "Hearthstone_World" and choose ok.
Next, double click then right click our database name (Hearthstone_World) and choose "Execute Batch File...". Click the "..." button and browse to "Hearthstone/trunk/sql/" and choose the "WorldTemplate" file. Click ok and the sql file will "execute". Click ok when it is done.

Now open up the "Execute Batch File..." window again. Go to the folder
"sql\world updates". Notice the prefix on the "WorldTemplate" SQL file we just executed. We are going to want to choose EVERY query past that number. Do this one at a time until all the updates are applied. Please note that this is just the TEMPLATE for the world database, and does not actually contain data. For data (Like items, NPCs, and spawns), follow this guide on installing RivalDB: [Only registered and activated users can see links. ].

Now create another database (by right-clicking the connection name) and name this one "Hearthstone_Logon". Execute the account & character templates and execute all the updates past the number on the template. You now have an up-to-date database!

Go into the "accounts" table in your "Hearthstone_Logon" database. Fill out logon/password fields, GM field (put "az" for administrator and "a" for GM), and flags (put 24 for WotLK). Click the little check mark at the bottom to save!

Note - To update this, you just need to apply the updates you have NOT already applied and are not before the prefix number. Just watch the SVN Checkout to see if new SQL updates are added that will need to be applied.


VII. Setting up the Configuration Files
This is where, most of the time, people screw up. I will NOT show you how to make it public, but I will show you how to set the configuration files (.conf) up for a localhost server, or a server just for you. I suggest you refer to this guide for getting your server public: [Only registered and activated users can see links. ].

First, you need to copy the configuration files from the "src" folder, the folder you go through to get to your scripts folder. Copy/paste the four configuration files into your "Compiled Hearthstone" folder. Follow the pictures for setup.

Hearthstone-World.conf

Picture #1: Notice that every field on these lines changed exept the "Port" field.

Click the image to open in full size.

Picture #2: The first box is for changing your server rates and your Message of the Day. The second line of information you just delete completely.

Click the image to open in full size.

Picture #3: Make sure you spell this right!

Click the image to open in full size.

Picture #4: Change the "0" to "1" to enable lua scripts!

Click the image to open in full size.

Picture #5: Delete this portion as you did in Picture #2.

Click the image to open in full size.

Save this file and exit out.

Hearthstone-Logonserver.conf

Picture #1: Remember to make sure you spell things correctly.

Click the image to open in full size.

Picture #2: This number is the number in the bottom-left hand corner of WoW.exe when started up. Change both numbers to that number to restrict the patches in which users need and/or don't need.

Click the image to open in full size.

Picture #3: The RemotePassword needs to be the same as the one in the Hearthstone-World.conf file.

Click the image to open in full size.

Save the file and exit out.

You can also edit the Hearthstone-Realms.conf, but that is very self-expanitory. Don't worry about Hearthstone-Voicechat.conf file.

Once again, these only need to be filled out once unless Hearthstone updates a configuration file, then you need to redo that .conf file.

VIII. Extracting DBC/Map Files
This only needs to be done once per patch. This is very simple and easy to do. I assume you downloaded the extractors at the beginning of this guide.

First, copy the ad.exe file to the folder with WoW.exe in it. Create a folder called "maps". If you are on Vista, run this file as Administrator. Otherwise, just double-click it as normal; the maps will start to extract. This can take anywhere from 5 minutes to 30 minutes. Again, I STRESS that you go outside and get some sunshine. Now copy the maps folder to your "Compiled HS" folder.

Second, copy the files in the DBC folder to the "World of Warcraft\Data\enUS (or enGB or whatever). Run the .bat file provided, this will only take a few seconds. You should have gotten some sunshine when I told you too!!! Now open up the "MPQOUT/DBFilesClient" folder and copy the .DBC files into the "Compiled HS/dbc" folder (which you will have to make yourself). You are now done with extracting the necessicary client files (For vmaps and collsion support, I will write another guide later).

Alternative - You can download the 3.1.3 Aspire DBCs from here: [Only registered and activated users can see links. ].


IX. Running Hearthstone
To run Hearthstone:
1.) Start MySQL (If it doesn't start automatically)
2.) Start Hearthstone-World.exe
3.) Start Hearthstone-Logon.exe
4.) Change your realmlist to "set realmlist 127.0.0.1"
5.) Start WoW.exe
6.) Enjoy!

X. Links
AspireDev -
[Only registered and activated users can see links. ]
AspireCore Forums - [Only registered and activated users can see links. ]
AspireCore SVN - svn://svn.aspiredev.net/AspireCore
AspireCore Trac - [Only registered and activated users can see links. ]
AspireCore Irc - irc://irc.mmoforge.org/AspireDev
Rival Database - [Only registered and activated users can see links. ]

Once again, my guide is NOT perfect and I am open to suggestions. Expect a video to be up within the next two weeks. If you need support, please reply to this thread! If you used it, please comment!

Thanks again,
Vindicated aka SectorSeven

__________________
To Write Love On Her Arms <3

Last edited by Vindicated; 08-07-2009 at 05:31 PM.
Reply With Quote


Donate to remove ads, get your "DONATOR title, and get access to the MMOwned community's elite Shoutbawx.

  #2  
Old 05-13-2009
lesone is offline.
New User
  
 
Join Date: Dec 2007
Posts: 51
Reputation: 1
Same as ArcEmu but with a different SVN
Reply With Quote
  #3  
Old 05-13-2009
sasoritail's Avatar
sasoritail is offline.
Contributor
  
 
Join Date: Sep 2008
Location: No(r)way
Posts: 620
Nominated 5 Times in 2 Posts
Reputation: 149
Points: 4,482, Level: 6
Points: 4,482, Level: 6 Points: 4,482, Level: 6 Points: 4,482, Level: 6
Level up: 98%, 18 Points needed
Level up: 98% Level up: 98% Level up: 98%
Activity: 23.0%
Activity: 23.0% Activity: 23.0% Activity: 23.0%

Epic guide m8.
__________________
Reply With Quote
  #4  
Old 05-13-2009
Fuynuns93's Avatar
Fuynuns93 is offline.
Sergeant Major
  
 
Join Date: Sep 2007
Posts: 172
Reputation: 25
Points: 1,323, Level: 2
Points: 1,323, Level: 2 Points: 1,323, Level: 2 Points: 1,323, Level: 2
Level up: 85%, 77 Points needed
Level up: 85% Level up: 85% Level up: 85%
Activity: 0.7%
Activity: 0.7% Activity: 0.7% Activity: 0.7%

Nice guide, It's easy to understand and very well organized. x2
__________________

Reply With Quote
  #5  
Old 05-13-2009
Fuynuns93's Avatar
Fuynuns93 is offline.
Sergeant Major
  
 
Join Date: Sep 2007
Posts: 172
Reputation: 25
Points: 1,323, Level: 2
Points: 1,323, Level: 2 Points: 1,323, Level: 2 Points: 1,323, Level: 2
Level up: 85%, 77 Points needed
Level up: 85% Level up: 85% Level up: 85%
Activity: 0.7%
Activity: 0.7% Activity: 0.7% Activity: 0.7%

I got a problem. When I go to Execute the WorldTemplate it says.

Code:
[Err] 1065 - Query was empty
[Err] ;
[Msg] Finished - Unsuccessfully
--------------------------------------------------
__________________

Reply With Quote
  #6  
Old 05-13-2009
ShiverMeTim is offline.
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
  
 
Join Date: Jan 2009
Posts: 6
Reputation: 2
Having a problem...

When I try to compile it 'Skips' compiling...

I'm running 64 but when I compile as 64 I get the output:

Code:
1>------ Skipped Build: Project: pcre ------
1> 
2>------ Skipped Build: Project: zlib ------
2> 
========== Build: 0 succeeded or up-to-date, 0 failed, 2 skipped ==========
Compiled 32 I get:

Code:
========== Build: 2 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
Only the .lib files are generated however, and not the .dll files...

Do you mean the OTHER supplied DLL files? (libeay32.dll / libmysql.dll) ?

Edit: Yeah, I don't think it will compile under x64 unless I'm doing it wrong. But the 32bit compile works perfectly.

Edit2: Also MPQE (Extractors) doesn't work on x64 and it's known. Have to use WinMPQ instead...

Last edited by ShiverMeTim; 05-13-2009 at 03:56 PM.
Reply With Quote
  #7  
Old 05-13-2009
ShiverMeTim is offline.
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
  
 
Join Date: Jan 2009
Posts: 6
Reputation: 2
Quote:
Originally Posted by Fuynuns93 View Post
I got a problem. When I go to Execute the WorldTemplate it says.

Code:
[Err] 1065 - Query was empty
[Err] ;
[Msg] Finished - Unsuccessfully
--------------------------------------------------
You can tell it to skip errors and it seems to continue the query on errors (checkbox). Not sure if it's the right thing to do though...
Reply With Quote
  #8  
Old 05-13-2009
Dr. Livingstone's Avatar
Dr. Livingstone is offline.
Knight-Lieutenant
  
 
Join Date: Mar 2008
Posts: 250
Reputation: 71
Points: 1,052, Level: 2
Points: 1,052, Level: 2 Points: 1,052, Level: 2 Points: 1,052, Level: 2
Level up: 31%, 348 Points needed
Level up: 31% Level up: 31% Level up: 31%
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Very nice guide once again Vindicated. if I can.
__________________

NXDHosting.com - For All Your Hosting Needs!
Reply With Quote
  #9  
Old 05-13-2009
Vindicated's Avatar
Vindicated is offline.
Contributor
  
 
Join Date: Aug 2008
Location: USA
Posts: 1,057
Reputation: 213
Points: 3,189, Level: 5
Points: 3,189, Level: 5 Points: 3,189, Level: 5 Points: 3,189, Level: 5
Level up: 49%, 411 Points needed
Level up: 49% Level up: 49% Level up: 49%
Activity: 21.8%
Activity: 21.8% Activity: 21.8% Activity: 21.8%

When it skips, just go over to the panel on the right-hand side and right click the "project name" (pcre & zlib) and choose build.

And thanks for all the responses (:
__________________
To Write Love On Her Arms <3
Reply With Quote
  #10  
Old 05-16-2009
HunterTure is offline.
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
  
 
Join Date: May 2009
Posts: 13
Reputation: 1
I am getting a major problem here.

Code:
[Err] 1050 - Table 'achievement_rewards' already exists
[Err] -- ----------------------------
-- Table structure for achievement_rewards
-- ----------------------------
CREATE TABLE `achievement_rewards`(
`achievementid` int(10) UNSIGNED NOT NULL ,
`title_alliance` int(10) UNSIGNED NOT NULL ,
`title_horde` int(10) UNSIGNED NOT NULL ,
`itemid` int(10) UNSIGNED NOT NULL ,
PRIMARY KEY (`achievementid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Achievement System';
[Msg] Finished - Unsuccessfully
--------------------------------------------------
it looks similar to the problem that Fuynuns93 is getting, any ideas?

Last edited by HunterTure; 05-16-2009 at 11:22 AM.
Reply With Quote
  #11  
Old 05-16-2009
Vindicated's Avatar
Vindicated is offline.
Contributor
  
 
Join Date: Aug 2008
Location: USA
Posts: 1,057
Reputation: 213
Points: 3,189, Level: 5
Points: 3,189, Level: 5 Points: 3,189, Level: 5 Points: 3,189, Level: 5
Level up: 49%, 411 Points needed
Level up: 49% Level up: 49% Level up: 49%
Activity: 21.8%
Activity: 21.8% Activity: 21.8% Activity: 21.8%

If you get errors, which you will, just move on to the next query . And you should execute the templates into a BLANK database.
__________________
To Write Love On Her Arms <3
Reply With Quote
  #12  
Old 05-16-2009
AzolexX's Avatar
AzolexX is online.
Contributor
  
 
Join Date: May 2007
Location: Serbia
Posts: 497
Nominated 7 Times in 1 Post
Reputation: 174
Points: 4,046, Level: 6
Points: 4,046, Level: 6 Points: 4,046, Level: 6 Points: 4,046, Level: 6
Level up: 50%, 454 Points needed
Level up: 50% Level up: 50% Level up: 50%
Activity: 11.2%
Activity: 11.2% Activity: 11.2% Activity: 11.2%

Smart people use repacks....Full Blizzlike 3.0.9 fully scripted with arcscript...
__________________

Apoc: Step 1) Make shit work.
Apoc: Step 2) Make shit pretty.
azolex: than eat it
Reply With Quote
  #13  
Old 05-16-2009
Clain is offline.
Banned
  
 
Join Date: Jan 2008
Posts: 1,412
Reputation: 179
Points: 5,933, Level: 8
Points: 5,933, Level: 8 Points: 5,933, Level: 8 Points: 5,933, Level: 8
Level up: 49%, 567 Points needed
Level up: 49% Level up: 49% Level up: 49%
Activity: 8.0%
Activity: 8.0% Activity: 8.0% Activity: 8.0%

Smart people use repacks....Full Blizzlike 3.0.9 fully scripted with arcscript...
Reply With Quote
  #14  
Old 05-18-2009
Net_Creator is offline.
New User
  
 
Join Date: Mar 2008
Posts: 4
Reputation: 1
Mmmm, Vind? I have no playercreateinfo when I extract from the SQL. Know what I can do to populate the playercreateinfo, or should I take it from my ArcEmu? (Not sure if ArcEmu and Hearthstone handle the playercreateinfo the same way)
Reply With Quote
  #15  
Old 05-21-2009
funnydk is offline.
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
  
 
Join Date: Jul 2008
Location: Denmark
Posts: 2
Reputation: 1
Points: 249, Level: 1
Points: 249, Level: 1 Points: 249, Level: 1 Points: 249, Level: 1
Level up: 63%, 151 Points needed
Level up: 63% Level up: 63% Level up: 63%
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%

Am i supposed to have a MySQL.exe or something like that?
Cuz i don't.. >_>

Last edited by funnydk; 05-21-2009 at 06:53 PM.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On



All times are GMT -4. The time now is 04:35 PM.




Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.1

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493