Help! getting 0 health instead of infinite....

Sami1980

Solid & Active Platinian
Original poster
May 15, 2021
64
10
8
43
Europe
Hello,
Wondering if someone could help me. I am trying to give myself infinite FLOAT HP in an ARM64 game but whenever I use

ARM:
movz x0, #0x7f80, lsl #16
ret

HEX:
00 F0 AF D2 C0 03 5F D6

I get 0 health instead of infinite health.

Also tried using this to return high value:

ARM:
MOV X0, #0x7F000000
ret

HEX:
00 E0 AF D2 C0 03 5F D6

but it didn't help either. Here is the offset info from the dump.cs.

// RVA: 0xB55B74 Offset: 0xB55B74 VA: 0xB55B74
public static float get_RealBaseHealth() { }


And here are the game's original ARM and HEX codes from the xB55B74 offset in the libil2cpp.iso file


ARM:
str x19, [sp, #-0x20]!
stp x29, x30, [sp, #0x10]

HEX:
F3 0F 1E F8 FD 7B 01 A9

Any help would be immensely appreciated!
 

Sami1980

Solid & Active Platinian
Original poster
May 15, 2021
64
10
8
43
Europe
Okay I have found a workaround in case anyone else runs into this problem. The situation I described above was encountered when I downloaded the latest version of the game from the Google Play Store. I noticed inside the lib folder there was now a "arm64v8" folder instead of the "armeabi-v7a" folder which was used in the previous version. I still had the modded libil2cpp.iso and the "armeabi-v7a" (from the previous release) so all I did was replaced the new game's "arm64v8" folder with the "armeabi-v7a" folder and compiled and installed and it worked. I don't know how much longer this workaround will continue to work but it's working for now.