minetest / minetest

Luanti (formerly Minetest) is an open source voxel game-creation platform with easy modding and game creation
https://www.minetest.net/
Other
10.82k stars 2.03k forks source link

Android: Support Google Play Games Services for user config backup #13427

Open AFCMS opened 1 year ago

AFCMS commented 1 year ago

Problem

Creating a backup of user data on Android (ex: changing devices) require exporting the worlds and config and importing then on another device, which is acceptable but not really user friendly.

Solutions

Integrate with the Google Play Game Services => allow the creation/loading of game config and favorite servers backups on the user Google Drive.

These are just snapshots of game data (entirely optional), size only limited by available space on the Google Drive.

EDIT: It looks like I was wrong here, it seems limited to 3Mo by snapshot so will not allow to save entire worlds. But is still is a good idea I think for user config / favorite servers, etc

Alternatives

Keep the current solution.

Additional context

https://developers.google.com/games/services/common/concepts/savedgames

https://developers.google.com/games/services/android/savedgames

oong819 commented 1 year ago

please remember not all Android users use Google Play, i think Minetest can pack all the player's data to a compressed special file as backup instead

AFCMS commented 1 year ago

That should be entirely optional and another way to backup the config should be given, but this one is pretty convenient for Google Play users IMO.

AFCMS commented 1 year ago

I have got an idea about the mods. Since the ContentDB is the main way of installing Minetest mods, we could have a way to export a list of installed CDB mods and install an exported list. That way we could save it to the Google Play Games Service. And also to the Steam Cloud if we eventually publish Minetest on Steam.