Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Android #4

Open
1 of 9 tasks
lfuelling opened this issue Aug 24, 2017 · 6 comments
Open
1 of 9 tasks

Support for Android #4

lfuelling opened this issue Aug 24, 2017 · 6 comments
Assignees
Milestone

Comments

@lfuelling
Copy link
Member

lfuelling commented Aug 24, 2017

I'm not sure if GTA SA uses the same savegame format for Android as on PC. If yes, we could easily port the editor to Android. The TODOs below all depend on the first one. If Android uses another format or doesn't save locally at all (☁️) it might not be possible to port this.

Android does indeed use a similar savegame format than the PC version.

Steps to take:

  • Evaluate the Android Savegame Format
    • Find out if the same blocks are used
    • Find out if the blocks of the android version and the pc version have the same stuff in them
    • Find out if some blocks are empty/unused in the Android version that are used on PC and vice-versa
  • Refactor the Savegame handling logic to make it able to handle Android savefiles
    • Get the command line tool to extract blocks from an Android save
    • Get the command line tool to assemble a valid Android save
    • Implement the necessary stuff in libsavegame to make it able to read Android savegames
    • Implement the necessary stuff in libsavegame to make it able to save valid Android savegames

Upd8: What I found out so far:

  • Android savegames also go from 1 to 8 with the same naming scheme. Additionally there are 9 and 10 savegames that are always "present" (on the file system) and seem to contain the two "cloud slots".
  • Android savegames have a size of ~190500 bytes
    • The usual blocks used for the PC version don't work with this
    • Either the blocks are smaller or some are left out Some blocks are empty
  • The savegame-extractor is able to load the savegame into the editor but it crashes as soon as it's loading the file.

Further updates, notes and task tracking will happen in:

@lfuelling lfuelling modified the milestone: 3.3 Sep 11, 2017
@lfuelling lfuelling modified the milestone: 3.3 Sep 11, 2017
@lfuelling lfuelling self-assigned this Nov 19, 2018
@lfuelling lfuelling changed the title Support for Android? Support for Android Nov 25, 2018
@lfuelling lfuelling modified the milestone: 3.3 Dec 7, 2018
@lfuelling lfuelling modified the milestones: 3.3, 3.4 Oct 13, 2019
@Alucard-Storm
Copy link

It's giving error "This file is not a GTA San Andreas PC save game" when I try to load save game from my Android device using the extractor

@lfuelling
Copy link
Member Author

Yes, that's because this feature is still in development.
If you want to help please take a look at the links at the bottom of the issue description!

@FloDoc
Copy link

FloDoc commented Apr 13, 2021

Hey, is this still in development? I'd love to help out with this in some way, if possible. I have a feeling with the release of the Vita port, there will be renewed interest in this tool working on Android Saves. I have a bit of game modding and coding experience, so I may be able to help you with some save files and research.

@lfuelling
Copy link
Member Author

lfuelling commented Apr 14, 2021

Hi @FloDoc, yes, this is still "in development" although to be honest I'm simply too dumb to properly analyze the differences of the android savegame.
I managed to extract the Blocks using the cli and snooped through with a Hex editor, but I was unable to identify the already documented values and stopped further analysis.

If you want to help, the best way to start might be taking a look at the docs and the cli which lets you extract a given savegame to block files that can in turn be inspected with any Hex editor.

@FloDoc
Copy link

FloDoc commented Apr 16, 2021 via email

@OrionSR
Copy link

OrionSR commented Jun 27, 2022

Have you seen my GTASA binary template for the 010 Editor? It can parse almost everything in San Andreas save files of PC, PS2, OG Xbox and Android/iOS. 010 usually offers a generous trial period, if necessary. And if you don't have 010, you could probably pull all major differences between the various versions out of the constants lists and conditional statements in the structures. With 010, everything is all mapped out, and there's tons of enums and functions to help make the data easier to understand.

https://gtaforums.com/topic/893779-san-andreas-save-file-companion/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants