Jump to content

6 posts in this topic

Recommended Posts

Posted

Hey it's me again, here to share my knowledge as a modder and so new modders can get to advanced modding really quick than struggling a lot of hours with missing informations!

 

I will get to the point directly:

 

How to modify methods with parameters (Field Offset Patching), with no experience ?

 

Here is the method we will be trying to hook.

 

Spoiler

image.png

 

Then, how to modify this method properly ?

 

First, read the parameters in it and think outside of the cube..

 

We have a class called SkillTableData, and the parameter float _CoolTime

 

Now you're probably asking yourself what to do ?

 

Step 1 - Go to SkillTableData

 

Step 2 - Search if the parameter _CoolTime is in SkillTableData

 

Spoiler

If it is, then it should look like this:

image.png

 

What is the ARM Instruction and HEX to modify it ?

 

Well, since it's a Cooldown Time parameter, i would put 0 as a value in it.

 

ARM INSTRUCTION:

MOV             R1, #0x0000
STR             R1, [R0,#0x7C] <- #0x7C is the field offset, replace it with your actual field offset.
BX              LR

 

HEX:

00 10 A0 E3 7C 10 80 E5 1E FF 2F E1

 

I hope you enjoyed this tutorial!

 

See ya,

L808

  • Like 11
  • Winner 1
  • Thanks 1
  • Agree 1
  • Informative 2
Posted
On 11/3/2023 at 7:27 AM, TERROOR said:

hi, is a nice tutorial, can you reupload images , please.

yes, thread will be updated 😁👍🏻

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines