Jump to content

How to branch functions to the offset i want to use?


CodeName9

5 posts in this topic

Recommended Posts

Posted

So im trying to change the flow of a public void with no arguments / branching a function (Music Toggle Button) to my offset.

i want to change a button in a game (such as music on/off button in settings), so that it redirects the flow to the function i want.

for example,

public void Give10kCoins()

The button will be changed to instead not turn music off or on, but to give me the 10k coins.

Hopefully its enough info, thank you.

 

Posted

Hey,

Find the music button function and grab the offset then enter it here on the offset (hex) field: https://armconverter.com/

Then find the offset for public void Give10kCoins() and enter it like so: B #0xFUNCTIONOFFSET

967HnTK.png

Posted
13 hours ago, Rook said:

Hey,

Find the music button function and grab the offset then enter it here on the offset (hex) field: https://armconverter.com/

Then find the offset for public void Give10kCoins() and enter it like so: B #0xFUNCTIONOFFSET

967HnTK.png

Hey,

thank you for the easy-to-follow reply I’ll try it :)

Posted
17 hours ago, Rook said:

Hey,

Find the music button function and grab the offset then enter it here on the offset (hex) field: https://armconverter.com/

Then find the offset for public void Give10kCoins() and enter it like so: B #0xFUNCTIONOFFSET

967HnTK.png

Hey again, i tried doing this, and put the arm64 from https://armconverter.com/ (https://imgur.com/a/APhgwYC)  into the offset field in the live offset patcher, and used ret in the patch field but did nothing.

 

Posted
On 7/7/2020 at 11:53 AM, Jacksonlane24 said:

Hey again, i tried doing this, and put the arm64 from https://armconverter.com/ (https://imgur.com/a/APhgwYC)  into the offset field in the live offset patcher, and used ret in the patch field but did nothing.

 

Try hooking first using an update function or something then calling the function you want to use within that class

Archived

This topic is now archived and is closed to further replies.

×
  • 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