Create and Fuck your AI Slut -70% OFF
x

Tutorial Unity Cracking Unity Games - Ultimate Guide for dummies

5.00 star(s) 2 Votes

povertas

New Member
May 11, 2024
14
3
21
Thanks for all the tutorials, uncle!


I've been slappin' my brains trying to disable the patreon access (via custom code or boolean=true) for this game:
https://f95zone.to/threads/inn-another-world-v0-07b-dagotto.104553

unsuccessfully...


I've tried everything: searched for 'patreon', checked all methods for 'version', 'encrypt', 'key'.

From the structure of the csharp dll, I can see the whole cheat menu is hidden behind a successful patreon code, but latest versions have a different code, and a possible method of offline generation of a code escapes me.

Is there anyway to just enable the gUI presence of the cheat menu somehow? Make it appear by default when playing the game sequence?
 
  • Like
Reactions: Uncle Eugene

Uncle Eugene

Active Member
Modder
Respected User
Jun 6, 2020
597
4,560
426
Thanks for all the tutorials, uncle!


I've been slappin' my brains trying to disable the patreon access (via custom code or boolean=true) for this game:
https://f95zone.to/threads/inn-another-world-v0-07b-dagotto.104553

unsuccessfully...


I've tried everything: searched for 'patreon', checked all methods for 'version', 'encrypt', 'key'.

From the structure of the csharp dll, I can see the whole cheat menu is hidden behind a successful patreon code, but latest versions have a different code, and a possible method of offline generation of a code escapes me.

Is there anyway to just enable the gUI presence of the cheat menu somehow? Make it appear by default when playing the game sequence?
Edit: "Sorry, I didn't undestand your progress when answered at first, remaking the answer..."

So, yeah, nobody said that you would hit the method you need right away.
mickymouse already told you where to find the method you need, but the idea goes like so:
  1. Find the method / field / property / whatever that is at least somehow connected to what you're looking for. In your case - Cheat Menu class, good
  2. Now read the code and find the next logical thing. If it's cheat menu - "ok, how it is shown? Method 'ShowCheatMenu', cool. But what triggers this method?"
  3. Click with right mouse button -> "Analyze", go through "Used By" - there are all the methods where this ShowCheatMenu is called from. Find what you need there
I do now understand that I didn't focus enough on the usage of Analyzer while there were opportunities every time we needed to find something. My bad. Tried to not overwhelm beginners with a lot of stuff at once
 
Last edited:

charmingpotato

New Member
May 8, 2021
13
9
22
Awesome stuff. I really enjoyed it and your content is amazing! I have no understanding of Unity but I was able to understand everything. Good work.

Just one small thing to point out. In your last tutorial you have written:

On your right you can see "Solution Exploerer" window. Double click on Program.cs to open it
While this should be `Plugin.cs`. It's a minor thing but someone who is not very familiar with programming might not know where to look.
 
  • Heart
Reactions: Uncle Eugene

Uncle Eugene

Active Member
Modder
Respected User
Jun 6, 2020
597
4,560
426
Awesome stuff. I really enjoyed it and your content is amazing! I have no understanding of Unity but I was able to understand everything. Good work.

Just one small thing to point out. In your last tutorial you have written:



While this should be `Plugin.cs`. It's a minor thing but someone who is not very familiar with programming might not know where to look.
Glad to hear that, fixed the typo

Did you have any experience with programming/C# tho?
 

charmingpotato

New Member
May 8, 2021
13
9
22
Glad to hear that, fixed the typo

Did you have any experience with programming/C# tho?
Not with C# though. I've been a full stack developer for around 3 years, and now I am a certified blue-teamer + a master's degree in Cyber Security so I am not new to decompiling and reverse engineering. But I have 0 knowledge of game development mechanics as that is a completely different realm from what I do.
 
  • Like
Reactions: Uncle Eugene

yulta

New Member
Jul 10, 2023
7
20
113
I had some issues earlier about netstandard versions and I figured that it was an issue within my packages: NETStandard.lib using 2.0 when the original game's assembly is using 2.1. I thought I needed to download something again, or change the target framework (which actually has no correlation with what I'm trying to achieve) but it was, in fact, an issue with my version. Here's what you would get trying to build a solution when your version is lower than the one you should have.

1759153250938.png

So I scrapped everything again and went back to getting dotnet to create my folder, except that this time, I would run it using NETStandard2.1 as my version... except, this happens when you first open Visual Studio with the plugin's solution.

1759153488125.png

Figured I needed to change my SDK, small issue: I have already an SDK that supports .NETStandard2.1. I go over to change the target framework.

1759153628150.png

Nothing. I don't really know why my frameworks aren't presented as options here but I'll leave it at that for now. Eventually I'll find out why I'm not able to see my target frameworks but I didn't have enough time.
 

Uncle Eugene

Active Member
Modder
Respected User
Jun 6, 2020
597
4,560
426
I had some issues earlier about netstandard versions and I figured that it was an issue within my packages: NETStandard.lib using 2.0 when the original game's assembly is using 2.1. I thought I needed to download something again, or change the target framework (which actually has no correlation with what I'm trying to achieve) but it was, in fact, an issue with my version. Here's what you would get trying to build a solution when your version is lower than the one you should have.

View attachment 5295271

So I scrapped everything again and went back to getting dotnet to create my folder, except that this time, I would run it using NETStandard2.1 as my version... except, this happens when you first open Visual Studio with the plugin's solution.

View attachment 5295283

Figured I needed to change my SDK, small issue: I have already an SDK that supports .NETStandard2.1. I go over to change the target framework.

View attachment 5295285

Nothing. I don't really know why my frameworks aren't presented as options here but I'll leave it at that for now. Eventually I'll find out why I'm not able to see my target frameworks but I didn't have enough time.
dotnet new bep6plugin_unity_mono -T netstandard2.1 -n Name
 
  • Like
Reactions: yulta

yulta

New Member
Jul 10, 2023
7
20
113
The issue fixed because I'm actually stupid and wrote netstandard472 rather than net742. I wanted to make a shell script to just spare myself some time (I'm a very lazy programmer and I don't like to fetch commands myself, I tend to forget too). Now there's no issue anymore. THANK YOU
 

Mr.Momo

Member
Sep 7, 2022
101
305
186
Excellent crack (not literal) guide fello Uncle Eugene! Will you be adding a table of content to the first post for easier navigation to the various sections?
 

Uncle Eugene

Active Member
Modder
Respected User
Jun 6, 2020
597
4,560
426
1759966570263.png
I GUESS LEVEL 4 IS DELAYED lol

Level 4 - Il2cpp is ready

But for real thanks everyone who's following this thread, Level 4 is now ready and I'm doing the final polishing of the thread, proofreading, adding missing links and so on. I'll probably tweak level 4 a little once I read it 15+ more times, but it's already readable and completable
But I'll have to sort out this false positive trigger now...

Update: Everything is fixed
 
Last edited:
5.00 star(s) 2 Votes