Wednesday, May 16, 2012

Empire and Allies Super Ore Mine Hack





The Super Ore Mine Hack has been known for a while by many people--probably from the day the Super Ore Mine came out.  It's not hard to figure out if you know how to interpret the game's client/server communication using a proxy like Charles.

The Super Ore Mine allows you to build the four ores that are not your "natural" one.  For instance, if you can naturally build copper, then the other four ores would be aluminum, uranium, iron, and gold. The order of these four ores are used in the game for certain things like quest requirements, military contract costs, and the Super Ore Mine.

The Super Ore Mine Hack modifies the amount of resources that Super Ore Mine contracts give out by changing the multipliers.  It's also possible to get ores that you haven't unlocked for the Super Ore Mine in the game yet, as well as oil, wood, and coins!  (I don't think many people know about the coins part.)

For this hack, I assume you know how to use Charles Proxy.  If you don't know how to use it but don't have the motivation and dedication to learn how to use Charles properly, then hacks like this are not for you!

Keep in mind that I haven't played the game much lately.  I built the Super Ore Mine just for this hack.  I haven't bothered to unlock all the resources or multipliers beforehand.

I suggest you learn how to perform this hack quickly and get yourself a reasonably large amount of each ore, wood, oil, and coins.  Zynga may patch this hack quickly, but they probably won't take away your millions or billions of resources (if you don't act stupidly by bragging about it openly).  Don't be too greedy or you may run into problems with the numbers for your resources.

If you are learning this hack for the first time, first try hacking the first ore in your Super Ore Mine--skip steps 5 and 6 below.


Step 1 - Preparation


You should have a Super Ore Mine built so that it's possible for you to start a contract for at least one resource.  It's not necessary to unlock all the resources or multipliers.  (It may not even be necessary to unlock any of the resources, but I haven't checked that.)

Have the Empires & Allies game loaded.

Load Charles Proxy.  Make sure breakpoints are set for the "flashservices" folder of the URL "http://fb-client-zc.empire.zynga.com".  DO NOT set it on the Zynga URL itself.


Step 2 - Enable Breakpoints in Charles and Refresh Game


Enable breakpoints in Charles by pressing the red hexagon.  This tells Charles to intercept and pause all requests from the client to the server and all responses from the server to the client.

Refresh the game.  (To avoid stray requests & responses, you can refresh the game first and then enable breakpoints in Charles.  You just need to time it correctly, which shouldn't be too hard since it takes the game so long to load.)


Step 3 - Find "initUser" Response

There may be stray requests or responses that came from before you refreshed the game.  You need to be able to recognize these and abort, cancel, or execute them to make them go away.

After the refresh, the client sends a request with the function "UserService.initUser" to the server to load the game.  Execute this request.  The AMF response will be very large.  It contains a lot of data that the server sends to the client to tell it how to load the game with your settings.  The response looks like this:



Step 4 - Edit "unlockedResource"

Under the "data" folder, look for "unlockedResource".  In this folder are all the resources that you have unlocked for your Super Ore Mine.  The following image shows only aluminum because I haven't unlocked the other ores yet.  It shows a "1" because that is my current multiplier and I haven't unlocked higher multipliers yet.



Double-click on the "1" (or whatever integer you have) to edit it.  Change it to a large number such as "99999999" WITHOUT quotation marks (or commas or periods).  Pick a number large enough so that you don't have to purchase too many contracts later on.  Don't use a number too large or you will get an error message in Charles.  I used eight "9"s; nine "9"s would be too many.

If you are skipping the next two optional steps, then execute the response and turn off breakpoints in Charles.  If you are doing steps 5 and 6, do not execute the response yet.


Step 5 (Optional) - Edit "unlockedResource": Continued

This step and the next step are to hack ores that you haven't unlocked within the game, as well as oil, wood, and coins.  If you want to produce large amounts of an ore you have already unlocked in the game, skip these steps.

Double-click on the resource name ("aluminum" in my image/example) to edit it.  Change it to the resource you want to hack.  You need to do this if you are hacking oil, wood, or coins.

If you are hacking another resource at the same time, edit the lines for those as well.


Step 6 (Optional) - Edit "resourceOrder"

Open up the "userInfo" folder and then the "world" subfolder.



Look for the "resourceOrder" subfolder:



The image shows the four ores that are not your "natural" one, but you might not have all of them unlocked for your Super Ore Mine.

You need to edit a resource that you have already unlocked for your Super Ore Mine, either within the game or through hacking in the previous step.  If you have more than one resource unlocked, you can edit more than one here.  As an example, I will work with the first row, which starts with "[0]" and happens to be for aluminum for me but may be different for you.

First, click on the "String Reference" on the first row and change it to "String".  Double-click on the name of the ore on the first row to edit it ("aluminum" in my image/example, but it may be different for you).  Change it to the ore that you want to unlock, or to "oil", "wood", or "coins".  (If you have more ores unlocked for your Super Ore Mine and want to edit those, go ahead.)

The resource(s) that you hack here should correspond to the resources that you hacked in the previous step.

Execute the response.  Turn off breakpoints in Charles.


Step 7 - Contract Purchase and Collection

Let the game load.  Click on the Super Ore Mine.  You will see something like this:



The numbers for the resources you see in the contracts are the base numbers multiplied by the multiplier that you entered in step 4.  Select the shortest-term contract, "Weighted Wealth", which only takes 15 minutes to complete.  There may be a way to shorten the actual time you need to wait, but I haven't investigated that.

DO NOT refresh the game before the contract completes.  To be safe, don't do anything else in the game so that you aren't forced to refresh the game.  (If you must do something in the game, at least don't visit neighbors or engage in battles.)  If the game is refreshed, all the settings you edited will default back to the settings saved on the game server and you will have to repeat the edits.

When the contract completes, collect the resource from the Super Ore Mine.  You can see the resource amount updated in your resources bar at the top of your game screen.  (You need to expand the bar to see all the resources.)

Repeat the contract purchase and collection for the same resource as many times as you want before refreshing the game.  However, you should have chosen a number large enough in step 4 so that you shouldn't need to purchase more than one or a few contracts.


Step 6 - Repeat

If you want to hack other resources, repeat steps 2-7 for those other resources.
Related Posts Plugin for WordPress, Blogger...
Your Ad Here