Help! Own android app cant mod need help!!

xxbuffyxx

Platinian
Original poster
Jul 13, 2021
21
958
78
MARS
Hi
I made a small android app in unity.

its out put the dmg int.
i want to mod my app but its dont work
First i dump it with il2cpp dumper gui and get my dll and offset

Code:
public int health; // 0x18
    public int dmg; // 0x1C
use hxd and search for the 1c offset and replace it with this.
but i dont get the result 99 the dmg is 0


Code:
C#:
return 99l;

ARM64:
MOV             W0, #0x63
RET

60 0C 80 52  C0 03 5F D6

Here is the apk when someone test it

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;

public class test : MonoBehaviour
{
public int health;
public int dmg;

public TextMeshProUGUI m_TextComponent;
// Start is called before the first frame update
void Start()
{

}

// Update is called once per frame
void Update()
{
this.m_TextComponent.SetText(dmg.ToString());

}
}
 

Yaskashije

PMT Elite Modder
Staff member
Modding-Team
Sep 9, 2018
4,416
837,735
1,213
Minkowski Space
You should learn how compilation works on C++/Il2cpp, since brainlessly trying to replicate a tutorial is not the way to go.
The static addresses you are trying to modify (0x1C) belong to the file header, something that holds info regarding the type of file.
 
  • Like
Reactions: xxbuffyxx

xxbuffyxx

Platinian
Original poster
Jul 13, 2021
21
958
78
MARS
You should learn how compilation works on C++/Il2cpp, since brainlessly trying to replicate a tutorial is not the way to go.
The static addresses you are trying to modify (0x1C) belong to the file header, something that holds info regarding the type of file.
And how can i change the int value ?
I test it on some other games and there it works perfect but on my own app that not working.