openttd-android icon indicating copy to clipboard operation
openttd-android copied to clipboard

[Crash]: Network save/load issue on Android

Open Alexandrettt opened this issue 2 years ago • 4 comments

Version of OpenTTD

12.1 Android

Steps to reproduce

Hi all, OpenTTD on my android phone saving or loading network savegames gets stuck with the message "accessing network, please wait" on Google Play Games app.

Upload crash files

Screenshot_20230404-115208_OpenTTD

Alexandrettt avatar Apr 04 '23 10:04 Alexandrettt

Already test on last version 12.2.rev112 , and gets stuck at same moment. :(

Alexandrettt avatar Apr 04 '23 18:04 Alexandrettt

Google has deactivated the drive API in which the network saves relied, back in February. https://developers.google.com/drive/api/guides/android-api-deprecation

I'm currently maintaining this project, but I can't give you an estimate when it will be finished.

MiguelHorta avatar Apr 08 '23 17:04 MiguelHorta

My SDL port on Android is using Saved Games API, it is not deprecated

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

Some time ago Saved Games API used Drive API internally, but newer Play Services library changed that.

Anyway, the code is fragile, I have copied it from Google's sampe app long time ago:

https://github.com/pelya/commandergenius/tree/sdl_android/project/java/googleplaygameservices

On Sat, 8 Apr 2023, 20:38 Miguel Horta, @.***> wrote:

Google has deactivated the drive API in which the network saves relied, back in February. https://developers.google.com/drive/api/guides/android-api-deprecation

I'm currently maintaining this project, but I can't give you an estimate when it will be finished.

— Reply to this email directly, view it on GitHub https://github.com/pelya/openttd-android/issues/17#issuecomment-1500941092, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABF5QCSFMWCRZ7IWSVBRU3XAGPCBANCNFSM6AAAAAAWSRD6YQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

pelya avatar Apr 08 '23 19:04 pelya

It is being requested at line 267 within GameHelper.java, maybe it is enough to just remove that line? I will have to try.

For now all I know is that any request fails with UNAVAILABLE_API

MiguelHorta avatar Apr 08 '23 22:04 MiguelHorta