Help! Unity games unlock/Uncap framerates Discussion

I want to unlock FPS of a game named laya's horizon. I have dumped it's protected il2cpp file and attached the results. What would you guys do next ? Edit application.targetframerate ? Some other parameters ? At what RVA will you use the hex editor.
 

Attachments

Yes, you can hex patch get_targetFrameRate.
If the game is for pc, then you would also need disable vsync (set QualitySettings.VSyncCount to 0). But this game is a mobile game, right? Then you don't need to worry about vsync.

So yes, just editing application.targetframerate should work👍
 
Yes, you can hex patch get_targetFrameRate.
If the game is for pc, then you would also need disable vsync (set QualitySettings.VSyncCount to 0). But this game is a mobile game, right? Then you don't need to worry about vsync.

So yes, just editing application.targetframerate should work👍
Well, there are three references in dump file for that function. And only one has a rva value with it. It is, application target framerate set(int 32)().

I don't know hex editing or arm8 hex code editing. Do you have any idea how to actually edit the value.
 
There is that get method I mentioned in your dump, use it's rva:

1730394148162.png

There are many tutorials here like this one for hex patching
ll2Cpp Dump + Modding
But basically, first you need a hex code which you replace the original code with:
1730395423337.png

This should do: E0 7C 80 D2 C0 03 5F D6, code for int number 999.
You can make your own in armconverter.com by replacing the 999 with another number.

Then open libil2cpp.so in a hex editor, ctrl+g and paste the part after 0x of that rva: 194ae80 and enter.
You are now in the address of the rva. Then copy that hex code and press ctrl+b to replace original code.
Then save and build your apk with the edited libil2cpp.so
 
There is that get method I mentioned in your dump, use it's rva:

View attachment 678417
There are many tutorials here like this one for hex patching
ll2Cpp Dump + Modding
But basically, first you need a hex code which you replace the original code with:
View attachment 678420
This should do: E0 7C 80 D2 C0 03 5F D6, code for int number 999.
You can make your own in armconverter.com by replacing the 999 with another number.

Then open libil2cpp.so in a hex editor, ctrl+g and paste the part after 0x of that rva: 194ae80 and enter.
You are now in the address of the rva. Then copy that hex code and press ctrl+b to replace original code.
Then save and build your apk with the edited libil2cpp.so
I took the hex value you gave and put it in the address. I then copied this file to my rooted android, in the game lib's folder and game crashes. Any idea why ? Should the game crash if i just replace lib ? Do i need to compile it ?
 
There is that get method I mentioned in your dump, use it's rva:

View attachment 678417
There are many tutorials here like this one for hex patching
ll2Cpp Dump + Modding
But basically, first you need a hex code which you replace the original code with:
View attachment 678420
This should do: E0 7C 80 D2 C0 03 5F D6, code for int number 999.
You can make your own in armconverter.com by replacing the 999 with another number.

Then open libil2cpp.so in a hex editor, ctrl+g and paste the part after 0x of that rva: 194ae80 and enter.
You are now in the address of the rva. Then copy that hex code and press ctrl+b to replace original code.
Then save and build your apk with the edited libil2cpp.so
I suspected some corruption so I started the project again. This time the game didn't crash when I replaced the hex edited file. But the FPS didn't unlock either.
 
Back
Top Bottom