blake502 / balatro-mobile-maker

Create a mobile Balatro app from your Steam version of Balatro
270 stars 21 forks source link

[beta-0.6.1, Android 14] Save inacessible #29

Closed qouesm closed 1 month ago

qouesm commented 1 month ago

This has been working wonderfully on my Android 13 phone (Oneplus 7 Pro; DivestOS) and I applaud the work that's been done here. I've been transferring my save to and from my phone just fine. Through a number of releases, I have not been able to access my save location on my Android 14 tablet (Pixel Tablet; CalyxOS) and I have not been able to nail down a reason unfortunately.

As best as I can tell, the files at Android/data/com.unofficial.balatro/files/save/ are inaccessible. If I navigate to this directory via system file manager, it is empty. It is keeping a saved run between system reboot so I know it's there. Other apps in that Android/data directory appear to work fine, like how I can view images in from cache my music app generates.

I have tried:

Release: beta-0.6.1 Host: Windows 11 under VirtualBox Device: Google Pixel Tablet Android Version: 14 CalyxOS version: 5.6.0

blake502 commented 1 month ago

You're looking in the wrong spot.

You should be looking at /data/data/com.unofficial.balatro/files/save/

As far as I know, it's only accessible through ADB. Check out the source... Since it's a little convoluted in the source, I'll put it this way-- We do something like this:

(Push everything from the "...\AppData\Balatro\" directory into a tmp location)

adb push "%AppData%/Balatro/." /data/local/tmp/balatro/files/save/game

("Run-as" the app, then copy everything from the tmp location to the current directory. "Run-as" automatically sets the working directory to the right directory)

adb shell run-as com.unofficial.balatro cp -r /data/local/tmp/balatro/files .

Edit: That said, you can make the sdcard location the right spot with the "external storage" option in Love.. But it's still just as tricky to access, since it will appear empty with typical file managers. You can thank the Android dev team for that.

qouesm commented 1 month ago

OK that worked, thank you! I remember in previous updates there was an "accessible saves" patch that I recall not seeing with the newest release. Does it default to "inaccessible" saves for lack of a better term now? Because I'm just now noticing that my save didn't carry over when updating on my phone now. The same steps worked to move my save to my phone.