Tuesday, 18 April 2023

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

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. 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 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

from iOSGods RSS Feed https://ift.tt/hSpDElr

No comments:

Post a Comment