0 votes

Hello,

I finally put my godot game on a tablet. The titlescreen loads perfectly, but when I enter the ingame scene, most of the nodes are just black. The sound is working, the "black buttons" are working but hell, most of the elements don't appear ! (works fine in godot though)

Does this problem sound familiar to anyone here ? :/

in Engine by (245 points)

Check the answer here on how to debug manually on Android, should help.
You are probably getting some kind of "unable to load resource" message (ex: wrong path on a texture).

Good luck !

1 Answer

0 votes

So I managed to run the logcat (through Command > went to the platform-tools folder > "adb logcat".

I then ran my game on the tablet and I have tons of stuff being written in the terminal console. To the point I have to click to stop it and be able to read what it says.

Here are some console screenshots :
https://www.dropbox.com/s/wcjc7fvlgnp8c04/cmd_2018-10-10_19-18-06.png?dl=0

https://www.dropbox.com/s/auwx944f6k2z9co/cmd_2018-10-10_19-18-20.png?dl=0

https://www.dropbox.com/s/4qfn2kjy9iq3flk/cmd_2018-10-10_19-18-26.png?dl=0

https://www.dropbox.com/s/v3xs4c1zq88u6ie/cmd_2018-10-10_19-19-43.png?dl=0

https://www.dropbox.com/s/4m7bavk0m2ic0da/cmd_2018-10-10_19-19-48.png?dl=0

https://www.dropbox.com/s/zlobc5ap8mu3eum/cmd_2018-10-10_19-19-53.png?dl=0

I can't see anything as obvious as "unable to load resource"...

Am I doing the adb logcat thing right ?
Thanks !!

by (245 points)

Noticed a "windows" logo in the corner of your screenshot so I think I know what your error is (90% sure atleast ;) );

Most moden android versions uses the ext4 filesystem, where nodes (file and directories) are case sensitive. Most people running windows use FAT32 which is not case sensitive ( NTFS is though, iirc ).

What it boils down to is this - you may have a file in

"Graphics/ReallyCoolButton.PNG"

If you include it as "graphics/ReallyCoolButton.pnG" in godot it would work on windows, but not on Linux, MacOS or android.

So go through all your resources and make sure the case is the EXACT same as the file. and make sure if you overwrite the file outside of godot to use the same case for the file name.

(on windows "reallyCoolButton.png" would overwite the above file but change case of the name)

it's working perfectly on Mac and Linux, and I can't see anything wrong with the filename's cases so that might not be the reason, but thanks for your insight Guppy

Hopefully those speed up video captures of the issue can help :

https://youtu.be/an26uuG40cs

https://youtu.be/EcS4KBD5zNY

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.