can you teach how to make this
Sure buddy, but it does requires skimming through code, so it is slightly technical. Also, it only works on certain Unity games.
1. Download and extract DNSpy - (
You must be registered to see the links
)
2. Open up "...\Sticky Dinner_Data\Managed\Assembly-CSharp.dll" using DNSpy.
3. Voila, you now have access to the decompiled version of the game's code. Now, we just need to edit the source code.
4. After some perusing, we see interesting code under
UIController -> Start()
method:
C:
private void Start()
{
this.megaData = GameObject.Find("BaseController").GetComponent<MegaData>();
if (this.megaData.gameData.isPat)
{
this.patChecker.gameObject.SetActive(false);
this.locker.SetActive(false);
}
....
So, this IF statement says if we are not Patreon, we don't get sexy button. So we
Right Click -> Edit Method
, and remove the IF statement.
C:
private void Start()
{
this.megaData = GameObject.Find("BaseController").GetComponent<MegaData>();
this.patChecker.gameObject.SetActive(false);
this.locker.SetActive(false);
.....
5. Save it, and voila, you have done the crack. I think there was some other error down below, so I just edit that and set it to number "10" arbitrarily. Re-run game to test.
6. Alternatively, if you go to
UIController -> PatChecker
. You will see
if (this.patChecker.text == this.patCode)
. If you Edit Method and put this line above it:
C:
public void PatChecker()
{
Debug.log(this.patCode);
if (this.patChecker.text == this.patCode)
{
...
7. It will print out the code to your
C:\Users\<Username>\AppData\LocalLow\Randy Fox\Sticky Dinner\Player.log
file.
Admittedly, I was in a bit of a rush, so I didn't realize you can just print out the code. But, all of this hinges on going through and understanding the game code.
Hope this is helpful