Hi! I've recently finished my first project (a 2d pixel game) and I thought of exporting it to Android, so I followed the documentation. When debugging, it works fine, without errors; nonetheless, when I try the game in an Android device via remote debug it doesn't work. I'm able to see only the main scene because the game freezes. I'm using the Mobile Renderer, but with Forward+ doesn't work either.
I've been looking for information but I don't understand most of it, so I would be very thankful if someone could guide me a bit in this proccess. I believed that finishing the project in Godot was all 😭 😭
Plexiform when I try the game in an Android device via remote debug
Do you mean that you use the Remote Debug drop-down menu to install the game on your Android device, and then play the game on the Android device?
Ascus No, I wasn't clear enough. I use Android Studio's Virtual Device Manager and select a device from there for the remote debug in Godot. But I'm going to try to play it on my Android device directly.
Plexiform i've also encounter this issue but its different in my side, just last night.. the exporting to android.. works fine, but now this afternoon... its stops working.. and giving me errors when i tried exporting to adnroid.. when i export to windows, i dont have any problems encountered.. just for android.. 😭 🤧
Talia This morning I tried it again and now the screen blinks constantly. Furthermore, I run it on my phone with an USB and there it works perfectly. Confusing...
Exporting to mobile is a delicate process. I have been in this hell recently.
It is difficult to figure out in which state you are, what you have tried, what has worked, and what hasn't
Does it work in your mobile connected by USB and using the Remote Debug?
This is the first step. Experiment with different rendering modes "Forward+, Mobile, Compatible"
If you still have problems I would try to see if there is a particular scene the one that is giving you problems. I would create a very simple Scene and mark it as the Main one. To see if this scene renders. If so, it means the problem is in the previous Scene.
Try to see what risky elements are in the problematic Scene: shaders, big images, ... Try to add log (print()) everywhere to see if you figure out where your code is breaking in the mobile
In addition to 3 renderer option, you could try changing all renderer to 'gles' in project setting with advanced settings option checked.
vulkan is a bit problematic on older mobile device or os.
If you have a working data cable, I'd recommend plugging one into your phone, and t'other end into your PC while you're exporting, and then export it directly to your phone via file manager in Windows or the files app in Linux (or equivalent for Mac/other OS)
If none of that works, I don't know.
Plexiform i have found the problem in mine.. The game engine Godot 3.5.3 is Drunk! Just this noon, it went Wacked giving Java Builds Error, then afternoon, it says APKsigner error #1, now i added some scenes in my game and i didnt move the other parts, it exported sucessfully, but in turn, the game engine turn Unresponsive.. I dont know whats going on..
© 2022 - 2024 — McMap. All rights reserved.