godot icon indicating copy to clipboard operation
godot copied to clipboard

android not finding compiled GD script

Open whilke opened this issue 11 years ago • 9 comments

When I export a simple game to an android template with GDScripts set to compile, logcat spits out that it can't load any of the script resources.

if I tell the export to not compile GDScripts, script resources load just fine on android.

whilke avatar Aug 03 '15 22:08 whilke

I guess people are just not compiling GDScripts when exporting to Andorid?

whilke avatar Oct 03 '15 05:10 whilke

Strange, I always leave this option to compile (since it's the default) and never had such issue.

vnen avatar Oct 03 '15 22:10 vnen

Wild guess: do you by any chance load scripts at runtime with load() or preload(), without having them attached to some nodes in your scenes? If so you need to make sure to select to export all files and not just scenes and resources.

akien-mga avatar Nov 10 '15 15:11 akien-mga

That's possible, I will validate that when I get back to it.

whilke avatar Nov 11 '15 19:11 whilke

You can chose the type of data export here: res

akien-mga avatar Nov 11 '15 20:11 akien-mga

Double checked, all files is the export option that I have checked.

whilke avatar Nov 11 '15 20:11 whilke

need to check file/folder modification APIs on different OSs to make this work properly..

reduz avatar Dec 31 '15 22:12 reduz

Can you still reproduce this issue with 2.1-beta? Also, did you make sure to use export templates that match your Godot version?

akien-mga avatar Jul 15 '16 08:07 akien-mga

There was a bug related to newly added files not being added until you restart Godot that was fixed in 2.0, so I suspect at this point that this must be fixed, so closing.

reduz avatar Jul 20 '16 22:07 reduz