Open T5idr3 opened 2 years ago
It already uses shared storage i think, it has permission for it. Have you started game to have it extract files?
It already uses shared storage i think, it has permission for it. Have you started game to have it extract files?
I cleaned up and started the game. But the extracted files are nowhere to be found. 'All files access' and requested permissions are already set to allowed
I have tried several file managers and cannot find one with the desired permissions.
If we cannot resolve this core issue for stable, we should at least try to establish a workaround for some of the issues like fonts that can be gamebreaking without folder access.
You can access the folder by hooking your phone to a computer. You may also need to enable USB debugging on your phone, but don't quote me on that.
That's a workaround, not a fix for the core issue.
Doesn't the game have a command line option to separate the user data and core data folders? Can we use that? I know the Catapult launcher does that
We are using SDL_AndroidGetExternalStoragePath() to set our base path. See https://github.com/CleverRaven/Cataclysm-DDA/blob/1c67d46dec06d402b8b1ed7630adfff5a83631cf/src/main.cpp#L632
AFAIK that is our best bet for making the game data as accessible as possible, if you have an alternative to propose that will make the situation better, I'd like to hear it, but we don't know where is accessable on your system, so there is not enough information to go on here.
There are some "wrong" options we could pursue like storing this data in the "documents" folder, but the status quo is that android does not want to allow what you are describing.
Another option is adding workflows where you place fonts/mods/tilesets somewhere in the media directories, and cataclysm finds and imports them at startup.
Another option is adding workflows where you place fonts/mods/tilesets somewhere in the media directories, and cataclysm finds and imports them at startup.
I suspect this is the way to go going forward (my favorite writing app moved the working files to some folder only it can access, because Android 11 forced them to, in the name of "security" - it seems that Android is getting more and more restrictive with each successive release as to what folders apps can access)
That import option seems to make sense to me as a workaround (speaking as someone who occasionally plays on android, not as a dev there), and I agree that it's probably more than we can manage a day or two before string freeze.
Describe the bug
Android13 doesn't allow access to android/data and android/obb using the file manager. This makes it impossible to install user mods or sound.
Steps to reproduce
Expected behavior
Find com.cleverraven.cataclysmdda.*/files and customize your game.
Screenshots
No response
Versions and configuration
Additional context
It is advisable to change the game data reference to out of the android/data/* folder.