Hi everyone

My game has the following three scenes:
Title screen --> Menu --> Actual game

All three scenes work fine on the computer, but on my phone I can't go from the menu to the game. I have a back button to go from the menu to the title screen, and that works.

Here is the relevant section of code for the button. It's for checkboxes that the player must choose from before pressing the start button (if they choose nothing, they will get an error message).

if get_node("VBoxContainer/A").pressed or get_node("VBoxContainer/K").pressed or get_node("VBoxContainer/S").pressed\
or get_node("VBoxContainer/T").pressed or get_node("VBoxContainer/N").pressed or get_node("VBoxContainer/H").pressed\
or get_node("VBoxContainer/M").pressed or get_node("VBoxContainer/Y").pressed or get_node("VBoxContainer/R").pressed\
or get_node("VBoxContainer/WN").pressed or get_node("VBoxContainer/G").pressed or get_node("VBoxContainer/Z").pressed\
or get_node("VBoxContainer/D").pressed or get_node("VBoxContainer/B").pressed or get_node("VBoxContainer/P").pressed:
get_tree().change_scene("res://Level/Level.tscn")
else:
$ErrorLabel.text="Error!"

I am able to get the error message from the button, but it won't change scenes.

The only difference between the computer and Android that I can think of is that Android is supposed to run AdMob, but AdMob is called at the title screen (and the ads work).

I tried making a shortcut button to the game, and that didn't work either on Android
func _on_TouchScreenButton_pressed():
Global.selected+=Global.D
Global.selected_J+=Global.Dh
get_tree().change_scene("res://Level/Level.tscn")

Has anyone had a similar problem? If so, how did you fix it?

Thanks

    OofStatement

    I tried making the button change to a different scene and that worked. It seems it's just "res://Level/Level.tscn" that the button won't load.

    DaveTheCoder

    I got the stdout while running the game.

    This is what I get when I press the button to load the game.

    08-23 13:26:27.777 24874 30489 E godot : ERROR: No loader found for resource: res://Audio/jump.ogg.
    08-23 13:26:27.777 24874 30489 E godot : at: _load (core/io/resource_loader.cpp:278) - Method failed. Returning: RES()
    08-23 13:26:27.777 24874 30489 E godot : ERROR: res://Player/Player.tscn:7 - Parse Error: [ext_resource] referenced nonexistent resource at: res://Audio/jump.ogg
    08-23 13:26:27.777 24874 30489 E godot : at: poll (scene/resources/resource_format_text.cpp:412) - res://Player/Player.tscn:7 - Parse Error: [ext_resource] referenced nonexistent resource at: res://Audio/jump.ogg
    08-23 13:26:27.777 24874 30489 E godot : ERROR: Failed to load resource 'res://Player/Player.tscn'.
    08-23 13:26:27.777 24874 30489 E godot : at: load (core/io/resource_loader.cpp:206) - Condition "err != OK" is true. Returned: RES()
    08-23 13:26:27.777 24874 30489 E godot : ERROR: Failed loading resource: res://Player/Player.tscn. Make sure resources have been imported by opening the project in the editor at least once.
    08-23 13:26:27.777 24874 30489 E godot : at: _load (core/io/resource_loader.cpp:271) - Condition "found" is true. Returned: RES()
    08-23 13:26:27.777 24874 30489 E godot : ERROR: res://Level/Level.tscn:115 - Parse Error: [ext_resource] referenced nonexistent resource at: res://Player/Player.tscn
    08-23 13:26:27.777 24874 30489 E godot : at: poll (scene/resources/resource_format_text.cpp:412) - res://Level/Level.tscn:115 - Parse Error: [ext_resource] referenced nonexistent resource at: res://Player/Player.tscn
    08-23 13:26:27.777 24874 30489 E godot : ERROR: Failed to load resource 'res://Level/Level.tscn'.
    08-23 13:26:27.777 24874 30489 E godot : at: load (core/io/resource_loader.cpp:206) - Condition "err != OK" is true. Returned: RES()
    08-23 13:26:27.786 24874 30489 E godot : ERROR: Failed loading resource: res://Level/Level.tscn. Make sure resources have been imported by opening the project in the editor at least once.
    08-23 13:26:27.786 24874 30489 E godot : at: _load (core/io/resource_loader.cpp:271) - Condition "found" is true. Returned: RES()

    Could I have exported this incorrectly? There shouldn't be a problem with res://Player/Player.tscn or res://Audio/jump.ogg. They both work on the computer.

    Only other thing I can think of is that I tried to target API 33. Although, when I went back to API 32, I still had the same problem. And I've not had a problem with API 33 on other apps.

    This may not matter, but I use lowercase for all directories and filenames.

    You might try temporarily removing the audio file from the project, and see if the problem still occurs.