This is the AMP version of this page.
If you want to load the real page instead, click this text.

Solved Help with mod create

Status
Not open for further replies.

Levytain

Platinian
Hello everyone, I don't understand much about moding. After reading the guides, I was able to gain knowledge on how to find and edit hex in il2cpp, but I cannot figure out how to set the value to a constant state "true"

Code:
// Token: 0x170003B1 RID: 945
        // (get) Token: 0x06002625 RID: 9765 RVA: 0x0000CD98 File Offset: 0x0000AF98
        // (set) Token: 0x06002626 RID: 9766 RVA: 0x00002050 File Offset: 0x00000250
        public bool IsStealth
        {
            [Address(RVA = "0x9B2744", Offset = "0x9B2744", VA = "0x9B2744")]
            [Attribute(Name = "CompilerGeneratedAttribute", RVA = "0x3F9820", Offset = "0x3F9820")]
            get
            {
                return default(bool);
            }
            [Address(RVA = "0x9B274C", Offset = "0x9B274C", VA = "0x9B274C")]
            [Attribute(Name = "CompilerGeneratedAttribute", RVA = "0x3F9830", Offset = "0x3F9830")]
            set
            {
            }
        }

The game has a stealth state, I understand that using HxD you need to find RVA = "0x9B2744" and set it to true
In HxD it looks like this.

But I can't figure out how to edit these lines so that they are:
1) was TRUE
2) did not change their state
 
Code:
For armeabi-v7a libraries i'm using the exact same hex code everytime:

Return " 1 " or "True" for bool:

01 00 A0 E3 1E FF 2F E1

as instruction:

MOV R0, #1
BX LR

Return " 0 " or "False" for bool:

00 00 A0 E3 1E FF 2F E1


as instruction:

MOV R0, #0
BX LR

credits DaRealPanda
 
Status
Not open for further replies.