How to Use dnSpy to Reverse Engineer Unity Games [ TUNIC ]

Поділитися
Вставка
  • Опубліковано 11 вер 2024

КОМЕНТАРІ • 117

  • @StephenChapman
    @StephenChapman  2 роки тому +84

    Always make a backup of your files before you modify them! Oh, and brush your teeth twice a day and wear deodorant! :D

    • @dyonis5143
      @dyonis5143 2 роки тому +1

      Where can i download this Tunic demo it's not available on steam anymore ? I like the game and a good one to test on :)

    • @StephenChapman
      @StephenChapman  2 роки тому +5

      @@dyonis5143 You'll unfortunately have to wait until the next time they make the demo available again. But there are lots of Unity game demos on Steam to practice with! Steam lets you filter by games with demos, so it's easy to find them. =)

    • @dyonis5143
      @dyonis5143 2 роки тому +1

      @@StephenChapman Super thanks for the info

    • @shaiksaif4304
      @shaiksaif4304 2 роки тому

      Hello sir, can you make a video on assassin's creed odyssey hack with cheat engine 🙏

    • @Bloopblop1
      @Bloopblop1 2 роки тому

      Be amazing if you can show us how to code the main addresses and offsets in c++ or C# that way i can make hacks that my friends can use be amazing love your explanation ❤️

  • @Fligger
    @Fligger 2 роки тому +8

    Awesome Introduction into dnSpy!
    The screen layout is perfect!
    Nice to see some new videos. :)

  • @yorzengaming
    @yorzengaming 2 роки тому +6

    Funny when you explained some stuff about "Door" class someone was actually knocking on your door :D

  • @DrGold-ks1mp
    @DrGold-ks1mp 2 роки тому +11

    Super easy to understand and helpful! Cheat Engine is nice, but it's even cooler to just edit the code of the game. Excellent presentation as well, I really like this new setup, showing the magnified points of interest of the game. Fantastic work, Stephen

  • @IllIl
    @IllIl 2 роки тому +4

    Great video! Definitely going to try this out on some Unity games.
    In reference to 17:20 it could be cool to see your full approach including all mistakes and the entire figuring out process. I learn a lot from seeing someone's problem solving process.
    Thanks for the video!

  • @Hyginx
    @Hyginx Рік тому +2

    Saved my life in a CTF, man. Thank you so much!

  • @Cryptonat
    @Cryptonat 2 роки тому +16

    Is there a way to use dnSpy in conjunction with Cheat Engine to find the method in memory for making cheats? If so, I'd love to see some sort of tutorial or information for that.

    • @StephenChapman
      @StephenChapman  2 роки тому +16

      Absolutely! Chris over at Cheat The Game did a video showing a good technique for that: ua-cam.com/video/ZRxoimkScs0/v-deo.html
      You could also use the Mono Dissector in CE itself. There is a LOT that has been updated with it since I did this video, but I give a basic intro to it here: ua-cam.com/video/YYpl4WHpcS4/v-deo.html

    • @Cryptonat
      @Cryptonat 2 роки тому +6

      @@StephenChapman Awesome! Thanks Stephen. I'll check them out.

  • @anjat0
    @anjat0 2 роки тому +6

    would you possibly be able to show a Unity game that uses IL2CPP? I'm trying to figure out The Last Stand Aftermath but when I think something could work, either nothing happens or the game crashes. I currently have been able to make an infinite health and infinite ammo AOB script but I'm looking to create a DLL injection and try different things using mono dissector / .NET info

  • @whocares6763
    @whocares6763 2 роки тому +2

    First like then watch. The Content is always worth it.

  • @pogo7201
    @pogo7201 2 роки тому +1

    This is really underrated! Thank you a lot. You might have inspired me for a new passion.

  • @niravukani1371
    @niravukani1371 2 роки тому +3

    Hello sir,
    Hope you are doing well. I have one question.
    Can we reverse engineering IL2CPP build games? If yes please let me know how to do.

  • @_CryptoCat
    @_CryptoCat 2 роки тому +2

    super clear and detailed, love it bro! 😻

  • @chrisfayte8482
    @chrisfayte8482 2 роки тому +5

    Sorry Im a little late work has been hectic. Amazing vid bro!! Also is it Ok if I use your free cam script to make my vid and share with others? You know Ill give you full credit and everything.. Thank you pal.

    • @StephenChapman
      @StephenChapman  2 роки тому +3

      Of course! Use it however you'd like, pal. :)

    • @chrisfayte8482
      @chrisfayte8482 2 роки тому +3

      @@StephenChapman Thank you so much pal I really appreciate it.. Im still playing around with it plus I want give your instructions another run through but Im getting there. I appreciate everything you do bro.

    • @StephenChapman
      @StephenChapman  2 роки тому +3

      @@chrisfayte8482 Looking forward to seeing what you make with it! I have a sort of 2.0 cam script to do some videos on at some point, so once you get the current stuff under your belt, I think you'll enjoy what's to come! :)

    • @chrisfayte8482
      @chrisfayte8482 2 роки тому +3

      @@StephenChapman I look forward to it bro.

  • @invincibleHunter
    @invincibleHunter 2 роки тому +1

    whenever i put dll in the dnspy it loads as pe what should i do?

  • @JasonPegasus
    @JasonPegasus 2 роки тому +2

    do you know what i should to do if theres not "managed" folder?

    • @okamivs6494
      @okamivs6494 2 роки тому +1

      did you find the solution?

    • @Starrs_mods
      @Starrs_mods Рік тому

      @@okamivs6494 i have not Did you?

  • @dewmi4403
    @dewmi4403 2 роки тому

    Very happy to see you just again😎

  • @ShadowMax2K
    @ShadowMax2K 2 роки тому +2

    Thank you, really wanted this kind of guides. If you have Patreon, I will sure follow and subscribe. Let us know.

  • @chrisfayte8482
    @chrisfayte8482 2 роки тому +1

    Amazing lesson Stephen, I learned some things I didnt even realize. Thank you for this!

  • @DARK-SKY1337
    @DARK-SKY1337 2 роки тому +1

    This doesn’t have anything to do with dnspy but with Minecraft. How do I make an AOB script that I can turn on or off or just turn on using a pointer with a set aob value. I can’t check the cheat or it locks my location with moving aob value. I want to be able to put the values I want in each cheat aob script so that it doesn’t lock me.
    I found someone that found a way to teleport to the places they’ve been and found aob value using cheat engine but they didn’t find the pointer. Someone made a cheat engine table with the xyz cords on it also with the pointer so I backup the aob values for it, then I went to another spot and pasted the data back in and it worked and send me back where I backup the aob values of 66 bytes.
    What I’m asking in short is to make an aob script that injects 66 bytes of data from the pointers location?

  • @Mythtician
    @Mythtician 2 роки тому

    This is by far the best debugger.
    Question: Comments I make in the debugger, after you click Compile, it vanishes from view. What setting allows me to view commentations? and prevent them from being deleted?

  • @NightfallChease
    @NightfallChease 2 роки тому +1

    We need more videos!

  • @ErichDAtriGuiran1
    @ErichDAtriGuiran1 2 роки тому

    keep putting out videos homie!!

  • @russneho
    @russneho 2 роки тому +1

    Nice work mate, easy to understand and follow.

  • @furryfan87243
    @furryfan87243 2 роки тому +1

    So could this be used to extract GameCube models and levels from an ISO file?

  • @ThaimachineFilms
    @ThaimachineFilms 2 роки тому

    what if dnspy cant read the dll or there will be only a few things to be edit. maybe its packed in anyway. how to find or how to depacked it ?

  • @krzysztofjarzyna4225
    @krzysztofjarzyna4225 2 роки тому

    Instant subscription. You are welcome!

  • @djsvrlaivwfofj
    @djsvrlaivwfofj Рік тому

    @Stephen Chapman Some unity games do not have a managed folder or asssembly-csharp.dll in its folders, but cheat engines mono features still show them loaded into the game, how do we find and edit those with dnspy?

  • @amimirmimir512
    @amimirmimir512 Рік тому

    thanks for helping me change the bpm in space invaders extreme

  • @LastRoze
    @LastRoze 2 роки тому +1

    Legend! thanks man.

  • @androidlogin3065
    @androidlogin3065 2 роки тому

    Since TUNIC SaveGame has a lot of lines with a pair (nave|value) for a lot of elements, how can dnSpy be used to find chests? I had seen 243 chests by now and not sure (after 13 full passes on the game) if are any more.
    By 'find' i mean two basic things:
    1.- Know if an specific chest name 'chest open #' (that not yet appears on the SaveGame) really exists on the game
    2.- If it is possible, where on the map is that chest (firstly i love to find them on the map by myself)
    Just to start as an example of one chest i can not yet find: 'chest open 1009' ... from 1008 it jumps to 1010.
    Also there are other 'elements' on the SaveGame that i can not find inside the game, they appear on the SaveGame with a value of 0 (not finded/used), some has DEMO as part of the name, others has 'ladder', etc., are things that may be on the game but i can not reach/find.
    How all this stuff can be found with dnSpy?
    Any help is wellcome, thanks in advance.
    P.D.: I hope you know that the iin-game menu optios has two optios to activate no damage recieved and no stamina lost.

  • @bigsweaterman8142
    @bigsweaterman8142 2 роки тому

    I'm trying to decompile a game that uses "YarnSpinner" for dialogue. It seems like it turns a text file into json or some other file type that I don't even recognize. Any suggestions?

  • @Starrs_mods
    @Starrs_mods Рік тому

    Thank you for this video Im trying to figure out how to undisable something in a game when its disabled on certain parts of the game

  • @6Iack
    @6Iack 2 роки тому

    Could you point me in the right direction to where I can find out how to find interface windows in code so I can remotely trigger an interface from any location?

  • @TraceguyRune
    @TraceguyRune Рік тому

    Subtracting 1 from 0 on something like that wouldn't crash the game,
    but instead of deleting you should use a ternary condition.
    Item.Quantity = (quantity - 1 < 0) ? 0 : quantity - 1

  • @MysticAlankar
    @MysticAlankar 2 роки тому

    Thanks a lot for this tutorial!

  • @perguto
    @perguto 2 роки тому +2

    Where did you get the Mono version of Tunic? My version seems to be compiled via il2cpp

    • @StephenChapman
      @StephenChapman  2 роки тому +2

      Yeah, the demo version was what I used (since that's all that was out when I made the video). While you can still use dnSpy for modding IL2CPP binaries, it's pretty messy to do and has a fairly high barrier to entry. So instead of dnSpy, Cheat Engine's IL2CPP features are recommended. The tradeoff is that you will end up with a cheat table for use with Cheat Engine each time you play the game as opposed to a patched DLL, but something's better than nothing!

    • @StephenChapman
      @StephenChapman  2 роки тому

      @@user-pv4vi6fg2w They could be doing any number of things. If it's browser-based, then there's a whole world of server connectivity you're not going to see with Cheat Engine. You can use a web proxy like Fiddler to MITM data, or a traffic monitor like Wireshark to deeply inspect/craft packets.
      You could try a cursory view of the game's API endpoints via Chrome's devtools -> Network tab -> Toggle XHR and see what pops up as you play. Those will be requests/responses to/from servers (but that includes everything, like social media sites or whatever else they bake into their game/page).
      You can potentially glean a lot about the approach they're using just by the name of the endpoints they use. They might have custom integrity checks implemented that makes it easy to see when you've done something to artificially bloat your score. Consider a different approach than what you're doing and see what happens. Maybe your score contains an illegal number (like ending in 5 if it's not possible to have a score ending with that number because all values are even). It could literally be anything.
      Anyway, if this is all unfamiliar territory that I'm mentioning, then I would expect to spend many months/years researching and getting good at it. It's a completely separate skill from everything you do with Cheat Engine, but a very good one to have in your toolkit if you're interested enough in it.

    • @StephenChapman
      @StephenChapman  2 роки тому

      @@user-pv4vi6fg2w They can't detect applications due to browser sandboxing (if you're actually playing in a Chromium-based browser, Firefox, etc.). It sounds like timing/session/window focus integrity implementations in JS, possibly obfuscated.

  • @robsonm7016
    @robsonm7016 2 роки тому +1

    GREAT VIDEO, TANK YOU!!!!

  • @dreadedascendance2005
    @dreadedascendance2005 Рік тому

    Could you possibly make more in depth videos about using dnspy with some other games like perhapse for when a user presses alt-f9 they get their hp reset to max as well as their stamina if possible it would be appreciated since I'm new to dnspy

  • @ChaosCrischen
    @ChaosCrischen 2 роки тому

    Interesting but I think not really what I need. Is there a way to read the values of variables of a Unity Game while it's running?

  • @alexanderher7692
    @alexanderher7692 2 роки тому

    I tried this, but after saving module and running exe it has no effect? How can devs detect people doing this

  • @notforvideoschannel
    @notforvideoschannel Рік тому

    Hello, I have problem. I tried to update unity mono source code from 2019.2.1-mbe to 2019.2.19 with Git, but when I wrote umpatcher 2019.2.19 f93c5973976e4bec5e769a31a73f00003f0a32dc "D:\GitRep\mono" "D:\GitRep\dnSpy-Unity-mono" it says that it's Copying files from D:\GitRep\mono to D:\GitRep\dnSpy-Unity-mono\unity-2019.2.19, but nothing happens, I checked it in Task Manager. It just stays still and says Copying files forever. How to fix that?

  • @gauravthapa4380
    @gauravthapa4380 2 роки тому

    Bro I always get a error while Compiling when I double click the error then it shows the Red colour code text Please help me..

  • @nr4873
    @nr4873 2 роки тому

    Do you think you could take a look at crab game? I'm pretty new to game modding, i had a look in the game files and there doesn't seem to be much in the game assembly file :(

  • @dave8650
    @dave8650 2 роки тому

    Hi, do you know sir how i can prevent myself from chat block from mmorpg. Im shouting world 5x and it blocks me from chatting in game for 1min.

  • @storiesofvalue
    @storiesofvalue 2 роки тому

    i play this attack on titan fanbase game
    i want to make titans walk through
    i found the body parts assembly but i dont know how to edit them to make myself pass through the titan's body
    help pls

  • @JoeFay_Tech
    @JoeFay_Tech Рік тому

    i have a little request. we want a simple tutorial video on how to create craft without materials cheat.

  • @ivanosei6360
    @ivanosei6360 2 роки тому

    Please I have a question.. can a game like Vikings war of clans be hacked?

  • @speedifix919
    @speedifix919 2 роки тому

    do you can create criticals hack in minecraft java? this it could even be a challenge

  • @Hoi-art
    @Hoi-art Рік тому

    Do you also have a discord channel by any chance?

  • @majiddeveloper9237
    @majiddeveloper9237 2 роки тому

    Wow, that's great.. Can I suggest you a game for you to modify.. It will help us a lot ❤️

  • @phitc4242
    @phitc4242 2 роки тому

    hey I was wondering if you have/could explain how to call lua functions from asm?

  • @user-pf9jv1fl2n
    @user-pf9jv1fl2n 2 роки тому

    Stephen Chapman You should try a game on steam called Squally it teaches you X86 and X64 you may like it since the idea of it is to basically hack the game to gain a advantage etc.

  • @jake_dev1046
    @jake_dev1046 2 роки тому

    How could i get the Assembly-CSharp TUNIC game

  • @Akshitguleria7
    @Akshitguleria7 2 роки тому

    i need your help with some RE on some game, how can i get in touch?

  • @hebrux
    @hebrux Рік тому

    how do you bring up searchbar?

  • @angryman9333
    @angryman9333 Рік тому

    You didn't do any runtime debugging...

  • @chengyue1269
    @chengyue1269 2 роки тому

    Can you help me crack an APK compiled by Unity Editor? I would like to import the game into Android Studio, modify packagename and make it work. I'm willing to pay a lot of money for that.

  • @lythrongaming
    @lythrongaming 2 роки тому

    Yo, i wanna ask for help. Did anyone knows how to extract the string/addresss into an image by using Cheat Engine? I think it is possible

  • @antonellabellucci
    @antonellabellucci Рік тому

    can i get full unity project with this?
    please let me know
    Thanks for the video

  • @blubms8593
    @blubms8593 2 роки тому

    only for offline games right?

  • @dangerx6979
    @dangerx6979 2 роки тому

    does it work with apk files?

  • @gamerstech8185
    @gamerstech8185 2 роки тому

    Hello sir please could give us a tutorial on how to cheat mortal kombat 11 skins and other unlockables of game with cheat engine?

  • @JackAdams0
    @JackAdams0 2 роки тому

    can you please show how to hack Red Dead Redemption 2, for stuff like infinite health, stamina and deadeye. I cannot for the life of me figure this game out. I think the values might be encrypted...or not. Would very much appreciate if you could look into it, pal

  • @MultiJtx
    @MultiJtx 2 роки тому

    as well with dnSpy you can unlock unowned DLC..

  • @markwasfy9230
    @markwasfy9230 2 роки тому +1

    does it work on mobile unity games too ?

    • @StephenChapman
      @StephenChapman  2 роки тому

      Yep!

    • @markwasfy9230
      @markwasfy9230 2 роки тому

      @@StephenChapman i tried to decompile a apk file and the developer some how got the assembly in Managed file hidden

    • @markwasfy9230
      @markwasfy9230 2 роки тому +2

      @@StephenChapman i just digged around and found out that he using ll2Cpp as a backend can you make a video about how we can deal with that and how we can dump the files and get assembly files and mod it thanks in advance :D

  • @sksarker7343
    @sksarker7343 2 роки тому

    Can you make a video about hacking and making script of serious Sam hd 1,2 or 3. There is a problem when it

  • @micheallovis5369
    @micheallovis5369 2 роки тому

    Can You Make A game Trainer For Me For a Price If yes how can we get in Touch thanks

  • @cpaussiemods4252
    @cpaussiemods4252 2 роки тому

    can u do a video on how to hack kings of avalon on ios and android, hacking gold mainly

  • @adelxa9879
    @adelxa9879 2 роки тому

    Can u hack cuphead with new dlc ??

  • @florsolussoglia
    @florsolussoglia 2 роки тому

    hola como estas? puedes hackear con cheat engine el juego para android evony the kings return? utilizo Memu. thx

  • @muhammadfawadali129
    @muhammadfawadali129 2 роки тому

    Does it (dnspy) is available in mobile. Please.

    • @StephenChapman
      @StephenChapman  2 роки тому +1

      You can use it on mobile games made with Unity. Look up "dnSpy Android" on UA-cam to see. You'll still need to run dnSpy on a computer, though.

    • @muhammadfawadali129
      @muhammadfawadali129 2 роки тому +1

      @@StephenChapman So much love from Pakistan.

  • @GAMEBR0VIP2462
    @GAMEBR0VIP2462 Рік тому

    is this il2cpp ?. jw because when i compile i get 10K errors even if i change nothing

  • @colinshack552
    @colinshack552 2 роки тому

    Do you make game trainer For a Price it is hard for me to do the value doesn't change if u can make a trainer for me for a price am ready sir

    • @Starrs_mods
      @Starrs_mods Рік тому

      bro this dude could lowkey make a business making and selling these lol

  • @justforyoutube1319
    @justforyoutube1319 2 роки тому +1

    😁

  • @hytalefanboi7471
    @hytalefanboi7471 2 роки тому

    Pro tip: if the game is made with IL2CPP instead of mono this method wont work.

  • @dagger6432
    @dagger6432 2 роки тому

    I have every dlc in 911 operator now 🤣🤣

  • @kiocode
    @kiocode 4 місяці тому

    Mono games brother

  • @PRINCE555YT100
    @PRINCE555YT100 2 роки тому

    How to make aimbot.exe

  • @MrZabidik
    @MrZabidik 2 роки тому

    pls make dragon mania legends hack

  • @fuckingu
    @fuckingu Рік тому

    Is it possible to use cheat engine's pointer scan with LD player?
    When I tried it did not work at all.
    I know Lin Engine but it needs to be rooted.
    When I find an exact value of a game, it's changed even though I modified.
    Is there anything that I can make any games of mod apk?

  • @theparashari5833
    @theparashari5833 2 роки тому

    Please make video on BGMI or PUBG mobile game. hack .

  • @mnageh-bo1mm
    @mnageh-bo1mm 2 роки тому +1

    great topic , but not we need more simplified and explanation
    i fell like i understood nothing

    • @StephenChapman
      @StephenChapman  2 роки тому

      What, in particular, were you confused about?

    • @mnageh-bo1mm
      @mnageh-bo1mm 2 роки тому +2

      @@StephenChapman all the video haha.
      i will try to watch it again maybe the problem is with me.

    • @dyonis5143
      @dyonis5143 2 роки тому +1

      It's easy bro he also teaches basic c# coding

    • @HunterAshner
      @HunterAshner 2 роки тому

      If you start working with unity to make games for fun this stuff will make sense very fast and it is a great way to pick up programming

  • @fuckingu
    @fuckingu Рік тому

    I know how to decompile and make dll file.

  • @AHOneOOne
    @AHOneOOne 2 роки тому

    Do you have discord i can speak to you on? i need a little help

  • @wa6
    @wa6 2 роки тому

    what do you think about this._damage = this.maxhp - this.maxhp