Solved Help modifying health in the game

Cbuck1989

Approved Modder
Approved Modder
So i am trying to modify this health. here is the hex code I'm using 12 07 80 E3 1E FF 2F E1 but it wont change the value in the game. What am i doing wrong? Sorry just starting to learn how to mod games.
 

Attachments

  • Screenshot 2024-09-08 153220.png
    Screenshot 2024-09-08 153220.png
    3 KB · Views: 85
  • Screenshot 2024-09-08 153246.png
    Screenshot 2024-09-08 153246.png
    5.2 KB · Views: 80
Try this code instead...

0F 07 02 E3 1E FF 2F E1

If it still doesn't work then you might want to try searching for a different health method

Yeah I figured out I was using the wrong health method. I found a HP one, but no matter how small of a number I put in, in the game when I try to attack it makes the attack power 751 million and the game crashes when trying to attack.

So I'm not sure what to do there. I tried value of 1 and still goes up to 751m
 
Yeah I figured out I was using the wrong health method. I found a HP one, but no matter how small of a number I put in, in the game when I try to attack it makes the attack power 751 million and the game crashes when trying to attack.

So I'm not sure what to do there. I tried value of 1 and still goes up to 751m
Perhaps you should hook the method instead of hex patch. Show me the hp method you use
 
Yeah I figured out I was using the wrong health method. I found a HP one, but no matter how small of a number I put in, in the game when I try to attack it makes the attack power 751 million and the game crashes when trying to attack.

So I'm not sure what to do there. I tried value of 1 and still goes up to 751m
What is the name of the game
 
you should try the set_health instead, of enemies or monsters class or enemy player and nop it

nop instruction is always

arm32: 00 F0 20 E3 1E FF 2F E1
arm64: 1F 20 03 D5 C0 03 5F D6

this is basically some sort of 1 hit but making monsters having 1 hp or no HP at all

It's not working out on 100% of the games i tested but you should try it, it can works..


also you can try something like godmod, just nop the void attack from player / character class

yea anything can help modding a game faster, instead of research a lot

also try il2cpp tool if it's unity game, you can trace whole class and see what they use as methods etc..

good luck anyway ✨✨
 
also verify the game arch you are dumping and using, the hex code you are using is for arm32, but you might have the dump for 64 bit ^^, then it's a whole different hex codes
 
also verify the game arch you are dumping and using, the hex code you are using is for arm32, but you might have the dump for 64 bit ^^, then it's a whole different hex codes
I have the dump for both 32 and 64 bit. I just need to learn hex better to know what the values of each thing is. right now i use armconverter to get the hex code to use
 
also verify the game arch you are dumping and using, the hex code you are using is for arm32, but you might have the dump for 64 bit ^^, then it's a whole different hex codes
but right now i got the armeabi_v7a only version of the game im trying to do. so might make things a little easier. I will try what you mentioned above and see what happens
 
you should try the set_health instead, of enemies or monsters class or enemy player and nop it

nop instruction is always

arm32: 00 F0 20 E3 1E FF 2F E1
arm64: 1F 20 03 D5 C0 03 5F D6

this is basically some sort of 1 hit but making monsters having 1 hp or no HP at all

It's not working out on 100% of the games i tested but you should try it, it can works..


also you can try something like godmod, just nop the void attack from player / character class

yea anything can help modding a game faster, instead of research a lot

also try il2cpp tool if it's unity game, you can trace whole class and see what they use as methods etc..

good luck anyway ✨✨

here are the current un edited hex's in the armeabi_v7a for the stats that actually change when you replace it with another hex:

The problem say when editing the baselineHP one, no matter if i insert a hex value of 1 it makes your characters power in the game go up to 751 million and the game crashes if you try to attack something. So not sure what to do there besides what was mentioned prior about having to hook it
 

Attachments

  • Screenshot 2024-09-10 190355.png
    Screenshot 2024-09-10 190355.png
    27.2 KB · Views: 49
  • getBaselineArmor.png
    getBaselineArmor.png
    6.6 KB · Views: 45
  • getBaselineHealth.png
    getBaselineHealth.png
    8.8 KB · Views: 43
  • getBaselineHp.png
    getBaselineHp.png
    6.3 KB · Views: 47
here are the current un edited hex's in the armeabi_v7a for the stats that actually change when you replace it with another hex:

The problem say when editing the baselineHP one, no matter if i insert a hex value of 1 it makes your characters power in the game go up to 751 million and the game crashes if you try to attack something. So not sure what to do there besides what was mentioned prior about having to hook it
It's because it's double value bro

double hex for 1:

arm32: F0 1F 43 E3 1E FF 2F E1
arm64: 00 10 6E 1E C0 03 5F D6
 
So tried out what you sent. it worked it shows my power as little over 1 billion and doesn't crash the game. but when i attack something its still normal attack unfortunately lol
You can eventually hook the methods. It's most likely better to hook than Hex to save a LOT of TIME. Hooking, you can do many things, return any higher numbers like 9999999.

Also, it's best to hook set_methods to get the actual values and validate its values when it's changed. get_methods allows you to access data keeping its representation, but can also work by returning values.
 
Back
Top Bottom