Link Unit Below Tabs

Spacing

Survival Mode Hack Using Charles Proxy





[PATCHED May 3, 2012]

The Depot Hack was patched on April 12, 2012.  Soon after, I published the article "Survival Mode Hack Using Cheat Engine".  In response, I received many comments (most of which I did not publish) that would have been unnecessary if the person making the comment had read the article carefully all the way through.  Don't make the same mistake with this article.

This article will explain essentially the same hack but using Charles Proxy instead of Cheat Engine.  You should take advantage of this hack and make as many items as you want before the hack is patched!


Limitations to using Cheat Engine for the Survival Mode Hack include:
  • You can only create military units--as far as I know--but cannot create consumables (including Tactical Nukes), energy packs, Element Z packs, buildings, decorations, etc.
  • You can only transform to other military units of the same theater as you start out with: land to land, sea to sea, and air to air.
  • You can only transform to other military units that have codes of the same length that you start out with: 3 to 3, and 4 to 4.

All of these limitations can be overcome by using Charles Proxy.  However, there is still one important limitation, even when using Charles:  you must not have any of the items that you are trying to create in your inventory, depots, or empire!

WARNING:  If you make a mistake, be prepared to either surrender and pay a ransom or finish playing Survival Mode.


Step 1 - Preparation

As an example, I will demonstrate how to create Tactical Nuke III's from Cadet Soldiers.  You do not have to use Cadet Soldiers--you can use other units.

You should know the item code and subtype of the item you are trying to create.  Tactical Nuke III's have code N73 and subtype "consumable".

Load the Empires & Allies game.


Step 2 - Set Up Charles Proxy

Open up the Charles Proxy program.  Keep in mind that the free trial version of Charles has a 30-minute time limit before the program closes.

If you are new to Charles, you need to make sure Charles is set up correctly.  I will provide some guidance, but this is not meant to be an exhaustive tutorial on Charles.

First, to avoid complications with Charles, make sure "Secure Browsing" is turned off in your Facebook settings:



If you are playing E&A in Firefox, make sure the Firefox plug-in for Charles was installed when you installed Charles and that the "Mozilla Firefox Proxy" setting is checked as in the image below.  If you are using some other browser, make sure the "Windows Proxy" setting is checked.



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 3 - Set Up Survival Mode

Enter Survival Mode.  Select 1-5 Cadet Soldier to use for battle.  DO NOT press the red "Fight!" button yet!


Step 4 - Enable Breakpoints in Charles

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.


Step 5 - Start Fight

Now press the red "Fight!" button in E&A.

When the first request or response is intercepted and paused by Charles, the "Breakpoints" window will pop up in Charles as in the image below.  The left panel shows all intercepted requests (red up arrows) and responses (red down arrows).

Most likely, after you hit the red "Fight!" button in E&A, the game client will send a request to one of Zynga's game servers.  You should see something like this in Charles:



Select the "Edit Request" tab.  Select the "AMF" tab that you see see near the bottom of the screen (not shown in image above).

Expand the folders.  You should see something like in the image below if you are looking at the correct request.  It is essential that you see "SurvivalModeService.loadSurvivalMode" as the "functionName".  You should see the information for the units (Cadet Soldiers in my example) that you selected before hitting the red "Fight!" button.



Step 6 - Transform

Tactical nukes belong to the subtype "consumable".  Replace "army" in the image above with "consumable" WITHOUT quotation marks.  (You select the field to edit by double-clicking on it.)

Cadet Soldiers have item code U01, which is why you see these codes in the image above.  Tactical Nuke III's item code is N73.  Replace each line starting with U01 with just "N73" WITHOUT quotation marks.  It is sufficient to include only the code--you don't need to include the commas or other numbers. To be faster, once you enter the first new code, copy it, and paste it to the other 4 lines.

Now, hit the "Execute" button near the bottom.  Charles might have captured other requests and responses in the meantime, so execute them all as well.  If you did things correctly, the battle in your E&A game will end and you should see this:



You might get a connection time-out if you took too long to do all this.  That's okay.  You're now more familiar with what to do.  Just start all over and you should be faster the second time.


Step 7 - Repeat and Refresh

If you want to transform more units, repeat steps 3-6, except that you do not need to exit and re-enter Survival Mode.  You also do not need to enable breakpoints again as in step 4 if you never disabled them.

When you are done, exit Survival Mode.  If you check your inventory, the new items might not show up yet.  Refresh the game.  The new items should show up now, and the old units you used for the hack should be back.

Keep in mind that since you now have these new items, you cannot make more of them using this same hack until you get rid of all the new items somehow.

Now you can try and make other items as well: Accuracy III's, Oil Well III's, Engineering Offices, Large Haunted Houses, decors, trees, etc.  You can look up the codes and subtypes of many items in other pages (see the nav-bar of tabs near the top of the blog).


Problems & Trouble-shooting

If you see many "443"s or "default"s in Charles, it might be because you didn't set up Charles correctly or did not turn off secure browsing.  If you are using Chrome, try using Firefox instead.

If you are forced to refresh the game, it's probably because you took too long to look for the correct request and edit it in Charles.  Once I press the red hexagon in Charles and the red "Fight!" button in the game, it only takes me 30 seconds or less before I execute the request.  You need to practice to be fast enough.

  • Make sure breakpoints are set ONLY on the "flashservices" folder of the correct Zynga URL that I gave above--NOT on the entire Zynga URL.  This way Charles won't catch too many requests and responses, which will more likely lead to a time-out and connection error, forcing you to refresh the game.
  • If you are new to Charles, try not to press the red hexagon in Charles until RIGHT BEFORE you need to press the red "Fight!" button.
  • Tip to be faster:  When you edit the lines in Charles for the units/items, you only need to enter the code, not the numbers or commas.  Once you type in the first code, copy it, and paste it to the other four lines.


21 comments:

  1. thanks again... works as usual.. energy produced with ease..

    ReplyDelete
  2. plz help me Charles proxy no work in chrome

    ReplyDelete
    Replies
    1. Many people have problems using Charles with Chrome. To avoid complications, use Firefox.

      Delete
  3. I'm telling you, your tutorials are always so precise and well written that I've always managed to get them right, and I'm no computer wiz. This is the very first time that I'm not able to figure it out. And I'm writing this after trying the whole day to get this hack right, following step by step, I didn't wanted to look like a dummy. I finally give up... I'm a dummy... this is what I'm getting every single time:

    http://imageshack.us/photo/my-images/851/54657248.jpg/

    After examining your post top to bottom, like 40 times (yes I've paid a lot of ransom, lol) I cannot figure out what I'm doing wrong. :/

    ReplyDelete
    Replies
    1. Check the other folders of the same request to see if one of them has the correct function. If none of them do, then that's the wrong request. The request you want to edit won't always be first. When you get the wrong request, just "Execute" it and wait for the correct one to edit.

      Delete
    2. I did it!!! Thank you so much for your help. :)
      BTW, this is my first time using Charles.

      Delete
  4. hello bro sean i need to know what sebtype for enginering office.can u post it thx

    ReplyDelete
  5. What do you write if it's not a consumable, like oil well derick 3? Since it is not an army neither a consumable

    ReplyDelete
  6. hi Sean. I do all steps but In step 6 the survival battle didn't back to "Select theater:" Screen and it continue the battle. I mast refresh the game and I found the 5 new unites but I cant make more of the same unit. Please help me to find the mistake. thank you.

    ReplyDelete
    Replies
    1. I don't know if you meant you HAD to refresh the game. If so, then maybe you took too long to edit in Charles.

      If you want more units, sell the ones you have and start all over.

      Delete
  7. for me it's coming default and 443 number in all breakpoints

    ReplyDelete
    Replies
    1. You probably didn't set up Charles correctly. If you are using Chrome, try using Firefox instead.

      Delete
  8. i tried this many times but after enabling breakpoints survival just doesnt open plz help

    ReplyDelete
    Replies
    1. That's because you pressed the red hexagon early and Charles intercepted the request to load Survival Mode. That's ok, but you have to execute the requests & responses until you get to the point you want.

      Or you could just not press the red hexagon UNTIL right before you need to press the red "Fight!" button.

      Delete
  9. just a question, can i use or deploy 5 different units in survival to build my new units or they should be 5 of the same units only to build my new units?does it also imply the 4 coded to 4 coded and 3 coded to 3 coded when building stuffs?or it will work with any code combination?plz help im just new with this...

    ReplyDelete
    Replies
    1. Yes, you can use 5 different units. You don't have to worry about the codes of the units you start out with.

      Delete
  10. Hi Sean, thank you very much for this wonderful tutorial. Just wanted to know if the titan weapons can be made using this hack. If yes, what is the subtype?

    ReplyDelete
    Replies
    1. Check the "Codes: Tier 7 and Tier 8 Units" page. There are some Titan parts included, and the subtypes are mentioned on top of the page.

      Delete
  11. Sir I am hard pressed to use charles,, it's been a few times I install/uninstall firefox and charles ... but the result is no, this my first time using charles but not working perfectly,, are there any other settings that should be in a Fox? Please explain send to my email ... I've 2 weeks studying charles no result until now ... over time I lazy to play this game because my allies, uses everything, whereas I can't!!!! Why cheat engrine on the cover, but it is most easy to cheat use players empires allis,, 50% of players leaving their permainkan because engrine in the lid, cheat because it could not use charles them so bored with this game.
    Please consider going back to open cheat engrine in order to cheat again as usual,,,,,,,,
    thanks

    ReplyDelete