1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Modding Unity & Its Dll's: Starter Pack + Tutorial

Discussion in 'Tutorials' started by Tallon007, Mar 10, 2015.

  1. Tallon007

    Tallon007 Advanced Member

    Joined:
    Mar 10, 2015
    Messages:
    64
    Likes Received:
    27
    [​IMG]

    Modding Unity & Its Dll's: Starter Pack + Tutorial (Tallon007)


    Just thought id put this together as not everyone who wants it may not have it :) Net Reflector Has been put into a Custom installer (I like to Piss about) lol, Anyway, Whats included is:

    Net Reflector v8.5 VSPro + Activator (For those Wishing The Latest Version)
    Net Reflector v8.2 (PreCracked But Older)
    Advanced ApkTool v4.1.
    Java SE v8 Build 31 DevKit

    Net Reflector relies on M$ .Net so ive included 4.5 in the install.. ApkTool is used to decompile/recompile apks, It does a lot more but thats the basic, Java is required for most things Apk so thats included also.. Download links are all ZippyShare & ive kept a backup in case there ever deleted..

    Setting up each program 1: (Net Reflector v8.5 VSPro)

    Run the installer, Program installs to C:\Program Files\ Once done start the program up & click Tools, Then Add-Ins, + Sign, Then navigate to the Addins folder & add Reflexil.. Once done Reflexil will be added.. Reflexil is used to make better sense of the Code that we wish to modify later..

    Setting up each program 2: (Advanced ApkTool v4.1.0)

    Extract the Advanced ApkTool folder from the Rar & put the folder into the Root of your main hard drive ( C:\Advanced ApkTool\ ) So its like this..

    Setting up each program 3: (Java SE v8 Build 31 DevKit)

    Extract the Exe to your dektop & install, Once done goto your Advanced ApkTool folder & double click the Advanced ApkTool.exe, This will check your installation is correct.. You should now have a basic setup for modifying Unity Based Android Games..

    Moddifying an Apk game's files using Reflector:

    Game we will be moddifying is (Bruce Lee Enter The Game v1.1.1.6359)
    Lucky Patcher was used to back the game up after installing it from the Playstore..

    Download Link (To the original Files)

    Download the files & extract them to your desktop, You will have the games Apk & its required Obb folder with its Obb file inside.. Open up the APK using Winrar so you have the same as the pic below..

    [​IMG]

    Now double click the assets folder, Then the Bin folder, Then the Data folder & finally the Managed folder, Then drag the Assembly-CSharp.dll to your desktop.. This is the file we will be Modding.. (You can copy the whole Managed Folder if you wish) ..


    Now double click Net Reflector & start the program up, Click tools & make sure youve added the Reflexil.dll correctly by making sure you see the same as the pic below..

    [​IMG]

    If youve the same carry on reading (If not go back to the top & re-read)

    Make sure you select Reflexil so it loads up inside Reflector, Youll notice a new box appear bottom center right.. Now take the Assembly-CSharp.dll that you put on your desktop & drag it into the left pane of the Net Reflector program, The pic above, You can see the dll's already loaded.. Now click Tools, Then Search & make sure you click the extra button top right so that its the same as the pic below..

    [​IMG]

    Now in the search bar I want you to type in get_softCurrency & then double click on the 1st result that pops up which should be (Get_softcurrency)-(CurrencyManager) Give it a few moments to load.. Youll notice the string we searched for has popped up at the bottom of the page allowing us to see the code that we are going to edit, Editting this correctly will load the amount we specify into the game.. See pic below..

    [​IMG]

    Under Opcode I want you to Right Click ( ldfld ) & delete it as we dont want this code loaded, Now right click ( ldarg.0 ) & click Edit, Under Opcode I want you to select ( idc.i4 ) & then for the Operand Type select Int32, Then under Operand I want you to put 99999999 & then click update

    (idc.i4 Pushes a supplied value of type int32 onto the evaluation stack as an int32 & the Operand is the amount your pushing..)

    If youve followed everything correctly what you should have will be the correct code for loading 999,999,999 Coins into the game.. See pic below to check..

    [​IMG]

    Now in the search bar I want you to type in get_hardCurrency & then double click on the 1st result that pops up which should be (Get_hardcurrency)-(CurrencyManager) Give it a few moments to load.. Youll notice the string we searched for has popped up at the bottom of the page allowing us to see the code that we are going to edit, Editting this correctly will load the amount we specify into the game.. See pic below..

    [​IMG]

    If youve followed everything correctly what you should have will be the correct code for loading 999,999,999 Jade Nuggets into the game.. See pic below to check..

    [​IMG]

    Now in the search bar I want you to type in get_energy & scroll down till you see (Get_Energy)-(EnergyManager) & double click it, Give it a few moments to load.. Youll notice the string we searched for has popped up at the bottom of the page allowing us to see the code that we are going to edit, Editting this correctly will load the amount we specify into the game.. See pic below..

    [​IMG]

    If youve followed everything correctly what you should have will be the correct code for loading 999,999,999 Hearts into the game.. See pic below to check..

    [​IMG]

    You start with 5 hearts & loose them as you fight, This will allow you to fight for as long as you wish without having to wait for them to regenorate..

    Once you have eddited those 3 things carefully use the slider to go back to where the Assembly-CSharp is in the left pane & right click it, Then goto Reflexil & click Save As making sure you (Save the file as Assembly-CSharp) Make sure you save the file to a different location to the original...

    Now you should have your moddified Dll ready for putting back into the APK
    For those of you who know how to sign an APK just go ahead & skip this part for those who dont, Read on...


    Open your Apk & naviate back to the Managed Folder, Drag & drop your modified file, Now we need to use the Advanced APKTools that we put in C:\ earlier, Take the Apk we have modded & put it in the 4-Done folder, Start the program & select number 4 to Sign the file, Once done place the newly modded Apk on your device remembering to also put any other files there like Obb or Data...

    The following are phrases that can be searched for, Im obviously missing lots as im also very new to this, If you find a new phrase you can always PM me & ill add it to the list..

    Coins
    Gold
    Gems
    Diamonds
    Cash
    Money
    Bucks
    get_XXX
    getXXX
    softCurrency
    hardCurrency
    get_softCurrency
    get_hardCurrency
    Soft Currency is the main currency
    Hard Currency is the premium currency


    Extra Credit Goes to DivineGamr for helping me with my first Mod
     
    #1 Tallon007, Mar 10, 2015
    Last edited: Mar 10, 2015
    Nirvash, Barboy, darkghoulL and 10 others like this.
  2. Tallon007

    Tallon007 Advanced Member

    Joined:
    Mar 10, 2015
    Messages:
    64
    Likes Received:
    27
    Only been modding Unity for a couple of weeks so this is as indepth as I can manage at the mo but it will allow someone to get to grips with very basic modding :)

    If someone knows how to Mod the unlimited Fury posting that would be great as I wouldnt mind knowing myself, I understand some of the code but not enough just yet..
     
    Keijie likes this.
  3. hiyall360

    hiyall360 Mr. Pringles
    Staff Member Cracking Team

    Joined:
    Apr 22, 2014
    Messages:
    1,269
    Likes Received:
    637
    Flawless, perfect for beginners wanting to learn how to mod, thanks for sharing Tallon007
     
    agent33, Diege and Tallon007 like this.
  4. hiyall360

    hiyall360 Mr. Pringles
    Staff Member Cracking Team

    Joined:
    Apr 22, 2014
    Messages:
    1,269
    Likes Received:
    637
    I'm actually really good friends with DivineGamr and taught him a lot :) good to know he's teaching others ^-^
     
  5. Tallon007

    Tallon007 Advanced Member

    Joined:
    Mar 10, 2015
    Messages:
    64
    Likes Received:
    27
    HaHa yeah I busted his balls real good on the very 1st game I attempted to mod :) Im still only learning, as in Basic, I have the mind for it but as ive found out proper modding info is like Rocking horse shit.....
     
  6. hiyall360

    hiyall360 Mr. Pringles
    Staff Member Cracking Team

    Joined:
    Apr 22, 2014
    Messages:
    1,269
    Likes Received:
    637
    Modding fury is a bit different, I'm not sure if you know about "singles" yet, but they're very similar to "int32"

    int32 = ldc.i4
    single = ldc.r4

    treat these the exact same way.

    how to do fury:

    search for "furygainonhit"

    you should find something called "furyGainOnHit : Single"

    treat it like how you treated the others, but instead, when you edit, change the opcode to "ldc.r4" and the operand to "single" enter a high number as you would for int32's.

    have fun :)
     
    dragon13294 and agent33 like this.
  7. Tallon007

    Tallon007 Advanced Member

    Joined:
    Mar 10, 2015
    Messages:
    64
    Likes Received:
    27
    Yeah I seen all them lines as I searched for 2 hours & was pretty sure I was in the right place haha, But I was like a retard with a hardon, NOT sure what to do with it :( lol
     
  8. hiyall360

    hiyall360 Mr. Pringles
    Staff Member Cracking Team

    Joined:
    Apr 22, 2014
    Messages:
    1,269
    Likes Received:
    637
    Another cool thing is modifying a "boolean" function

    Boolean is basically True or False.

    You treat these the same way as int32's, but only a bit different.

    True = ldc.i4.1 (select "none" for operand)

    False = ldc.i4.0 (select "none" for operand)

    then return.
     
    dragon13294 and nekochan23 like this.
  9. Tallon007

    Tallon007 Advanced Member

    Joined:
    Mar 10, 2015
    Messages:
    64
    Likes Received:
    27
    Aah very cool, Devine sort of tried explaining that but I hadnt got into it just yet... But very cool that youve said it, Nice to see helping people as im that way inclined myself :)
     
  10. hiyall360

    hiyall360 Mr. Pringles
    Staff Member Cracking Team

    Joined:
    Apr 22, 2014
    Messages:
    1,269
    Likes Received:
    637
    These are basically the most useful when all else fails. Most are so obvious too, for example:

    IsInvincible : Boolean <--- lol right?

    ldc.i4.1
    ret


    Now you're invincible.

    (this isnt a bruce lee example though)

    I would just hit ctrl+F and type in ": boolean" --- make sure you add that colon.
     
  11. Tallon007

    Tallon007 Advanced Member

    Joined:
    Mar 10, 2015
    Messages:
    64
    Likes Received:
    27
    Genius :) 0's & 1's lol
     
  12. Beast

    Beast Member

    Joined:
    Feb 28, 2015
    Messages:
    18
    Likes Received:
    0
    do u know what string should i search for hacking invalid moves in candy crush
     
  13. Tallon007

    Tallon007 Advanced Member

    Joined:
    Mar 10, 2015
    Messages:
    64
    Likes Received:
    27
    If you mean Me, Ive NO idea sorry, Not sure its something I would of thought to Mod either lol....
     
  14. Beast

    Beast Member

    Joined:
    Feb 28, 2015
    Messages:
    18
    Likes Received:
    0
    i saw it in candy crush saga hacked by riu..
     
  15. aidenpearce

    aidenpearce Guest

    Will do some advanced tuts when I get free, like recoding parts of code. Mainly using better tools like ilasm. ;)

    BTW hiyall instead of saying single you must say float but well its OK :)
     
  16. hiyall360

    hiyall360 Mr. Pringles
    Staff Member Cracking Team

    Joined:
    Apr 22, 2014
    Messages:
    1,269
    Likes Received:
    637
    I know that, I said single cause the beginners are not going to know not to look for "float" in the operand.

    I personally use ILdasm for most things.
     
  17. Beast

    Beast Member

    Joined:
    Feb 28, 2015
    Messages:
    18
    Likes Received:
    0
    how to hack temple run 2 using this method?? plz post a tutorial..
     
  18. Tallon007

    Tallon007 Advanced Member

    Joined:
    Mar 10, 2015
    Messages:
    64
    Likes Received:
    27
    That tutorial took me nearly 3 hours to write out lol :) If temple run is a Unity game then youve more than enough info to get up of your arse & have a go :) That was the whole point of me doing it, To help people who help themselves....
     
  19. Tallon007

    Tallon007 Advanced Member

    Joined:
    Mar 10, 2015
    Messages:
    64
    Likes Received:
    27
    Ok does anyone know how to edit Drop amount within a game, Ive been given a few hints but nothing thats really helped, Ive searched the code for everything pertaining to Gold & cant find it, Also searched Dropitems & tried editing that but nothing in game was changed the drops were still 3 or 2 or 5 gold each time :(
     
  20. hiyall360

    hiyall360 Mr. Pringles
    Staff Member Cracking Team

    Joined:
    Apr 22, 2014
    Messages:
    1,269
    Likes Received:
    637
    Things to add to your search are "count" and "amount"

    you could also cross reference the gold function to see where it adds gold and just multiply that. Lots of ways to go about doing this, only named a few.
    cross referencing in reflector is "Analyze" (ctrl+R) you'll see what the function is used by, and what it depends on.
     
    agent33 likes this.
Loading...
  • About Us

    Android Republic - Android Game Hacks - Offering only the most advanced and exclusive android hacks, protections like Xigncode are easily bypassed by our team.

    Exclusive Android hacks, android protections cracked, only the best available games, here you will find only the best games such as Kritika, Summoners War, Raven, Dragon Striker, Avabel, Evil Bane, 7knights and seven knights, Darkness Reborn, Soul Seeker all fully hacked and waiting for you! easy xigncode and dxshield bypass too!, way better than alpha gamers or alphagamers no need for booster or root, simple the best android cheat apk available.