Jump to content

GTA San Andreas Mobile Modding


Recommended Posts

  • 3 months later...
  • 1 month later...
  • 8 months later...
  • 3 months later...
hot coffee En
On 12/30/2020 at 11:48 AM, Dr. Prakamya Khare said:

AS XMDS said , you need to understand Opcode 0DD0,0DD1,0DD3,0DD4 etc.

For example:-

 

char CFileMgr::OpenFile(const char *path, const char *mode)

 

 

this one is a hex string which is usually use to call functions from Shared object lib(.so) files.

 

_ZN8CFileMgr8OpenFileEPKcS1_

So we can use 0DD0 and 0DD1 to call function name:-

OpenFile("Name\\Example.ini","r")

 

After setting these parameters ,this function will read file "Example.ini" from folder "Name" which will be created inside the files folder.

 

Therefore, by encoding this Open file("Name\\Example.ini","r") into low level language (CLEO) we get

 the following opcodes:-

 

0DD0: 1@ = get_lable @_ZN8CFileMgr8OpenFileEPKcS1_

0DD1: 1@ = get_function 1@

 

:_ZN8CFileMgr8OpenFileEPKcS1_

hex

"_ZN8CFileMgr8OpenFileEPKcS1_" 00

end

 

 

Now , you have to set the parameters of the function which is file name and it's path, and read mode; 

Opcode 0DD3 is use to set the parameters of the functions and opcode 0DD2 is use to call a function after setting it's parameters.

 

Opcode 0DD4 is use to get a pointer to the function or we say return value.

 

After all our code will look like this:-

 

0DD0: 3@ = get_lable @FileName

0DD0: 4@ = get_lable @Mode

0DD3: set_parameter 0 value 3@

0DD3: set_parameter 1 value 4@

0DD2: call_function 1@

0DD4: 5@ = get_pointer_at 0 // File ptr

 

 

:FileName

hex

"Name\\Example.ini" 00

end

 

:Mode

hex

"r" 00

end

 

Finally, after combining all steps our code will look  like this :-

 

{$CLEO .csa}

0000: NOP

 

// Function for opening the File

 

:OpenFile

0DD0: 1@ = get_lable @_ZN8CFileMgr8OpenFileEPKcS1_

0DD1: 1@ = get_function 1@

0DD0: 3@ = get_lable @FileName

0DD0: 4@ = get_lable @Mode

0DD3: set_parameter 0 value 3@

0DD3: set_parameter 1 value 4@

0DD2: call_function 1@

0DD4: 5@ = get_pointer_at 0 // File pointer

if 5@ == 0 // means file  or folder is not there

 end_thread

 

 

 

 

:_ZN8CFileMgr8OpenFileEPKcS1_

hex

"_ZN8CFileMgr8OpenFileEPKcS1_" 00

end

 

:FileName

hex

"Name\\Example.ini" 00

end

 

:Mode

hex

"r" 00

end

 

 

Apologies for my bad English! :).

My friend can you create write mem get all vehicles for Android for me please 

  • 1 month later...
On 7/21/2024 at 10:38 AM, GTA RACOON said:

Hi !

 

I have the original game and I want to make some contents on it but on Android 14 I can't acess OBB files even with Shizuku and I don't want to Root my phone any solutions please ?

I recommend using my project 'fastman92 APK modifier' to solve this problem.

 

To solve Android 10+ problem of scoped storage (can't access Android directory) use you can use my project named 'fastman92 APK modifier'. It loads APK/APKS/XAPK and generates a new APK/APKS/XAPK file, which then can be installed. Files will be in a different directory instead (Android_unprotected, which can be easily accessed). This will work for most of Android applications, not limited to GTA.

 

 

Edited by fastman92
  • 1 month later...

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
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.