AltimitSystems / mv-android-client

RPG Maker MV unofficial Android client
http://www.hbgames.org/forums/viewtopic.php?f=48&t=79391
Apache License 2.0
115 stars 36 forks source link

"An unspecified error has occurred... Error code:4" #20

Open EliaquimNascimento opened 4 years ago

EliaquimNascimento commented 4 years ago

Hi there! Some people are having this error with the app I made using your client. It seems that if people don't have google play games, the error shows up. But I doubt with something, I put in the first map a conditional branch: ◆If:Script:google_play_main.isSignedIn() ◆Comment:do nothing ◆ :Else ◆Script:google_play_main.startInteractiveSignIn(); ◆ :End

Because I was afraid of the player perhaps was not connected in the google play games, so it would check it. I will post the logcat here logcat.txt

felixjones commented 4 years ago

Google Play integration was removed and is no longer supported (plan is to integrate it tighter in the future). @tehguy is the expert with the old Google Play branch, so you'll have to ask them directly.

JTM-rootstorm commented 4 years ago

Never thought of checking for the existence of Play Services since I'd assumed that, by using the library, it was getting slapped on GPlay-enabled devices (or the Play Store); isSignedIn() doesn't do that, it just checks to see if the user's signed in.

The attached file should fix things without you having to do anything on RPG Maker's end as, last I checked, things like to fail silently over there (like when functions don't exist and you call them).

GooglePlay.zip

This assumes you're using the last supported branch of this repo that had libgoogleplay built in.

This will probably be the last fix I do for that branch (unless something like this happens again, I guess) as I've moved on to providing a separate AAR on both my own repo and as a jcenter artifact.

RakuenZero commented 4 years ago

Hi there! thanks for the answer @felixjones ! Hi @tehguy ! So I guess it's better if I remove this conditional branch, right?

In fact, I start using this the last supported branch that you link. But I also start making some adjustments, like update the google play, merge with the last AltimitSystemPackage(the one that not has the google play) and add the @onlimono feature in-app. I'm really a beginner in android deployment. But I manage to add all of this work together. You can check the project with everything here.

But I will check your file anyway.

[EDIT] Also, there is a way to show achievements pop-up? I manage to work with achievements, but even in the production line, they don't pop up.