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)().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
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.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
Also, replacing in the lib folder is okShould the game crash if i just replace lib ? Do i need to compile it ?
That didn't work either. The patching didn't crash the game nor did it unlock FPS.I think I got it. There's a custom fps manager class "SetTargetFramerate".
Try to hex patch this:
View attachment 678507
Here are the files. The dump.cs and lib is different from the original post because every offset changed when I reinstalled the game.Ok. You can try this one too View attachment 678754 (in the same class)
Also, can you send me the libil2cpp.so and globalmetadata.dat? I want to test one thing
I don't have the understanding (yet) to patch the file in the way you explained. If you want, you can download this game from this website itself for better inspection, as one modder has released it after removing netflix susbcription requirements. This task turned out to be more complicated than I initally thought.Thanks, checked if the generated offsets were ok, seems good.
My last idea would be using a nop code: 1F 20 03 D5 C0 03 5F D6 on Start() and Update() (maybe all functions in SetTargetFramerate to be sure).
That would hopefully make the script not work, and then editing application.targetframerate would work.
It's exactly the same as before. You get the RVA of the function just like with that int before and then patch it with that nop code with ctrl+b.I don't have the understanding (yet) to patch the file in the way you explained. If you want, you can download this game from this website itself for better inspection, as one modder has released it after removing netflix susbcription requirements. This task turned out to be more complicated than I initally thought.
It's not like i didn't try it after you suggested, it's just game is still locked at 30 fps. If you can unlock it, that would be awesome :)It's exactly the same as before. You get the RVA of the function just like with that int before and then patch it with that nop code with ctrl+b.
But I can try for myself too sure
I don't have that version. I have 1.8. Will it be possible for you to patch the il2cpp on gdrive ?Here's the libil2cpp: https://file.io/CX179vmXMUHY (uncapped/999 fps)
Just needed to mod the GetDesiredFPS() and get_DesiredFrameRate(). Maybe I gave you the wrong hex codes
it's for v.1.7.673, if you don't have that version I can share the whole app
Well what hex codes did you use ?Here's the libil2cpp: https://file.io/CX179vmXMUHY (uncapped/999 fps)
Just needed to mod the GetDesiredFPS() and get_DesiredFrameRate(). Maybe I gave you the wrong hex codes
it's for v.1.7.673, if you don't have that version I can share the whole app
Hey man ! THANKS FOR YOUR HELP. I Don't need any further patch. I was able to use the Hex codes you earlier gave and mod my il2cpp file myself with these two fucntions and framerate unlocked. I guess the key was to do them both at same time. Again, thanks for your help.Here's the libil2cpp: https://file.io/CX179vmXMUHY (uncapped/999 fps)
Just needed to mod the GetDesiredFPS() and get_DesiredFrameRate(). Maybe I gave you the wrong hex codes
it's for v.1.7.673, if you don't have that version I can share the whole app